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
Function to populate the Blue Moon City Blacksmith inventory
private static String[] populateBlueMoonBlacksmith(String[] blacksmithInventory){ blacksmithInventory[0] = "Iron Helmet"; blacksmithInventory[1] = "Iron Chest Plate"; blacksmithInventory[2] = "Iron Boots"; blacksmithInventory[3] = "Iron Gloves"; return blacksmithInventory; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fillInventory(TheGroceryStore g);", "private void createItems()\n {\n Item belt, nappies, phone, money, cigarretes, \n jacket, cereal, shoes, keys, comics, bra, \n bread, bowl, computer;\n\n belt = new Item(2,\"Keeps something from falling\",\"Belt\");\n nappies = new Item(7,\"Holds the unspeakable\",\"Nappies\");\n phone = new Item(4, \"A electronic device that holds every answer\",\"Iphone 10\");\n money = new Item(1, \"A form of currency\",\"Money\");\n cigarretes = new Item(2,\"It's bad for health\",\"Cigarretes\");\n jacket = new Item(3,\"Keeps you warm and cozy\", \"Jacket\");\n cereal = new Item(3, \"What you eat for breakfast\",\"Kellog's Rice Kripsies\");\n shoes = new Item(5,\"Used for walking\", \"Sneakers\");\n keys = new Item(2, \"Unlock stuff\", \"Keys\");\n comics = new Item(2, \"A popular comic\",\"Batman Chronicles\");\n bra = new Item(3,\"What is this thing?, Eeeewww\", \"Bra\");\n bread = new Item(6,\"Your best source of carbohydrates\",\"Bread\");\n bowl = new Item(4,\"where food is placed\",\"Plate\");\n computer = new Item(10,\"A computational machine\",\"Computer\");\n\n items.add(belt);\n items.add(nappies);\n items.add(phone);\n items.add(money);\n items.add(cigarretes);\n items.add(jacket);\n items.add(cereal);\n items.add(shoes);\n items.add(keys);\n items.add(comics);\n items.add(bra);\n items.add(bread);\n items.add(bowl);\n items.add(computer);\n }", "private void loadStartingInventory(){\n this.shelfList = floor.getShelf();\n Iterator<String> i = items.iterator();\n for (Shelf s : shelfList){\n while (s.hasFreeSpace()){\n s.addItem(i.next(), 1);\n }\n }\n }", "public void fillChest(Inventory inv);", "public void createItem()\n {\n \n necklace_red = new Item (\"Red Necklace\",\"This is a strange red necklace\");\n poolroom.addItem(necklace_red);\n \n // items in dancing room // \n gramophone = new Item (\"Gramophone\",\"This is a nice gramophone but without disk\");\n candelar = new Item(\"Candelar\",\"This candelar gives light and is really beautiful\");\n dancingroom.addItem(gramophone);\n dancingroom.addItem(candelar);\n \n //items in hall //\n potion2HP = new Potion(\"Potion 2 HP\",\"This potion gives 2 HP to the player\",2);\n hall.addItem(potion2HP);\n \n //items in corridor //\n halberd = new Weapon(\"Halberd\",\"This the statut halberd. It was not a really good idea to take it\",4,60);\n corridor.addItem(halberd);\n \n // items in bathroom //\n potion6HP = new Potion(\"Potion6HP\",\"This potions gives 6 HP to the player\",6);\n bathroom.addItem(potion6HP);\n \n // items in guestbedroom //\n Exit exit_from_corridor_to_bedroom = new Exit(\"south\",corridor,false, null);\n bedroomkey = new Keys(\"Bedroom key\",\"This key opens the master bedroom door\",exit_from_corridor_to_bedroom);\n guestbedroom.addItem(bedroomkey);\n \n // items in kitchen // \n set_of_forks_and_knives = new Weapon(\"Set of forks and knives\",\"This weapon is a set of silver forks and silver knives\",2,40);\n kitchen.addItem(set_of_forks_and_knives);\n \n // items in bedroom //\n Item disk = new Item(\"Disk\",\"This disk can be used with the gramophone\");\n bedroom.addItem(disk);\n \n Potion potion3HP = new Potion (\"Potion3HP\",\"This potions gives 3 HP to the player\",3);\n bedroom.addItem(potion3HP);\n \n Item money = new Item(\"Money\",\"You find 60 pounds\");\n bedroom.addItem(money);\n \n // items in the library //\n Item book = new Item(\"Book\",\"The title book is 'The best human friend : the cat'\");\n library.addItem(book);\n \n // items in laboratory //\n Exit exit_from_corridor_to_attic = new Exit(\"up\",corridor,false, null);\n Keys attickey = new Keys(\"Attic key\",\"This key is a shaped bone from a squeletor\", exit_from_corridor_to_attic); \n laboratory.addItem(attickey);\n \n Item construction_drawing = new Item(\"Construction drawing\",\"You find construction drawings. Mr Taylor planed to dig really deeply to the east of the gardener hut\");\n laboratory.addItem(construction_drawing);\n \n //items in garden //\n Weapon fork = new Weapon(\"Fork\",\"This fork is green and brown\",3,50);\n garden.addItem(fork);\n \n Potion apple = new Potion(\"Apple\",\"This apples gives you 2 HP\",2);\n garden.addItem(apple);\n \n // items in gardenerhut //\n \n Item pliers = new Item(\"Pliers\",\"You can cut a chain with this object\");\n gardenerhut.addItem(pliers);\n \n Item ritual_cape = new Item(\"Ritual cape\",\"You find a black ritual cape. It is very strange !\");\n gardenerhut.addItem(ritual_cape);\n \n Item necklace_black_1 = new Item(\"Necklace\",\"You find a very strange necklace ! It is a black rond necklace with the same symbol than in the ritual cape\");\n gardenerhut.addItem(necklace_black_1);\n \n //items in anteroom //\n \n Potion potion4HP = new Potion(\"Potion4HP\",\"This potion gives 4 HP to the player\",4);\n anteroom.addItem(potion4HP);\n \n Weapon sword = new Weapon(\"Sword\",\"A really sharp sword\",6,70);\n anteroom.addItem(sword);\n // items in ritual room //\n \n Item red_ritual_cape = new Item(\"Red ritual cape\", \"This is a ritual cape such as in the gardener hut but this one is red. There are some blond curly hairs\");\n ritualroom.addItem(red_ritual_cape);\n \n Item black_ritual_cape_1 = new Item(\"Black ritual cape\",\"This is a black ritual cape\");\n ritualroom.addItem(black_ritual_cape_1);\n \n Item black_ritual_cape_2 = new Item (\"Black ritual cape\",\"Another black ritual cape\");\n ritualroom.addItem(black_ritual_cape_2);\n \n }", "public static Item generate(){\n\n //this method lists a collection of new items. it then uses a random number generator\n //to pick one of the objects, and then returns the object so that the main method\n //can add it to the inventory.\n\n ItemType weapon = ItemType.weapon;\n Item IronSword = new Item(weapon, \"Iron Sword\", 8, 50, 10);\n Item GoldenSword = new Item(weapon, \"Golden Sword\", 10, 75, 15);\n Item AllumSword = new Item(weapon, \"Alluminum Sword\", 6, 35, 8);\n Item BowandQuiver = new Item(weapon, \"Bow & Quiver\", 4, 45, 7);\n Item BattleAxe = new Item(weapon, \"Battle Axe\", 12, 55, 13);\n\n ItemType armor = ItemType.armor;\n Item ChainChest = new Item(armor, \"Chain Mail Chestplate\", 8, 40, 30);\n Item IronChest = new Item(armor, \"Iron Chestplate\", 10, 50, 40);\n Item GoldenChest = new Item(armor, \"Golden Chestplate\", 12, 65, 50);\n Item ChainPants = new Item(armor, \"Chain Mail Pants\", 7, 40, 30);\n Item IronPants = new Item(armor, \"Iron Pants\", 9, 50, 40);\n Item GoldenPants = new Item(armor, \"Golden Pants\", 11, 65, 50);\n Item Helmet = new Item(armor, \"Helmet\", 5, 40, 20);\n\n ItemType other = ItemType.other;\n Item Bandage = new Item(other, \"Bandage\", 1, 2, 0);\n Item Wrench = new Item(other, \"Wrench\", 3, 10, 5);\n Item Bread = new Item(other, \"Bread Loaf\", 2, 4, 0);\n Item Water = new Item(other, \"Water Flask\", 3, 2, 0);\n\n Item Initializer = new Item(other, \"init\", 0, 0, 0);\n\t\tint ItemPick = RandomNum();\n Item chosen = Initializer;\n\n switch (ItemPick){\n case 1:\n chosen = IronSword;\n break;\n case 2:\n chosen = GoldenSword;\n break;\n case 3:\n chosen = AllumSword;\n break;\n case 4:\n chosen = BowandQuiver;\n break;\n case 5:\n chosen = BattleAxe;\n break;\n case 6:\n chosen = ChainChest;\n break;\n case 7:\n chosen = IronChest;\n break;\n case 8:\n chosen = GoldenChest;\n break;\n case 9:\n chosen = ChainPants;\n break;\n\t\t\t case 10:\n chosen = IronPants ;\n break;\n case 11:\n chosen = GoldenPants;\n break;\n case 12:\n chosen = Helmet;\n break;\n case 13:\n chosen = Bandage;\n break;\n case 14:\n chosen = Wrench;\n break;\n case 15:\n chosen = Bread;\n break;\n case 16:\n chosen = Water;\n break;\n }\n\n return chosen;\n }", "public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }", "private void viewBackpack() {\n Item[] inventory = GameControl.getSortedInventoryList();\r\n \r\n System.out.println(\"\\n List of inventory Items\");\r\n System.out.println(\"Description\" + \"\\t\" + \r\n \"Required\" + \"\\t\" +\r\n \"In Stock\");\r\n \r\n // For each inventory item\r\n for (Item inventoryItem : inventory){\r\n // Display the description, the required amount and amount in stock\r\n System.out.println(InventoryItem.getType + \"\\t \" +\r\n InventoryItem.requiredAmount + \"\\t \" +\r\n InventoryItem.getQuantity);\r\n }\r\n \r\n }", "public static Items initialVendingMachine() {\n Items items = new Items();\n Item cola = new Item(R.drawable.cola, \"Cola\", 30, 100, 3000, 0);\n Item chips = new Item(R.drawable.chips, \"Chips\", 30, 50, 3000, 0);\n Item candy = new Item(R.drawable.candy, \"Candy\", 30, 65, 3000, 0);\n items.addItem(cola);\n items.addItem(chips);\n items.addItem(candy);\n items.addMachineCredit(5000);\n return items;\n }", "private void initItems() {\n\t\t// clouds\n\t\tclouds = new ArrayList<Cloud>();\n\t\tfor (int i = 0; i < CLOUDS_NUMBER; i++) {\n\t\t\tswitch (i) {\n\t\t\tcase 1:\n\t\t\t\tCloud cloud = new Cloud(20, 400);\n\t\t\t\tcloud.isRight = false;\n\t\t\t\tcloud.velocity.set(Cloud.CLOUD_MAX_VELOCITY, 0);\n\t\t\t\tclouds.add(cloud);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tcloud = new Cloud(800, 300);\n\t\t\t\tcloud.isRight = false;\n\t\t\t\tcloud.velocity.set(Cloud.CLOUD_MAX_VELOCITY, 0);\n\t\t\t\tclouds.add(cloud);\n\t\t\tcase 3:\n\t\t\t\tcloud = new Cloud(800, 200);\n\t\t\t\tcloud.isRight = true;\n\t\t\t\tcloud.velocity.set(-Cloud.CLOUD_MAX_VELOCITY / 2, 0);\n\t\t\t\tclouds.add(cloud);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// bats\n\t\tbats = new ArrayList<Bat>();\n\t\tfor (int i = 0; i < BATS_NUMBER; i++) {\n\t\t\tswitch (i) {\n\t\t\tcase 1:\n\t\t\t\tBat bat = new Bat(410, 400, Assets.BatRegion.getRegionWidth() / 3.4f,\n\t\t\t\t\t\tAssets.BatRegion.getRegionHeight() / 3.4f);\n\t\t\t\tbat.isRight = false;\n\t\t\t\tbat.angle = 0f;\n\t\t\t\tbat.fixAngle = 0f;\n\t\t\t\tbat.interval = 16;\n\t\t\t\tbats.add(bat);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tbat = new Bat(100, 250, Assets.BatRegion.getRegionWidth() / 5.0f,\n\t\t\t\t\t\tAssets.BatRegion.getRegionHeight() / 5.0f);\n\t\t\t\tbat.isRight = false;\n\t\t\t\tbat.angle = 0f;\n\t\t\t\tbat.fixAngle = 0f;\n\t\t\t\tbat.interval = 16;\n\t\t\t\tbats.add(bat);\n\t\t\tcase 3:\n\t\t\t\tbat = new Bat(700, 140, Assets.BatRegion.getRegionWidth() / 2.4f,\n\t\t\t\t\t\tAssets.BatRegion.getRegionHeight() / 2.4f);\n\t\t\t\tbat.isRight = false;\n\t\t\t\tbat.angle = 360f - 20f;\n\t\t\t\tbat.fixAngle = 360f - 20f;\n\t\t\t\tbat.interval = 16;\n\t\t\t\tbats.add(bat);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\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}", "public void initItems() {\n List<Integer> emptySlots = NimbleServer.enchantmentConfig.getEmptySlots();\n for (int i = 0; i < getSize(); i++) {\n if(!(emptySlots.contains(i))) {\n getInventory().setItem(i, getFiller());\n }\n }\n }", "private static String[] populateBlueMoonGeneral(String[] generalInventory){\r\n generalInventory[0] = \"Healing Potion\";\r\n generalInventory[1] = \"Greater Healing Potion\";\r\n return generalInventory;\r\n }", "@Override\n public void run() {\n int slotsUsed = 0;\n int potentialBananas = 0;\n RSItem[] items = Inventory.getAll();\n for (RSItem item : items) {\n // If this isn't a bone count it\n if (item.getID() < 6904 || item.getID() > 6907) {\n slotsUsed++;\n }\n else {\n // Item id bone amount\n // 6904 1\n // 6905 2\n // 6906 3\n // 6907 4\n potentialBananas += 1 + item.getID() - 6904;\n }\n }\n \n int slotsAvailable = 28 - slotsUsed;\n\n RSItem[] food = Inventory.find(1963);\n\n // If have bananas/peaches, deposit them, else collect bones\n if (food.length > 0) {\n // Heal and then deposit\n float eatHealth = m_settings.m_eatHealth * Skills.getActualLevel(SKILLS.HITPOINTS);\n float eatTo = m_settings.m_eatTo * Skills.getActualLevel(SKILLS.HITPOINTS);\n \n if (food.length > 0 && Skills.getCurrentLevel(SKILLS.HITPOINTS) < eatHealth) {\n // Eat\n while (food.length > 0 && Skills.getCurrentLevel(SKILLS.HITPOINTS) < eatTo) {\n food[0].click(\"Eat\");\n m_script.sleep(300, 600);\n food = Inventory.find(1963);\n }\n }\n else {\n // Deposit\n RSObject[] objs = Objects.findNearest(50, \"Food chute\");\n if (objs.length > 0) {\n while (!objs[0].isOnScreen()) {\n Walking.blindWalkTo(objs[0]);\n m_script.sleep(250);\n }\n objs[0].click(\"Deposit\");\n m_script.sleep(1200);\n }\n }\n }\n else {\n // If we have more than a full load of bananas worth of bones, cast bones to peaches\n if (potentialBananas >= slotsAvailable) {\n // Cast bones to peaches\n Magic.selectSpell(\"Bones to Bananas\");\n }\n else {\n // Collect bananas\n RSObject[] bonePiles = Objects.findNearest(10725, 10726, 10727, 10728);\n if (bonePiles.length > 0) {\n while (!bonePiles[0].isOnScreen()) {\n Walking.blindWalkTo(bonePiles[0]);\n m_script.sleep(250);\n }\n bonePiles[0].click(\"Grab\");\n m_script.sleep(150);\n }\n }\n }\n }", "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 static void display(){\n \n //create an array : Remember positions\n //wheat= 0\n //Land = 1 \n //Population = 2\n \n String[] items = {\"Wheat\", \"Land\", \"Population\"};\n \n \n // call the crops object \n Crops theCrops = Game.getCrop();\n \n //get wheat\n int wheat = theCrops.getWheatInStore();\n \n //get land (acres)\n int acres = theCrops.getAcres();\n \n //get population \n \n int population = theCrops.getPopulation();\n \n //print results \n \n System.out.println(\"\\nInventory List:\");\n //wheat \n System.out.println(\"Wheat in Store:\" + wheat + \" bushels of \" + items[0]);\n //acres\n System.out.println(\"Acres of Land owned:\" + acres + \" acres of \" + items[1]);\n \n //population\n System.out.println(\"Current population:\" + population + \" people in the \" + items[2]);\n \n \n \n }", "public static void craft()\r\n\t{\r\n\t\tList<IRecipe> recipeList = CraftingManager.getInstance().getRecipeList();\r\n\t\tIterator<IRecipe> recipe = recipeList.iterator();\r\n\r\n\t\twhile (recipe.hasNext())\r\n\t\t{\r\n\t\t\tItemStack stack = recipe.next().getRecipeOutput();\r\n\r\n\t\t\tif (stack != null && stack.areItemsEqual(stack, new ItemStack(Blocks.STONEBRICK, 1, 0)))\r\n\t\t\t{\r\n\t\t\t\trecipe.remove();\r\n\t\t\t} else if (stack != null && stack.areItemsEqual(stack, new ItemStack(Blocks.END_BRICKS, 1, 0)))\r\n\t\t\t{\r\n\t\t\t\trecipe.remove();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Adds all the 2 by 2 crafting Recipes\r\n\t\t */\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 2), new ItemStack(BBBlocks.moreStones, 4, 1));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 4), new ItemStack(BBBlocks.moreStones, 4, 3));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 6), new ItemStack(BBBlocks.moreStones, 4, 5));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 6), new ItemStack(BBBlocks.moreStones, 4, 9));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 9), new ItemStack(BBBlocks.moreStones, 4, 8));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 10), new ItemStack(BBBlocks.moreStones, 4, 13));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 13), new ItemStack(BBBlocks.moreStones, 4, 12));\r\n\t\tcraft2by2(new ItemStack(Blocks.SANDSTONE, 1, 2), new ItemStack(BBBlocks.moreStones, 4, 14));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 8), new ItemStack(BBBlocks.cotswoldBricks, 4));\r\n\t\tcraft2by2(new ItemStack(Blocks.BRICK_BLOCK, 1), new ItemStack(BBBlocks.agedBricks, 4));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 2), new ItemStack(BBBlocks.moreStones2, 4, 5));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 5), new ItemStack(BBBlocks.moreStones2, 4, 4));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 1), new ItemStack(BBBlocks.moreStones2, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 14), new ItemStack(BBBlocks.moreStones2, 4, 1));\r\n\t\tcraft2by2(new ItemStack(Blocks.RED_SANDSTONE, 1, 2), new ItemStack(BBBlocks.moreStones2, 4, 6));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 6), new ItemStack(BBBlocks.moreStones2, 4, 9));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 9), new ItemStack(BBBlocks.moreStones2, 4, 8));\r\n\t\tcraft2by2(new ItemStack(Blocks.NETHERRACK, 1), new ItemStack(BBBlocks.moreStones2, 4, 11));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 11), new ItemStack(BBBlocks.moreStones2, 4, 10));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE), new ItemStack(BBBlocks.moreStones2, 4, 12));\r\n\t\tcraft2by2(new ItemStack(Blocks.END_STONE), new ItemStack(BBBlocks.moreStones2, 4, 13));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 12), new ItemStack(Blocks.STONEBRICK, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 13), new ItemStack(Blocks.END_BRICKS, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones3, 1, 0), new ItemStack(BBBlocks.moreStones3, 4, 2));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones3, 1, 2), new ItemStack(BBBlocks.moreStones3, 4, 1));\r\n\r\n\r\n\t\t/**\r\n\t\t * Adds all the stair Recipes\r\n\t\t */\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 0), new ItemStack(BBBlocks.cobbleGraniteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 2), new ItemStack(BBBlocks.cobbleDioriteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 4), new ItemStack(BBBlocks.cobbleAndesiteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 7), new ItemStack(BBBlocks.cobbleLimestoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 11), new ItemStack(BBBlocks.cobbleMarbleStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 15), new ItemStack(BBBlocks.cobbleSandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 3), new ItemStack(BBBlocks.cobbleBasaltStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 7), new ItemStack(BBBlocks.cobbleRedsandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 1), new ItemStack(BBBlocks.brickGraniteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 3), new ItemStack(BBBlocks.brickDioriteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 5), new ItemStack(BBBlocks.brickAndesiteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 8), new ItemStack(BBBlocks.brickLimestoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 12), new ItemStack(BBBlocks.brickMarbleStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 0), new ItemStack(BBBlocks.brickSandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 4), new ItemStack(BBBlocks.brickBasaltStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 8), new ItemStack(BBBlocks.brickRedsandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 10), new ItemStack(BBBlocks.brickNetherrackStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.cotswoldBricks, 1), new ItemStack(BBBlocks.brickCotswoldStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.agedBricks, 1), new ItemStack(BBBlocks.brickAgedbrickStair, 4));\r\n\t\tcraftStair(new ItemStack(Blocks.END_BRICKS, 1), new ItemStack(BBBlocks.brickEndstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(Blocks.RED_NETHER_BRICK, 1), new ItemStack(BBBlocks.brickRednetherStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones3, 1, 1), new ItemStack(BBBlocks.brickAcheriteStair, 4));\r\n\r\n\t\t/**\r\n\t\t * Adds all the slab Recipes\r\n\t\t */\r\n\t\tcraftSlab(BBBlocks.cobbleAndesiteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleGraniteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleDioriteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleMarbleSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleLimestoneSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleSandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleBasaltSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleRedsandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickAndesiteSlab);\r\n\t\tcraftSlab(BBBlocks.brickGraniteSlab);\r\n\t\tcraftSlab(BBBlocks.brickDioriteSlab);\r\n\t\tcraftSlab(BBBlocks.brickMarbleSlab);\r\n\t\tcraftSlab(BBBlocks.brickLimestoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickSandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickBasaltSlab);\r\n\t\tcraftSlab(BBBlocks.brickRedsandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickRednetherSlab);\r\n\t\tcraftSlab(BBBlocks.brickEndstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickNetherrackSlab);\r\n\t\tcraftSlab(BBBlocks.brickCotswoldSlab);\r\n\t\tcraftSlab(BBBlocks.brickAgedbrickSlab);\r\n\t\tcraftSlab(BBBlocks.brickAcheriteSlab);\r\n\t\t\r\n\t\t/**\r\n\t\t * Other Crafting Recipes\r\n\t\t */\r\n\t\tGameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BBBlocks.moreStones2, 16, 14), new Object[] { Blocks.CLAY, \"sand\", Blocks.GRAVEL, Items.WATER_BUCKET}));\r\n\t\tNBTTagCompound concreteTag = new NBTTagCompound();\r\n\t\tconcreteTag.setInteger(\"color\", 16777215);\r\n\t\tItemStack concreteStack = new ItemStack(BBBlocks.concreteDyeable, 8, 0);\r\n\t\tconcreteStack.setTagCompound(concreteTag);\r\n\t\tGameRegistry.addRecipe(concreteStack, new Object[] { \"###\", \"#O#\", \"###\", '#', new ItemStack(BBBlocks.moreStones2, 1, 15), 'O', Items.PAPER });\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteDyeable());\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteTiles());\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteDyeable.RecipeDuplicateConcrete());\r\n\t\tGameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BBBlocks.overgrowth, 8),new Object[] { \"treeLeaves\", \"treeLeaves\"}));\r\n\r\n\t\t/**\r\n\t\t * Adds all the smelting Recipes\r\n\t\t */\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 0), new ItemStack(Blocks.STONE, 1, 1));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 2), new ItemStack(Blocks.STONE, 1, 3));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 4), new ItemStack(Blocks.STONE, 1, 5));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 7), new ItemStack(BBBlocks.moreStones, 1, 6));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 11), new ItemStack(BBBlocks.moreStones, 1, 10));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 15), new ItemStack(BBBlocks.moreStones, 1, 14));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 3), new ItemStack(BBBlocks.moreStones2, 1, 2));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 7), new ItemStack(BBBlocks.moreStones2, 1, 6));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 14), new ItemStack(BBBlocks.moreStones2, 1, 15));\r\n\r\n\t}", "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 }", "public void loadItems() {\n\t\tArrayList<String> lines = readData();\n\t\tfor (int i = 1; i < lines.size(); i++) {\n\t\t\tString line = lines.get(i);\n\t\t\t\n\t\t\tString[] parts = line.split(\",\");\n\t\t\t\n//\t\t\tSystem.out.println(\"Name: \" + parts[0]);\n//\t\t\tSystem.out.println(\"Amount: \" + parts[1]);\n//\t\t\tSystem.out.println(\"Price: \" + parts[2]);\n//\t\t\tSystem.out.println(\"-------\");\n\t\t\t\n\t\t\tString name = parts[0].trim();\n\t\t\tint amount = Integer.parseInt(parts[1].trim());\n\t\t\tdouble price = Double.parseDouble(parts[2].trim());\n\t\t\t\n\t\t\tItem item = new Item(name, amount, price);\n\t\t\titemsInStock.add(item);\n\t\t}\n\t}", "public void prepareBillOfMaterialsForCurrentItem() {\n newItemsToAdd = new ArrayList<>();\n InventoryBillOfMaterialItem iBom = new InventoryBillOfMaterialItem(getCurrent());\n InventoryBillOfMaterialItem.setBillOfMaterialsListForItem(getCurrent(), iBom);\n }", "private void loadInv() {\n\t\titem = Main.inventory.business.getAllBaked();\n\t\tString test = \"ID, Name, Amount, Price\\n\";\n\t\t//formatting for string to load into the screen\n\t\tfor(int i=0 ; i< item.size() ; i++) {\n\t\t\ttest += (i+1) + \" \" + item.get(i).getName() +\", \" \n\t\t\t\t\t+ item.get(i).getQuantity() + \n\t\t\t\t\t\", $\"+ Main.inventory.business.getItemCost(item.get(i).getName()) +\"\\n\";\n\t\t}\n\t\tthis.inv.setText(test);\n\t}", "public static void createItem() {\n //Initializing an item and putting it in a room airport\n itemLocation.addItem(airport, new PickableItem(\"Bottle\", \"This is a bottle that have been left behind by someone\", 2, false));\n itemLocation.addItem(airport, new PickableItem(\"Boardingpass\", \"This is a boardingpass to get on the plane to Hawaii: 126AB\", 1, false));\n\n //Initializing an item and putting it in a room beach\n itemLocation.addItem(beach, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Fish\", \"Why are you inspecting this item, its GOD damn fish\", 1, true));\n itemLocation.addItem(beach, new PickableItem(\"Fish\", \"Why are you inspecting this item, its GOD damn fish\", 1, true));\n itemLocation.addItem(beach, new PickableItem(\"Flint\", \"This a flint, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Rope\", \"This is some rope that has been washed up on the beach shore from the plane crash \", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n itemLocation.addItem(beach, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n //non pickable item\n itemLocation.addItem(beach, new Item(\"GiantRock\", \"The giant rock dont look like it can be moved\", 100));\n itemLocation.addItem(beach, new Item(\"GiantLog\", \"The giant log dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room jungle\n itemLocation.addItem(jungle, new PickableItem(\"Berry\", \"this is berries, maybe its poisonous try ur luck!! \", 1, true));\n itemLocation.addItem(jungle, new PickableItem(\"Berry\", \"this is berries, maybe its poisonous try ur luck!! \", 1, true));\n itemLocation.addItem(jungle, new PickableItem(\"Lumber\", \"This is a log of tree, maybe it can be used to craft something to get away from this island \", 3, false));\n itemLocation.addItem(jungle, new PickableItem(\"Lian\", \"This is a lian from the jungle, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Lian\", \"This is a lian from the jungle, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n //non pickable item\n itemLocation.addItem(jungle, new Item(\"GiantLog\", \"The giant log dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room mountain\n itemLocation.addItem(mountain, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(mountain, new PickableItem(\"Egg\", \"This is some wild eggs, maybe it can be used for food\", 1, true));\n itemLocation.addItem(mountain, new PickableItem(\"Lumber\", \"This is a log of tree, maybe it can be used to craft something to get away from this island \", 3, false));\n\n //Initializing an item and putting it in a room cave\n itemLocation.addItem(cave, new PickableItem(\"Shroom\", \"these shrooms look suspecius, but maybe the can be\", 1, true));\n itemLocation.addItem(cave, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new PickableItem(\"Waterbottle\", \"This is freshwater found in the jungle, maybe you can drink it\", 2, true));\n itemLocation.addItem(cave, new PickableItem(\"Flint\", \"This a flint, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new Item(\"GiantRock\", \"The giant rock dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room camp\n itemLocation.addItem(camp, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(camp, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n itemLocation.addItem(camp, new PickableItem(\"Egg\", \"This is some wild eggs, maybe it can be used for food\", 1, true));\n\n //Initializing an item and putting it in a room seaBottom\n itemLocation.addItem(seaBottom, new PickableItem(\"Backpack\", \"This is a backpack from the plane crash maybe you can use it to carry more items \", 0, false));\n itemLocation.addItem(seaBottom, new PickableItem(\"WaterBottle\", \"This is a water bottle from the plan crash \", 1, true));\n itemLocation.addItem(seaBottom, new PickableItem(\"Rope\", \"This is some rope that has been washed up on the beach shore from the plane crash\", 2, false));\n }", "public void addComponents()\r\n\t{\n\t\tSteveTechFarming.fruit = new BlockFruit(SteveTechFarming.config.getBlockID(1202, \"Fruit\", null)).setBlockName(\"WiduX-SteveTech-Farm-Fruit\");\r\n\t\tSteveTechFarming.crops = new BlockCrops(SteveTechFarming.config.getBlockID(1203, \"Crops\", null)).setBlockName(\"WiduX-SteveTech-Farm-Crops\");\r\n\t\t\r\n\t\tSteveTechFarming.seeds = new ItemSeeds(SteveTechFarming.config.getItemID(11000, \"Seeds\", null)).setItemName(\"WiduX-SteveTech-Farm-Seeds\");\r\n\t\tSteveTechFarming.harvestedItems = new ItemHarvest(SteveTechFarming.config.getItemID(11002, \"Harvest\", null)).setItemName(\"WiduX-SteveTech-Farm-Harvest\");\r\n\t\tSteveTechFarming.creativeTools = new ItemCreativeTools(SteveTechFarming.config.getItemID(11001, \"Creative Tools\", null)).setItemName(\"WiduX-SteveTech-Farm-CTools\");\r\n\t\tSteveTechFarming.foods = new Item[EnumFood.getNumberFoods()];\r\n\t\tint firstFoodItemID = SteveTechFarming.config.getItemID(11003, \"Foods Array\", \"This is the first item ID in the list of foods. Item IDs used will start here, and use the next \" + EnumFood.getNumberFoods() + \" IDs. Make sure they are all available.\");\r\n\t\tfor(int idOffset = 0; idOffset < SteveTechFarming.foods.length; idOffset++)\r\n\t\t{\r\n\t\t\tEnumFood food = EnumFood.getFood(idOffset);\r\n\t\t\tSteveTechFarming.foods[idOffset] = new ItemSTFood(firstFoodItemID + idOffset, food).setItemName(\"WiduX-SteveTech-Farm-Foods-Food\" + idOffset);\r\n\t\t}\r\n\t}", "public static void init () {\n\t\tGameRegistry.addRecipe(new ItemStack(ModBlocks.sea_lantern), \"XYX\", \"YYY\", \"XYX\", 'X', ModItems.prismarine_shard, 'Y', ModItems.prismarine_crystals);\r\n\t\t//Prismarine\r\n\t\tGameRegistry.addRecipe(new ItemStack(ModBlocks.prismarine, 1, 0), \" \", \"XX \", \"XX \", 'X', ModItems.prismarine_shard);\r\n\t\t//Prismarine Bricks\r\n\t\tGameRegistry.addRecipe(new ItemStack(ModBlocks.prismarine, 1, 1), \"XXX\", \"XXX\", \"XXX\", 'X', ModItems.prismarine_shard);\r\n\t\t//Dark Prismarine\r\n\t\tGameRegistry.addRecipe(new ItemStack(ModBlocks.prismarine, 1, 2), \"XXX\", \"XYX\", \"XXX\", 'X', ModItems.prismarine_shard, 'Y', Item.getItemById(351));\r\n\t\t//Cooked mutton\r\n\t\tGameRegistry.addSmelting(new ItemStack(ModItems.mutton_raw), new ItemStack(ModItems.mutton_cooked), 0.35f);\r\n\t\t//Iron trapdoor\r\n\t\tGameRegistry.addRecipe(new ItemStack(ModBlocks.iron_trapdoor), \"XX \", \"XX \", \" \", 'X', Blocks.iron_bars);\r\n\t\tGameRegistry.addRecipe(new ItemStack(ModBlocks.iron_trapdoor), \" XX\", \" XX\", \" \", 'X', Blocks.iron_bars);\r\n\t\tGameRegistry.addRecipe(new ItemStack(ModBlocks.iron_trapdoor), \" \", \"XX \", \"XX \", 'X', Blocks.iron_bars);\r\n\t\tGameRegistry.addRecipe(new ItemStack(ModBlocks.iron_trapdoor), \" \", \" XX\", \" XX\", 'X', Blocks.iron_bars);\r\n\t}", "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 }", "private static void addFakeItemDataToInWorldBlocksAndCleanUpFakeData() {\n\n Map<String, Materials> MATERIALS_MAP = null;\n\n try {\n Field f = Materials.class.getDeclaredField(\"MATERIALS_MAP\");\n f.setAccessible(true);\n MATERIALS_MAP = (Map<String, Materials>) f.get(null);\n } catch (NoSuchFieldException | IllegalAccessException | ClassCastException e) {\n e.printStackTrace();\n }\n\n if (MATERIALS_MAP == null)\n throw new NullPointerException(\"MATERIALS_MAP null!\");\n\n Materials oreMat = new Materials(-1, null, 0, 0, 0, false, \"bwores\", \"bwores\", null, true, null);\n Materials smallOreMat = new Materials(-1, null, 0, 0, 0, false, \"bwsmallores\", \"bwsmallores\", null, true, null);\n Materials blockMat = new Materials(-1, null, 0, 0, 0, false, \"bwblocks\", \"bwblocks\", null, true, null);\n\n for (int i = 0; i < 16; i++) {\n GT_OreDictUnificator.addAssociation(ore, oreMat, new ItemStack(BWOres, 1, i), true);\n GT_OreDictUnificator.addAssociation(oreSmall, smallOreMat, new ItemStack(BWSmallOres, 1, i), true);\n GT_OreDictUnificator.addAssociation(block, blockMat, new ItemStack(BWBlocks, 1, i), true);\n }\n\n MATERIALS_MAP.remove(\"bwores\");\n MATERIALS_MAP.remove(\"bwsmallores\");\n MATERIALS_MAP.remove(\"bwblocks\");\n }", "private void refreshCitizenList() {\n if (targetCitizen == EntityRef.NULL) {\n return;\n }\n\n List<MarketItem> items = new ArrayList<>();\n for (int i = 0; i < inventoryManager.getNumSlots(targetCitizen); i++) {\n EntityRef entity = inventoryManager.getItemInSlot(targetCitizen, i);\n\n if (entity.getParentPrefab() != null) {\n MarketItem item;\n int quantity = inventoryManager.getStackSize(entity);\n\n if (entity.hasComponent(BlockItemComponent.class)) {\n String itemName = entity.getComponent(BlockItemComponent.class).blockFamily.getURI().toString();\n item = marketItemRegistry.get(itemName, quantity);\n } else {\n item = marketItemRegistry.get(entity.getParentPrefab().getName(), quantity);\n }\n\n items.add(item);\n }\n }\n\n tradingScreen.setCitizenItems(items);\n }", "public VendingMachine(){\n this.customerMoney = new ArrayList<>();\n this.bank = new ArrayList<>();\n this.stock = new ArrayList<>();\n stock.add(new Product(\"Cookie\", .50, 10));\n stock.add(new Product(\"Crackers\", .25, 10));\n stock.add(new Product(\"Candy\", .45, 10));\n stock.add(new Product(\"Water\", 1.0, 10));\n stock.add(new Product(\"Juice\", 1.5, 10));\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}", "public void printInventory()\n {\n System.out.println(\"Welcome to \" + storeName + \"! We are happy to have you here today!\");\n System.out.println(storeName + \" Inventory List\");\n System.out.println();\n \n System.out.println(\"Our Books:\");\n System.out.println(Book1.toString());\n System.out.println(Book2.toString());\n System.out.println(Book3.toString());\n System.out.println(Book4.toString());\n System.out.println(Book5.toString());\n \n System.out.println();\n \n System.out.println(\"Our Bevereges:\");\n System.out.println(Beverage1.toString());\n System.out.println(Beverage2.toString());\n System.out.println(Beverage3.toString());\n\n System.out.println();\n }", "private static String displayItemFromBag(String[] inventory, String option){\r\n String itemToDoAction;\r\n int counter = 1;\r\n if(option.equals(\"Equip\")){\r\n for(int i = 0; i < inventory.length; i++){\r\n if(inventory[i].equals(\"Short Sword\") || inventory[i].equals(\"Leather Helmet\") || inventory[i].equals(\"Leather Chest Plate\")\r\n || inventory[i].equals(\"Long Sword\") || inventory[i].equals(\"Great Sword\") || inventory[i].equals(\"Iron Helmet\") \r\n ||inventory[i].equals(\"Iron Chest Plate\") || inventory[i].equals(\"Iron Boots\") || inventory[i].equals(\"Iron Gloves\")){\r\n System.out.println(\"\\t\" + counter + \") \" + inventory[i]);\r\n counter++;\r\n }\r\n }\r\n System.out.println(\"\\t\" + counter + \") Exit\");\r\n itemToDoAction = getUserInput(\"Which item would you like to equip? \\n(Type the name of the item) \");\r\n }else if(option.equals(\"Sell\")){\r\n for(int i = 0; i < inventory.length; i++){\r\n if(inventory[i].equals(\"Short Sword\") || inventory[i].equals(\"Leather Helmet\") || inventory[i].equals(\"Leather Chest Plate\")\r\n || inventory[i].equals(\"Long Sword\") || inventory[i].equals(\"Great Sword\") || inventory[i].equals(\"Iron Helmet\") \r\n ||inventory[i].equals(\"Iron Chest Plate\") || inventory[i].equals(\"Iron Boots\") || inventory[i].equals(\"Iron Gloves\")){\r\n System.out.println(\"\\t\" + counter + \") \" + inventory[i]);\r\n counter++;\r\n }\r\n }\r\n System.out.println(\"\\t\" + counter + \") Exit\");\r\n itemToDoAction = getUserInput(\"Which item would you like to sell? \\n(Type the name of the item) \");\r\n }else if(option.equals(\"Use\")){\r\n System.out.println(\"we here\");\r\n for(int i = 0; i < inventory.length; i++){\r\n if(inventory[i].equals(\"Healing Potion\") || inventory[i].equals(\"Greater Healing Potion\") || inventory[i].equals(\"Scroll of Fireball\")){\r\n System.out.println(\"\\t\" + counter + \") \" + inventory[i]);\r\n counter++;\r\n }\r\n }\r\n System.out.println(\"\\t\" + counter + \") Exit\");\r\n itemToDoAction = getUserInput(\"Which item would you like to use? \\n(Type the name of the item) \");\r\n }else{\r\n itemToDoAction = \"\";\r\n }\r\n return itemToDoAction;\r\n }", "public void grab() {\r\n\t\tString item = mapContents[currentPlayer.getCurrentRoom()];\r\n\t\tif (item == null) return;\r\n\t\t\r\n\t\t// If artifact, make sure has room or backpack\r\n\t\tif (item.startsWith(\"Artifact\")) {\r\n\t\t\tif (currentPlayer.count(\"Artifact\") <= currentPlayer.count(\"Backpack\")) {\r\n\t\t\t\tcurrentPlayer.pickup(item);\r\n\t\t\t\tattackLevel++;\r\n\t\t\t\taddEvent(\"``\"+currentName+\"`` picked up an Artifact **\"+item.substring(8)+\"** :star:\",true);\r\n\t\t\t\taddHistory(\"ARTIFACT \"+item.substring(8));\r\n\t\t\t\tmapContents[currentPlayer.getCurrentRoom()] = null;\r\n\t\t\t}\r\n\t\t// If monkey idol, make sure didn't already pick one up this turn\r\n\t\t} else if (item.startsWith(\"MonkeyIdol\") && !currentPlayer.getAlreadyPickedUpMonkeyIdol()) {\r\n\t\t\tcurrentPlayer.pickup(item);\r\n\t\t\tcurrentPlayer.setAlreadyPickedUpMonkeyIdol(true);\r\n\t\t\tint num = Integer.parseInt(item.substring(10));\r\n\t\t\tnum--;\r\n\t\t\tif (num == 0) {\r\n\t\t\t\tmapContents[currentPlayer.getCurrentRoom()] = null;\r\n\t\t\t} else {\r\n\t\t\t\tmapContents[currentPlayer.getCurrentRoom()] = \"MonkeyIdol\"+num;\r\n\t\t\t}\r\n\t\t\taddEvent(\"``\"+currentName+\"`` picked up a Monkey Idol **5** :star:\",true);\r\n\t\t\taddHistory(\"IDOL \"+item.substring(8));\r\n\t\t}\r\n\t\tupdateReactionsInfo();\r\n\t\tupdatePlayArea(currentPlayer, false);\r\n\t\tupdateMarketAndTreasures(false);\r\n\t\ttry {\r\n\t\t\tupdateBoard();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void addItems() {\n int random3 = 0;\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n random3 = (int)(Math.round(Math.random()*9));\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n if (adjacentCity(i, j) && tileMap[i][j].getCity() == null) { //Only have an item if possibly within city borders\n if (random3 == 0) {\n tileMap[i][j].setResource(new Fruit(i,j)); //Rep Fruit\n } else if (random3 == 1) {\n tileMap[i][j].setResource(new Animal(i,j)); //Rep Animal\n } else if (random3 == 2) {\n tileMap[i][j].setResource(new Forest(i,j)); //Rep Trees (forest)\n } else if (random3 == 3) {\n tileMap[i][j].setResource(new Crop(i,j)); //Rep Crop\n }\n }\n } else {\n if (adjacentCity(i, j)) {\n if (random3 < 2) {\n tileMap[i][j].setResource(new Fish(i, j)); //Rep fish\n } else if (random3 == 4) {\n if (Math.random() < 0.5) {\n tileMap[i][j].setResource(new Whale(i, j)); //Rep whale\n }\n }\n }\n }\n }\n }\n }", "public void populateDeck(){\n\n //Add everything to r\n for(int i=0;i<LUMBER;i++){\n deck.add(new ResourceCard(container, Resource.WOOD, cardStartPoint));\n }\n\n for(int i=0;i<WOOL;i++){\n deck.add(new ResourceCard(container, Resource.WOOL, cardStartPoint));\n }\n\n for(int i=0;i<GRAIN;i++){\n deck.add(new ResourceCard(container, Resource.WHEAT, cardStartPoint));\n }\n\n for(int i=0;i<BRICK;i++){\n deck.add(new ResourceCard(container, Resource.BRICKS, cardStartPoint));\n }\n\n for(int i=0;i<ORE;i++){\n deck.add(new ResourceCard(container, Resource.ORE, cardStartPoint));\n }\n //Collections.shuffle(deck);\n\n }", "public void createMainInventor() {\n String name = _plugin.getConfigManager().getGeneralSettingsMap().get(\"Name\");\r\n String colorizedName = _plugin.getUtilsManager().colorizeString(name);\r\n //Size of the Inventory;\r\n int inventorySize = Integer.valueOf(_plugin.getConfigManager().getGeneralSettingsMap().get(\"InventorySize\"));\r\n //Initialize Inventory;\r\n mainInventory = _plugin.getServer().createInventory(null, inventorySize, colorizedName);\r\n //Retrieve the HashMaps for the plugin;\r\n HashMap<Integer, CategoryItem> categoryInformationMap = _plugin.getConfigManager().getCategoryInformationMap();\r\n HashMap<String, String> languageInformation = _plugin.getConfigManager().getLanguageInformationMap();\r\n //Add items to Inventory;\r\n for (Integer i : categoryInformationMap.keySet()) {\r\n CategoryItem categoryItem = categoryInformationMap.get(i);\r\n ItemStack item = categoryItem.getItem();\r\n ItemMeta itemMeta = item.getItemMeta();\r\n itemMeta.setDisplayName(_plugin.getUtilsManager().colorizeString(languageInformation.get(\"CategoryName\").replace(\"%cat%\", categoryItem.getName())));\r\n List<String> lore = new ArrayList<>();\r\n lore.add(_plugin.getUtilsManager().colorizeString(categoryItem.getDescription()));\r\n item.setItemMeta(itemMeta);\r\n mainInventory.addItem(item);\r\n }\r\n }", "private void initialiseBags() {\r\n\t\t//Player one bag\r\n\t\taddToBag1(GridSquare.Type.a, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.b, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.c, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.d, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.e, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.f, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.g, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.h, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.i, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.j, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.k, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.l, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.m, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.n, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.o, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.p, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.q, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.r, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.s, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.t, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.u, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.v, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.w, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.x, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\t\r\n\t\t//Player two bag\r\n\t\taddToBag2(GridSquare.Type.A, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.B, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.C, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.D, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.E, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.F, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.G, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.H, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.I, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.J, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.K, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.L, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.M, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.N, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.O, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.P, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.Q, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.R, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.S, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.T, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.U, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.V, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.W, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.X, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t}", "public void execute() {\n\t\tif(p.getType().equals(\"Manufacturing\")) {\n\t\t\tArrayList<Item> items = DatabaseSupport.getItems();\n\t\t\tIterator<Item> it = items.iterator();\n\t\t\tItem i;\n\t\t\twhile(it.hasNext()) {\n\t\t\t\ti = it.next();\n\t\t\t\tint a = InputController.promptInteger(\"How many \"+i.getName()+\" were manufactured? (0 for none)\", 0, Integer.MAX_VALUE);\n\t\t\t\tif(a>0) {\n\t\t\t\t\tWarehouseFloorItem n = p.getFloorItemByItem(i);\n\t\t\t\t\tif(n==null) {\n\t\t\t\t\t\tString newFloorLocation = InputController.promptString(\"This item does not have a floor location.\\nPlease specify a new one for this item.\");\n\t\t\t\t\t\tp.addFloorLocation(new WarehouseFloorItem(newFloorLocation, i, a));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tn.setQuantity(n.getQuantity()+a);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tArrayList<Shipment> shipments = DatabaseSupport.getIncomingOrders(p);\n\t\t\tif(shipments.size()>0) {\n\t\t\t\tIterator<Shipment> i;\n\t\t\t\tint k = -1;\n\t\t\t\tShipment a;\n\t\t\t\twhile(k!=0) {\n\t\t\t\t\ti = shipments.iterator();\n\t\t\t\t\tk = 0;\n\t\t\t\t\twhile(i.hasNext()) {\n\t\t\t\t\t\ta = i.next();\n\t\t\t\t\t\tk++;\n\t\t\t\t\t\tSystem.out.println(k+\". \"+a.getShipmentID()+\" - \"+a.getOrderSize()+\" different items\");\n\t\t\t\t\t}\n\t\t\t\t\tk = InputController.promptInteger(\"Please enter the number next to the shipment ID to\\nselect a shipment to handle (0 to quit)\",0,shipments.size());\n\t\t\t\t\tif(k!=0) {\n\t\t\t\t\t\ta = shipments.get(k);\n\t\t\t\t\t\tIterator<ShipmentItem> b = a.getShipmentItems().iterator();\n\t\t\t\t\t\tShipmentItem c;\n\t\t\t\t\t\tString temp;\n\t\t\t\t\t\twhile(b.hasNext()) {\n\t\t\t\t\t\t\tc = b.next();\n\t\t\t\t\t\t\tWarehouseFloorItem d = p.getFloorItemByItem(c.getItem());\n\t\t\t\t\t\t\tif(d==null) {\n\t\t\t\t\t\t\t\ttemp = InputController.promptString(c.getItem().getName()+\" does not have a floor location yet.\\nPlease input a floor location for it.\");\n\t\t\t\t\t\t\t\td = new WarehouseFloorItem(temp, c.getItem(),0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttemp = InputController.promptString(\"\\nItem: \"+c.getItem().getName()+\"\\nQuantity: \"+c.getQuantity()+\"\\n\\nPress enter once you are done loading this item.\");\n\t\t\t\t\t\t\td.setQuantity(d.getQuantity()+c.getQuantity());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tk=0;\n\t\t\t\t\t\ta.setShipped();\n\t\t\t\t\t\tSystem.out.println(\"\\nShipment \"+a.getShipmentID()+\" loaded successfully\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"There are no incoming shipments.\");\n\t\t\t}\n\t\t}\n\t}", "private static String[] placeInBag(String item, String[] inventory){\r\n for(int i=0; i<inventory.length; i++){\r\n if(inventory[i].equals(\"\")){\r\n inventory[i] = item;\r\n break;\r\n }\r\n }\r\n return inventory;\r\n }", "public ItemStack b(InventoryCrafting var1)\n {\n int var2 = var1.getSize();\n boolean var3 = false;\n int var4 = 0;\n int var5 = 0;\n ItemStack var6 = null;\n Vector var7 = new Vector();\n int var8;\n ItemStack var9;\n\n for (var8 = 0; var8 < var2; ++var8)\n {\n var9 = var1.getItem(var8);\n\n if (var9 != null)\n {\n if (var9.getItem() instanceof ItemEnergySensorLocationCard)\n {\n var7.add(var9);\n ++var4;\n }\n else\n {\n if (!(var9.getItem() instanceof ItemEnergyArrayLocationCard))\n {\n var3 = true;\n break;\n }\n\n var6 = var9;\n ++var5;\n }\n }\n }\n\n if (var3)\n {\n return null;\n }\n else if (var4 >= 2 && var4 <= 6 && var5 == 0)\n {\n ItemStack var10 = new ItemStack(IC2NuclearControl.itemEnergyArrayLocationCard, 1, 0);\n ItemEnergyArrayLocationCard.initArray(var10, var7);\n return var10;\n }\n else\n {\n if (var4 == 0 && var5 == 1)\n {\n var8 = ItemEnergyArrayLocationCard.getCardCount(var6);\n\n if (var8 > 0)\n {\n return new ItemStack(Items.getItem(\"electronicCircuit\").getItem(), 2 * var8, 0);\n }\n }\n else if (var5 == 1 && var4 > 0)\n {\n var8 = ItemEnergyArrayLocationCard.getCardCount(var6);\n\n if (var8 + var4 <= 6)\n {\n var9 = new ItemStack(IC2NuclearControl.itemEnergyArrayLocationCard, 1, 0);\n var9.setTag((NBTTagCompound)var6.getTag().clone());\n ItemEnergyArrayLocationCard.initArray(var9, var7);\n return var9;\n }\n }\n\n return null;\n }\n }", "public void createInventoryReward() {\n if (inventoryEntityToRetrieve == null) {\n try {\n inventoryEntityToRetrieve = RandomBenefitModel.getInventoryRewards(application, encounter, characterVM.getDistance());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "private static String[] populateShopKeeperInventory(String[] shopKeeperInventory){\r\n shopKeeperInventory[0] = \"Healing Potion\";\r\n shopKeeperInventory[1] = \"Greater Healing Potion\";\r\n shopKeeperInventory[2] = \"Long Sword\";\r\n shopKeeperInventory[3] = \"Great Sword\";\r\n return shopKeeperInventory;\r\n }", "@Override\r\n\tpublic void init() {\n\t\tint numOfItems = loader.getNumOfItems();\r\n\t\tsetStoreSize(numOfItems);\r\n\r\n\t\tfor (int i = 0; i < numOfItems; i++) {\r\n DrinksStoreItem item = (DrinksStoreItem) loader.getItem(i);\r\n\t\t\tStoreObject brand = item.getContent();\r\n\t\t\tStoreObject existingBrand = findObject(brand.getName());\r\n\t\t\tif (existingBrand != null) {\r\n\t\t\t item.setContent(existingBrand);\r\n\t\t\t}\r\n\t\t\taddItem(i, item);\t\r\n\t\t}\r\n\t}", "private Item initItem() {\n String name = inputName.getText().toString();\n int quantityToBuy = -1;\n if (!inputQuantityToBuy.getText().toString().equals(\"\"))\n quantityToBuy = Integer.parseInt(inputQuantityToBuy.getText().toString());\n String units = inputUnits.getText().toString();\n double price = 0;\n if (!inputPrice.getText().toString().equals(\"\"))\n price = Double.parseDouble(inputPrice.getText().toString());\n int calories = 0;\n if (!inputCalories.getText().toString().equals(\"\"))\n calories = Integer.parseInt(inputCalories.getText().toString());\n ArrayList<String> allergies = allergyActions.getAllergies();\n return new Item(name, 0, units, quantityToBuy, 0, allergies, calories, price);\n }", "private void populateItems() {\n \t try {\n \t File myObj = new File(\"items.txt\");\n \t Scanner myReader = new Scanner(myObj);\n \t while (myReader.hasNextLine()) {\n\t \t String data = myReader.nextLine();\n\t \t String[] variables = data.split(\",\");\n\t \t int price = (int) Math.floor(Math.random() * 100); \n\t \t \n\t \t itemList += variables[0] + \",\"+ variables[1] +\",\" + \"0\" + \", \"+ \",\"+price + \",\";\n\t \t Item x = new Item(variables[0], 0, \"\", price, variables[1]);\n\t \t items.add(x);\n \t }\n \t myReader.close();\n \t } catch (FileNotFoundException e) {\n \t System.out.println(\"An error occurred.\");\n \t e.printStackTrace();\n \t }\n\t\t\n\t}", "private static Inventory[] createInventoryList() {\n Inventory[] inventory = new Inventory[3];\r\n \r\n Inventory potion = new Inventory();\r\n potion.setDescription(\"potion\");\r\n potion.setQuantityInStock(0);\r\n inventory[Item.potion.ordinal()] = potion;\r\n \r\n Inventory powerup = new Inventory();\r\n powerup.setDescription(\"powerup\");\r\n powerup.setQuantityInStock(0);\r\n inventory[Item.powerup.ordinal()] = powerup;\r\n \r\n Inventory journalclue = new Inventory();\r\n journalclue.setDescription(\"journalclue\");\r\n journalclue.setQuantityInStock(0);\r\n inventory[Item.journalclue.ordinal()] = journalclue;\r\n \r\n return inventory;\r\n }", "static private void loadGame() {\n ArrayList loadData = data.loadGame();\n\n //inventory\n inventory = new Inventory();\n LinkedTreeMap saveMap = (LinkedTreeMap) loadData.get(0);\n if (!saveMap.isEmpty()) {\n LinkedTreeMap inventoryItemWeight = (LinkedTreeMap) saveMap.get(\"itemWeight\");\n LinkedTreeMap inventoryItemQuantity = (LinkedTreeMap) saveMap.get(\"inventory\");\n String inventoryItemQuantityString = inventoryItemQuantity.toString();\n inventoryItemQuantityString = removeCrapCharsFromString(inventoryItemQuantityString);\n String itemListString = inventoryItemWeight.toString();\n itemListString = removeCrapCharsFromString(itemListString);\n\n for (int i = 0; i < inventoryItemWeight.size(); i++) {\n String itemSet;\n double itemQuantity;\n if (itemListString.contains(\",\")) {\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.indexOf(\",\")));\n inventoryItemQuantityString = inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\",\") + 1, inventoryItemQuantityString.length());\n itemSet = itemListString.substring(0, itemListString.indexOf(\",\"));\n itemListString = itemListString.substring(itemListString.indexOf(\",\") + 1, itemListString.length());\n } else {\n itemSet = itemListString;\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.length()));\n }\n String itemName = itemSet.substring(0, itemSet.indexOf(\"=\"));\n int itemWeight = Double.valueOf(itemSet.substring(itemSet.indexOf(\"=\") + 1, itemSet.length())).intValue();\n while (itemQuantity > 0) {\n Item item = new Item(itemName, \"\", itemWeight, true);\n inventory.addItemInInventory(item);\n itemQuantity--;\n }\n }\n }\n\n //itemList\n itemLocation = new ItemLocation();\n saveMap = (LinkedTreeMap) loadData.get(1);\n if (!saveMap.isEmpty()) {\n System.out.println(saveMap.keySet());\n LinkedTreeMap itemLocationOnMap = (LinkedTreeMap) saveMap;\n String rooms = saveMap.keySet().toString();\n rooms = removeCrapCharsFromString(rooms);\n for (int j = 0; j <= itemLocationOnMap.size() - 1; j++) {\n String itemToAdd;\n\n if (rooms.contains(\",\")) {\n itemToAdd = rooms.substring(0, rooms.indexOf(\",\"));\n } else {\n itemToAdd = rooms;\n }\n\n rooms = rooms.substring(rooms.indexOf(\",\") + 1, rooms.length());\n ArrayList itemInRoom = (ArrayList) itemLocationOnMap.get(itemToAdd);\n for (int i = 0; i < itemInRoom.size(); i++) {\n Item itemLocationToAdd;\n LinkedTreeMap itemT = (LinkedTreeMap) itemInRoom.get(i);\n String itemName = itemT.get(\"name\").toString();\n String itemDesc = \"\";\n int itemWeight = (int) Double.parseDouble(itemT.get(\"weight\").toString());\n boolean itemUseable = Boolean.getBoolean(itemT.get(\"useable\").toString());\n\n itemLocationToAdd = new PickableItem(itemName, itemDesc, itemWeight, itemUseable);\n itemLocation.addItem(itemToAdd, itemLocationToAdd);\n\n }\n }\n //set room\n String spawnRoom = loadData.get(3).toString();\n currentRoom = getRoomFromName(spawnRoom);\n }\n }", "public void printInventory()\n { \n System.out.println();\n\n // Checks if the player has items.\n if(!(getPerson(PLAYER).getInventory().getItems().isEmpty())){\n System.out.println(\"In your backpack, you have:\");\n\n // Gets each item in the player's inventory.\n for(Item item: getPerson(PLAYER).getInventory().getItems()){\n System.out.print(item.getName() + \",\");\n }\n System.out.println();\n System.out.println(\"You are carrying \"+ getPerson(PLAYER).getWeight() + \"kg.\");\n }\n else{\n System.out.println(\"There are currently no items in your backpack.\");\n }\n System.out.println();\n }", "public void addToInventory() {\r\n\t\tdo {\r\n\t\t\tint quantity = 0;\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tWasher washer = store.searchWashers(brand + model);\r\n\t\t\tif (washer == null) {\r\n\t\t\t\tSystem.out.println(\"No such washer exists.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tquantity = getInteger(\"Enter quantity to add: \");\r\n\t\t\tboolean result = store.addWasherToInventory(brand, model, quantity);\r\n\t\t\tif(result) {\r\n\t\t\t\tSystem.out.println(\"Added \" + quantity + \" of \" + washer);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added to inventory.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (yesOrNo(\"Add more washers to the inventory?\"));\r\n\t}", "private void loadInventory(String fileName){\t\t\r\n\t\tList<String> list = new ArrayList<String>();\r\n\r\n\t\ttry (Stream<String> stream = Files.lines(Paths.get(fileName))) {\r\n\t\t\t//Convert it into a List\r\n\t\t\tlist = stream.collect(Collectors.toList());\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tfor(String itemList : list){\r\n\t\t\tString[] elements = itemList.split(\"--\");\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tswitch(elements[0].toUpperCase()){\r\n\t\t\t\t\tcase \"BURGER\":\r\n\t\t\t\t\t\t\tinventory.add(createBurger(elements));;\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"SALAD\":\r\n\t\t\t\t\t\t\tinventory.add(createSalad(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"BEVERAGE\":\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinventory.add(createBeverage(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"SIDE\":\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinventory.add(createSide(elements));;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase \"DESSERT\":\r\n\t\t\t\t\t\t\tinventory.add(createDessert(elements));;\r\n\t\t\t\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "protected void putItems() {\n\t\tlevelSetup[0][5].putItem(new Dynamite());\n\t\tlevelSetup[6][6].putItem(new Flint());\n\t\tlevelSetup[6][3].putItem(new ManaPotion());\n\t\tlevelSetup[5][0].putItem(new ManaPotion());\n\t\tlevelSetup[2][1].putItem(new HealthPotion());\n\t\tlevelSetup[3][6].putItem(new HealthPotion());\n\t\tlevelSetup[4][2].putItem(new Spinach());\n\t}", "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 static ArrayList<InventoryItem> getInventoryItems() {\n\n String itemUrl = REST_BASE_URL + ITEMS;\n String inventoryUrl = REST_BASE_URL + INVENTORIES;\n String availableUrl = REST_BASE_URL + INVENTORIES + AVAILABLE + CATEGORIZED;\n\n // List of items\n ArrayList<InventoryItem> items = new ArrayList<>();\n ArrayList<String> itemNames = new ArrayList<>();\n\n URL url = null;\n\n /* Fetch items from \"items\" table. */\n try {\n url = new URL(itemUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray itemJsonArray = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting items\");\n itemJsonArray = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n // Store each item into <items>. Store each item name into <itemNames>.\n for (int i = 0; i < itemJsonArray.length(); i++) {\n JSONObject jo = (JSONObject) itemJsonArray.get(i);\n InventoryItem newItem = new InventoryItem(\n jo.getString(ITEM_IMAGE_URL),\n jo.getString(ITEM_NAME),\n jo.getString(ITEM_DESCRIPTION),\n 0,\n 0);\n items.add(newItem);\n itemNames.add(jo.getString(ITEM_NAME));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* Fetch inventory items from \"inventories\" */\n try {\n url = new URL(inventoryUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray jaResult = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting ivnentories\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemQuantity(currItem.getItemQuantity()+1);\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the inventory but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* get inventory stocks from \"/available/categorized\" */\n try {\n url = new URL(availableUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n\n try {\n Log.d(TAG, \"getInventoryItems: getting inventory stocks\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemStock(jo.getInt(ITEM_COUNT));\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the stock but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return items;\n }", "public FinalMysteryItem() {\n int randomIndex = new Random().nextInt(7);\n item = new Item(listOfPossibleNames[randomIndex], PRICE_TO_BUY);\n }", "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 static void main (String args[]){\n\t\n\tCargoContainer test1 = new CargoContainer(\"Austin\", 800, 8000);\n\tCargoContainer test2 = new CargoContainer(\"Swathi\", 10000, 10000000);\n\tCargoItem item1 = new CargoItem(\"Toys\", 200, 10, 20, 10); //Volume= 2000\n\tCargoItem item2 = new CargoItem(\"Pens\", 50, 50, 20, 5); //Volume= 5000\n\tCargoItem item3 = new CargoItem(\"Trucks\", 5000, 500, 500, 10); //Volume= 2500000\n\t\n\tSystem.out.println(test1);\n\ttest1.addItem(item1);\n\tSystem.out.println(test1);\n\ttest1.addItem(item2);\n\tSystem.out.println(test1);\n\ttest1.addItem(item3);\n\ttest2.addItem(item3);\n\tSystem.out.println(test2);\n\ttest1.removeItem(item1);\n\tSystem.out.println(test1);\n}", "Collection<Item> getInventory();", "public static void initLoot()\n\t{\n\t\tChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(Disc1),0,1,5));\n\t\tChestGenHooks.getInfo(ChestGenHooks.STRONGHOLD_CORRIDOR).addItem(new WeightedRandomChestContent(new ItemStack(Disc1),0,1,15));\n\t\tChestGenHooks.getInfo(ChestGenHooks.STRONGHOLD_LIBRARY).addItem(new WeightedRandomChestContent(new ItemStack(Disc1),0,1,15));\n\t\tChestGenHooks.getInfo(ChestGenHooks.STRONGHOLD_CROSSING).addItem(new WeightedRandomChestContent(new ItemStack(Disc1),0,1,15));\n\t\tChestGenHooks.getInfo(ChestGenHooks.MINESHAFT_CORRIDOR).addItem(new WeightedRandomChestContent(new ItemStack(Disc1),0,1,5));\n\t\tChestGenHooks.getInfo(ChestGenHooks.PYRAMID_DESERT_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(Disc1),0,1,5));\n\t\tChestGenHooks.getInfo(ChestGenHooks.PYRAMID_JUNGLE_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(Disc1),0,1,15));\n\t}", "public void display_inventory() {\n\t\t// displays all identified crystals\n\t\tfor(int i = 0;i<maxInvSize;i++) {\n\t\t\tif(identifiedArray[i] != null) {\n\t\t\t\tcrystal_description(identifiedArray[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "List<SimpleInventory> getInventories();", "public void setWeaponCardsAndPieces() {\n List<WeaponCard> weaponCards = new ArrayList<>(); // empty list for the new weapon cards\n List<WeaponPiece> weaponPieces = new ArrayList<>(); // empty list for the new weapon pieces\n\n Data data = new Data(\"data.json\"); // read data from data.json\n JSONObject weaponData = (JSONObject) data.getJsonData().get(\"Weapons\"); // get the weapon data from the data\n for (int i = 0; i < 6; i++) { // for loop 0 to 5\n String weaponName = String.valueOf(weaponData.get(String.valueOf(i))); // get the weapon name\n //Make and add weaponCard and WeaponPiece to their specified lists.\n weaponCards.add(new WeaponCard(weaponName));\n weaponPieces.add(new WeaponPiece(weaponName));\n }\n //Assign the lists into their class variables\n this.weaponCards = weaponCards;\n this.weaponPieces = weaponPieces;\n }", "public void packBags() {\r\n GroceryBag[] packedBags = new GroceryBag[numItems];\r\n int bagCount = 0;\r\n\r\n GroceryBag currentBag = new GroceryBag();\r\n for (int i=0; i<numItems; i++) {\r\n GroceryItem item = (GroceryItem) cart[i];\r\n if (item.getWeight() <= GroceryBag.MAX_WEIGHT) {\r\n if (!currentBag.canHold(item)) {\r\n packedBags[bagCount++] = currentBag;\r\n currentBag = new GroceryBag();\r\n }\r\n currentBag.addItem(item);\r\n removeItem(item);\r\n i--;\r\n }\r\n }\r\n // Check this in case there were no bagged items\r\n if (currentBag.getWeight() > 0)\r\n packedBags[bagCount++] = currentBag;\r\n\r\n // Now create a new bag array which is just the right size\r\n pBags = new GroceryBag[bagCount];\r\n for (int i=0; i<bagCount; i++) {\r\n pBags[i] = packedBags[i];\r\n }\r\n\r\n // Add all grocery bags bag into cart\r\n for (int i = 0; i < bagCount; i++) {\r\n addItem(pBags[i]);\r\n }\r\n }", "public void updatAttackArmies(){\n\t\t\n\t\tfinal String s = attackToComboBox.getSelectedItem().toString();\n\t\tCountry country = MainPlayScreen.this.game.getBoard().getCountryByName(s);\n\t\t\t\n\t\tfinal int armies = MainPlayScreen.this.game.countryArmies.get(country);\n\t\tSystem.out.println(s + \" Defender Armies: \" + armies);\n\t\t\n\t\tif( armies == 1){\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t}// end of if statement\n\t\t\n\t\telse if( armies == 2){\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t\tnumberOfArmies[5].addItem(2);\n\t\t\t\n\t\t} // end of else if statement\n\t\t\n\t\telse{\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t\tnumberOfArmies[5].addItem(2);\n\t\t\tnumberOfArmies[5].addItem(3);\n\t\t\t\n\t\t}// end of else statement\n\t\tnumberOfArmies[5].repaint();\n\t}", "public static void loadIndustrys(){\n //Try to connect to the database\n try {\n\n //Create Database Connection\n Class.forName(Main.database.DRIVER);\n Connection con = DriverManager.getConnection(Main.database.SERVER, Main.database.USERNAME, Main.database.PASSWORD);\n\n String sql = \"SELECT * FROM Industry\";\n\n //Create the java statement\n Statement statement = con.createStatement();\n\n //Execute the query and get the result\n ResultSet row = statement.executeQuery(sql);\n\n //Iterate through the results\n while (row.next()) {\n industrys.addItem(makeItem(row.getString(\"Name\")));\n }\n\n } catch (Exception ex) {\n\n //We got an Exception\n System.err.println(ex.getMessage());\n\n //Alert Error\n JOptionPane.showMessageDialog(Main.frame, \" Error Connecting to Database!\");\n }\n }", "@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}", "static void setItemsAndContainers (){\n\t \t/**Add containers to places*/\n\t \tLocation.places[0].addContainer(Container.depths);\n\t \tLocation.places[1].addContainer(Container.secondaryInv);\n\t \tLocation.places[4].addContainer(Container.SRCloset);\n\t \tLocation.places[6].addContainer(Container.couch1);\n\t\t Location.places[6].addContainer(Container.couch2);\n\t\t Location.places[6].addContainer(Container.couch3);\n\t\t Location.places[6].addContainer(Container.couch4);\n\t\t Location.places[13].addContainer(Container.closetBathroom);\n Location.places[15].addContainer(Container.K1Couch);\n Location.places[16].addContainer(Container.fridge);\n Location.places[23].addContainer(Container.autoAisle);\n Location.places[24].addContainer(Container.aisle15B);\n Location.places[26].addContainer(Container.bb);\n\t\t \n\t\t /**Add items to places*/\n\t\t Location.places[0].addItem(Item.grabber);\n\t\t Location.places[1].addItem(Item.parcans);\n\t\t Location.places[3].addItem(Item.bookbag);\n\t\t Location.places[4].addItem(Item.ladder);\n\t\t Location.places[7].addItem(Item.drill);\n\t\t Location.places[7].addItem(Item.screws);\n\t\t Location.places[7].addItem(Item.pipe);\n\t\t Location.places[7].addItem(Item.twobyfour);\n\t\t Location.places[8].addItem(Item.rope);\n\t\t Location.places[11].addItem(Item.car);\n\t\t Location.places[12].addItem(Item.twentyDollars);\n\t\t Location.places[16].addItem(Item.tupperware);\n\t\t Location.places[18].addItem(Item.bottle);\n Location.places[19].addItem(Item.plunger);\n Location.places[20].addItem(Item.map);\n Location.places[21].addItem(Item.magnet);\n Location.places[23].addItem(Item.avocados);\n Location.places[25].addItem(Item.noodles);\n\t\t Location.places[26].addItem(Item.Unibrow); \n\t\t \n\t\t /**test purposes*/\n\t\t Location.places[10].addItem(Item.otherWrench);\n//\t\t Location.places[0].addItem(Item.repellent);\n//\t\t Location.places[7].addItem(Item.repellent);\n// Location.places[7].addItem(Item.wrench);\n Location.places[7].addItem(Item.keys);\n\t\t \n\t\t /**Adds items in containers*/\n\t\t Container.setItemsInContainers();\n\t\t }", "public String printGrabbedItems() {\n return \"Items in your inventory: \" + grabbedItems;\n }", "public Basket(Inventory inventory){\n myBasket = new HashMap<>();\n totalCost = 0;\n isPaid = false;\n Random randomGenerator = new Random();\n invoiceNumber = randomGenerator.nextInt(30000) + 1;\n this.inventory = inventory;\n }", "public static void refillChest(Location loc, ArrayList<ItemStack> items){\n\t\tif(isChest(loc)){\n\t\t\tChest chest = (Chest) loc.getBlock().getState();\n\t\t\tchest.getBlockInventory().clear();\n\t\t\tfor(ItemStack item : items){\n\t\t\t\tfor(int i = 0; i <= 100; i++){\n\t\t\t\t\tint slot = new Random().nextInt(chest.getBlockInventory().getSize());\n\t\t\t\t\tif(chest.getBlockInventory().getItem(slot) == null){\n\t\t\t\t\t\tchest.getBlockInventory().setItem(slot, item);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public abstract List<String> getInventory();", "public GroceryStore (int a, int f, int iF, int fr, boolean lA, boolean b, String bS, int p, String n, double l, double w, boolean c,int e, int fn, String m, int cl, int ps, String sl, int r, double in, double out)\n {\n if (a <= 0)\n {\n System.out.println (\"Invalid amount of aisles. There are now 5 aisles.\");\n aisles = 5;\n }\n else{\n aisles = a;\n }\n if (f <= 0)\n {\n System.out.println (\"Invalid amount of freezers. There are now 3 freezers.\");\n freezers = 3;\n }\n else{\n freezers = f;\n }\n if (iF>10||iF<=0)\n {\n System.out.println (\"Number isn't 1-10. \\\"inventoryFull\\\" value is 5.\");\n inventoryFull = 5;\n }\n else\n {\n inventoryFull = iF;\n }\n if (fr>10||fr<=0)\n {\n System.out.println (\"Number isn't 1-10. \\\"fresh\\\" value is 8.\");\n fresh = 8;\n }\n else\n {\n fresh = fr;\n }\n liveAnimals=lA;\n bakery=b;\n bestSeller=bS;\n if (p <= 0)\n {\n System.out.println (\"Invalid amount of products. There are now 1000 products.\");\n numberOfProducts = 1000;\n }\n else{\n numberOfProducts = p;\n }\n\n setName(n);\n if (l*w <= 0)\n {\n System.out.println (\"Invalid area. Area set to 500.0m2.\");\n setArea(50.0, 10.0);\n }\n else\n {\n setArea(l,w);\n }\n setConnected(c);\n if (e <= 0)\n {\n System.out.println (\"Invalid number of employees. Employees set to 5.\");\n setEmployees(5);\n }\n else\n {\n setEmployees(e);\n }\n if (fn <= 0)\n {\n System.out.println (\"Invalid number of floors. Floor number set to 1.\");\n setFloorNumber(1);\n }\n else\n {\n setFloorNumber(fn);\n }\n setManager(m);\n if (cl>10||cl<=0)\n {\n System.out.println (\"Number isn't 1-10. \\\"cleanliness\\\" is set to 8.\");\n setCleanliness(8);\n }\n else\n {\n setCleanliness(cl);\n }\n if (ps <= 0)\n {\n System.out.println (\"Invalid number of parking spaces. Parking spaces set to 3.\");\n setParkingSpaces(3);\n }\n else\n {\n setParkingSpaces(ps);\n }\n setStreetLocation(sl);\n if (r <= 0)\n {\n System.out.println (\"Invalid number of registers. Number of registers set to 2.\");\n setRegisters(2);\n }\n else\n {\n setRegisters(r);\n }\n calcRevenue(in, out);\n }", "List<InventoryItem> getInventory();", "public void re_GiveMaterials() {\n\t\tString buildingType = gc.getBuildingType();\n\t\t// wood, brick, grain, wool, ore\n\t\tString[] materialCodes = {\"h\", \"b\", \"g\", \"w\", \"e\"};\n\t\tint[] materials = new int[AMOUNT_OF_MATERIALS];\n\n\t\tswitch (buildingType) {\n\n\t\tcase VILLAGE_TYPE:\n\t\t\tmaterials = VILLAGE_ARRAY;\n\t\t\tbreak;\n\n\t\tcase CITY_TYPE:\n\t\t\tmaterials = CITY_ARRAY;\n\t\t\tbreak;\n\t\t\t\n\t\tcase STREET_TYPE:\n\t\t\tmaterials = STREET_ARRAY;\n\t\t\tbreak;\n\t\t}\n\t\t// Check if player is not in first round\n\t\tif(!pTM.inFirstRound(gameID)) {\n\t\t\tbbm.returnMaterials(materialCodes, materials);\n\t\t\t\n\t\t\t//Reset build value\n\t\t\tgc.placeBuilding(\"\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\n\t}", "private void buildBoats() {\n\t\tboats.add(new Boat(\"red\"));\n\t\tboats.add(new Boat(\"pink\"));\n\t\tboats.add(new Boat(\"blue\"));\n\t\tboats.add(new Boat(\"yellow\"));\n\t\tboats.add(new Boat(\"orange\"));\n\t\tboats.add(new Boat(\"green\"));\n\t\tboats.add(new Boat(\"purple\"));\n\t}", "public CoffeeVendingMachine fillCoffeeVendingMachineWithGivenStock(HashMap<String, Long> initialStock) {\n initialStock.keySet().forEach(key -> {\n String ingredientName = key;\n long ingredientQuantity = initialStock.get(key);\n coffeeVendingMachine.addIngredient(ingredientName, ingredientQuantity);\n });\n return coffeeVendingMachine;\n }", "public void loadDB(){\n ////////////// Code that builds stores with their items lists and builds carts /////////////////////////////////////////////////////////////\n ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n sampleData = new HashMap<>(); //Make 1 hashmap per store (each has that store's items)\n //storeB_Data = new HashMap<>(); //Hashmap that has items of store B\n\n //Add new item to HashMap of items\n sampleData.put(\"026229211706\", new InventoryItem(1.99, \"Notebook\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"026229211706\"));\n sampleData.put(\"096619756803\", new InventoryItem(2.99, \"Water Bottle\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"096619756803\"));\n sampleData.put(\"9781491962299\", new InventoryItem(4.99, \"Machine Learning\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"9781491962299\"));\n sampleData.put(\"1297432524354\", new InventoryItem(4.99, \"Item\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"1297432524354\"));\n sampleData.put(\"857263004111\", new InventoryItem(79.99, \"Trendy Jacket\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"857263004111\"));\n\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(49.99,\"Hands On Machine Learning\",\"https://m.media-amazon.com/images/S/aplus-media/vc/11714e04-b1a6-439d-9482-87e757822f94.jpg\",\"Others\",\"1\",1));\n\n //This data will be populated into instance objects on each scan and \"add to cart\" /////////////////////////////\n //LAST INPUT (in this case, 1) IS THE QUANTITY. SHOULD BE SET TO WHATEVER IS ASSIGNED FROM THE DIALOGUE BOX\n //CartItem notebook = new CartItem(sampleData.get(\"026229212703\").getPrice(), sampleData.get(\"026229212703\").getName(), sampleData.get(\"026229212703\").getImage(), sampleData.get(\"026229212703\").getSalesTaxGroup(), sampleData.get(\"026229212703\").getItemKey(), 1);\n //CartItem water = new CartItem(sampleData.get(\"096619756803\").getPrice(), sampleData.get(\"096619756803\").getName(), sampleData.get(\"096619756803\").getImage(), sampleData.get(\"096619756803\").getSalesTaxGroup(), sampleData.get(\"096619756803\").getItemKey(), 1);\n //CartItem mints = new CartItem(sampleData.get(\"030242940017\").getPrice(), sampleData.get(\"030242940017\").getName(), sampleData.get(\"030242940017\").getImage(), sampleData.get(\"030242940017\").getSalesTaxGroup(), sampleData.get(\"030242940017\").getItemKey(), 1);\n ////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n //CartListOfItems cart = new CartListOfItems();\n //cart.addToCart(notebook);\n //cart.addToCart(toyCar);\n }", "private static Inventory BanMenu(Inventory inv) {\n\t\tinv.setItem(0, new ItemStack(ItemStackUtil.nameItem(Material.BEDROCK, \"perm ban\", \"perm ban de hacker\")));\n\t\tinv.setItem(1, new ItemStack(ItemStackUtil.nameItem(Material.DIAMOND_SWORD, \"PVP\", \"voor alle pvp hackers\")));\n\t\tinv.setItem(2, new ItemStack(ItemStackUtil.nameItem(Material.DIAMOND_ORE, \"X-RAY\", \"ban de X-ray hacker\")));\n\t\tinv.setItem(3, new ItemStack(ItemStackUtil.nameItem(Material.ARROW, \"spam\", \"veel berichten in chat sturen achter elkaar\")));\n\t\tinv.setItem(4, new ItemStack(ItemStackUtil.nameItem(Material.EMERALD, \"scam\", \"mensen oplichten\")));\n\t\tinv.setItem(5, new ItemStack(ItemStackUtil.nameItem(Material.BRICK, \"inapropiate builds\", \"niet toegestane gebouwen\")));\n\t\tinv.setItem(6, new ItemStack(ItemStackUtil.nameItem(Material.SIGN, \"inapropiate skin/IGN\", \"verkeerde skin of naam\")));\n\t\tinv.setItem(7, new ItemStack(ItemStackUtil.nameItem(Material.BARRIER, \"schelden\", \"slecht woord gebruik\")));\n\t\tinv.setItem(8, new ItemStack(ItemStackUtil.nameItem(Material.RED_BED, \"other\", \"overig\")));\n\n\t\t//bottom row for the time bans whitout the known reason\n\t\tinv.setItem(9, new ItemStack(ItemStackUtil.nameItem(Material.GREEN_WOOL, \"1 uur ban\", \"green\")));\n\t\tinv.setItem(10, new ItemStack(ItemStackUtil.nameItem(Material.LIME_WOOL, \"4 uur ban\", \"lime\")));\n\t\tinv.setItem(11, new ItemStack(ItemStackUtil.nameItem(Material.YELLOW_WOOL, \"8 uur ban\", \"yellow\")));\n\t\tinv.setItem(12, new ItemStack(ItemStackUtil.nameItem(Material.ORANGE_WOOL, \"1 dag ban\", \"orange\")));\n\t\tinv.setItem(13, new ItemStack(ItemStackUtil.nameItem(Material.BLUE_WOOL, \"1 week ban\", \"blue\")));\n\t\tinv.setItem(14, new ItemStack(ItemStackUtil.nameItem(Material.BROWN_WOOL, \"1 month ban\", \"brown\")));\n\t\tinv.setItem(15, new ItemStack(ItemStackUtil.nameItem(Material.GRAY_WOOL, \"2 month ban\", \"dark brown\")));\n\t\tinv.setItem(16, new ItemStack(ItemStackUtil.nameItem(Material.RED_WOOL, \"6 month ban\", \"red\")));\n\t\tinv.setItem(17, new ItemStack(ItemStackUtil.nameItem(Material.MAGENTA_WOOL, \"1 jaar ban\", \"dark red\")));\n\t\treturn inv;\n\t}", "private void buildShipsList() {\r\n ObservableList<ShipBar> lstShips = FXCollections.observableArrayList();\r\n Map<String, ShipType> ships = Data.SHIPS.get();\r\n for (String s : planet.getShips()) {\r\n ShipType ship = ships.get(s);\r\n ShipBar u = new ShipBar();\r\n u.setKey(s);\r\n u.setText(ship.getName());\r\n u.setPrice(ship.getPrice() - currentShip.getNetWorth());\r\n u.setToggleGroup(shipGroup);\r\n lstShips.add(u);\r\n }\r\n buyShips.setItems(lstShips);\r\n }", "public static void useBag(ReadingMaple rh, MapleClient c) {\n MapleCharacter chr = c.getPlayer();\n if (chr == null || !chr.isAlive() || chr.getMap() == null) {\n c.getSession().writeAndFlush(MainPacketCreator.resetActions(c.getPlayer()));\n return;\n }\n rh.skip(4);\n final short slot = rh.readShort();\n final int itemId = rh.readInt();\n final IItem toUse = chr.getInventory(MapleInventoryType.ETC).getItem(slot);\n\n if (toUse == null || toUse.getQuantity() < 1 || toUse.getItemId() != itemId || itemId / 10000 != 433) {\n c.getSession().writeAndFlush(MainPacketCreator.resetActions(c.getPlayer()));\n return;\n }\n boolean firstTime = !chr.getExtendedSlots().contains(toUse.getUniqueId());\n if (firstTime) {\n chr.getExtendedSlots().add(toUse.getUniqueId());\n short flag = toUse.getFlag();\n flag |= ItemFlag.UNTRADEABLE.getValue();\n toUse.setFlag(flag);\n // c.getPlayer().extendedslots_changed = true;\n c.getSession().writeAndFlush(MainPacketCreator.addInventorySlot(MapleInventoryType.EQUIP, toUse));\n }\n c.getSession().writeAndFlush(\n MainPacketCreator.openBag(chr.getExtendedSlots().indexOf(toUse.getUniqueId()), itemId, firstTime));\n c.getSession().writeAndFlush(MainPacketCreator.resetActions(c.getPlayer()));\n }", "public static void main(String[] args){\n // Let's try to access some of McBurgerShop's items / methods\n\n List<String> theseMenuItems = new ArrayList<>();\n theseMenuItems.add(\"BigMac\");\n theseMenuItems.add(\"French Fries\");\n theseMenuItems.add(\"Drink\");\n List<String> theseCategories = new ArrayList<>();\n theseCategories.add(\"Entrees\");\n theseCategories.add(\"Sides\");\n theseCategories.add(\"Unhealthy\");\n McBurgerShop mcDDallas = new McBurgerShop(theseMenuItems, theseCategories, 50, 500, 2300, true);\n mcDDallas.setIceCreamTime(false);\n System.out.println(mcDDallas.iceCreamMachineWorking());\n\n Franchise.broilStuff(\"Big mac\", 43);//the static method belongs to the franchise, number is just to differentiate the methods in the Franchise abstract class\n\n for(String thisItem : mcDDallas.getMenuItems()){\n// System.out.println(thisItem);\n mcDDallas.broilStuff(thisItem);\n }\n System.out.println(\" \");\n\n // Create an instance of AustinMcD, which implements methods SLIGHTLY different than mcBurgerShop\n AustinMcD austinMcD = new AustinMcD(theseMenuItems, theseCategories, 50, 500, 2300, true);\n System.out.println(austinMcD.iceCreamMachineWorking());\n for(String item : austinMcD.getMenuItems()){\n austinMcD.broilStuff(item);\n }\n\n }", "void loadInventory() {\n\n // make sure there isn't already an inventory record\n MrnInventory checkInv[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n if (dbg3) System.out.println(\"<br>loadInventory: survey.getSurveyId() = \" +\n survey.getSurveyId());\n if (dbg3) System.out.println(\"<br>loadInventory: checkInv.length = \" +\n checkInv.length);\n\n if (checkInv.length == 0) {\n\n inventory.setSurveyId(survey.getSurveyId());\n\n // defaults\n inventory.setDataCentre(\"SADCO\");\n inventory.setTargetCountryCode(0); // unknown\n inventory.setStnidPrefix(survey.getInstitute());\n inventory.setDataRecorded(\"Y\");\n\n // from screen - done in LoadMRNData.getArgsFromFile()\n //inventory.setCountryCode(screenInv.getCountryCode());\n //inventory.setPlanamCode(screenInv.getPlanamCode());\n //inventory.setInstitCode(screenInv.getInstitCode());\n //inventory.setCruiseName(screenInv.getCruiseName());\n //inventory.setProjectName(screenInv.getProjectName());\n //inventory.setAreaname(screenInv.getAreaname()); // use as default to show on screen\n //inventory.setDomain(screenInv.getDomain()); // use as default to show on screen\n\n inventory.setCountryCode(0); // unknown\n\n inventory.setSciCode1(1); // unknown\n inventory.setSciCode2(1); // unknown // new\n inventory.setCoordCode(1); // unknown\n\n inventory.setProjectionCode(1); // unknown\n inventory.setSpheroidCode(1); // unknown\n inventory.setDatumCode(1); // unknown\n\n inventory.setSurveyTypeCode(1); // hydro\n if (dbg) System.out.println(\"loadInventory: put inventory = \" + inventory);\n\n try {\n inventory.put();\n } catch(Exception e) {\n System.err.println(\"loadInventory: put inventory = \" + inventory);\n System.err.println(\"loadInventory: put sql = \" + inventory.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadInventory: put inventory = \" +\n inventory);\n\n } // if (checkInv.length > 0)\n\n }", "private void requestBucks() {\n\n\t}", "public void dropDownInventory(ComboBox combo) throws SQLException {\r\n dataAccess = new Connection_SQL(\"jdbc:mysql://localhost:3306/items\", \"root\", \"P@ssword123\");\r\n combo.setItems(dataAccess.menuInventory());\r\n }", "public static void main(String[] args) {\n// healthyBurger.additionalItem1(\"Tomato\", 0.56);\n// System.out.println(healthyBurger.getCustomizedBurger());\n// healthyBurger.additionalItem2(\"Lettuce\", 1.74);\n// System.out.println(healthyBurger.getCustomizedBurger());\n// System.out.println(healthyBurger.getBasePrice());\n\n DeluxeHamburger deluxeHamburger = new DeluxeHamburger();\n System.out.println(deluxeHamburger.getCustomizedBurger());\n\n\n }", "public void Populate(int bombs) {\n\t\tint row = 0,col = 0,randnumber = 0;\n\t\tRandom rnd = new Random();\n\t\t\n\t\t// array list of every position on grid\n\t\tcoordinate = new ArrayList<Integer>(height*width);\n\t\tfor(int i = 0;i<height*width;i++) {\n\t\t\tcoordinate.add(i);\n\t\t}\n\t\t\n\t\tfor(int i = 0;i<bombs;i++) {\n\t\t\t// randomly chooses a position to put a bomb in\n\t\t\trandnumber = rnd.nextInt(coordinate.size());\n\t\t\tbomblocate[i] = coordinate.get(randnumber);\n\t\t\trow = coordinate.get(randnumber)/width;\n\t\t\tcol = coordinate.get(randnumber)%width;\n\t\t\tgrid[row][col] = 9;\n\t\t\t\n\t\t\tUpdateSurround(row,col);\n\t\t\t\n\t\t\t// removes the possible position from array list\n\t\t\tcoordinate.remove(randnumber);\n\t\t}\n\t}", "public void addItemElementsFromBillOfMaterials(Item item) throws CdbException {\n List<InventoryBillOfMaterialItem> bomItems = item.getInventoryDomainBillOfMaterialList();\n\n if (bomItems != null) {\n for (InventoryBillOfMaterialItem bomItem : bomItems) {\n if (bomItem.getState().equals(InventoryBillOfMaterialItemStates.unspecifiedOptional.getValue())) {\n continue;\n }\n\n // Check if current catalog item element already has an item element defined. \n ItemElement catalogItemElement = bomItem.getCatalogItemElement();\n ItemElement currentInventoryItemElement = null;\n for (ItemElement inventoryItemElement : item.getFullItemElementList()) {\n if (inventoryItemElement.getDerivedFromItemElement() == catalogItemElement) {\n currentInventoryItemElement = inventoryItemElement;\n logger.debug(\"Updating element \" + currentInventoryItemElement + \" to item \" + item);\n break;\n }\n }\n\n if (currentInventoryItemElement == null) {\n currentInventoryItemElement = new ItemElement();\n currentInventoryItemElement.init(item, bomItem.getCatalogItemElement());\n item.getFullItemElementList().add(currentInventoryItemElement);\n logger.debug(\"Creating instance adding element \" + currentInventoryItemElement + \" to item \" + item);\n }\n\n // User has specified to create a new item for this bill of materials item. \n String currentBomState = bomItem.getState();\n if (currentBomState.equals(InventoryBillOfMaterialItemStates.newItem.getValue())\n || currentBomState.equals(InventoryBillOfMaterialItemStates.existingItem.getValue())) {\n if (bomItem.getInventoryItem() == null) {\n\n String actionWord = \"defined\";\n if (currentBomState.equals(InventoryBillOfMaterialItemStates.existingItem.getValue())) {\n actionWord = \"selected\";\n }\n\n throw new CdbException(\"An item for: \" + bomItem.getCatalogItemElement().getName() + \" is not \" + actionWord + \".\");\n }\n\n Item inventoryItem = bomItem.getInventoryItem();\n\n // No need to do that for existing items. \n if (currentBomState.equals(InventoryBillOfMaterialItemStates.newItem.getValue())) {\n addItemElementsFromBillOfMaterials(inventoryItem);\n currentInventoryItemElement.setContainedItem(inventoryItem);\n\n } else if (currentBomState.equals(InventoryBillOfMaterialItemStates.existingItem.getValue())) {\n if (currentInventoryItemElement.getContainedItem() == inventoryItem == false) {\n currentInventoryItemElement.setContainedItem(itemFacade.find(inventoryItem.getId()));\n }\n }\n } else if (currentBomState.equals(InventoryBillOfMaterialItemStates.placeholder.getValue())) {\n currentInventoryItemElement.setContainedItem(null);\n }\n\n // Use permissions defined in parent of the item for the item element. \n updateItemElementPermissionsToItem(currentInventoryItemElement, bomItem.getParentItemInstance());\n }\n }\n\n }", "@Test\n public void destiny2EquipItemsTest() {\n InlineResponse20044 response = api.destiny2EquipItems();\n\n // TODO: test validations\n }", "public ItemStack getShopItem(Integer shopID, Boolean fullStack, String seller){\n\t\tMaterial itemMaterial = null;\n\t\tString material = null;\n\t\tString enchantments = null;\n\t\tString name = \"\";\n\t\tString data = \"\";\n\t\tString query = \"SELECT * FROM `shops` WHERE `shop_id`=\"+shopID+\";\";\n\t\tdebugOut(\"Executing query: \"+ query);\n\t\ttry {\n\t\t\tPreparedStatement sql = connection.prepareStatement(query);\n\t\t\tResultSet result = sql.executeQuery();\n\t\t\tdebugOut(\"Query Completed\");\n\t\t\tresult.next();\n\t\t\tmaterial= result.getString(\"itemmaterial\");\n\t\t\tenchantments= result.getString(\"itemenchantments\");\n\t\t\tname = result.getString(\"itemname\");\n\t\t\tdata = result.getString(\"data\");\n\t\t}catch (SQLException e) {\n\t\t\tdebugOut(\"SQL Problem\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdebugOut(\"Beginning to assign variables\");\n\t\tdebugOut(\"Data\");\n\t\tString dataAsInt = getData(data);\n\t\tdebugOut(\"Material\");\n\t\titemMaterial= Material.getMaterial(material);\n\t\t//get the amount after checking full stack\n\t\tint quantity = 0;\n\t\tif(fullStack){\n\t\t\tquantity= itemMaterial.getMaxStackSize();\n\t\t}else {\n\t\t\tquantity = 1;\n\t\t}\n\t\tdebugOut(\"Creating New item stack\");\n\t\tItemStack shopItem = new ItemStack(itemMaterial, quantity, (short) Short.parseShort(dataAsInt) ) ;\n\t\tdebugOut(\"Creating item meta\");\n\t\tItemMeta meta = null;\n\t\tEnchantmentStorageMeta bookMeta = null;\n\t\tBoolean isBook = null;\n\t\t//Check if is a book\n\t\tif(material.contains(\"ENCHANTED_BOOK\")){\n\t\t\t//Do for book items\n\t\t\tdebugOut(\"Item is an enchanted book -- making note of it\");\n\t\t\tbookMeta = (EnchantmentStorageMeta) shopItem.getItemMeta();\n\t\t\tisBook = true;\n\t\t}else {\n\t\t\t//Do for non-book items\n\t\t\tdebugOut(\"Item is not an enchanted book\");\n\t\t\tmeta = shopItem.getItemMeta();\n\t\t\tisBook = false;\n\t\t}\n\t\tdebugOut(\"Item meta: Display Name\");\n\t\tif(name.equalsIgnoreCase(null) || name.equalsIgnoreCase(\"\") || name.equalsIgnoreCase(\"null\") ){\n\t\t\t//Do Nothing'\n\t\t\tdebugOut(\"No set item name -- Skipping\");\n\t\t}else{\n\t\t\tdebugOut(\"Setting item meta name to: \"+name);\n\t\t\tif(isBook){\n\t\t\t\tbookMeta.setDisplayName(name);\n\t\t\t}else{\n\t\t\t\tmeta.setDisplayName(name);\n\t\t\t}\n\t\t}\n\t\tif(material.contains(\"SWORD\") || material.contains(\"SPADE\") || material.contains(\"PICKAXE\") || material.contains(\"AXE\") ||\n\t\t\t\tmaterial.contains(\"HELMET\") || material.contains(\"CHESTPLATE\") || material.contains(\"LEGGINGS\") || material.contains(\"BOOTS\") ||\n\t\t\t\tisBook){ \n\t\t\t//Test the material of the item, to prevent generic blocks from having lore\n\t\t\tif(getConfig().getString(\"item-receipt\")==\"true\"){\n\t\t\t\tdebugOut(\"Setting receipt\");\n\t\t\t\tif(isBook){\n\t\t\t\t\tdebugOut(\"Assigning book lore\");\n\t\t\t\t\tbookMeta.setLore(Arrays.asList(getConfig().getString(\"item-receipt-text\"), seller));\n\t\t\t\t}else{\n\t\t\t\t\tdebugOut(\"Assigning non-book lore\");\n\t\t\t\t\tmeta.setLore(Arrays.asList(getConfig().getString(\"item-receipt-text\"), seller));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(!isBook){\n\t\t\tdebugOut(\"Assigning non-book meta to the itemstack\");\n\t\t\tshopItem.setItemMeta(meta);\n\t\t}\n\t\tdebugOut(\"Enchanting...\");\n\t\tString[] brokenEnchantments = enchantments.split(\";\");\n\t\tif(!enchantments.equalsIgnoreCase(\"\")){\n\t\t\tfor(int i=0; i<brokenEnchantments.length; i++){\n\t\t\t\tdebugOut(\"Splitting: \"+brokenEnchantments[i]);\n\t\t\t\tString[] brokenValues = brokenEnchantments[i].split(\",\");\n\t\t\t\tdebugOut(\"Split Version: \"+brokenValues[0]+\" and \"+brokenValues[1]);\n\t\t\t\tString enchName = brokenValues[0];\n\t\t\t\tdebugOut(\"Final enchantment name string: \"+enchName);\n\t\t\t\tdebugOut(\"Assigning enchantment variable\");\n\t\t\t\tdebugOut(enchName);\n\t\t\t\tEnchantment currentEnchantment = Enchantment.getByName(enchName);\n\t\t\t\tdebugOut(\"Assigning enchantment level integer\");\n\t\t\t\tint currentLevel = Integer.parseInt(brokenValues[1]);\n\t\t\t\tif(!isBook){\n\t\t\t\t\tdebugOut(\"Adding (un)safe enchantment to non-book: \"+currentEnchantment.getName()+\" at level \"+currentLevel);\n\t\t\t\t\tshopItem.addUnsafeEnchantment(currentEnchantment, currentLevel);\n\t\t\t\t}else{\n\t\t\t\t\tdebugOut(\"Adding stored enchantment: \"+currentEnchantment.getName()+\" at level \"+ currentLevel);\n\t\t\t\t\tif(bookMeta.addStoredEnchant(currentEnchantment, currentLevel, true)){\n\t\t\t\t\t\tdebugOut(\"Item meta was changed as a result of addStoredEnchant\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdebugOut(\"Item meta not changed! -- this should not happen\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdebugOut(\"Enchantment added!\");\t\t\t\t\n\t\t\t}\n\t\t\tif(isBook){\n\t\t\t\tdebugOut(\"Assigning book meta to the itemstack\");\n\t\t\t\tshopItem.setItemMeta(bookMeta);\n\t\t\t}\n\t\t}else{\n\t\t\tdebugOut(\"No enchantments -- Skipping\");\n\t\t}\n\t\tdebugOut(\"Returning the itemstack\");\n\t\treturn shopItem;\n\t}", "public static void main(String[] args) {\n Inventory inventory = new Inventory();\n DB.initializeInventory(inventory);\n\n Map properties = new HashMap();\n \n Scanner scan = new Scanner(System.in);\t\n \n properties.put(\"builder\", Builder.GIBSON);\n properties.put(\"backWood\", Wood.MAPLE);\n InstrumentSpec whatBryanLikes = new InstrumentSpec(properties);\n\n List matchingInstruments = inventory.search(whatBryanLikes);\n \n if (!matchingInstruments.isEmpty()) {\n System.out.println(\"Mister, you might like these instruments:\");\n for (Iterator i = matchingInstruments.iterator(); i.hasNext(); ) {\n Instrument instrument = (Instrument)i.next();\n InstrumentSpec spec = instrument.getSpec();\n System.out.println(\"We have a \" + spec.getProperty(\"instrumentType\") +\n \" with the following properties:\");\n for (Iterator j = spec.getProperties().keySet().iterator(); \n j.hasNext(); ) {\n String propertyName = (String)j.next();\n if (propertyName.equals(\"instrumentType\"))\n continue;\n System.out.println(\" \" + propertyName + \": \" +\n spec.getProperty(propertyName));\n } \n System.out.println(\" You can have this \" + \n spec.getProperty(\"instrumentType\") + \" for $\" + \n instrument.getPrice() + \"\\n---\");\n }\n } else {\n System.out.println(\"Sorry, Bryan, we have nothing for you.\");\n }\n }", "private void populateShelf() {\n for (int floor = 1; floor <= 3; floor++) {\n for (int aisle = 1; aisle <= 5; aisle++) {\n for (int shelf = 1; shelf <= 3; shelf++) {\n System.out\n .println(\"INSERT INTO `4400`.`Shelf` (`shelfNumber`, `aisleNumber`, `floorNumber`) VALUES ('\"\n + floor\n + aisle\n + shelf\n + \"', '\"\n + aisle\n + \"', '\" + floor + \"');\");\n }\n }\n }\n }", "public void addItems() {\r\n\t\tproductSet.add(new FoodItems(1000, \"maggi\", 12.0, 100, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1001, \"Pulses\", 55.0, 50, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1004, \"Meat\", 101.53, 5, new Date(), new Date(), \"no\"));\r\n\t\tproductSet.add(new FoodItems(1006, \"Jelly\", 30.0, 73, new Date(), new Date(), \"no\"));\r\n\t\t\r\n\t\tproductSet.add(new Apparels(1005, \"t-shirt\", 1000.0, 10, \"small\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1002, \"sweater\", 2000.0, 5,\"medium\", \"woolen\"));\r\n\t\tproductSet.add(new Apparels(1003, \"cardigan\", 1001.53,22, \"large\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1007, \"shirt\", 500.99, 45,\"large\",\"woolen\"));\r\n\t\t\r\n\t\tproductSet.add(new Electronics(1010, \"tv\", 100000.0, 13, 10));\r\n\t\tproductSet.add(new Electronics(1012, \"mobile\", 20000.0, 20,12));\r\n\t\tproductSet.add(new Electronics(1013, \"watch\", 1101.53,50, 5));\r\n\t\tproductSet.add(new Electronics(1009, \"headphones\", 300.0, 60,2));\r\n\t\t\r\n\t}", "public void run() {\n Scanner sc=new Scanner(System.in);\n int numOfBox=sc.nextInt();\n int handCap=sc.nextInt();\n int boxCap=sc.nextInt();\n int numOfQuery=sc.nextInt();\n _boxes.add(new Box(0,handCap));\n for(int i=1;i<=numOfBox;i++){\n _boxes.add(new Box(i,boxCap));\n }\n for(int j=0;j<numOfQuery;j++){\n String query=sc.next();\n if(query.equals(\"purchase\")){\n String name=sc.next();\n int value=sc.nextInt();\n int boxNum=0;\n Item item=new Item(name,value);\n _items.add(item);\n for(int k=0;k<_boxes.size();k++){\n if(_boxes.get(k).getCapacity()>_boxes.get(k).getSize()){\n boxNum=k;\n _boxes.get(k).deposit(item);\n item.setLocation(_boxes.get(k));\n break;\n\n }\n }\n if(boxNum==0){\n System.out.println(\"item \"+name+\" is now being held\");\n }\n else{\n System.out.println(\"item \"+name+\" has been deposited to box \"+boxNum);\n } \n }\n if(query.equals(\"deposit\")){\n boolean hasfound=false;\n String name=sc.next();\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getName().equals(name)){\n hasfound=true;\n Item item=_items.get(i);\n if(item.getLocation().getNumber()!=0){\n System.out.println(\"item \"+name+\" is already in storage\");\n }\n else{\n for(int a=1;a<_boxes.size();a++){\n if(_boxes.get(a).getCapacity()>_boxes.get(a).getSize()){\n int boxNum=a;\n _boxes.get(a).deposit(item);\n _boxes.get(0).withdraw(item);\n item.setLocation(_boxes.get(a));\n System.out.println(\"item \"+name+\" has been deposited to box \"+boxNum);\n break;\n }\n }\n }\n break; \n }\n }\n if(hasfound==false){\n System.out.println(\"item \"+name+\" does not exist\");\n } \n }\n if(query.equals(\"withdraw\")){\n boolean hasfound=false;\n String name=sc.next();\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getName().equals(name)){\n hasfound=true;\n Item item=_items.get(i);\n if(item.getLocation().getNumber()==0){\n System.out.println(\"item \"+name+\" is already being held\");\n }\n else{\n if(_boxes.get(0).isFull()){\n System.out.println(\"cannot hold any more items\");\n }\n else{\n Box location=item.getLocation();\n location.withdraw(item);\n _boxes.get(0).deposit(item);\n item.setLocation(_boxes.get(0));\n System.out.println(\"item \"+name+\" has been withdrawn\");\n } \n }\n break; \n \n }\n } \n if(hasfound==false){\n System.out.println(\"item \"+name+\" does not exist\");\n }\n }\n if(query.equals(\"location\")){\n String name=sc.next();\n boolean hasfound=false;\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getName().equals(name)){\n hasfound=true;\n Item item=_items.get(i);\n if(item.getLocation().getNumber()==0){\n System.out.println(\"item \"+name+\" is being held\");\n }\n else{\n int num=item.getLocation().getNumber();\n System.out.println(\"item \"+name+\" is in box \"+num);\n } \n break; \n }\n \n }\n if(hasfound==false){\n System.out.println(\"item \"+name+\" does not exist\");\n } \n }\n if(query.equals(\"valuable\")){\n ArrayList<String> itemName=new ArrayList<String>();\n int highest=0;\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getValue()>highest){\n highest=_items.get(i).getValue();\n }\n \n }\n for(int b=0;b<_items.size();b++){\n if(_items.get(b).getValue()==highest){\n itemName.add(_items.get(b).getName());\n }\n }\n Collections.sort(itemName);\n System.out.println(itemName.get(0));\n } \n\n } \n }", "public void getBackpack()\n {\n itemLimit = 3;\n haveBackpack = true;\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: */ }", "public Inventory () {\n weaponsInventory = new ArrayList<>();\n pointInventory = 0;\n lenInventory = 0;\n }", "public void retrieveCardInventoryList() {\n try {\n systemResultViewUtil.setCardInventoryDataBeansList(cardInventoryTransformerBean.retrieveAllCardInventory());\n System.out.println(\"Retrive CardInventory Successfully\");\n } catch (Exception e) {\n System.out.println(e);\n System.out.println(\"Error in Retrive CardInventory\");\n }\n }", "public VendingMachine(){\n\n inventory = new ArrayList<>();\n balance = new Coin();\n vending_balance = 0;\n validPurchase = false;\n }", "public void Loadata(){ // fill the choice box\n stats.removeAll(stats);\n String seller = \"Seller\";\n String customer = \"Customer\";\n stats.addAll(seller,customer);\n Status.getItems().addAll(stats);\n }", "private void grabItem(String item)//Made by Justin\n {\n itemFound = decodeItem(item);\n if (itemFound == null)\n {\n System.out.println(\"I don't know of any \" + item + \".\");\n }\n else\n {\n player.inventoryAdd(itemFound, currentRoom);\n }\n }", "private ItemStack[] getItemStack() {\n\n ItemStack[] stack = new ItemStack[54];\n int i = 0;\n // get the player's messages\n TVMResultSetInbox rs = new TVMResultSetInbox(plugin, uuid, start, 44);\n if (rs.resultSet()) {\n List<TVMMessage> messages = rs.getMail();\n for (TVMMessage m : messages) {\n // message\n ItemStack mess;\n if (m.isRead()) {\n mess = new ItemStack(Material.BOOK, 1);\n } else {\n mess = new ItemStack(Material.WRITABLE_BOOK, 1);\n }\n ItemMeta age = mess.getItemMeta();\n age.setDisplayName(\"#\" + (i + start + 1));\n String from = plugin.getServer().getOfflinePlayer(m.getWho()).getName();\n age.setLore(Arrays.asList(\"From: \" + from, \"Date: \" + m.getDate(), \"\" + m.getId()));\n mess.setItemMeta(age);\n stack[i] = mess;\n i++;\n }\n }\n\n int n = start / 44 + 1;\n // page number\n ItemStack page = new ItemStack(Material.BOWL, 1);\n ItemMeta num = page.getItemMeta();\n num.setDisplayName(\"Page \" + n);\n num.setCustomModelData(119);\n page.setItemMeta(num);\n stack[45] = page;\n // close\n ItemStack close = new ItemStack(Material.BOWL, 1);\n ItemMeta win = close.getItemMeta();\n win.setDisplayName(\"Close\");\n win.setCustomModelData(1);\n close.setItemMeta(win);\n stack[46] = close;\n // previous screen (only if needed)\n if (start > 0) {\n ItemStack prev = new ItemStack(Material.BOWL, 1);\n ItemMeta een = prev.getItemMeta();\n een.setDisplayName(\"Previous Page\");\n een.setCustomModelData(120);\n prev.setItemMeta(een);\n stack[48] = prev;\n }\n // next screen (only if needed)\n if (finish > 44) {\n ItemStack next = new ItemStack(Material.BOWL, 1);\n ItemMeta scr = next.getItemMeta();\n scr.setDisplayName(\"Next Page\");\n scr.setCustomModelData(116);\n next.setItemMeta(scr);\n stack[49] = next;\n }\n // read\n ItemStack read = new ItemStack(Material.BOWL, 1);\n ItemMeta daer = read.getItemMeta();\n daer.setDisplayName(\"Read\");\n daer.setCustomModelData(121);\n read.setItemMeta(daer);\n stack[51] = read;\n // delete\n ItemStack del = new ItemStack(Material.BOWL, 1);\n ItemMeta ete = del.getItemMeta();\n ete.setDisplayName(\"Delete\");\n ete.setCustomModelData(107);\n del.setItemMeta(ete);\n stack[53] = del;\n\n return stack;\n }", "private void fillFruitList()\n\t{\n\t\tfruitList.add(\"apple\");\n\t\tfruitList.add(\"kiwi\");\n\t\tfruitList.add(\"coconut\");\n\t\tfruitList.add(\"orange\");\n\t\tfruitList.add(\"pineapple\");\n\t\tfruitList.add(\"pear\");\n\t\tfruitList.add(\"banana\");\n\t\tfruitList.add(\"papaya\");\n\t\tfruitList.add(\"blueberry\");\n\t}" ]
[ "0.69567895", "0.6433331", "0.6322048", "0.6248476", "0.6224986", "0.6205411", "0.6149702", "0.61263037", "0.60888124", "0.6042182", "0.5974435", "0.59634423", "0.59372467", "0.5907281", "0.5903872", "0.5857301", "0.58426666", "0.5818465", "0.5796725", "0.575938", "0.57324183", "0.5721008", "0.57169896", "0.56698155", "0.5657903", "0.5645508", "0.56370515", "0.5627622", "0.56251556", "0.56207293", "0.56177", "0.56003493", "0.55968326", "0.55920935", "0.5575107", "0.5573936", "0.5567841", "0.55653614", "0.555793", "0.5556867", "0.5554041", "0.5551361", "0.55503106", "0.55401105", "0.5536611", "0.5530746", "0.55226076", "0.5509971", "0.55090994", "0.5498008", "0.54844", "0.5464435", "0.5444805", "0.54440403", "0.54432917", "0.54360044", "0.54301053", "0.5426376", "0.54253346", "0.5424301", "0.5424253", "0.540681", "0.5405042", "0.5396034", "0.53951234", "0.5384895", "0.5374184", "0.5366891", "0.5362371", "0.535199", "0.53495157", "0.53491247", "0.53488547", "0.5347981", "0.5342602", "0.5338716", "0.533293", "0.53304213", "0.53277016", "0.5324113", "0.53201383", "0.5318631", "0.5318464", "0.53162694", "0.5310849", "0.5308574", "0.5301035", "0.52975535", "0.5296883", "0.52911246", "0.52905345", "0.52879316", "0.52858263", "0.5275838", "0.5273956", "0.52727246", "0.5272623", "0.5270465", "0.5268905", "0.5267077" ]
0.71546525
0
Function to populate the Blue Moon City GeneralGoods inventory
private static String[] populateBlueMoonGeneral(String[] generalInventory){ generalInventory[0] = "Healing Potion"; generalInventory[1] = "Greater Healing Potion"; return generalInventory; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fillInventory(TheGroceryStore g);", "private void testShippingGoods(){\n\t\tItem []itemArray1 = warehouse.getProductsByID(\"\");\n\n\n\t\tItem[] itemArray = warehouse.shippingGoods(itemArray1);\n\t\tSystem.out.println(\"There are \" + itemArray.length + \" items\");\n\t\tfor(Item item: itemArray){\n\t\t\tItemImpl tmpItemImpl = new ItemImpl(item);\n\t\t\tSystem.out.println(tmpItemImpl.toString());\n\t\t}\n\t}", "Collection<Item> getInventory();", "private static Inventory[] createInventoryList() {\n Inventory[] inventory = new Inventory[3];\r\n \r\n Inventory potion = new Inventory();\r\n potion.setDescription(\"potion\");\r\n potion.setQuantityInStock(0);\r\n inventory[Item.potion.ordinal()] = potion;\r\n \r\n Inventory powerup = new Inventory();\r\n powerup.setDescription(\"powerup\");\r\n powerup.setQuantityInStock(0);\r\n inventory[Item.powerup.ordinal()] = powerup;\r\n \r\n Inventory journalclue = new Inventory();\r\n journalclue.setDescription(\"journalclue\");\r\n journalclue.setQuantityInStock(0);\r\n inventory[Item.journalclue.ordinal()] = journalclue;\r\n \r\n return inventory;\r\n }", "@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 void addItems() {\r\n\t\tproductSet.add(new FoodItems(1000, \"maggi\", 12.0, 100, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1001, \"Pulses\", 55.0, 50, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1004, \"Meat\", 101.53, 5, new Date(), new Date(), \"no\"));\r\n\t\tproductSet.add(new FoodItems(1006, \"Jelly\", 30.0, 73, new Date(), new Date(), \"no\"));\r\n\t\t\r\n\t\tproductSet.add(new Apparels(1005, \"t-shirt\", 1000.0, 10, \"small\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1002, \"sweater\", 2000.0, 5,\"medium\", \"woolen\"));\r\n\t\tproductSet.add(new Apparels(1003, \"cardigan\", 1001.53,22, \"large\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1007, \"shirt\", 500.99, 45,\"large\",\"woolen\"));\r\n\t\t\r\n\t\tproductSet.add(new Electronics(1010, \"tv\", 100000.0, 13, 10));\r\n\t\tproductSet.add(new Electronics(1012, \"mobile\", 20000.0, 20,12));\r\n\t\tproductSet.add(new Electronics(1013, \"watch\", 1101.53,50, 5));\r\n\t\tproductSet.add(new Electronics(1009, \"headphones\", 300.0, 60,2));\r\n\t\t\r\n\t}", "ItemStack getEggItem(IGeneticMob geneticMob);", "List<InventoryItem> getInventory();", "public ItemStack getShopItem(Integer shopID, Boolean fullStack, String seller){\n\t\tMaterial itemMaterial = null;\n\t\tString material = null;\n\t\tString enchantments = null;\n\t\tString name = \"\";\n\t\tString data = \"\";\n\t\tString query = \"SELECT * FROM `shops` WHERE `shop_id`=\"+shopID+\";\";\n\t\tdebugOut(\"Executing query: \"+ query);\n\t\ttry {\n\t\t\tPreparedStatement sql = connection.prepareStatement(query);\n\t\t\tResultSet result = sql.executeQuery();\n\t\t\tdebugOut(\"Query Completed\");\n\t\t\tresult.next();\n\t\t\tmaterial= result.getString(\"itemmaterial\");\n\t\t\tenchantments= result.getString(\"itemenchantments\");\n\t\t\tname = result.getString(\"itemname\");\n\t\t\tdata = result.getString(\"data\");\n\t\t}catch (SQLException e) {\n\t\t\tdebugOut(\"SQL Problem\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdebugOut(\"Beginning to assign variables\");\n\t\tdebugOut(\"Data\");\n\t\tString dataAsInt = getData(data);\n\t\tdebugOut(\"Material\");\n\t\titemMaterial= Material.getMaterial(material);\n\t\t//get the amount after checking full stack\n\t\tint quantity = 0;\n\t\tif(fullStack){\n\t\t\tquantity= itemMaterial.getMaxStackSize();\n\t\t}else {\n\t\t\tquantity = 1;\n\t\t}\n\t\tdebugOut(\"Creating New item stack\");\n\t\tItemStack shopItem = new ItemStack(itemMaterial, quantity, (short) Short.parseShort(dataAsInt) ) ;\n\t\tdebugOut(\"Creating item meta\");\n\t\tItemMeta meta = null;\n\t\tEnchantmentStorageMeta bookMeta = null;\n\t\tBoolean isBook = null;\n\t\t//Check if is a book\n\t\tif(material.contains(\"ENCHANTED_BOOK\")){\n\t\t\t//Do for book items\n\t\t\tdebugOut(\"Item is an enchanted book -- making note of it\");\n\t\t\tbookMeta = (EnchantmentStorageMeta) shopItem.getItemMeta();\n\t\t\tisBook = true;\n\t\t}else {\n\t\t\t//Do for non-book items\n\t\t\tdebugOut(\"Item is not an enchanted book\");\n\t\t\tmeta = shopItem.getItemMeta();\n\t\t\tisBook = false;\n\t\t}\n\t\tdebugOut(\"Item meta: Display Name\");\n\t\tif(name.equalsIgnoreCase(null) || name.equalsIgnoreCase(\"\") || name.equalsIgnoreCase(\"null\") ){\n\t\t\t//Do Nothing'\n\t\t\tdebugOut(\"No set item name -- Skipping\");\n\t\t}else{\n\t\t\tdebugOut(\"Setting item meta name to: \"+name);\n\t\t\tif(isBook){\n\t\t\t\tbookMeta.setDisplayName(name);\n\t\t\t}else{\n\t\t\t\tmeta.setDisplayName(name);\n\t\t\t}\n\t\t}\n\t\tif(material.contains(\"SWORD\") || material.contains(\"SPADE\") || material.contains(\"PICKAXE\") || material.contains(\"AXE\") ||\n\t\t\t\tmaterial.contains(\"HELMET\") || material.contains(\"CHESTPLATE\") || material.contains(\"LEGGINGS\") || material.contains(\"BOOTS\") ||\n\t\t\t\tisBook){ \n\t\t\t//Test the material of the item, to prevent generic blocks from having lore\n\t\t\tif(getConfig().getString(\"item-receipt\")==\"true\"){\n\t\t\t\tdebugOut(\"Setting receipt\");\n\t\t\t\tif(isBook){\n\t\t\t\t\tdebugOut(\"Assigning book lore\");\n\t\t\t\t\tbookMeta.setLore(Arrays.asList(getConfig().getString(\"item-receipt-text\"), seller));\n\t\t\t\t}else{\n\t\t\t\t\tdebugOut(\"Assigning non-book lore\");\n\t\t\t\t\tmeta.setLore(Arrays.asList(getConfig().getString(\"item-receipt-text\"), seller));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(!isBook){\n\t\t\tdebugOut(\"Assigning non-book meta to the itemstack\");\n\t\t\tshopItem.setItemMeta(meta);\n\t\t}\n\t\tdebugOut(\"Enchanting...\");\n\t\tString[] brokenEnchantments = enchantments.split(\";\");\n\t\tif(!enchantments.equalsIgnoreCase(\"\")){\n\t\t\tfor(int i=0; i<brokenEnchantments.length; i++){\n\t\t\t\tdebugOut(\"Splitting: \"+brokenEnchantments[i]);\n\t\t\t\tString[] brokenValues = brokenEnchantments[i].split(\",\");\n\t\t\t\tdebugOut(\"Split Version: \"+brokenValues[0]+\" and \"+brokenValues[1]);\n\t\t\t\tString enchName = brokenValues[0];\n\t\t\t\tdebugOut(\"Final enchantment name string: \"+enchName);\n\t\t\t\tdebugOut(\"Assigning enchantment variable\");\n\t\t\t\tdebugOut(enchName);\n\t\t\t\tEnchantment currentEnchantment = Enchantment.getByName(enchName);\n\t\t\t\tdebugOut(\"Assigning enchantment level integer\");\n\t\t\t\tint currentLevel = Integer.parseInt(brokenValues[1]);\n\t\t\t\tif(!isBook){\n\t\t\t\t\tdebugOut(\"Adding (un)safe enchantment to non-book: \"+currentEnchantment.getName()+\" at level \"+currentLevel);\n\t\t\t\t\tshopItem.addUnsafeEnchantment(currentEnchantment, currentLevel);\n\t\t\t\t}else{\n\t\t\t\t\tdebugOut(\"Adding stored enchantment: \"+currentEnchantment.getName()+\" at level \"+ currentLevel);\n\t\t\t\t\tif(bookMeta.addStoredEnchant(currentEnchantment, currentLevel, true)){\n\t\t\t\t\t\tdebugOut(\"Item meta was changed as a result of addStoredEnchant\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdebugOut(\"Item meta not changed! -- this should not happen\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdebugOut(\"Enchantment added!\");\t\t\t\t\n\t\t\t}\n\t\t\tif(isBook){\n\t\t\t\tdebugOut(\"Assigning book meta to the itemstack\");\n\t\t\t\tshopItem.setItemMeta(bookMeta);\n\t\t\t}\n\t\t}else{\n\t\t\tdebugOut(\"No enchantments -- Skipping\");\n\t\t}\n\t\tdebugOut(\"Returning the itemstack\");\n\t\treturn shopItem;\n\t}", "public void fillChest(Inventory inv);", "public static ArrayList<InventoryItem> getInventoryItems() {\n\n String itemUrl = REST_BASE_URL + ITEMS;\n String inventoryUrl = REST_BASE_URL + INVENTORIES;\n String availableUrl = REST_BASE_URL + INVENTORIES + AVAILABLE + CATEGORIZED;\n\n // List of items\n ArrayList<InventoryItem> items = new ArrayList<>();\n ArrayList<String> itemNames = new ArrayList<>();\n\n URL url = null;\n\n /* Fetch items from \"items\" table. */\n try {\n url = new URL(itemUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray itemJsonArray = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting items\");\n itemJsonArray = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n // Store each item into <items>. Store each item name into <itemNames>.\n for (int i = 0; i < itemJsonArray.length(); i++) {\n JSONObject jo = (JSONObject) itemJsonArray.get(i);\n InventoryItem newItem = new InventoryItem(\n jo.getString(ITEM_IMAGE_URL),\n jo.getString(ITEM_NAME),\n jo.getString(ITEM_DESCRIPTION),\n 0,\n 0);\n items.add(newItem);\n itemNames.add(jo.getString(ITEM_NAME));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* Fetch inventory items from \"inventories\" */\n try {\n url = new URL(inventoryUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray jaResult = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting ivnentories\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemQuantity(currItem.getItemQuantity()+1);\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the inventory but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* get inventory stocks from \"/available/categorized\" */\n try {\n url = new URL(availableUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n\n try {\n Log.d(TAG, \"getInventoryItems: getting inventory stocks\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemStock(jo.getInt(ITEM_COUNT));\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the stock but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return items;\n }", "private void loadStartingInventory(){\n this.shelfList = floor.getShelf();\n Iterator<String> i = items.iterator();\n for (Shelf s : shelfList){\n while (s.hasFreeSpace()){\n s.addItem(i.next(), 1);\n }\n }\n }", "public void fillMyGoodsTable() {\n\t\tHashMap<Goods, Integer> myGoods = ship.getMyGoods();\n\t\tDefaultTableModel model = (DefaultTableModel)this.myGoodsTable.getModel();\n\t\tint number = 1;\n\t\tfor (HashMap.Entry<Goods, Integer> set: myGoods.entrySet()) {\n\t\t\tString name = set.getKey().getName();\n\t\t\tint quantity = set.getKey().getQuantityOwned();\n\t\t\tint price = set.getValue();\n\t\t\tmodel.addRow(new Object [] {number, name, quantity, price});\n\t\t\tnumber++;\n\t\t}\n\t}", "public GroceryBSTNode inventoryAdd (TheGroceryStore g);", "List<SimpleInventory> getInventories();", "InventoryItem getInventoryItem();", "public Inventory getInventory(){ //needed for InventoryView - Sam\n return inventory;\n }", "public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }", "public void printInventory()\n {\n System.out.println(\"Welcome to \" + storeName + \"! We are happy to have you here today!\");\n System.out.println(storeName + \" Inventory List\");\n System.out.println();\n \n System.out.println(\"Our Books:\");\n System.out.println(Book1.toString());\n System.out.println(Book2.toString());\n System.out.println(Book3.toString());\n System.out.println(Book4.toString());\n System.out.println(Book5.toString());\n \n System.out.println();\n \n System.out.println(\"Our Bevereges:\");\n System.out.println(Beverage1.toString());\n System.out.println(Beverage2.toString());\n System.out.println(Beverage3.toString());\n\n System.out.println();\n }", "public abstract List<String> getInventory();", "public static Item generate(){\n\n //this method lists a collection of new items. it then uses a random number generator\n //to pick one of the objects, and then returns the object so that the main method\n //can add it to the inventory.\n\n ItemType weapon = ItemType.weapon;\n Item IronSword = new Item(weapon, \"Iron Sword\", 8, 50, 10);\n Item GoldenSword = new Item(weapon, \"Golden Sword\", 10, 75, 15);\n Item AllumSword = new Item(weapon, \"Alluminum Sword\", 6, 35, 8);\n Item BowandQuiver = new Item(weapon, \"Bow & Quiver\", 4, 45, 7);\n Item BattleAxe = new Item(weapon, \"Battle Axe\", 12, 55, 13);\n\n ItemType armor = ItemType.armor;\n Item ChainChest = new Item(armor, \"Chain Mail Chestplate\", 8, 40, 30);\n Item IronChest = new Item(armor, \"Iron Chestplate\", 10, 50, 40);\n Item GoldenChest = new Item(armor, \"Golden Chestplate\", 12, 65, 50);\n Item ChainPants = new Item(armor, \"Chain Mail Pants\", 7, 40, 30);\n Item IronPants = new Item(armor, \"Iron Pants\", 9, 50, 40);\n Item GoldenPants = new Item(armor, \"Golden Pants\", 11, 65, 50);\n Item Helmet = new Item(armor, \"Helmet\", 5, 40, 20);\n\n ItemType other = ItemType.other;\n Item Bandage = new Item(other, \"Bandage\", 1, 2, 0);\n Item Wrench = new Item(other, \"Wrench\", 3, 10, 5);\n Item Bread = new Item(other, \"Bread Loaf\", 2, 4, 0);\n Item Water = new Item(other, \"Water Flask\", 3, 2, 0);\n\n Item Initializer = new Item(other, \"init\", 0, 0, 0);\n\t\tint ItemPick = RandomNum();\n Item chosen = Initializer;\n\n switch (ItemPick){\n case 1:\n chosen = IronSword;\n break;\n case 2:\n chosen = GoldenSword;\n break;\n case 3:\n chosen = AllumSword;\n break;\n case 4:\n chosen = BowandQuiver;\n break;\n case 5:\n chosen = BattleAxe;\n break;\n case 6:\n chosen = ChainChest;\n break;\n case 7:\n chosen = IronChest;\n break;\n case 8:\n chosen = GoldenChest;\n break;\n case 9:\n chosen = ChainPants;\n break;\n\t\t\t case 10:\n chosen = IronPants ;\n break;\n case 11:\n chosen = GoldenPants;\n break;\n case 12:\n chosen = Helmet;\n break;\n case 13:\n chosen = Bandage;\n break;\n case 14:\n chosen = Wrench;\n break;\n case 15:\n chosen = Bread;\n break;\n case 16:\n chosen = Water;\n break;\n }\n\n return chosen;\n }", "private Item initItem() {\n String name = inputName.getText().toString();\n int quantityToBuy = -1;\n if (!inputQuantityToBuy.getText().toString().equals(\"\"))\n quantityToBuy = Integer.parseInt(inputQuantityToBuy.getText().toString());\n String units = inputUnits.getText().toString();\n double price = 0;\n if (!inputPrice.getText().toString().equals(\"\"))\n price = Double.parseDouble(inputPrice.getText().toString());\n int calories = 0;\n if (!inputCalories.getText().toString().equals(\"\"))\n calories = Integer.parseInt(inputCalories.getText().toString());\n ArrayList<String> allergies = allergyActions.getAllergies();\n return new Item(name, 0, units, quantityToBuy, 0, allergies, calories, price);\n }", "static private void loadGame() {\n ArrayList loadData = data.loadGame();\n\n //inventory\n inventory = new Inventory();\n LinkedTreeMap saveMap = (LinkedTreeMap) loadData.get(0);\n if (!saveMap.isEmpty()) {\n LinkedTreeMap inventoryItemWeight = (LinkedTreeMap) saveMap.get(\"itemWeight\");\n LinkedTreeMap inventoryItemQuantity = (LinkedTreeMap) saveMap.get(\"inventory\");\n String inventoryItemQuantityString = inventoryItemQuantity.toString();\n inventoryItemQuantityString = removeCrapCharsFromString(inventoryItemQuantityString);\n String itemListString = inventoryItemWeight.toString();\n itemListString = removeCrapCharsFromString(itemListString);\n\n for (int i = 0; i < inventoryItemWeight.size(); i++) {\n String itemSet;\n double itemQuantity;\n if (itemListString.contains(\",\")) {\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.indexOf(\",\")));\n inventoryItemQuantityString = inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\",\") + 1, inventoryItemQuantityString.length());\n itemSet = itemListString.substring(0, itemListString.indexOf(\",\"));\n itemListString = itemListString.substring(itemListString.indexOf(\",\") + 1, itemListString.length());\n } else {\n itemSet = itemListString;\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.length()));\n }\n String itemName = itemSet.substring(0, itemSet.indexOf(\"=\"));\n int itemWeight = Double.valueOf(itemSet.substring(itemSet.indexOf(\"=\") + 1, itemSet.length())).intValue();\n while (itemQuantity > 0) {\n Item item = new Item(itemName, \"\", itemWeight, true);\n inventory.addItemInInventory(item);\n itemQuantity--;\n }\n }\n }\n\n //itemList\n itemLocation = new ItemLocation();\n saveMap = (LinkedTreeMap) loadData.get(1);\n if (!saveMap.isEmpty()) {\n System.out.println(saveMap.keySet());\n LinkedTreeMap itemLocationOnMap = (LinkedTreeMap) saveMap;\n String rooms = saveMap.keySet().toString();\n rooms = removeCrapCharsFromString(rooms);\n for (int j = 0; j <= itemLocationOnMap.size() - 1; j++) {\n String itemToAdd;\n\n if (rooms.contains(\",\")) {\n itemToAdd = rooms.substring(0, rooms.indexOf(\",\"));\n } else {\n itemToAdd = rooms;\n }\n\n rooms = rooms.substring(rooms.indexOf(\",\") + 1, rooms.length());\n ArrayList itemInRoom = (ArrayList) itemLocationOnMap.get(itemToAdd);\n for (int i = 0; i < itemInRoom.size(); i++) {\n Item itemLocationToAdd;\n LinkedTreeMap itemT = (LinkedTreeMap) itemInRoom.get(i);\n String itemName = itemT.get(\"name\").toString();\n String itemDesc = \"\";\n int itemWeight = (int) Double.parseDouble(itemT.get(\"weight\").toString());\n boolean itemUseable = Boolean.getBoolean(itemT.get(\"useable\").toString());\n\n itemLocationToAdd = new PickableItem(itemName, itemDesc, itemWeight, itemUseable);\n itemLocation.addItem(itemToAdd, itemLocationToAdd);\n\n }\n }\n //set room\n String spawnRoom = loadData.get(3).toString();\n currentRoom = getRoomFromName(spawnRoom);\n }\n }", "private void viewBackpack() {\n Item[] inventory = GameControl.getSortedInventoryList();\r\n \r\n System.out.println(\"\\n List of inventory Items\");\r\n System.out.println(\"Description\" + \"\\t\" + \r\n \"Required\" + \"\\t\" +\r\n \"In Stock\");\r\n \r\n // For each inventory item\r\n for (Item inventoryItem : inventory){\r\n // Display the description, the required amount and amount in stock\r\n System.out.println(InventoryItem.getType + \"\\t \" +\r\n InventoryItem.requiredAmount + \"\\t \" +\r\n InventoryItem.getQuantity);\r\n }\r\n \r\n }", "private void createItems()\n {\n Item belt, nappies, phone, money, cigarretes, \n jacket, cereal, shoes, keys, comics, bra, \n bread, bowl, computer;\n\n belt = new Item(2,\"Keeps something from falling\",\"Belt\");\n nappies = new Item(7,\"Holds the unspeakable\",\"Nappies\");\n phone = new Item(4, \"A electronic device that holds every answer\",\"Iphone 10\");\n money = new Item(1, \"A form of currency\",\"Money\");\n cigarretes = new Item(2,\"It's bad for health\",\"Cigarretes\");\n jacket = new Item(3,\"Keeps you warm and cozy\", \"Jacket\");\n cereal = new Item(3, \"What you eat for breakfast\",\"Kellog's Rice Kripsies\");\n shoes = new Item(5,\"Used for walking\", \"Sneakers\");\n keys = new Item(2, \"Unlock stuff\", \"Keys\");\n comics = new Item(2, \"A popular comic\",\"Batman Chronicles\");\n bra = new Item(3,\"What is this thing?, Eeeewww\", \"Bra\");\n bread = new Item(6,\"Your best source of carbohydrates\",\"Bread\");\n bowl = new Item(4,\"where food is placed\",\"Plate\");\n computer = new Item(10,\"A computational machine\",\"Computer\");\n\n items.add(belt);\n items.add(nappies);\n items.add(phone);\n items.add(money);\n items.add(cigarretes);\n items.add(jacket);\n items.add(cereal);\n items.add(shoes);\n items.add(keys);\n items.add(comics);\n items.add(bra);\n items.add(bread);\n items.add(bowl);\n items.add(computer);\n }", "public Inventory inventorySearch (TheGroceryStore g, String searchKey);", "public int inventorySize (TheGroceryStore g);", "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 Inventory searchForItem (TheGroceryStore g, Inventory i, String key);", "public void createItem()\n {\n \n necklace_red = new Item (\"Red Necklace\",\"This is a strange red necklace\");\n poolroom.addItem(necklace_red);\n \n // items in dancing room // \n gramophone = new Item (\"Gramophone\",\"This is a nice gramophone but without disk\");\n candelar = new Item(\"Candelar\",\"This candelar gives light and is really beautiful\");\n dancingroom.addItem(gramophone);\n dancingroom.addItem(candelar);\n \n //items in hall //\n potion2HP = new Potion(\"Potion 2 HP\",\"This potion gives 2 HP to the player\",2);\n hall.addItem(potion2HP);\n \n //items in corridor //\n halberd = new Weapon(\"Halberd\",\"This the statut halberd. It was not a really good idea to take it\",4,60);\n corridor.addItem(halberd);\n \n // items in bathroom //\n potion6HP = new Potion(\"Potion6HP\",\"This potions gives 6 HP to the player\",6);\n bathroom.addItem(potion6HP);\n \n // items in guestbedroom //\n Exit exit_from_corridor_to_bedroom = new Exit(\"south\",corridor,false, null);\n bedroomkey = new Keys(\"Bedroom key\",\"This key opens the master bedroom door\",exit_from_corridor_to_bedroom);\n guestbedroom.addItem(bedroomkey);\n \n // items in kitchen // \n set_of_forks_and_knives = new Weapon(\"Set of forks and knives\",\"This weapon is a set of silver forks and silver knives\",2,40);\n kitchen.addItem(set_of_forks_and_knives);\n \n // items in bedroom //\n Item disk = new Item(\"Disk\",\"This disk can be used with the gramophone\");\n bedroom.addItem(disk);\n \n Potion potion3HP = new Potion (\"Potion3HP\",\"This potions gives 3 HP to the player\",3);\n bedroom.addItem(potion3HP);\n \n Item money = new Item(\"Money\",\"You find 60 pounds\");\n bedroom.addItem(money);\n \n // items in the library //\n Item book = new Item(\"Book\",\"The title book is 'The best human friend : the cat'\");\n library.addItem(book);\n \n // items in laboratory //\n Exit exit_from_corridor_to_attic = new Exit(\"up\",corridor,false, null);\n Keys attickey = new Keys(\"Attic key\",\"This key is a shaped bone from a squeletor\", exit_from_corridor_to_attic); \n laboratory.addItem(attickey);\n \n Item construction_drawing = new Item(\"Construction drawing\",\"You find construction drawings. Mr Taylor planed to dig really deeply to the east of the gardener hut\");\n laboratory.addItem(construction_drawing);\n \n //items in garden //\n Weapon fork = new Weapon(\"Fork\",\"This fork is green and brown\",3,50);\n garden.addItem(fork);\n \n Potion apple = new Potion(\"Apple\",\"This apples gives you 2 HP\",2);\n garden.addItem(apple);\n \n // items in gardenerhut //\n \n Item pliers = new Item(\"Pliers\",\"You can cut a chain with this object\");\n gardenerhut.addItem(pliers);\n \n Item ritual_cape = new Item(\"Ritual cape\",\"You find a black ritual cape. It is very strange !\");\n gardenerhut.addItem(ritual_cape);\n \n Item necklace_black_1 = new Item(\"Necklace\",\"You find a very strange necklace ! It is a black rond necklace with the same symbol than in the ritual cape\");\n gardenerhut.addItem(necklace_black_1);\n \n //items in anteroom //\n \n Potion potion4HP = new Potion(\"Potion4HP\",\"This potion gives 4 HP to the player\",4);\n anteroom.addItem(potion4HP);\n \n Weapon sword = new Weapon(\"Sword\",\"A really sharp sword\",6,70);\n anteroom.addItem(sword);\n // items in ritual room //\n \n Item red_ritual_cape = new Item(\"Red ritual cape\", \"This is a ritual cape such as in the gardener hut but this one is red. There are some blond curly hairs\");\n ritualroom.addItem(red_ritual_cape);\n \n Item black_ritual_cape_1 = new Item(\"Black ritual cape\",\"This is a black ritual cape\");\n ritualroom.addItem(black_ritual_cape_1);\n \n Item black_ritual_cape_2 = new Item (\"Black ritual cape\",\"Another black ritual cape\");\n ritualroom.addItem(black_ritual_cape_2);\n \n }", "public void execute() {\n\t\tif(p.getType().equals(\"Manufacturing\")) {\n\t\t\tArrayList<Item> items = DatabaseSupport.getItems();\n\t\t\tIterator<Item> it = items.iterator();\n\t\t\tItem i;\n\t\t\twhile(it.hasNext()) {\n\t\t\t\ti = it.next();\n\t\t\t\tint a = InputController.promptInteger(\"How many \"+i.getName()+\" were manufactured? (0 for none)\", 0, Integer.MAX_VALUE);\n\t\t\t\tif(a>0) {\n\t\t\t\t\tWarehouseFloorItem n = p.getFloorItemByItem(i);\n\t\t\t\t\tif(n==null) {\n\t\t\t\t\t\tString newFloorLocation = InputController.promptString(\"This item does not have a floor location.\\nPlease specify a new one for this item.\");\n\t\t\t\t\t\tp.addFloorLocation(new WarehouseFloorItem(newFloorLocation, i, a));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tn.setQuantity(n.getQuantity()+a);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tArrayList<Shipment> shipments = DatabaseSupport.getIncomingOrders(p);\n\t\t\tif(shipments.size()>0) {\n\t\t\t\tIterator<Shipment> i;\n\t\t\t\tint k = -1;\n\t\t\t\tShipment a;\n\t\t\t\twhile(k!=0) {\n\t\t\t\t\ti = shipments.iterator();\n\t\t\t\t\tk = 0;\n\t\t\t\t\twhile(i.hasNext()) {\n\t\t\t\t\t\ta = i.next();\n\t\t\t\t\t\tk++;\n\t\t\t\t\t\tSystem.out.println(k+\". \"+a.getShipmentID()+\" - \"+a.getOrderSize()+\" different items\");\n\t\t\t\t\t}\n\t\t\t\t\tk = InputController.promptInteger(\"Please enter the number next to the shipment ID to\\nselect a shipment to handle (0 to quit)\",0,shipments.size());\n\t\t\t\t\tif(k!=0) {\n\t\t\t\t\t\ta = shipments.get(k);\n\t\t\t\t\t\tIterator<ShipmentItem> b = a.getShipmentItems().iterator();\n\t\t\t\t\t\tShipmentItem c;\n\t\t\t\t\t\tString temp;\n\t\t\t\t\t\twhile(b.hasNext()) {\n\t\t\t\t\t\t\tc = b.next();\n\t\t\t\t\t\t\tWarehouseFloorItem d = p.getFloorItemByItem(c.getItem());\n\t\t\t\t\t\t\tif(d==null) {\n\t\t\t\t\t\t\t\ttemp = InputController.promptString(c.getItem().getName()+\" does not have a floor location yet.\\nPlease input a floor location for it.\");\n\t\t\t\t\t\t\t\td = new WarehouseFloorItem(temp, c.getItem(),0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttemp = InputController.promptString(\"\\nItem: \"+c.getItem().getName()+\"\\nQuantity: \"+c.getQuantity()+\"\\n\\nPress enter once you are done loading this item.\");\n\t\t\t\t\t\t\td.setQuantity(d.getQuantity()+c.getQuantity());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tk=0;\n\t\t\t\t\t\ta.setShipped();\n\t\t\t\t\t\tSystem.out.println(\"\\nShipment \"+a.getShipmentID()+\" loaded successfully\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"There are no incoming shipments.\");\n\t\t\t}\n\t\t}\n\t}", "public void display_inventory() {\n\t\t// displays all identified crystals\n\t\tfor(int i = 0;i<maxInvSize;i++) {\n\t\t\tif(identifiedArray[i] != null) {\n\t\t\t\tcrystal_description(identifiedArray[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void initShop(){\n addCountToStorage(actionProduct.findProductByName(\"Jemeson\"), 3);\n addCountToStorage(actionProduct.findProductByName(\"Red Label\"), 5);\n addCountToStorage(actionProduct.findProductByName(\"Burenka\"), 10);\n addCountToStorage(actionProduct.findProductByName(\"Kupyanskoe\"), 21);\n\n //add transaction\n int idxCustomer = actionCustomer.findCustomerByName(\"Perto\");\n int idxProduct = actionProduct.findProductByName(\"Burenka\");\n\n addTransaction(idxCustomer, idxProduct, getDate(-7), 1 , actionProduct.getPriceByIdx(idxProduct));\n\n idxProduct = actionProduct.findProductByName(\"white bread\");\n addTransaction(idxCustomer, idxProduct, getDate(-7), 1 , actionProduct.getPriceByIdx(idxProduct));\n\n idxCustomer = actionCustomer.findCustomerByName(\"Dmytro\");\n addTransaction(idxCustomer, idxProduct, getDate(-6), 2 , actionProduct.getPriceByIdx(idxProduct));\n\n idxProduct = actionProduct.findProductByName(\"burenka\");\n addTransaction(idxCustomer, idxProduct, getDate(-6), 2 , actionProduct.getPriceByIdx(idxProduct));\n\n\n }", "public void inventory() {\n\t\tList<Item> items = super.getItems();\n\n\t\tString retStr = \"Items: \";\n\t\tItem item;\n\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\titem = items.get(i);\n\t\t\tretStr += item.toString();\n\t\t\tif (i != items.size()-1)\n \t{\n\t\t\t\tretStr += \", \";\n \t}\n\t\t}\n\t\tretStr += \"\\nCapacity: \" + this.currentCapacity() + \"/\" + this.maxCapacity;\n\t\tSystem.out.println(retStr);\n\t}", "private static void customItems(ItemDefinition itemDef) {\n\n\t\tswitch (itemDef.id) {\n\n\t\tcase 11864:\n\t\tcase 11865:\n\t\tcase 19639:\n\t\tcase 19641:\n\t\tcase 19643:\n\t\tcase 19645:\n\t\tcase 19647:\n\t\tcase 19649:\n\t\tcase 23073:\n\t\tcase 23075:\n\t\t\titemDef.equipActions[2] = \"Log\";\n\t\t\titemDef.equipActions[1] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 13136:\n\t\t\titemDef.equipActions[2] = \"Elidinis\";\n\t\t\titemDef.equipActions[1] = \"Kalphite Hive\";\n\t\t\tbreak;\n\t\tcase 2550:\n\t\t\titemDef.equipActions[2] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 1712:\n\t\tcase 1710:\n\t\tcase 1708:\n\t\tcase 1706:\n\t\t\titemDef.equipActions[1] = \"Edgeville\";\n\t\t\titemDef.equipActions[2] = \"Karamja\";\n\t\t\titemDef.equipActions[3] = \"Draynor\";\n\t\t\titemDef.equipActions[4] = \"Al-Kharid\";\n\t\t\tbreak;\n\n\t\tcase 22000:\n\t\t\titemDef.name = \"Lava partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 22001:\n\t\t\titemDef.name = \"Infernal partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 2552:\n\t\tcase 2554:\n\t\tcase 2556:\n\t\tcase 2558:\n\t\tcase 2560:\n\t\tcase 2562:\n\t\tcase 2564:\n\t\tcase 2566: // Ring of duelling\n\t\t\titemDef.equipActions[2] = \"Shantay Pass\";\n\t\t\titemDef.equipActions[1] = \"Clan wars\";\n\t\t\tbreak;\n\n\t\tcase 21307:\n\t\t\titemDef.name = \"Pursuit crate\";\n\t\t\tbreak;\n\n\t\tcase 12792:\n\t\t\titemDef.name = \"Graceful recolor kit\";\n\t\t\tbreak;\n\n\t\tcase 12022:\n\t\t\titemDef.name = \"Bandos Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Bandos gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12024:\n\t\t\titemDef.name = \"Armadyl Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Armadyl gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12026:\n\t\t\titemDef.name = \"Saradomin Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Saradomin gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12028:\n\t\t\titemDef.name = \"Zamorak Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Zamorak gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 964:\n\t\t\titemDef.name = \"Pet Petie\";\n\t\t\tbreak;\n\n\t\tcase 20853:\n\t\t\titemDef.name = \"Deep Sea Bait\";\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\t/*\n\t\t * case 17014: itemDef.name = \"Dragon flail\"; itemDef.modelId = 50083;\n\t\t * itemDef.modelZoom = 1440; itemDef.modelRotation2 = 272;\n\t\t * itemDef.modelRotation1 = 352; itemDef.modelOffset1 = 32;\n\t\t * //itemDef.modelOffset2 = 0; itemDef.maleModel = 50083; itemDef.femaleModel =\n\t\t * 50083; itemDef.anInt164 = -1; itemDef.anInt188 = -1; itemDef.aByte205 = -8;\n\t\t * itemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t * itemDef.inventoryOptions = new String[] { \"Wear\", null, null, null, \"Drop\" };\n\t\t * itemDef.description = \"An Ancient Dragon Flail.\"; break;\n\t\t */\n\n\t\tcase 33272:\n\t\t\titemDef.name = \"Justiciar's Longsword\";\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modelId = 65472;\n\t\t\titemDef.modelZoom = 1726;\n\t\t\titemDef.modelRotation1 = 1576;\n\t\t\titemDef.modelRotation2 = 242;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\t// itemDef.anInt204 = 0;\n\t\t\t// itemDef.aByte205 = -12;\n\t\t\t// itemDef.aByte154 = 0;\n\t\t\titemDef.maleModel = 65465;\n\t\t\titemDef.femaleModel = 65465;\n\t\t\titemDef.description = \"An ancient longsword received from the Trial of Flames.\";\n\t\t\tbreak;\n\n\t\tcase 33168:\n\t\t\titemDef.name = \"Justiciar kiteshield\";\n\t\t\titemDef.modelId = 65471;\n\t\t\titemDef.modelZoom = 1600;\n\t\t\titemDef.modelRotation2 = 250;\n\t\t\titemDef.modelRotation1 = 300;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.maleModel = 65473;\n\t\t\titemDef.femaleModel = 65474;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An ancient kiteshield. Part of the Justiciar set.\";\n\t\t\tbreak;\n\n\t\tcase 2996:\n\t\t\titemDef.name = \"PKP Ticket\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"Exchange this for a PK Point.\";\n\t\t\tbreak;\n\t\tcase 13226:\n\t\t\titemDef.name = \"Herb Sack\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"A sack for storing grimy herbs.\";\n\t\t\tbreak;\n\t\tcase 13346:\n\t\t\titemDef.name = \"Raid Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Open for chances to receive Raid items & other awesome rewards.\";\n\t\t\tbreak;\n\t\tcase 8800:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 31624;\n\t\t\t// itemDef.stackAmounts = new int[] { 2, 3, 50, 100, 500000, 1000000, 2500000,\n\t\t\t// 10000000, 100000000, 0 };//amount the model will change at\n\t\t\t// itemDef.stackIDs = new int[] { 8801, 8802, 8803, 8804, 8805, 8806, 8807,\n\t\t\t// 8808, 8809, 0 };//new item id to grab the model from\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 853;\n\t\t\titemDef.modelRotation2 = 1885;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8801:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15344;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8802:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15345;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8803:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15346;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8804:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15347;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8805:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15348;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8806:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15349;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8807:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15350;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8808:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15351;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8809:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15352;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 15098:\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.description = \"A 100-sided dice.\";\n\t\t\titemDef.modelId = 31223;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation2 = 215;\n\t\t\titemDef.modelRotation1 = 94;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modelOffset1 = -18;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Public-roll\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.anInt196 = 15;\n\t\t\titemDef.anInt184 = 25;\n\t\t\tbreak;\n\n\t\tcase 32991:\n\t\t\titemDef.name = \"Divine spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with an divine sigil attached to it.\";\n\t\t\titemDef.modelId = 50001;\n\t\t\titemDef.maleModel = 50002;\n\t\t\titemDef.femaleModel = 50002;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32992:\n\t\t\titemDef.name = \"Rainbow spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with all 4 sigils attached to it.\";\n\t\t\titemDef.modelId = 50004;\n\t\t\titemDef.maleModel = 50005;\n\t\t\titemDef.femaleModel = 50005;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32993:\n\t\t\titemDef.name = \"Divine sigil\";\n\t\t\titemDef.description = \"A sigil in the shape of a divine symbol.\";\n\t\t\titemDef.modelId = 50003;\n\t\t\titemDef.modelZoom = 848;\n\t\t\titemDef.modelRotation1 = 267;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33060:\n\t\t\titemDef.name = \"Barrows Sword\";\n\t\t\titemDef.description = \"A sword glowing with otherworldy energy.\";\n\t\t\titemDef.modelId = 22325;\n\t\t\titemDef.maleModel = 50010;\n\t\t\titemDef.femaleModel = 50010;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32994:\n\t\t\titemDef.name = \"Statius's platebody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42602;\n\t\t\titemDef.maleModel = 35951;\n\t\t\titemDef.femaleModel = 35964;\n\t\t\titemDef.modelZoom = 1312;\n\t\t\titemDef.modelRotation1 = 272;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 39;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32995:\n\t\t\titemDef.name = \"Statius's platelegs\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42590;\n\t\t\titemDef.maleModel = 35947;\n\t\t\titemDef.femaleModel = 35961;\n\t\t\titemDef.modelZoom = 1625;\n\t\t\titemDef.modelRotation1 = 355;\n\t\t\titemDef.modelRotation2 = 2046;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32996:\n\t\t\titemDef.name = \"Statius's full helm\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42596;\n\t\t\titemDef.maleModel = 35943;\n\t\t\titemDef.femaleModel = 35958;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 2039;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32997:\n\t\t\titemDef.name = \"Statius's warhammer\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42577;\n\t\t\titemDef.maleModel = 35968;\n\t\t\titemDef.femaleModel = 35968;\n\t\t\titemDef.modelZoom = 1360;\n\t\t\titemDef.modelRotation1 = 507;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32998:\n\t\t\titemDef.name = \"Vesta's chainbody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42593;\n\t\t\titemDef.maleModel = 35953;\n\t\t\titemDef.femaleModel = 35965;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32999:\n\t\t\titemDef.name = \"Vesta's plateskirt\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42581;\n\t\t\titemDef.maleModel = 35950;\n\t\t\titemDef.femaleModel = 35960;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33000:\n\t\t\titemDef.name = \"Vesta's longsword\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42597;\n\t\t\titemDef.maleModel = 35969;\n\t\t\titemDef.femaleModel = 35969;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 738;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33001:\n\t\t\titemDef.name = \"Vesta's spear\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42599;\n\t\t\titemDef.maleModel = 35973;\n\t\t\titemDef.femaleModel = 35973;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 480;\n\t\t\titemDef.modelRotation2 = 15;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33002:\n\t\t\titemDef.name = \"Morrigan's leather body\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42578;\n\t\t\titemDef.maleModel = 35954;\n\t\t\titemDef.femaleModel = 35963;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33003:\n\t\t\titemDef.name = \"Morrigan's leather chaps\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42603;\n\t\t\titemDef.maleModel = 35948;\n\t\t\titemDef.femaleModel = 35959;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 482;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33004:\n\t\t\titemDef.name = \"Morrigan's coif\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42583;\n\t\t\titemDef.maleModel = 35945;\n\t\t\titemDef.femaleModel = 35956;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 537;\n\t\t\titemDef.modelRotation2 = 5;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33005:\n\t\t\titemDef.name = \"Morrigan's javelin\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42592;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42613;\n\t\t\titemDef.femaleModel = 42613;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 282;\n\t\t\titemDef.modelRotation2 = 2009;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33006:\n\t\t\titemDef.name = \"Morrigan's throwing axe\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42582;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42611;\n\t\t\titemDef.femaleModel = 42611;\n\t\t\titemDef.modelZoom = 976;\n\t\t\titemDef.modelRotation1 = 672;\n\t\t\titemDef.modelRotation2 = 2024;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33007:\n\t\t\titemDef.name = \"Zuriels robe top\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42591;\n\t\t\titemDef.maleModel = 35952;\n\t\t\titemDef.femaleModel = 35966;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 373;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33008:\n\t\t\titemDef.name = \"Zuriels robe bottom\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42588;\n\t\t\titemDef.maleModel = 35949;\n\t\t\titemDef.femaleModel = 35962;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33009:\n\t\t\titemDef.name = \"Zuriels hood\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42604;\n\t\t\titemDef.maleModel = 35944;\n\t\t\titemDef.femaleModel = 35957;\n\t\t\titemDef.modelZoom = 720;\n\t\t\titemDef.modelRotation1 = 28;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33010:\n\t\t\titemDef.name = \"Zuriels staff\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42595;\n\t\t\titemDef.maleModel = 35971;\n\t\t\titemDef.femaleModel = 35971;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 366;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33011:\n\t\t\titemDef.name = \"Craw's bow (u)\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35768;\n\t\t\titemDef.femaleModel = 35768;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33012:\n\t\t\titemDef.name = \"Craw's bow\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35769;\n\t\t\titemDef.femaleModel = 35769;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33013:\n\t\t\titemDef.name = \"Thammaron's sceptre (u)\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35772;\n\t\t\titemDef.femaleModel = 35772;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33014:\n\t\t\titemDef.name = \"Thammaron's sceptre\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35773;\n\t\t\titemDef.femaleModel = 35773;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33015:\n\t\t\titemDef.name = \"Viggora's chainmace (u)\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35770;\n\t\t\titemDef.femaleModel = 35770;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33016:\n\t\t\titemDef.name = \"Viggora's chainmace\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35771;\n\t\t\titemDef.femaleModel = 35771;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33018:\n\t\t\titemDef.name = \"Amulet of avarice\";\n\t\t\titemDef.description = \"A hauntingly beautiful amulet bearing the shape of a skull.\";\n\t\t\titemDef.modelId = 35779;\n\t\t\titemDef.maleModel = 35766;\n\t\t\titemDef.femaleModel = 35766;\n\t\t\titemDef.modelZoom = 420;\n\t\t\titemDef.modelRotation1 = 191;\n\t\t\titemDef.modelRotation2 = 86;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33019:\n\t\t\titemDef.name = \"Completionist cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65270;\n\t\t\titemDef.maleModel = 65297;\n\t\t\titemDef.femaleModel = 65316;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33020:\n\t\t\titemDef.name = \"Completionist cape (t)\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65258;\n\t\t\titemDef.maleModel = 65295;\n\t\t\titemDef.femaleModel = 65328;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33021:\n\t\t\titemDef.name = \"Torva full helm\";\n\t\t\titemDef.description = \"An ancient warrior's full helm.\";\n\t\t\titemDef.modelId = 62714;\n\t\t\titemDef.maleModel = 62738;\n\t\t\titemDef.femaleModel = 62738;\n\t\t\titemDef.modelZoom = 672;\n\t\t\titemDef.modelRotation1 = 85;\n\t\t\titemDef.modelRotation2 = 1867;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33022:\n\t\t\titemDef.name = \"Torva platebody\";\n\t\t\titemDef.description = \"An ancient warrior's platebody.\";\n\t\t\titemDef.modelId = 62699;\n\t\t\titemDef.maleModel = 62746;\n\t\t\titemDef.femaleModel = 62746;\n\t\t\titemDef.modelZoom = 1506;\n\t\t\titemDef.modelRotation1 = 473;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33023:\n\t\t\titemDef.name = \"Torva platelegs\";\n\t\t\titemDef.description = \"An ancient warrior's platelegs.\";\n\t\t\titemDef.modelId = 62701;\n\t\t\titemDef.maleModel = 62740;\n\t\t\titemDef.femaleModel = 62740;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 474;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33024:\n\t\t\titemDef.name = \"Pernix cowl\";\n\t\t\titemDef.description = \"An ancient warrior's cowl.\";\n\t\t\titemDef.modelId = 62693;\n\t\t\titemDef.maleModel = 62739;\n\t\t\titemDef.femaleModel = 62739;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 532;\n\t\t\titemDef.modelRotation2 = 14;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33025:\n\t\t\titemDef.name = \"Pernix body\";\n\t\t\titemDef.description = \"An ancient warrior's leather body.\";\n\t\t\titemDef.modelId = 62709;\n\t\t\titemDef.maleModel = 62744;\n\t\t\titemDef.femaleModel = 62744;\n\t\t\titemDef.modelZoom = 1378;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33026:\n\t\t\titemDef.name = \"Pernix chaps\";\n\t\t\titemDef.description = \"An ancient warrior's chaps.\";\n\t\t\titemDef.modelId = 62695;\n\t\t\titemDef.maleModel = 62741;\n\t\t\titemDef.femaleModel = 62741;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 504;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33027:\n\t\t\titemDef.name = \"Virtus mask\";\n\t\t\titemDef.description = \"An ancient warrior's mask.\";\n\t\t\titemDef.modelId = 62710;\n\t\t\titemDef.maleModel = 62736;\n\t\t\titemDef.femaleModel = 62736;\n\t\t\titemDef.modelZoom = 928;\n\t\t\titemDef.modelRotation1 = 406;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33028:\n\t\t\titemDef.name = \"Virtus robe top\";\n\t\t\titemDef.description = \"An ancient warrior's robe top.\";\n\t\t\titemDef.modelId = 62704;\n\t\t\titemDef.maleModel = 62748;\n\t\t\titemDef.femaleModel = 62748;\n\t\t\titemDef.modelZoom = 1122;\n\t\t\titemDef.modelRotation1 = 488;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33029:\n\t\t\titemDef.name = \"Virtus robe legs\";\n\t\t\titemDef.description = \"An ancient warrior's robe legs.\";\n\t\t\titemDef.modelId = 62700;\n\t\t\titemDef.maleModel = 62742;\n\t\t\titemDef.femaleModel = 62742;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33030:\n\t\t\titemDef.name = \"Zaryte bow\";\n\t\t\titemDef.description = \"An ancient warrior's bow.\";\n\t\t\titemDef.modelId = 62692;\n\t\t\titemDef.maleModel = 62750;\n\t\t\titemDef.femaleModel = 62750;\n\t\t\titemDef.modelZoom = 1703;\n\t\t\titemDef.modelRotation1 = 221;\n\t\t\titemDef.modelRotation2 = 404;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33083:\n\t\t\titemDef.name = \"Tokhaar-kal\";\n\t\t\titemDef.description = \"\tA cape made of ancient, enchanted obsidian.\";\n\t\t\titemDef.modelId = 52073;\n\t\t\titemDef.maleModel = 52072;\n\t\t\titemDef.femaleModel = 52071;\n\t\t\titemDef.modelZoom = 1615;\n\t\t\titemDef.modelRotation1 = 339;\n\t\t\titemDef.modelRotation2 = 192;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33089:\n\t\t\titemDef.name = \"Chaotic maul\";\n\t\t\titemDef.description = \"A maul used to claim life from those who don't deserve it.\";\n\t\t\titemDef.modelId = 54286;\n\t\t\titemDef.maleModel = 56294;\n\t\t\titemDef.femaleModel = 56294;\n\t\t\titemDef.modelZoom = 1447;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33094:\n\t\t\titemDef.name = \"Chaotic crossbow\";\n\t\t\titemDef.description = \"A small crossbow, only effective at short distance.\";\n\t\t\titemDef.modelId = 54331;\n\t\t\titemDef.maleModel = 56307;\n\t\t\titemDef.femaleModel = 56307;\n\t\t\titemDef.modelZoom = 1028;\n\t\t\titemDef.modelRotation1 = 249;\n\t\t\titemDef.modelRotation2 = 2021;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -54;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33095:\n\t\t\titemDef.name = \"Chaotic staff\";\n\t\t\titemDef.description = \"This staff makes destructive spells more powerful.\";\n\t\t\titemDef.modelId = 54367;\n\t\t\titemDef.maleModel = 56286;\n\t\t\titemDef.femaleModel = 56286;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33096:\n\t\t\titemDef.name = \"Chaotic kiteshield\";\n\t\t\titemDef.description = \"A large metal shield.\";\n\t\t\titemDef.modelId = 54358;\n\t\t\titemDef.maleModel = 56038;\n\t\t\titemDef.femaleModel = 56038;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 276;\n\t\t\titemDef.modelRotation2 = 1101;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33031:\n\t\t\titemDef.name = \"Chaotic rapier\";\n\t\t\titemDef.description = \"A razor-sharp rapier.\";\n\t\t\titemDef.modelId = 54197;\n\t\t\titemDef.maleModel = 56252;\n\t\t\titemDef.femaleModel = 56252;\n\t\t\titemDef.modelZoom = 1425;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 1370;\n\t\t\titemDef.modelOffset1 = 9;\n\t\t\titemDef.modelOffset2 = 13;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33032:\n\t\t\titemDef.name = \"Chaotic longsword\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 54204;\n\t\t\titemDef.maleModel = 56237;\n\t\t\titemDef.femaleModel = 56237;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33097:\n\t\t\titemDef.name = \"Sword of Onyxia\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 53091;\n\t\t\titemDef.maleModel = 53092;\n\t\t\titemDef.femaleModel = 53092;\n\t\t\titemDef.modelZoom = 2007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33098:\n\t\t\titemDef.name = \"Onyxia longsword\";\n\t\t\titemDef.description = \"A razor-sharp 2h sword.\";\n\t\t\titemDef.modelId = 53093;\n\t\t\titemDef.maleModel = 53094;\n\t\t\titemDef.femaleModel = 53094;\n\t\t\titemDef.modelZoom = 4007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33099:\n\t\t\titemDef.name = \"White scimitar\";\n\t\t\titemDef.description = \"A razor-sharp scimitar.\";\n\t\t\titemDef.modelId = 53097;\n\t\t\titemDef.maleModel = 53098;\n\t\t\titemDef.femaleModel = 53098;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 312;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33100:\n\t\t\titemDef.name = \"White kiteshield\";\n\t\t\titemDef.description = \"a heavy kiteshield.\";\n\t\t\titemDef.modelId = 53095;\n\t\t\titemDef.maleModel = 53096;\n\t\t\titemDef.femaleModel = 53096;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 303;\n\t\t\titemDef.modelRotation2 = 180;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33033:\n\t\t\titemDef.name = \"Agility master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 677, 801, 43540, 43543, 43546, 43549, 43550, 43552, 43554, 43558,\n\t\t\t\t\t43560, 43575 };\n\t\t\titemDef.modelId = 50030;\n\t\t\titemDef.maleModel = 50031;\n\t\t\titemDef.femaleModel = 50031;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33034:\n\t\t\titemDef.name = \"Attack master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 7104, 9151, 911, 914, 917, 920, 921, 923, 925, 929, 931, 946 };\n\t\t\titemDef.modelId = 50032;\n\t\t\titemDef.maleModel = 50033;\n\t\t\titemDef.femaleModel = 50033;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33035:\n\t\t\titemDef.name = \"Construction master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6061, 5945, 6327, 6330, 6333, 6336, 6337, 6339, 6341, 6345, 6347,\n\t\t\t\t\t6362 };\n\t\t\titemDef.modelId = 50034;\n\t\t\titemDef.maleModel = 50035;\n\t\t\titemDef.femaleModel = 50035;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33036:\n\t\t\titemDef.name = \"Cooking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 920, 920, 51856, 51859, 51862, 51865, 51866, 51868, 51870, 51874,\n\t\t\t\t\t51876, 51891 };\n\t\t\titemDef.modelId = 50036;\n\t\t\titemDef.maleModel = 50037;\n\t\t\titemDef.femaleModel = 50037;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33037:\n\t\t\titemDef.name = \"Crafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9142, 9152, 4511, 4514, 4517, 4520, 4521, 4523, 4525, 4529, 4531,\n\t\t\t\t\t4546 };\n\t\t\titemDef.modelId = 50038;\n\t\t\titemDef.maleModel = 50039;\n\t\t\titemDef.femaleModel = 50039;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33038:\n\t\t\titemDef.name = \"Defence master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 10460, 10473, 41410, 41413, 41416, 41419, 41420, 41422, 41424,\n\t\t\t\t\t41428, 41430, 41445 };\n\t\t\titemDef.modelId = 50040;\n\t\t\titemDef.maleModel = 50041;\n\t\t\titemDef.femaleModel = 50041;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33039:\n\t\t\titemDef.name = \"Farming master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 14775, 14792, 22026, 22029, 22032, 22035, 22036, 22038, 22040,\n\t\t\t\t\t22044, 22046, 22061 };\n\t\t\titemDef.modelId = 50042;\n\t\t\titemDef.maleModel = 50043;\n\t\t\titemDef.femaleModel = 50043;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33040:\n\t\t\titemDef.name = \"Firemaking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8125, 9152, 4015, 4018, 4021, 4024, 4025, 4027, 4029, 4033, 4035,\n\t\t\t\t\t4050 };\n\t\t\titemDef.modelId = 50044;\n\t\t\titemDef.maleModel = 50045;\n\t\t\titemDef.femaleModel = 50045;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33041:\n\t\t\titemDef.name = \"Fishing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9144, 9152, 38202, 38205, 38208, 38211, 38212, 38214, 38216,\n\t\t\t\t\t38220, 38222, 38237 };\n\t\t\titemDef.modelId = 50046;\n\t\t\titemDef.maleModel = 50047;\n\t\t\titemDef.femaleModel = 50047;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33042:\n\t\t\titemDef.name = \"Fletching master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6067, 9152, 33670, 33673, 33676, 33679, 33680, 33682, 33684,\n\t\t\t\t\t33688, 33690, 33705 };\n\t\t\titemDef.modelId = 50048;\n\t\t\titemDef.maleModel = 50049;\n\t\t\titemDef.femaleModel = 50049;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33043:\n\t\t\titemDef.name = \"Herblore master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9145, 9156, 22414, 22417, 22420, 22423, 22424, 22426, 22428,\n\t\t\t\t\t22432, 22434, 22449 };\n\t\t\titemDef.modelId = 50050;\n\t\t\titemDef.maleModel = 50051;\n\t\t\titemDef.femaleModel = 50051;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33044:\n\t\t\titemDef.name = \"Hitpoints master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 818, 951, 8291, 8294, 8297, 8300, 8301, 8303, 8305, 8309, 8311,\n\t\t\t\t\t8319 };\n\t\t\titemDef.modelId = 50052;\n\t\t\titemDef.maleModel = 50053;\n\t\t\titemDef.femaleModel = 50053;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\titemDef.femaleOffset = 4;\n\t\t\tbreak;\n\t\tcase 33045:\n\t\t\titemDef.name = \"Hunter master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 5262, 6020, 8472, 8475, 8478, 8481, 8482, 8484, 8486, 8490, 8492,\n\t\t\t\t\t8507 };\n\t\t\titemDef.modelId = 50054;\n\t\t\titemDef.maleModel = 50055;\n\t\t\titemDef.femaleModel = 50055;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33046:\n\t\t\titemDef.name = \"Magic master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 43569, 43685, 6336, 6339, 6342, 6345, 6346, 6348, 6350, 6354,\n\t\t\t\t\t6356, 6371 };\n\t\t\titemDef.modelId = 50056;\n\t\t\titemDef.maleModel = 50057;\n\t\t\titemDef.femaleModel = 50057;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33047:\n\t\t\titemDef.name = \"Mining master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 36296, 36279, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50058;\n\t\t\titemDef.maleModel = 50059;\n\t\t\titemDef.femaleModel = 50059;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33048:\n\t\t\titemDef.name = \"Prayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9163, 9168, 117, 120, 123, 126, 127, 127, 127, 127, 127, 127 };\n\t\t\titemDef.modelId = 50060;\n\t\t\titemDef.maleModel = 50061;\n\t\t\titemDef.femaleModel = 50061;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33049:\n\t\t\titemDef.name = \"Range master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 3755, 3998, 15122, 15125, 15128, 15131, 15132, 15134, 15136,\n\t\t\t\t\t15140, 15142, 15157 };\n\t\t\titemDef.modelId = 50062;\n\t\t\titemDef.maleModel = 50063;\n\t\t\titemDef.femaleModel = 50063;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33050:\n\t\t\titemDef.name = \"Runecrafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9152, 8128, 10318, 10321, 10324, 10327, 10328, 10330, 10332,\n\t\t\t\t\t10336, 10338, 10353 };\n\t\t\titemDef.modelId = 50064;\n\t\t\titemDef.maleModel = 50065;\n\t\t\titemDef.femaleModel = 50065;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33051:\n\t\t\titemDef.name = \"Slayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811 };\n\t\t\titemDef.originalModelColors = new int[] { 912, 920 };\n\t\t\titemDef.modelId = 50066;\n\t\t\titemDef.maleModel = 50067;\n\t\t\titemDef.femaleModel = 50067;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33052:\n\t\t\titemDef.name = \"Smithing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8115, 9148, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50068;\n\t\t\titemDef.maleModel = 50069;\n\t\t\titemDef.femaleModel = 50069;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33053:\n\t\t\titemDef.name = \"Strength master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 931, 27538, 27541, 27544, 27547, 27548, 27550, 27552, 27556,\n\t\t\t\t\t27558, 27573 };\n\t\t\titemDef.modelId = 50070;\n\t\t\titemDef.maleModel = 50071;\n\t\t\titemDef.femaleModel = 50071;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33054:\n\t\t\titemDef.name = \"Thieving master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 11, 0, 58779, 58782, 58785, 58788, 58789, 57891, 58793, 58797,\n\t\t\t\t\t58799, 58814 };\n\t\t\titemDef.modelId = 50072;\n\t\t\titemDef.maleModel = 50073;\n\t\t\titemDef.femaleModel = 50073;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33055:\n\t\t\titemDef.name = \"Woodcutting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 25109, 24088, 6693, 6696, 6699, 6702, 6703, 6705, 6707, 6711,\n\t\t\t\t\t6713, 6728 };\n\t\t\titemDef.modelId = 50074;\n\t\t\titemDef.maleModel = 50075;\n\t\t\titemDef.femaleModel = 50075;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33057:\n\t\t\titemDef.name = \"Abyssal Scythe\";\n\t\t\titemDef.description = \"\tA Scythe recieved from the Trials of Xeric CUSTOM RAID.\";\n\t\t\titemDef.modelId = 50081;\n\t\t\titemDef.maleModel = 50080;\n\t\t\titemDef.femaleModel = 50080;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33090:\n\t\t\titemDef.name = \"Goliath gloves (Black)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50100;\n\t\t\titemDef.femaleModel = 50101;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33091:\n\t\t\titemDef.name = \"Goliath gloves (Red)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50102;\n\t\t\titemDef.femaleModel = 50103;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33092:\n\t\t\titemDef.name = \"Goliath gloves (White)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50104;\n\t\t\titemDef.femaleModel = 50105;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33093:\n\t\t\titemDef.name = \"Goliath gloves (Yellow)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50106;\n\t\t\titemDef.femaleModel = 50107;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 12639:\n\t\tcase 12637:\n\t\tcase 12638:\n\t\t\titemDef.description = \"Provides players with infinite run energy!\";\n\t\t\tbreak;\n\t\tcase 33056:\n\t\t\titemDef.name = \"Events cape (slayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 0, 0, 0, 0 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33081:\n\t\t\titemDef.name = \"Events cape (agility)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 669, 43430, 43430, 43430, 43430 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33080:\n\t\t\titemDef.name = \"Events cape (attack)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9926, 1815, 1815, 1815, 1815 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33059:\n\t\t\titemDef.name = \"Events cape (construction)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6967, 6343, 6343, 6343, 6343 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33061:\n\t\t\titemDef.name = \"Events cape (cooking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 49685, 49685, 49685, 49685 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33062:\n\t\t\titemDef.name = \"Events cape (crafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 7994, 4516, 4516, 4516, 4516 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33063:\n\t\t\titemDef.name = \"Events cape (defence)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 39367, 10472, 10472, 10472, 10472 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33064:\n\t\t\titemDef.name = \"Events cape (farming)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10698, 19734, 19734, 19734, 19734 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33065:\n\t\t\titemDef.name = \"Events cape (firemaking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10059, 4922, 4922, 4922, 4922 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33066:\n\t\t\titemDef.name = \"Events cape (fishing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 36165, 36165, 36165, 36165 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33067:\n\t\t\titemDef.name = \"Events cape (fletching)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 31500, 31500, 31500, 31500 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33068:\n\t\t\titemDef.name = \"Events cape (herblore)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10051, 20889, 20889, 20889, 20889 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33069:\n\t\t\titemDef.name = \"Events cape (hitpoints)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1836, 8296, 8296, 8296, 8296 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33070:\n\t\t\titemDef.name = \"Events cape (hunter)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6916, 8477, 8477, 8477, 8477 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33071:\n\t\t\titemDef.name = \"Events cape (magic)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 43556, 6339, 6339, 6339, 6339 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33072:\n\t\t\titemDef.name = \"Events cape (mining)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 34111, 10391, 10391, 10391, 10391 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33073:\n\t\t\titemDef.name = \"Events cape (prayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9927, 2169, 2169, 2169, 2169 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33074:\n\t\t\titemDef.name = \"Events cape (range)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 3626, 20913, 20913, 20913, 20913 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33075:\n\t\t\titemDef.name = \"Events cape (runecrafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 10323, 10323, 10323, 10323 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33076:\n\t\t\titemDef.name = \"Events cape (smithing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10044, 5412, 5412, 5412, 5412 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33077:\n\t\t\titemDef.name = \"Events cape (strength)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 30487, 30487, 30487, 30487 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33078:\n\t\t\titemDef.name = \"Events cape (thieveing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 8, 57636, 57636, 57636, 57636 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33079:\n\t\t\titemDef.name = \"Events cape (woodcutting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 26007, 6570, 6570, 6570, 6570 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33101:\n\t\t\titemDef.name = \"Vorkath platebody\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53100;\n\t\t\titemDef.maleModel = 53099;\n\t\t\titemDef.femaleModel = 53099;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33102:\n\t\t\titemDef.name = \"Vorkath platelegs\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53102;\n\t\t\titemDef.maleModel = 53101;\n\t\t\titemDef.femaleModel = 53101;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33103:\n\t\t\titemDef.name = \"Vorkath boots\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33104:\n\t\t\titemDef.name = \"Vorkath gloves\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33105:\n\t\t\titemDef.name = \"Vorkath helmet\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53108;\n\t\t\titemDef.maleModel = 53107;\n\t\t\titemDef.femaleModel = 53107;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33106:\n\t\t\titemDef.name = \"Tekton helmet\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53118;\n\t\t\titemDef.maleModel = 53117;\n\t\t\titemDef.femaleModel = 53117;\n\t\t\titemDef.modelZoom = 724;\n\t\t\titemDef.modelRotation1 = 81;\n\t\t\titemDef.modelRotation2 = 1670;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33107:\n\t\t\titemDef.name = \"Tekton platebody\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53110;\n\t\t\titemDef.maleModel = 53109;\n\t\t\titemDef.femaleModel = 53109;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33108:\n\t\t\titemDef.name = \"Tekton platelegs\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53112;\n\t\t\titemDef.maleModel = 53111;\n\t\t\titemDef.femaleModel = 53111;\n\t\t\titemDef.modelZoom = 1550;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 186;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33109:\n\t\t\titemDef.name = \"Tekton gloves\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53116;\n\t\t\titemDef.maleModel = 53115;\n\t\t\titemDef.femaleModel = 53115;\n\t\t\titemDef.modelZoom = 830;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33110:\n\t\t\titemDef.name = \"Tekton boots\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53114;\n\t\t\titemDef.maleModel = 53113;\n\t\t\titemDef.femaleModel = 53113;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33111:\n\t\t\titemDef.name = \"Anti-santa scythe\";\n\t\t\titemDef.description = \"Legend says this is the biggest arse scratcher around.\";\n\t\t\titemDef.modelId = 57002;\n\t\t\titemDef.maleModel = 57001;\n\t\t\titemDef.femaleModel = 57001;\n\t\t\titemDef.modelZoom = 3224;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 714;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33112:\n\t\t\titemDef.name = \"Dominion staff\";\n\t\t\titemDef.description = \"Dominion staff.\";\n\t\t\titemDef.modelId = 59029;\n\t\t\titemDef.maleModel = 59305;\n\t\t\titemDef.femaleModel = 59305;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33113:\n\t\t\titemDef.name = \"Dominion sword\";\n\t\t\titemDef.description = \"Dominion sword.\";\n\t\t\titemDef.modelId = 59832;\n\t\t\titemDef.maleModel = 59306;\n\t\t\titemDef.femaleModel = 59306;\n\t\t\titemDef.modelZoom = 1829;\n\t\t\titemDef.modelRotation1 = 513;\n\t\t\titemDef.modelRotation2 = 546;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33114:\n\t\t\titemDef.name = \"Dominion crossbow\";\n\t\t\titemDef.description = \"Dominion crossbow.\";\n\t\t\titemDef.modelId = 59839;\n\t\t\titemDef.maleModel = 59304;\n\t\t\titemDef.femaleModel = 59304;\n\t\t\titemDef.modelZoom = 1490;\n\t\t\titemDef.modelRotation1 = 362;\n\t\t\titemDef.modelRotation2 = 791;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33115:\n\t\t\titemDef.name = \"Dragonfire Shield (e)\";\n\t\t\titemDef.description = \"unamed shield.\";\n\t\t\titemDef.modelId = 53120;\n\t\t\titemDef.maleModel = 53119;\n\t\t\titemDef.femaleModel = 53119;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 123;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[] { null, \"Wear\", \"Inspect\", \"Empty\", \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33116:\n\t\t\titemDef.name = \"Zilyana's longbow\";\n\t\t\titemDef.description = \"A bow belonged to Zilyana.\";\n\t\t\titemDef.modelId = 53122;\n\t\t\titemDef.maleModel = 53121;\n\t\t\titemDef.femaleModel = 53121;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33117:\n\t\t\titemDef.name = \"Black dragon hunter crossbow\";\n\t\t\titemDef.description = \"Black dragon hunter crossbow.\";\n\t\t\titemDef.modelId = 53124;\n\t\t\titemDef.maleModel = 53123;\n\t\t\titemDef.femaleModel = 53123;\n\t\t\titemDef.modelZoom = 1554;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33118:\n\t\t\titemDef.name = \"Vorkath blowpipe\";\n\t\t\titemDef.description = \"Vorkath blowpipe.\";\n\t\t\titemDef.modelId = 53126;\n\t\t\titemDef.maleModel = 53125;\n\t\t\titemDef.femaleModel = 53125;\n\t\t\titemDef.modelZoom = 1158;\n\t\t\titemDef.modelRotation1 = 768;\n\t\t\titemDef.modelRotation2 = 189;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33119:\n\t\t\titemDef.name = \"Superior twisted bow\";\n\t\t\titemDef.description = \"An upgraded twisted bow.\";\n\t\t\titemDef.modelId = 53128;\n\t\t\titemDef.maleModel = 53127;\n\t\t\titemDef.femaleModel = 53127;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\t\tcase 33123:\n\t\t\titemDef.name = \"Staff of sliske\";\n\t\t\titemDef.description = \"Staff of sliske.\";\n\t\t\titemDef.modelId = 59234;\n\t\t\titemDef.maleModel = 59233;\n\t\t\titemDef.femaleModel = 59233;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33124:\n\t\t\titemDef.name = \"Twisted crossbow\";\n\t\t\titemDef.description = \"Twisted crossbow.\";\n\t\t\titemDef.modelId = 62777;\n\t\t\titemDef.maleModel = 62776;\n\t\t\titemDef.femaleModel = 62776;\n\t\t\titemDef.modelZoom = 926;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33125:\n\t\t\titemDef.name = \"Present\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 24410 };\n\t\t\titemDef.description = \"Santa's stolen present\";\n\t\t\tbreak;\n\t\tcase 33126:\n\t\t\titemDef.name = \"Christmas tree branch\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2412;\n\t\t\titemDef.modelZoom = 940;\n\t\t\titemDef.modelRotation1 = 268;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -21;\n\t\t\titemDef.modifiedModelColors = new int[] { 11144 };\n\t\t\titemDef.originalModelColors = new int[] { 6047 };\n\t\t\titemDef.description = \"Enter examine here.\";\n\t\t\tbreak;\n\t\tcase 33127:\n\t\t\titemDef.name = \"Kbd gloves\";\n\t\t\titemDef.description = \"Kbd gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33085 };\n\t\t\titemDef.originalModelColors = new int[] { 1060 };\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33128:\n\t\t\titemDef.name = \"Kbd boots\";\n\t\t\titemDef.description = \"Kbd boots.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33198, 33202, 33206, 33215, 33210 };\n\t\t\titemDef.originalModelColors = new int[] { 1060, 1061, 1063, 1064, 1065 };\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33129:\n\t\t\titemDef.name = \"Kbd platelegs\";\n\t\t\titemDef.description = \"Kbd platelegs.\";\n\t\t\titemDef.modelId = 59994;\n\t\t\titemDef.maleModel = 59995;\n\t\t\titemDef.femaleModel = 59995;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33130:\n\t\t\titemDef.name = \"Kbd platebody\";\n\t\t\titemDef.description = \"Kbd platebody.\";\n\t\t\titemDef.modelId = 59998;\n\t\t\titemDef.maleModel = 59999;\n\t\t\titemDef.femaleModel = 59999;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33131:\n\t\t\titemDef.name = \"Kbd helmet\";\n\t\t\titemDef.description = \"Kbd helmet.\";\n\t\t\titemDef.modelId = 59996;\n\t\t\titemDef.maleModel = 59997;\n\t\t\titemDef.femaleModel = 59997;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33132:\n\t\t\titemDef.name = \"Kbd cape\";\n\t\t\titemDef.description = \"Kbd cape.\";\n\t\t\titemDef.modelId = 59992;\n\t\t\titemDef.maleModel = 59993;\n\t\t\titemDef.femaleModel = 59993;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33133:\n\t\t\titemDef.name = \"Anti-imp pet\";\n\t\t\titemDef.description = \"Anti-imp pet.\";\n\t\t\titemDef.modelId = 45294;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33134:\n\t\t\titemDef.name = \"Anti-santa pet\";\n\t\t\titemDef.description = \"Anti-santa pet.\";\n\t\t\titemDef.modelId = 29030;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 1966;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33135:\n\t\t\titemDef.name = \"Bandos mask\";\n\t\t\titemDef.description = \"Bandos helmet.\";\n\t\t\titemDef.modelId = 59987;\n\t\t\titemDef.maleModel = 59991;\n\t\t\titemDef.femaleModel = 59991;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33136:\n\t\t\titemDef.name = \"Armadyl mask\";\n\t\t\titemDef.description = \"Armadyl mask.\";\n\t\t\titemDef.modelId = 59986;\n\t\t\titemDef.maleModel = 59990;\n\t\t\titemDef.femaleModel = 59990;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33137:\n\t\t\titemDef.name = \"Zamorak mask\";\n\t\t\titemDef.description = \"Zamorak mask.\";\n\t\t\titemDef.modelId = 59985;\n\t\t\titemDef.maleModel = 59989;\n\t\t\titemDef.femaleModel = 59989;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33138:\n\t\t\titemDef.name = \"Saradomin mask\";\n\t\t\titemDef.description = \"Saradomin mask.\";\n\t\t\titemDef.modelId = 59984;\n\t\t\titemDef.maleModel = 59988;\n\t\t\titemDef.femaleModel = 59988;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33139:\n\t\t\titemDef.name = \"Zamarok godbow\";\n\t\t\titemDef.description = \"Zamarok godbow.\";\n\t\t\titemDef.modelId = 60560;//60553\n\t\t\titemDef.maleModel = 60560;\n\t\t\titemDef.femaleModel = 60560;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33140:\n\t\t\titemDef.name = \"Saradomin godbow\";\n\t\t\titemDef.description = \"Saradomin godbow.\";\n\t\t\titemDef.modelId = 60555;\n\t\t\titemDef.maleModel = 60554;\n\t\t\titemDef.femaleModel = 60554;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33141:\n\t\t\titemDef.name = \"Bandos godbow\";\n\t\t\titemDef.description = \"Bandos godbow.\";\n\t\t\titemDef.modelId = 60559;\n\t\t\titemDef.maleModel = 60558;\n\t\t\titemDef.femaleModel = 60558;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33142:\n\t\t\titemDef.name = \"Fire cape (purple)\";\n\t\t\titemDef.description = \"Fire cape (purple).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33148:\n\t\t\titemDef.name = \"Fire cape (cyan)\";\n\t\t\titemDef.description = \"Fire cape (cyan).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33144:\n\t\t\titemDef.name = \"Fire cape (green)\";\n\t\t\titemDef.description = \"Fire cape (green).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33145:\n\t\t\titemDef.name = \"Fire cape (red)\";\n\t\t\titemDef.description = \"Fire cape (red).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33143:\n\t\t\titemDef.name = \"Infernal cape (blue)\";\n\t\t\titemDef.description = \"Infernal cape (blue).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 39851, 39851, 39851, 39851 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33146:\n\t\t\titemDef.name = \"Infernal cape (green)\";\n\t\t\titemDef.description = \"Infernal cape (green).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 21167, 21167, 21167, 21167 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33147:\n\t\t\titemDef.name = \"Infernal cape (purple)\";\n\t\t\titemDef.description = \"Infernal cape (purple).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 53160, 53160, 53160, 53160 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33150:\n\t\t\titemDef.name = \"Infernal key piece 1\";\n\t\t\titemDef.description = \"Infernal key piece 1.\";\n\t\t\titemDef.modelId = 61001;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33151:\n\t\t\titemDef.name = \"Infernal key piece 2\";\n\t\t\titemDef.description = \"Infernal key piece 2.\";\n\t\t\titemDef.modelId = 61002;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33152:\n\t\t\titemDef.name = \"Infernal key piece 3\";\n\t\t\titemDef.description = \"Infernal key piece 3.\";\n\t\t\titemDef.modelId = 61003;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33153:\n\t\t\titemDef.name = \"Infernal key\";\n\t\t\titemDef.description = \"Infernal key.\";\n\t\t\titemDef.modelId = 61111;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\t\t//DOPES ITEMS NIGGAHAHAHAHAHAHAH\n\t\tcase 2749:\n\t\t\titemDef.name = \"Bloody Axe\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65495;\n\t\t\titemDef.femaleModel = 65495;\n\t\t\titemDef.maleModel = 65495;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 2750:\n\t\t\titemDef.name = \"Bloody Axe Offhand\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65496;\n\t\t\titemDef.femaleModel = 65496;\n\t\t\titemDef.maleModel = 65496;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33154:\n\t\t\titemDef.name = \"Infernal mystery box\";\n\t\t\titemDef.description = \"Infernal mystery box.\";\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33155:\n\t\t\titemDef.name = \"Ethereal sword (red)\";\n\t\t\titemDef.description = \"Ethereal sword (red).\";\n\t\t\titemDef.modelId = 61005;\n\t\t\titemDef.maleModel = 61004;\n\t\t\titemDef.femaleModel = 61004;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33156:\n\t\t\titemDef.name = \"Ethereal sword (blue)\";\n\t\t\titemDef.description = \"Ethereal sword (blue).\";\n\t\t\titemDef.modelId = 61006;\n\t\t\titemDef.maleModel = 61007;\n\t\t\titemDef.femaleModel = 61007;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33157:\n\t\t\titemDef.name = \"Ethereal sword (green)\";\n\t\t\titemDef.description = \"Ethereal sword (green).\";\n\t\t\titemDef.modelId = 61008;\n\t\t\titemDef.maleModel = 61009;\n\t\t\titemDef.femaleModel = 61009;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33158:\n\t\t\titemDef.name = \"Dagon' hai top\";\n\t\t\titemDef.description = \"An elite dark mages robes.\";\n\t\t\titemDef.modelId = 60317;\n\t\t\titemDef.maleModel = 43614;\n\t\t\titemDef.femaleModel = 43689;\n\t\t\titemDef.anInt188 = 44594;\n\t\t\titemDef.anInt164 = 43681;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33159:\n\t\t\titemDef.name = \"Dagon' hai hat\";\n\t\t\titemDef.description = \"An elite dark mages hat.\";\n\t\t\titemDef.modelId = 60319;\n\t\t\titemDef.maleModel = 60318;\n\t\t\titemDef.femaleModel = 60318;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 98;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33160:\n\t\t\titemDef.name = \"Dagon' hai robe\";\n\t\t\titemDef.description = \"An elite dark mages robe.\";\n\t\t\titemDef.modelId = 60321;\n\t\t\titemDef.maleModel = 60320;\n\t\t\titemDef.femaleModel = 60320;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 2216;\n\t\t\titemDef.modelRotation1 = 572;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33161:\n\t\t\titemDef.name = \"Blue infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Blue.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33162:\n\t\t\titemDef.name = \"Green infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33163:\n\t\t\titemDef.name = \"Purple infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33164:\n\t\t\titemDef.name = \"Purple firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33165:\n\t\t\titemDef.name = \"Cyan firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to cyan.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33166:\n\t\t\titemDef.name = \"Green firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33167:\n\t\t\titemDef.name = \"Red firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to red.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33169:\n\t\t\titemDef.name = \"K'ril robe top\";\n\t\t\titemDef.description = \"A top worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62558;\n\t\t\titemDef.maleModel = 62559;\n\t\t\titemDef.femaleModel = 62559;\n\t\t\titemDef.modelZoom = 1358;\n\t\t\titemDef.modelRotation1 = 514;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33170:\n\t\t\titemDef.name = \"K'ril robe bottom\";\n\t\t\titemDef.description = \"A robe worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62553;\n\t\t\titemDef.maleModel = 62554;\n\t\t\titemDef.femaleModel = 62554;\n\t\t\titemDef.modelZoom = 1690;\n\t\t\titemDef.modelRotation1 = 435;\n\t\t\titemDef.modelRotation2 = 9;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33171:\n\t\t\titemDef.name = \"K'ril hat\";\n\t\t\titemDef.description = \"A hat worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62551;\n\t\t\titemDef.maleModel = 62552;\n\t\t\titemDef.femaleModel = 62552;\n\t\t\titemDef.modelZoom = 1236;\n\t\t\titemDef.modelRotation1 = 118;\n\t\t\titemDef.modelRotation2 = 10;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33172:\n\t\t\titemDef.name = \"K'ril swords\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62557;\n\t\t\titemDef.femaleModel = 62557;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33173:\n\t\t\titemDef.name = \"K'ril swords (sheathed)\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62556;\n\t\t\titemDef.femaleModel = 62556;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33174:\n\t\t\titemDef.name = \"Pet demonic gorilla\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31241;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33175:\n\t\t\titemDef.name = \"Pet crawling hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5071;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33176:\n\t\t\titemDef.name = \"Pet cave bug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 23854;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33177:\n\t\t\titemDef.name = \"Pet cave crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5066;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33178:\n\t\t\titemDef.name = \"Pet banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5063;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33179:\n\t\t\titemDef.name = \"Pet cave slime\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5786;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33180:\n\t\t\titemDef.name = \"Pet rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5084;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33181:\n\t\t\titemDef.name = \"Pet cockatrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5070;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33182:\n\t\t\titemDef.name = \"Pet pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5083;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33183:\n\t\t\titemDef.name = \"Pet basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5064;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33184:\n\t\t\titemDef.name = \"Pet infernal mage\";\n\t\t\titemDef.modifiedModelColors = new int[] { -26527, -24618, -25152, -25491, 119 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 148, 0, 924, 924 };\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5047;\n\t\t\titemDef.modelZoom = 3940;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 84;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33185:\n\t\t\titemDef.name = \"Pet bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5065;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33186:\n\t\t\titemDef.name = \"Pet jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5081;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33187:\n\t\t\titemDef.name = \"Pet turoth\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5086;\n\t\t\titemDef.modelZoom = 2600;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33188:\n\t\t\titemDef.name = \"Pet aberrant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5085;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 450;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33189:\n\t\t\titemDef.name = \"Pet dust devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5076;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33190:\n\t\t\titemDef.name = \"Pet kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5082;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33191:\n\t\t\titemDef.name = \"Pet skeletal wyvern\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10350;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 27;\n\t\t\titemDef.modelRotation2 = 1634;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33192:\n\t\t\titemDef.name = \"Pet garygoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5078;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33193:\n\t\t\titemDef.name = \"Pet nechryael\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5074;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33194:\n\t\t\titemDef.name = \"Pet abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5062;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33195:\n\t\t\titemDef.name = \"Pet dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26395;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33196:\n\t\t\titemDef.name = \"Pet night beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32933;\n\t\t\titemDef.modelZoom = 7000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33197:\n\t\t\titemDef.name = \"Pet greater abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33198:\n\t\t\titemDef.name = \"Pet crushing hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32922;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33199:\n\t\t\titemDef.name = \"Pet chasm crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32918;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33200:\n\t\t\titemDef.name = \"Pet screaming banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32823;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33201:\n\t\t\titemDef.name = \"Pet twisted banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32847;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33202:\n\t\t\titemDef.name = \"Pet giant rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32919;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33203:\n\t\t\titemDef.name = \"Pet cockathrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32920;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33204:\n\t\t\titemDef.name = \"Pet flaming pyrelord\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32923;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33205:\n\t\t\titemDef.name = \"Pet monstrous basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32924;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33206:\n\t\t\titemDef.name = \"Pet malevolent mage\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32929;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33207:\n\t\t\titemDef.name = \"Pet insatiable bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33208:\n\t\t\titemDef.name = \"Pet insatiable mutated bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32925;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33209:\n\t\t\titemDef.name = \"Pet vitreous jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32852;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33210:\n\t\t\titemDef.name = \"Pet vitreous warped jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32917;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33211:\n\t\t\titemDef.name = \"Pet cave abomination\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32935;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33212:\n\t\t\titemDef.name = \"Pet abhorrent spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32930;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33213:\n\t\t\titemDef.name = \"pet repugnant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33214:\n\t\t\titemDef.name = \"Pet choke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32927;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33215:\n\t\t\titemDef.name = \"Pet king kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32934;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33217:\n\t\t\titemDef.name = \"Pet nuclear smoke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32928;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33218:\n\t\t\titemDef.name = \"Pet marble gargoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34251;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33219:\n\t\t\titemDef.name = \"Pet nechryarch\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32932;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33220:\n\t\t\titemDef.name = \"Pet Patrity\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32035;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33221:\n\t\t\titemDef.name = \"Pet xarpus\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35383;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33222:\n\t\t\titemDef.name = \"Pet nyclocas vasilias\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35182;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33223:\n\t\t\titemDef.name = \"Pet pestilent bloat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35404;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33224:\n\t\t\titemDef.name = \"Pet maiden of sugadinti\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35385;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33225:\n\t\t\titemDef.name = \"Pet lizardman shaman\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4039;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33226:\n\t\t\titemDef.name = \"Pet abyssal sire\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 29477;\n\t\t\titemDef.modelZoom = 9000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33227:\n\t\t\titemDef.name = \"Pet black demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31984;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 144;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11802:\n\t\tcase 11804:\n\t\tcase 11806:\n\t\tcase 11808:\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\tbreak;// godsword sheathing operating\n\n\t\tcase 33228:\n\t\t\titemDef.name = \"Pet greater demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33229:\n\t\t\titemDef.name = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.description = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28075;\n\t\t\titemDef.maleModel = 62683;\n\t\t\titemDef.femaleModel = 62683;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33230:\n\t\t\titemDef.name = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.description = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28059;\n\t\t\titemDef.maleModel = 62684;\n\t\t\titemDef.femaleModel = 62684;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33231:\n\t\t\titemDef.name = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.description = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28070;\n\t\t\titemDef.maleModel = 62685;\n\t\t\titemDef.femaleModel = 62685;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33232:\n\t\t\titemDef.name = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.description = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28060;\n\t\t\titemDef.maleModel = 62686;\n\t\t\titemDef.femaleModel = 62686;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33233:\n\t\t\titemDef.name = \"Pet revenant imp\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34156;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33234:\n\t\t\titemDef.name = \"Pet revenant goblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34262;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33235:\n\t\t\titemDef.name = \"Pet revenant pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34142;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33236:\n\t\t\titemDef.name = \"Pet revenant hobgoblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34157;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33237:\n\t\t\titemDef.name = \"Pet revenant cyclops\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34155;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33238:\n\t\t\titemDef.name = \"Pet revenant hellhound\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34143;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33239:\n\t\t\titemDef.name = \"Pet revenant demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modifiedModelColors = new int[] { 1690, 910, 912, 1814, 1938 };\n\t\t\titemDef.originalModelColors = new int[] { 43078, 43078, 43078, 43078, 43078, 43078 };\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33240:\n\t\t\titemDef.name = \"Pet revenant ork\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34154;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33242:\n\t\t\titemDef.name = \"Pet revenant dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34158;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33243:\n\t\t\titemDef.name = \"Pet revenant knight\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34145;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33244:\n\t\t\titemDef.name = \"Pet revenant dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34163;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33245:\n\t\t\titemDef.name = \"Pet glob\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26074;\n\t\t\titemDef.modelZoom = 10000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33246:\n\t\t\titemDef.name = \"Pet ice queen\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 104;\n\t\t\titemDef.modifiedModelColors = new int[] { 41, 61, 4550, 12224, 25238, 6798 };\n\t\t\titemDef.originalModelColors = new int[] { -22052, -26150, -24343, -22052, -22052, -23327 };\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33247:\n\t\t\titemDef.name = \"Pet enraged tarn\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60322;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33248:\n\t\t\titemDef.name = \"Pet jaltok-jad\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 33012;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33249:\n\t\t\titemDef.name = \"Pet rune dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34668;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33271:\n\t\t\titemDef.name = \"Moo\";\n\t\t\titemDef.description = \"cow goes moo.\";\n\t\t\titemDef.modelId = 23889;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33250:\n\t\t\titemDef.name = \"Swift gloves (Black)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62657;\n\t\t\titemDef.femaleModel = 62658;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33251:\n\t\t\titemDef.name = \"Swift gloves (Red)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62659;\n\t\t\titemDef.femaleModel = 62660;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33252:\n\t\t\titemDef.name = \"Swift gloves (White)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62661;\n\t\t\titemDef.femaleModel = 62662;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33253:\n\t\t\titemDef.name = \"Swift gloves (Yellow)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62663;\n\t\t\titemDef.femaleModel = 62664;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33254:\n\t\t\titemDef.name = \"Spellcaster gloves (Black)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62665;\n\t\t\titemDef.femaleModel = 62666;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33255:\n\t\t\titemDef.name = \"Spellcaster gloves (Red)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62667;\n\t\t\titemDef.femaleModel = 62668;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33256:\n\t\t\titemDef.name = \"Spellcaster gloves (White)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62669;\n\t\t\titemDef.femaleModel = 62670;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33257:\n\t\t\titemDef.name = \"Spellcaster gloves (Yellow)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62671;\n\t\t\titemDef.femaleModel = 62672;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33258:\n\t\t\titemDef.name = \"Tekton longsword\";\n\t\t\titemDef.description = \"Tekton longsword.\";\n\t\t\titemDef.modelId = 62682;\n\t\t\titemDef.maleModel = 62681;\n\t\t\titemDef.femaleModel = 62681;\n\t\t\titemDef.modelZoom = 1445;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33259:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33260:\n\t\t\titemDef.name = \"Pet drake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36160;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33261:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33262:\n\t\t\titemDef.name = \"Valentines Balloon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62766;\n\t\t\titemDef.maleModel = 62767;\n\t\t\titemDef.femaleModel = 62767;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 270;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33263:\n\t\t\titemDef.name = \"Cupid bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62768;\n\t\t\titemDef.maleModel = 62769;\n\t\t\titemDef.femaleModel = 62769;\n\t\t\titemDef.modelZoom = 1072;\n\t\t\titemDef.modelRotation1 = 127;\n\t\t\titemDef.modelRotation2 = 103;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33264:\n\t\t\titemDef.name = \"Halo and horns\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62771;\n\t\t\titemDef.maleModel = 62770;\n\t\t\titemDef.femaleModel = 62770;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 228;\n\t\t\titemDef.modelRotation2 = 141;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33265:\n\t\t\titemDef.name = \"Heart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62782;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33266:\n\t\t\titemDef.name = \"Valentines mystery box\";\n\t\t\titemDef.description = \"You make me hard.\";\n\t\t\titemDef.modelId = 62773;\n\t\t\titemDef.modelZoom = 464;\n\t\t\titemDef.modelRotation1 = 423;\n\t\t\titemDef.modelRotation2 = 1928;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33267:\n\t\t\titemDef.name = \"Staff of adoration\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62774;\n\t\t\titemDef.maleModel = 62775;\n\t\t\titemDef.femaleModel = 62775;\n\t\t\titemDef.modelZoom = 1579;\n\t\t\titemDef.modelRotation1 = 660;\n\t\t\titemDef.modelRotation2 = 48;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33268:\n\t\t\titemDef.name = \"Valentines crossbow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62778;\n\t\t\titemDef.maleModel = 62779;\n\t\t\titemDef.femaleModel = 62779;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33269:\n\t\t\titemDef.name = \"Onyxia Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 2130, 38693 };\n\t\t\titemDef.description = \"Chances at several unqiue items found only in this box! (ex: Tekton Armor)\";\n\t\t\tbreak;\n\t\tcase 33270:\n\t\t\titemDef.name = \"Dragon Hunter Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 1050 };\n\t\t\titemDef.description = \"Chances for items that give bonuses toward dragons. (ex: Dragonhunter Lance)\";\n\t\t\tbreak;\n\t\tcase 33273:\n\t\t\titemDef.name = \"Ancient sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60201;\n\t\t\titemDef.maleModel = 60200;\n\t\t\titemDef.femaleModel = 60200;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33274:\n\t\t\titemDef.name = \"Armadyl staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60203;\n\t\t\titemDef.maleModel = 60202;\n\t\t\titemDef.femaleModel = 60202;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33275:\n\t\t\titemDef.name = \"Bork axe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60205;\n\t\t\titemDef.maleModel = 60204;\n\t\t\titemDef.femaleModel = 60204;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33276:\n\t\t\titemDef.name = \"Bree bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60207;\n\t\t\titemDef.maleModel = 60206;\n\t\t\titemDef.femaleModel = 60206;\n\t\t\titemDef.modelZoom = 1700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33277:\n\t\t\titemDef.name = \"Infernal staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60209;\n\t\t\titemDef.maleModel = 60208;\n\t\t\titemDef.femaleModel = 60208;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33278:\n\t\t\titemDef.name = \"Infernal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60211;\n\t\t\titemDef.maleModel = 60210;\n\t\t\titemDef.femaleModel = 60210;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33279:\n\t\t\titemDef.name = \"Necrolord staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60213;\n\t\t\titemDef.maleModel = 60212;\n\t\t\titemDef.femaleModel = 60212;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33280:\n\t\t\titemDef.name = \"Insert name here\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60215;\n\t\t\titemDef.maleModel = 60214;\n\t\t\titemDef.femaleModel = 60214;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33281:\n\t\t\titemDef.name = \"Infernal bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60219;\n\t\t\titemDef.maleModel = 60218;\n\t\t\titemDef.femaleModel = 60218;\n\t\t\titemDef.modelZoom = 3334;\n\t\t\titemDef.modelRotation1 = 533;\n\t\t\titemDef.modelRotation2 = 1294;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33282:\n\t\t\titemDef.name = \"Infernal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60221;\n\t\t\titemDef.maleModel = 60220;\n\t\t\titemDef.femaleModel = 60220;\n\t\t\titemDef.modelZoom = 2512;\n\t\t\titemDef.modelRotation1 = 317;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = 45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33283:\n\t\t\titemDef.name = \"Imbued Porazdir's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 13263, 13014, 13243, 13000, 13275 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your strength for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33284:\n\t\t\titemDef.name = \"Imbued Justiciar's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 31661, 31418, 31661, 31167, 31445 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Defence for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32285:\n\t\t\titemDef.name = \"Imbued Derwen's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 930, 936, 940, 950 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Attack for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32286:\n\t\t\titemDef.name = \"Bronze fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 5652, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32287:\n\t\t\titemDef.name = \"Iron fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 33, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32288:\n\t\t\titemDef.name = \"Steel fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 61, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32289:\n\t\t\titemDef.name = \"Black fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32290:\n\t\t\titemDef.name = \"Mithril fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 43297, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32291:\n\t\t\titemDef.name = \"Adamant fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 21662, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32292:\n\t\t\titemDef.name = \"Rune fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 36133, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32293:\n\t\t\titemDef.name = \"Dragon fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing. Can also be used for Deep sea fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32294:\n\t\t\titemDef.name = \"Raw eel\";\n\t\t\titemDef.description = \"Slimy\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32295:\n\t\t\titemDef.name = \"Burnt eel\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8724, 3226, 9754 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32296:\n\t\t\titemDef.name = \"Eel\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 8386, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8088, 6032, 57, 2960 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32297:\n\t\t\titemDef.name = \"Raw baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 103, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 7756, 5349 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32298:\n\t\t\titemDef.name = \"Burnt baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 28, 41 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32299:\n\t\t\titemDef.name = \"Baron shark\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 8109, 4795 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32300:\n\t\t\titemDef.name = \"Raw cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60223;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32301:\n\t\t\titemDef.name = \"Burnt cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60227;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32302:\n\t\t\titemDef.name = \"Cavefish\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 60228;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32303:\n\t\t\titemDef.name = \"Dragonfire visage (e)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26456;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modifiedModelColors = new int[] { 45, 41, 33, 24, 20, 57, 22, 37 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33285:\n\t\t\titemDef.name = \"Easter Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"Chances for all sorts of Easter Items!\";\n\t\t\tbreak;\n\n\t\tcase 33286:\n\t\t\titemDef.name = \"Easter Cape\";\n\t\t\titemDef.inventoryOptions = new String[] { null, \"wear\", null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"An Easter Cape.\";\n\t\t\tbreak;\n\n\t\tcase 33287:\n\t\t\titemDef.name = \"Pet Easter Bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"You've captured the Easter bunny!\";\n\t\t\tbreak;\n\n\t\tcase 33288:\n\t\t\titemDef.name = \"Pet Choco\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 7079 };\n\t\t\tbreak;\n\n\t\tcase 33289:\n\t\t\titemDef.name = \"Pet Milkie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 6040 };\n\t\t\tbreak;\n\n\t\tcase 33290:\n\t\t\titemDef.name = \"Pet Goldie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"oh wow... a rare golden bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 9152 };\n\t\t\tbreak;\n\n\t\tcase 33291:\n\t\t\titemDef.name = \"Pet Blue\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"A blue bunny... kinda looks like the easter bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 35321 };\n\t\t\tbreak;\n\n\t\tcase 33292:\n\t\t\titemDef.name = \"Crazed bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 23901;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"What a bloody mess...\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5413, 5417, 5421 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 111, 127 };\n\t\t\tbreak;\n\n\t\tcase 33293:\n\t\t\titemDef.name = \"Peter Rabbit\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 28602;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"Hi Peter!\";\n\t\t\tbreak;\n\n\t\tcase 33294:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947 };\n\t\t\titemDef.originalModelColors = new int[] { 8128 };\n\t\t\tbreak;\n\n\t\tcase 33295:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 25511 };\n\t\t\tbreak;\n\n\t\tcase 33296:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 38835 };\n\t\t\tbreak;\n\n\t\tcase 33297:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 947 };\n\t\t\tbreak;\n\n\t\tcase 33305:\n\t\t\titemDef.name = \"$10 bond\";\n\t\t\titemDef.description = \"$10 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 84, 84, 84, 84, 84, 84, 84 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33306:\n\t\t\titemDef.name = \"$25 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 87, 87, 87, 87, 87, 87, 87 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33307:\n\t\t\titemDef.name = \"$50 bond\";\n\t\t\titemDef.description = \"$50 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 65, 65, 65, 65, 65, 65, 65 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33308:\n\t\t\titemDef.name = \"$100 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 75, 75, 75, 75, 75, 75, 75 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33309:\n\t\t\titemDef.name = \"$200 bond\";\n\t\t\titemDef.description = \"$200 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 88, 88, 88, 88, 88, 88, 88 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33310:\n\t\t\titemDef.name = \"$500 bond\";\n\t\t\titemDef.description = \"$500 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 85, 85, 85, 85, 85, 85, 85 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33311:\n\t\t\titemDef.name = \"$1000 bond\";\n\t\t\titemDef.description = \"$1000 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 86, 86, 86, 86, 86, 86, 86 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33312:\n\t\t\titemDef.name = \"Armadyl battlestaff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60332;\n\t\t\titemDef.maleModel = 60333;\n\t\t\titemDef.femaleModel = 60333;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 225;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33313:\n\t\t\titemDef.name = \"Colossal platebody\";\n\t\t\titemDef.description = \"Colossal platebody.\";\n\t\t\titemDef.modelId = 60323;\n\t\t\titemDef.maleModel = 60324;\n\t\t\titemDef.femaleModel = 60324;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33314:\n\t\t\titemDef.name = \"Colossal platelegs\";\n\t\t\titemDef.description = \"Colossal platelegs.\";\n\t\t\titemDef.modelId = 60325;\n\t\t\titemDef.maleModel = 60326;\n\t\t\titemDef.femaleModel = 60326;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33315:\n\t\t\titemDef.name = \"Colossal boots\";\n\t\t\titemDef.description = \"Colossal boots.\";\n\t\t\titemDef.modelId = 60329;\n\t\t\titemDef.maleModel = 60329;\n\t\t\titemDef.femaleModel = 60329;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33316:\n\t\t\titemDef.name = \"Colossal gloves\";\n\t\t\titemDef.description = \"Colossal gloves.\";\n\t\t\titemDef.modelId = 60330;\n\t\t\titemDef.maleModel = 60331;\n\t\t\titemDef.femaleModel = 60331;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33317:\n\t\t\titemDef.name = \"Colossal helmet\";\n\t\t\titemDef.description = \"Colossal helmet.\";\n\t\t\titemDef.modelId = 60327;\n\t\t\titemDef.maleModel = 60328;\n\t\t\titemDef.femaleModel = 60328;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33318:\n\t\t\titemDef.name = \"Polypore staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60334;\n\t\t\titemDef.maleModel = 60335;\n\t\t\titemDef.femaleModel = 60335;\n\t\t\titemDef.modelZoom = 3750;\n\t\t\titemDef.modelRotation1 = 1454;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33319:\n\t\t\titemDef.name = \"Ganodermic platebody\";\n\t\t\titemDef.description = \"Ganodermic platebody.\";\n\t\t\titemDef.modelId = 60338;\n\t\t\titemDef.maleModel = 60339;\n\t\t\titemDef.femaleModel = 60339;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33320:\n\t\t\titemDef.name = \"Ganodermic platelegs\";\n\t\t\titemDef.description = \"Ganodermic platelegs.\";\n\t\t\titemDef.modelId = 60340;\n\t\t\titemDef.maleModel = 60341;\n\t\t\titemDef.femaleModel = 60341;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33321:\n\t\t\titemDef.name = \"Ganodermic helmet\";\n\t\t\titemDef.description = \"Ganodermic helmet.\";\n\t\t\titemDef.modelId = 60336;\n\t\t\titemDef.maleModel = 60337;\n\t\t\titemDef.femaleModel = 60337;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33322:\n\t\t\titemDef.name = \"Grotesque platebody\";\n\t\t\titemDef.description = \"Grosteq platebody.\";\n\t\t\titemDef.modelId = 60347;\n\t\t\titemDef.maleModel = 60348;\n\t\t\titemDef.femaleModel = 60348;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33323:\n\t\t\titemDef.name = \"Grotesque platelegs\";\n\t\t\titemDef.description = \"Grosteq platelegs.\";\n\t\t\titemDef.modelId = 60349;\n\t\t\titemDef.maleModel = 60350;\n\t\t\titemDef.femaleModel = 60350;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33324:\n\t\t\titemDef.name = \"Grotesque helmet\";\n\t\t\titemDef.description = \"Grosteqc helmet.\";\n\t\t\titemDef.modelId = 60345;\n\t\t\titemDef.maleModel = 60346;\n\t\t\titemDef.femaleModel = 60346;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33325:\n\t\t\titemDef.name = \"Grotesque cape\";\n\t\t\titemDef.description = \"Grosteq cape.\";\n\t\t\titemDef.modelId = 60351;\n\t\t\titemDef.maleModel = 60352;\n\t\t\titemDef.femaleModel = 60352;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33326:\n\t\t\titemDef.name = \"Stunning Hammer\";\n\t\t\titemDef.description = \"Has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60353;\n\t\t\titemDef.maleModel = 60354;\n\t\t\titemDef.femaleModel = 60354;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33327:\n\t\t\titemDef.name = \"Stunning Katagon platebody\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60356;\n\t\t\titemDef.maleModel = 60357;\n\t\t\titemDef.femaleModel = 60357;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33328:\n\t\t\titemDef.name = \"Stunning Katagon platelegs\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60358;\n\t\t\titemDef.maleModel = 60359;\n\t\t\titemDef.femaleModel = 60359;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33329:\n\t\t\titemDef.name = \"Stunning Katagon helmet\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60360;\n\t\t\titemDef.maleModel = 60361;\n\t\t\titemDef.femaleModel = 60361;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33331:\n\t\t\titemDef.name = \"Ancient platebody\";\n\t\t\titemDef.description = \"Ancient platebody.\";\n\t\t\titemDef.modelId = 60366;\n\t\t\titemDef.maleModel = 60367;\n\t\t\titemDef.femaleModel = 60367;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33332:\n\t\t\titemDef.name = \"Ancient platelegs\";\n\t\t\titemDef.description = \"Ancient platelegs.\";\n\t\t\titemDef.modelId = 60368;\n\t\t\titemDef.maleModel = 60369;\n\t\t\titemDef.femaleModel = 60369;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33334:\n\t\t\titemDef.name = \"Ancient boots\";\n\t\t\titemDef.description = \"Ancient boots.\";\n\t\t\titemDef.modelId = 60372;\n\t\t\titemDef.maleModel = 60372;\n\t\t\titemDef.femaleModel = 60372;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33335:\n\t\t\titemDef.name = \"Ancient gloves\";\n\t\t\titemDef.description = \"Ancient gloves.\";\n\t\t\titemDef.modelId = 60370;\n\t\t\titemDef.maleModel = 60371;\n\t\t\titemDef.femaleModel = 60371;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33336:\n\t\t\titemDef.name = \"Ancient helmet\";\n\t\t\titemDef.description = \"Ancient helmet.\";\n\t\t\titemDef.modelId = 60364;\n\t\t\titemDef.maleModel = 60365;\n\t\t\titemDef.femaleModel = 60365;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33341:\n\t\t\titemDef.name = \"Vanguard helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60391;\n\t\t\titemDef.maleModel = 60392;\n\t\t\titemDef.femaleModel = 60392;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33342:\n\t\t\titemDef.name = \"Vanguard platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60393;\n\t\t\titemDef.maleModel = 60394;\n\t\t\titemDef.femaleModel = 60394;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33343:\n\t\t\titemDef.name = \"Vanguard platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60395;\n\t\t\titemDef.maleModel = 60396;\n\t\t\titemDef.femaleModel = 60396;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33344:\n\t\t\titemDef.name = \"Vanguard boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60398;\n\t\t\titemDef.maleModel = 60398;\n\t\t\titemDef.femaleModel = 60398;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33345:\n\t\t\titemDef.name = \"Vanguard gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60373;\n\t\t\titemDef.maleModel = 60397;\n\t\t\titemDef.femaleModel = 60397;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33346:\n\t\t\titemDef.name = \"Celestial staff of light\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60401;\n\t\t\titemDef.maleModel = 60402;\n\t\t\titemDef.femaleModel = 60402;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 101 };\n\t\t\titemDef.originalModelColors = new int[] { 12 };\n\t\t\titemDef.maleOffset = -6;\n\t\t\titemDef.femaleOffset = -6;\n\t\t\tbreak;\n\n\t\tcase 33347:\n\t\t\titemDef.name = \"Hood of sorrow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60438;\n\t\t\titemDef.maleModel = 60403;\n\t\t\titemDef.femaleModel = 60403;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33348:\n\t\t\titemDef.name = \"Celestial robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60404;\n\t\t\titemDef.maleModel = 60405;\n\t\t\titemDef.femaleModel = 60405;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33349:\n\t\t\titemDef.name = \"Celestial robe legs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60406;\n\t\t\titemDef.maleModel = 60407;\n\t\t\titemDef.femaleModel = 60407;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33350:\n\t\t\titemDef.name = \"Primal 2h sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60408;\n\t\t\titemDef.maleModel = 60409;\n\t\t\titemDef.femaleModel = 60409;\n\t\t\titemDef.modelZoom = 1701;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.modelRotation2 = 1529;\n\t\t\titemDef.modelRotation1 = 1713;\n\t\t\titemDef.modelRotationY = 898;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33353:\n\t\t\titemDef.name = \"Primal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60417;\n\t\t\titemDef.maleModel = 60418;\n\t\t\titemDef.femaleModel = 60418;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.modelRotation2 = 1793;\n\t\t\titemDef.modelRotation1 = 1473;\n\t\t\titemDef.modelRotationY = 1121;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33354:\n\t\t\titemDef.name = \"Primal maul\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60419;\n\t\t\titemDef.maleModel = 60420;\n\t\t\titemDef.femaleModel = 60420;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33359:\n\t\t\titemDef.name = \"Primal rapier\";\n\t\t\titemDef.description = \"Good for fighting the ...\";\n\t\t\titemDef.modelId = 60433;\n\t\t\titemDef.maleModel = 60433;\n\t\t\titemDef.femaleModel = 60433;\n\t\t\titemDef.modelZoom = 1300;\n\t\t\titemDef.modelRotation1 = 1401;\n\t\t\titemDef.modelRotation2 = 1724;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 15;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33360:\n\t\t\titemDef.name = \"Primal spear\";\n\t\t\titemDef.description = \"Good for fighting the Corperal Beast.\";\n\t\t\titemDef.modelId = 60434;\n\t\t\titemDef.maleModel = 60435;\n\t\t\titemDef.femaleModel = 60435;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -10;\n\t\t\titemDef.maleOffset = -10;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33361:\n\t\t\titemDef.name = \"Primal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60436;\n\t\t\titemDef.maleModel = 60437;\n\t\t\titemDef.femaleModel = 60437;\n\t\t\titemDef.modelZoom = 1330;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 148;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33362:\n\t\t\titemDef.name = \"Chitin helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60445;\n\t\t\titemDef.maleModel = 60446;\n\t\t\titemDef.femaleModel = 60446;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33364:\n\t\t\titemDef.name = \"Chitin platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60447;\n\t\t\titemDef.maleModel = 60448;\n\t\t\titemDef.femaleModel = 60448;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33365:\n\t\t\titemDef.name = \"Chitin platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60449;\n\t\t\titemDef.maleModel = 60450;\n\t\t\titemDef.femaleModel = 60450;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33366:\n\t\t\titemDef.name = \"Chitin cape\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60443;\n\t\t\titemDef.maleModel = 60444;\n\t\t\titemDef.femaleModel = 60444;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33367:\n\t\t\titemDef.name = \"Supreme void helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60467;\n\t\t\titemDef.maleModel = 60464;\n\t\t\titemDef.femaleModel = 60464;\n\t\t\titemDef.modelZoom = 900;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33368:\n\t\t\titemDef.name = \"Supreme void robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60468;\n\t\t\titemDef.maleModel = 60465;\n\t\t\titemDef.femaleModel = 60465;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33369:\n\t\t\titemDef.name = \"Supreme void robe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60469;\n\t\t\titemDef.maleModel = 60466;\n\t\t\titemDef.femaleModel = 60466;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33370:\n\t\t\titemDef.name = \"Korasi's sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60471;\n\t\t\titemDef.maleModel = 60470;\n\t\t\titemDef.femaleModel = 60470;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 330;\n\t\t\titemDef.modelRotation2 = 1505;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\n\t\tcase 33371:\n\t\t\titemDef.name = \"Spiked slayer helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60475;\n\t\t\titemDef.maleModel = 60476;\n\t\t\titemDef.femaleModel = 60476;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33372:\n\t\t\titemDef.name = \"Slayer platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60478;\n\t\t\titemDef.maleModel = 60479;\n\t\t\titemDef.femaleModel = 60479;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33373:\n\t\t\titemDef.name = \"Slayer platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60474;\n\t\t\titemDef.maleModel = 60477;\n\t\t\titemDef.femaleModel = 60477;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33374:\n\t\t\titemDef.name = \"Slayer boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60472;\n\t\t\titemDef.maleModel = 60473;\n\t\t\titemDef.femaleModel = 60473;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33375:\n\t\t\titemDef.name = \"Blood Justiciar helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60482;\n\t\t\titemDef.maleModel = 60483;\n\t\t\titemDef.femaleModel = 60483;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33376:\n\t\t\titemDef.name = \"Blood Justiciar platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60484;\n\t\t\titemDef.maleModel = 60485;\n\t\t\titemDef.femaleModel = 60485;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33377:\n\t\t\titemDef.name = \"Blood justiciar platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60486;\n\t\t\titemDef.maleModel = 60487;\n\t\t\titemDef.femaleModel = 60487;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33378:\n\t\t\titemDef.name = \"Blood justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60488;\n\t\t\titemDef.maleModel = 60488;\n\t\t\titemDef.femaleModel = 60488;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33379:\n\t\t\titemDef.name = \"Blood justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60489;\n\t\t\titemDef.maleModel = 60490;\n\t\t\titemDef.femaleModel = 60490;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33380:\n\t\t\titemDef.name = \"Blood scythe of vitur\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60480;\n\t\t\titemDef.maleModel = 60481;\n\t\t\titemDef.femaleModel = 60481;\n\t\t\titemDef.modelZoom = 3850;\n\t\t\titemDef.modelRotation1 = 727;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33381:\n\t\t\titemDef.name = \"Skiller cape\";\n\t\t\titemDef.description = \"Skiller cape.\";\n\t\t\titemDef.modelId = 60494;\n\t\t\titemDef.maleModel = 60493;\n\t\t\titemDef.femaleModel = 60492;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33382:\n\t\t\titemDef.name = \"Justiciar faceguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33383:\n\t\t\titemDef.name = \"Justiciar faceguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33384:\n\t\t\titemDef.name = \"Justiciar faceguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33385:\n\t\t\titemDef.name = \"Justiciar faceguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33387:\n\t\t\titemDef.name = \"Justiciar faceguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33389:\n\t\t\titemDef.name = \"Justiciar faceguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33390:\n\t\t\titemDef.name = \"Justiciar chestguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33391:\n\t\t\titemDef.name = \"Justiciar chestguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33392:\n\t\t\titemDef.name = \"Justiciar chestguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33393:\n\t\t\titemDef.name = \"Justiciar chestguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33394:\n\t\t\titemDef.name = \"Justiciar chestguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33395:\n\t\t\titemDef.name = \"Justiciar chestguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33396:\n\t\t\titemDef.name = \"Justiciar legguards (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33397:\n\t\t\titemDef.name = \"Justiciar legguards (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33398:\n\t\t\titemDef.name = \"Justiciar legguards (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33399:\n\t\t\titemDef.name = \"Justiciar legguards (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33400:\n\t\t\titemDef.name = \"Justiciar legguards (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33401:\n\t\t\titemDef.name = \"Justiciar legguards (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33402:\n\t\t\titemDef.name = \"Pet andy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 50169;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33403:\n\t\t\titemDef.name = \"Pet mod divine\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 14283;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33404:\n\t\t\titemDef.name = \"Celestial fairy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60491;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 947 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 937, 11200 };\n\t\t\titemDef.originalModelColors = new int[] { 42663, 41883 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33405:\n\t\t\titemDef.name = \"Lava partyhat (red)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33406:\n\t\t\titemDef.name = \"Lava partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33407:\n\t\t\titemDef.name = \"Lava partyhat (cyan)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33408:\n\t\t\titemDef.name = \"Lava partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33409:\n\t\t\titemDef.name = \"Infernal partyhat (blue)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33410:\n\t\t\titemDef.name = \"Infernal partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33411:\n\t\t\titemDef.name = \"Infernal partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33412:\n\t\t\titemDef.name = \"Infernal partyhat (rainbow)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33413:\n\t\t\titemDef.name = \"Celestial partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33414:\n\t\t\titemDef.name = \"Blood partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33415:\n\t\t\titemDef.name = \"Shadow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33416:\n\t\t\titemDef.name = \"Light blue partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33417:\n\t\t\titemDef.name = \"Easter partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33418:\n\t\t\titemDef.name = \"Dark sparkle partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33419:\n\t\t\titemDef.name = \"Rainbow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33420:\n\t\t\titemDef.name = \"Fire partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33421:\n\t\t\titemDef.name = \"Pet star sprite\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60506;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33422:\n\t\t\titemDef.name = \"Stargaze Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33423:\n\t\t\titemDef.name = \"Star Dust\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Exchange\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 60496;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 279;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 47;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33424:\n\t\t\titemDef.name = \"Blood twisted bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32799;\n\t\t\titemDef.maleModel = 32674;\n\t\t\titemDef.femaleModel = 32674;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10318, 10334 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66 };\n\t\t\titemDef.modifiedModelColors = new int[] { 14236, 13223 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33425:\n\t\t\titemDef.name = \"Celestial crow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60507;\n\t\t\titemDef.modelZoom = 1000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10382 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10378, 10502 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33426:\n\t\t\titemDef.name = \"Celestial penguin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60508;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10343 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 16, 12, 20, 24, 8, 10332, 10337 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33427:\n\t\t\titemDef.name = \"Celestial snake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60509;\n\t\t\titemDef.modelZoom = 1800;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10644, 10512 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78, 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10413, 10405, 10524 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33428:\n\t\t\titemDef.name = \"Celestial scorpion\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60510;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 142 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 4884, 4636, 3974, 4525, 4645 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33429:\n\t\t\titemDef.name = \"Armadyl dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\tbreak;\n\n\t\tcase 33430:\n\t\t\titemDef.name = \"Guthix dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\tbreak;\n\n\t\tcase 33431:\n\t\t\titemDef.name = \"Zamorak dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\tbreak;\n\n\t\tcase 33432:\n\t\t\titemDef.name = \"Ancient dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\tbreak;\n\n\t\tcase 33433:\n\t\t\titemDef.name = \"Bandos dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\tbreak;\n\n\t\tcase 33434:\n\t\t\titemDef.name = \"Saradomin dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\tbreak;\n\n\t\tcase 33435:\n\t\t\titemDef.name = \"Celestial egg\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 7171;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelRotation2 = 16;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 476 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Hatch\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\tcase 33436:\n\t\t\titemDef.name = \"Elite void top (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10586;\n\t\t\titemDef.maleModel = 10687;\n\t\t\titemDef.anInt188 = 10681;\n\t\t\titemDef.femaleModel = 10694;\n\t\t\titemDef.anInt164 = 10688;\n\t\t\titemDef.modelZoom = 1221;\n\t\t\titemDef.modelRotation1 = 459;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33437:\n\t\t\titemDef.name = \"Elite void robe (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60528;\n\t\t\titemDef.maleModel = 60526;\n\t\t\titemDef.femaleModel = 60527;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33438:\n\t\t\titemDef.name = \"Blood chest\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60516;\n\t\t\titemDef.modelZoom = 2640;\n\t\t\titemDef.modelRotation1 = 114;\n\t\t\titemDef.modelRotation2 = 1883;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33439:\n\t\t\titemDef.name = \"Blood bird\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60517;\n\t\t\titemDef.modelZoom = 2768;\n\t\t\titemDef.modelRotation1 = 141;\n\t\t\titemDef.modelRotation2 = 1790;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.originalTextureColors = new int[] { 1946, 2983, 6084, 2735, 5053, 6082, 4013, 2733, 4011, 2880,\n\t\t\t\t\t8150 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66 };\n\t\t\tbreak;\n\n\t\tcase 33440:\n\t\t\titemDef.name = \"Blood Death\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60441;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33442:\n\t\t\titemDef.name = \"10 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33446:\n\t\t\titemDef.name = \"10 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33450:\n\t\t\titemDef.name = \"10 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33454:\n\t\t\titemDef.name = \"10 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33458:\n\t\t\titemDef.name = \"10 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33462:\n\t\t\titemDef.name = \"10 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33443:\n\t\t\titemDef.name = \"30 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33447:\n\t\t\titemDef.name = \"30 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33451:\n\t\t\titemDef.name = \"30 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33455:\n\t\t\titemDef.name = \"30 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33459:\n\t\t\titemDef.name = \"30 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33463:\n\t\t\titemDef.name = \"30 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33444:\n\t\t\titemDef.name = \"60 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33448:\n\t\t\titemDef.name = \"60 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33452:\n\t\t\titemDef.name = \"60 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33456:\n\t\t\titemDef.name = \"60 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33460:\n\t\t\titemDef.name = \"60 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33464:\n\t\t\titemDef.name = \"60 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33445:\n\t\t\titemDef.name = \"120 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33449:\n\t\t\titemDef.name = \"120 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33453:\n\t\t\titemDef.name = \"120 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33457:\n\t\t\titemDef.name = \"120 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33461:\n\t\t\titemDef.name = \"120 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33465:\n\t\t\titemDef.name = \"120 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33466:\n\t\t\titemDef.name = \"Deathtouched dart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60534;\n\t\t\titemDef.maleModel = 60533;\n\t\t\titemDef.femaleModel = 60533;\n\t\t\titemDef.modelZoom = 1053;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33467:\n\t\t\titemDef.name = \"Justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60535;\n\t\t\titemDef.maleModel = 60535;\n\t\t\titemDef.femaleModel = 60535;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33468:\n\t\t\titemDef.name = \"Justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31022;\n\t\t\titemDef.maleModel = 31006;\n\t\t\titemDef.femaleModel = 31013;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 2015;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 123, 70 };\n\t\t\titemDef.originalModelColors = new int[] { 6736, 59441 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33469:\n\t\t\titemDef.name = \"Magic mushroom\";\n\t\t\titemDef.description = \"offers a 10% droprate increase while this pet follows you.\";\n\t\t\titemDef.modelId = 60532;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33470:\n\t\t\titemDef.name = \"Twisted staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60538;\n\t\t\titemDef.maleModel = 60539;\n\t\t\titemDef.femaleModel = 60539;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33471:\n\t\t\titemDef.name = \"Cowboy hat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60540;\n\t\t\titemDef.maleModel = 60541;\n\t\t\titemDef.femaleModel = 60541;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 108;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33472:\n\t\t\titemDef.name = \"Stick\";\n\t\t\titemDef.description = \"Careful of that chub.\";\n\t\t\titemDef.modelId = 60545;\n\t\t\titemDef.maleModel = 60545;\n\t\t\titemDef.femaleModel = 60545;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33473:\n\t\t\titemDef.name = \"#1 Tob cape\";\n\t\t\titemDef.description = \"Reward to the first to complete tob solo and in a team.\";\n\t\t\titemDef.modelId = 60551;\n\t\t\titemDef.maleModel = 60550;\n\t\t\titemDef.femaleModel = 60550;\n\t\t\titemDef.modelZoom = 2295;\n\t\t\titemDef.modelRotation1 = 367;\n\t\t\titemDef.modelRotation2 = 1212;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33474:\n\t\t\titemDef.name = \"Supreme void upgrade kit\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4847;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 163;\n\t\t\titemDef.modelRotation2 = 73;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { -32709, 10295, 10304, 10287, 10275, 10283 };\n\t\t\titemDef.originalModelColors = new int[] { 10, 10, 10, 10, 10, 10 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33475:\n\t\t\titemDef.name = \"Hunter's penguin\";\n\t\t\titemDef.description = \"the one and only's pet.\";\n\t\t\titemDef.modelId = 60548;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33476:\n\t\t\titemDef.name = \"Chef Harambe\";\n\t\t\titemDef.description = \"I like to dip my balls in a deep fryer.\";\n\t\t\titemDef.modelId = 60921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33477:\n\t\t\titemDef.name = \"Void knight champion jr\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60463;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33478:\n\t\t\titemDef.name = \"Custom pet token\";\n\t\t\titemDef.description = \"Trade this to corey after filling out a form on the forums post custom pets\";\n\t\t\titemDef.modelId = 13838;\n\t\t\titemDef.modelZoom = 530;\n\t\t\titemDef.modelRotation1 = 415;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33479:\n\t\t\titemDef.name = \"Mr jaycorr\";\n\t\t\titemDef.description = \"The autistic one.\";\n\t\t\titemDef.modelId = 60592;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33480:\n\t\t\titemDef.name = \"Broom broom\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60593;\n\t\t\titemDef.maleModel = 60593;\n\t\t\titemDef.femaleModel = 60593;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33481:\n\t\t\titemDef.name = \"Test\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11773:\n\t\tcase 11771:\n\t\tcase 11770:\n\t\tcase 11772:\n\t\t\titemDef.anInt196 += 45;\n\t\t\tbreak;\n\t\tcase 22610:\n\t\t\titemDef.name = \"Vesta's spear (deg)\";\n\t\t\tbreak;\n\t\tcase 22614:\n\t\t\titemDef.name = \"Vesta's longsword (deg)\";\n\t\t\tbreak;\n\t\tcase 22616:\n\t\t\titemDef.name = \"Vesta's chainbody (deg)\";\n\t\t\tbreak;\n\t\tcase 22619:\n\t\t\titemDef.name = \"Vesta's plateskirt (deg)\";\n\t\t\tbreak;\n\t\tcase 22622:\n\t\t\titemDef.name = \"Statius's warhammer (deg)\";\n\t\t\tbreak;\n\t\tcase 22625:\n\t\t\titemDef.name = \"Statius's full helm (deg)\";\n\t\t\tbreak;\n\t\tcase 22628:\n\t\t\titemDef.name = \"Statius's platebody (deg)\";\n\t\t\tbreak;\n\t\tcase 22631:\n\t\t\titemDef.name = \"Statius's platelegs (deg)\";\n\t\t\tbreak;\n\t\tcase 22638:\n\t\t\titemDef.name = \"Morrigan's coif (deg)\";\n\t\t\tbreak;\n\t\tcase 22641:\n\t\t\titemDef.name = \"Morrigan's leather body (deg)\";\n\t\t\tbreak;\n\t\tcase 22644:\n\t\t\titemDef.name = \"Morrigan's leather chaps (deg)\";\n\t\t\tbreak;\n\t\tcase 22647:\n\t\t\titemDef.name = \"Zuriel's staff (deg)\";\n\t\t\tbreak;\n\t\tcase 22650:\n\t\t\titemDef.name = \"Zuriel's hood (deg)\";\n\t\t\tbreak;\n\t\tcase 22653:\n\t\t\titemDef.name = \"Zuriel's robe top (deg)\";\n\t\t\tbreak;\n\t\tcase 22656:\n\t\t\titemDef.name = \"Zuriel's robe bottom (deg)\";\n\t\t\tbreak;\n\n\t\tcase 13303:\n\t\t\titemDef.name = \"Event Key (Tarn)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13302:\n\t\t\titemDef.name = \"Event Key (Graardor)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13305:\n\t\t\titemDef.name = \"Tastey-Looking Key\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 2697:\n\t\t\titemDef.name = \"$10 Scroll\";\n\t\t\titemDef.description = \"Get donor status at a cheaper cost!\";\n\t\t\tbreak;\n\t\tcase 2698:\n\t\t\titemDef.name = \"$50 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Super Donator status.\";\n\t\t\tbreak;\n\t\tcase 2699:\n\t\t\titemDef.name = \"$100 Donator\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Extreme Donator status.\";\n\t\t\tbreak;\n\t\tcase 2700:\n\t\t\titemDef.name = \"$5 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Legendary Donator status.\";\n\t\t\tbreak;\n\t\tcase 1464:\n\t\t\titemDef.name = \"Vote ticket\";\n\t\t\titemDef.description = \"This ticket can be exchanged for a voting point.\";\n\t\t\tbreak;\n\n\t\tcase 11739:\n\t\t\titemDef.name = \"Daily reward box\";\n\t\t\titemDef.description = \"Open this box for a daily reward.\";\n\t\t\tbreak;\n\n\t\tcase 13066:// super set\n\t\tcase 12873:// barrows\n\t\tcase 12875:\n\t\tcase 12877:\n\t\tcase 12879:\n\t\tcase 12881:\n\t\tcase 12883:\n\t\tcase 12789:// clue box\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "public ImmutableList<G> getGoods() {\n return this.goods;\n }", "public void listGoods() {\n\t\tfor (String goodId : goods.keySet()) {\n\t\t\tBoolean value = goods.get(goodId).forSale();\n\t\t\tSystem.out.println(goodId + \" --> For sale: \" + value);\n\t\t}\n\t}", "private void loadInv() {\n\t\titem = Main.inventory.business.getAllBaked();\n\t\tString test = \"ID, Name, Amount, Price\\n\";\n\t\t//formatting for string to load into the screen\n\t\tfor(int i=0 ; i< item.size() ; i++) {\n\t\t\ttest += (i+1) + \" \" + item.get(i).getName() +\", \" \n\t\t\t\t\t+ item.get(i).getQuantity() + \n\t\t\t\t\t\", $\"+ Main.inventory.business.getItemCost(item.get(i).getName()) +\"\\n\";\n\t\t}\n\t\tthis.inv.setText(test);\n\t}", "public LinkedList<Inventory> inventoryLL (TheGroceryStore g);", "public void createMainInventor() {\n String name = _plugin.getConfigManager().getGeneralSettingsMap().get(\"Name\");\r\n String colorizedName = _plugin.getUtilsManager().colorizeString(name);\r\n //Size of the Inventory;\r\n int inventorySize = Integer.valueOf(_plugin.getConfigManager().getGeneralSettingsMap().get(\"InventorySize\"));\r\n //Initialize Inventory;\r\n mainInventory = _plugin.getServer().createInventory(null, inventorySize, colorizedName);\r\n //Retrieve the HashMaps for the plugin;\r\n HashMap<Integer, CategoryItem> categoryInformationMap = _plugin.getConfigManager().getCategoryInformationMap();\r\n HashMap<String, String> languageInformation = _plugin.getConfigManager().getLanguageInformationMap();\r\n //Add items to Inventory;\r\n for (Integer i : categoryInformationMap.keySet()) {\r\n CategoryItem categoryItem = categoryInformationMap.get(i);\r\n ItemStack item = categoryItem.getItem();\r\n ItemMeta itemMeta = item.getItemMeta();\r\n itemMeta.setDisplayName(_plugin.getUtilsManager().colorizeString(languageInformation.get(\"CategoryName\").replace(\"%cat%\", categoryItem.getName())));\r\n List<String> lore = new ArrayList<>();\r\n lore.add(_plugin.getUtilsManager().colorizeString(categoryItem.getDescription()));\r\n item.setItemMeta(itemMeta);\r\n mainInventory.addItem(item);\r\n }\r\n }", "public List<Inventory> getInventory();", "private void loadStore(Inventory inventory){\n\t\t \n\t\t TextView tvPremiumUpgradeTitle = (TextView)this.findViewById(R.id.tvPremiumUpgradeTitle);\n\t\t TextView tvPremiumUpgradeDescription = (TextView)this.findViewById(R.id.tvPremiumUpgradeDescription);\n\t\t Button bPremiumUpgradePrice = (Button)this.findViewById(R.id.bPremiumUpgradePrice);\n\t\t ImageView ivPremiumUpgradePurchased = (ImageView)this.findViewById(R.id.ivPremiumUpgradePurchased);\n\t\t \n\t\t \n\t\t SkuDetails skuPremiumUpgrade = inventory.getSkuDetails(this.getString(R.string.SKU_GOOGLE_PLAY_PREMIUM_UPGRADE));\n\t\t tvPremiumUpgradeTitle.setText(this.getString(R.string.store_item_premium_upgrade_title));\n\t\t tvPremiumUpgradeDescription.setText(this.getString(R.string.store_item_premium_upgrade_description));\n\t\t if (inventory.hasPurchase(this.getString(R.string.SKU_GOOGLE_PLAY_PREMIUM_UPGRADE))){\n\t\t\t bPremiumUpgradePrice.setVisibility(View.GONE); \n\t\t\t }\n\t\t else{\n\t\t\t bPremiumUpgradePrice.setText(skuPremiumUpgrade.getPrice());\n\t\t\t bPremiumUpgradePrice.setTag(this.getString(R.string.SKU_GOOGLE_PLAY_PREMIUM_UPGRADE));\n\t\t\t bPremiumUpgradePrice.setOnClickListener(this);\n\t\t\t ivPremiumUpgradePurchased.setVisibility(View.GONE);\n\t\t }\n\n\t\t\t }", "public void printInventory()\n { \n System.out.println();\n\n // Checks if the player has items.\n if(!(getPerson(PLAYER).getInventory().getItems().isEmpty())){\n System.out.println(\"In your backpack, you have:\");\n\n // Gets each item in the player's inventory.\n for(Item item: getPerson(PLAYER).getInventory().getItems()){\n System.out.print(item.getName() + \",\");\n }\n System.out.println();\n System.out.println(\"You are carrying \"+ getPerson(PLAYER).getWeight() + \"kg.\");\n }\n else{\n System.out.println(\"There are currently no items in your backpack.\");\n }\n System.out.println();\n }", "public void getNutritionixIngredientInfo(Recipe curRecipe) {\r\n\r\n ArrayList<NutritionixInfo> nutritionixIngredientList = new ArrayList<NutritionixInfo>();\r\n List<RecipeIngredient> ingredients = this.recipe.getIngredients();\r\n\r\n try {\r\n\r\n // Use the Nutritionix API to lookup nutrition facts info for each one of our ingredients\r\n for (RecipeIngredient ingredient : ingredients) {\r\n String ingredientName = ingredient.getIngredient().getIngredientName();\r\n nutritionixIngredientList.add(nutritionixBean.searchForIngredient(ingredientName, 0, 1));\r\n }\r\n\r\n // Calculate and set the nutrition attributes for this class\r\n for (RecipeIngredient ingredient : ingredients) {\r\n int servings = Math.round(ingredient.getIngredientAmount());\r\n for (NutritionixInfo ni : nutritionixIngredientList) {\r\n this.setCalories(servings * (this.getCalories() + ni.getNfCalories()));\r\n this.setCaloriesFromFat(servings * (this.getCaloriesFromFat() + ni.getNfCaloriesFromFat()));\r\n this.setCholesterol(servings * (this.getCholesterol() + ni.getNfCholesterol()));\r\n this.setDietaryFiber(servings * (this.getDietaryFiber() + ni.getNfDietaryFiber()));\r\n this.setProtein(servings * (this.getProtein() + ni.getNfProtein()));\r\n this.setSaturatedFat(servings * (this.getSaturatedFat() + ni.getNfSaturatedFat()));\r\n this.setSodium(servings * (this.getSodium() + ni.getNfSodium()));\r\n this.setSugars(servings * (this.getSugars() + ni.getNfSugars()));\r\n this.setTotalCarbohydrates(servings * (this.getTotalCarbohydrates() + ni.getNfTotalCarbohydrate()));\r\n this.setTotalFat(servings * (this.getTotalFat() + ni.getNfTotalFat()));\r\n this.setTransFat(servings * (this.getTransFat() + ni.getNfTransFat()));\r\n\r\n this.setCalciumPercentage(servings * (this.getCalciumPercentage() + ni.getNfCalciumDv()));\r\n this.setIronPercentage(servings * (this.getIronPercentage() + ni.getNfIronDv()));\r\n this.setVitaminAPercentage(servings * (this.getVitaminAPercentage() + ni.getNfVitaminADv()));\r\n this.setVitaminCPercentage(servings * (this.getVitaminCPercentage() + ni.getNfVitaminCDv()));\r\n }\r\n }\r\n\r\n } catch (MalformedURLException ex) {\r\n Logger.getLogger(ViewRecipeBean.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (IOException ex) {\r\n Logger.getLogger(ViewRecipeBean.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(ViewRecipeBean.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\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 }", "@Override\r\n\tpublic void setInventoryItems() {\n\t\t\r\n\t}", "private static void displayShopInventory(String[] shopInventory){\r\n for(int i=0; i<shopInventory.length; i++){\r\n switch(shopInventory[i]){\r\n case \"Healing Potion\":\r\n healingPotion HealingPotion = new healingPotion();\r\n System.out.println((i + 1) + \") \" + shopInventory[i]);\r\n System.out.println(\"Price: \" + HealingPotion.getHealingPotionBuyPrice());\r\n break;\r\n case \"Greater Healing Potion\":\r\n greaterHealingPotion GreaterHealingPotion = new greaterHealingPotion();\r\n System.out.println((i + 1) + \") \" + shopInventory[i]);\r\n System.out.println(\"Price: \" + GreaterHealingPotion.getGreaterHealingPotionBuyPrice());\r\n break;\r\n case \"Long Sword\":\r\n longSword LongSword = new longSword();\r\n System.out.println((i + 1) + \") \" + shopInventory[i]);\r\n System.out.println(\"Price: \" + LongSword.getBuyPrice());\r\n break;\r\n case \"Great Sword\":\r\n greatSword GreatSword = new greatSword();\r\n System.out.println((i + 1) + \") \" + shopInventory[i]);\r\n System.out.println(\"Price: \" + GreatSword.getBuyPrice());\r\n break;\r\n case \"Iron Helmet\":\r\n ironHelmet IronHelmet = new ironHelmet();\r\n System.out.println((i + 1) + \") \" + shopInventory[i]);\r\n System.out.println(\"Price: \" + IronHelmet.getBuyPrice());\r\n break;\r\n case \"Iron Chest Plate\":\r\n ironChestPlate IronChestPlate = new ironChestPlate();\r\n System.out.println((i + 1) + \") \" + shopInventory[i]);\r\n System.out.println(\"Price: \" + IronChestPlate.getBuyPrice());\r\n break;\r\n case \"Iron Boots\":\r\n ironBoots IronBoots = new ironBoots();\r\n System.out.println((i + 1) + \") \" + shopInventory[i]);\r\n System.out.println(\"Price: \" + IronBoots.getBuyPrice());\r\n break;\r\n case \"Iron Gloves\":\r\n ironGloves IronGloves = new ironGloves();\r\n System.out.println((i + 1) + \") \" + shopInventory[i]);\r\n System.out.println(\"Price: \" + IronGloves.getBuyPrice());\r\n break;\r\n case \"Scroll of Fireball\":\r\n fireball Fireball = new fireball();\r\n System.out.println((i+1) + \") \" + shopInventory[i]);\r\n System.out.println(\"Price: \" + Fireball.getBuyPrice());\r\n }\r\n }\r\n }", "public CoffeeVendingMachine fillCoffeeVendingMachineWithGivenStock(HashMap<String, Long> initialStock) {\n initialStock.keySet().forEach(key -> {\n String ingredientName = key;\n long ingredientQuantity = initialStock.get(key);\n coffeeVendingMachine.addIngredient(ingredientName, ingredientQuantity);\n });\n return coffeeVendingMachine;\n }", "public void loadItems() {\n\t\tArrayList<String> lines = readData();\n\t\tfor (int i = 1; i < lines.size(); i++) {\n\t\t\tString line = lines.get(i);\n\t\t\t\n\t\t\tString[] parts = line.split(\",\");\n\t\t\t\n//\t\t\tSystem.out.println(\"Name: \" + parts[0]);\n//\t\t\tSystem.out.println(\"Amount: \" + parts[1]);\n//\t\t\tSystem.out.println(\"Price: \" + parts[2]);\n//\t\t\tSystem.out.println(\"-------\");\n\t\t\t\n\t\t\tString name = parts[0].trim();\n\t\t\tint amount = Integer.parseInt(parts[1].trim());\n\t\t\tdouble price = Double.parseDouble(parts[2].trim());\n\t\t\t\n\t\t\tItem item = new Item(name, amount, price);\n\t\t\titemsInStock.add(item);\n\t\t}\n\t}", "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}", "@Override\n\tpublic void openInventory() {\n\t\t\n\t}", "public static void display(){\n \n //create an array : Remember positions\n //wheat= 0\n //Land = 1 \n //Population = 2\n \n String[] items = {\"Wheat\", \"Land\", \"Population\"};\n \n \n // call the crops object \n Crops theCrops = Game.getCrop();\n \n //get wheat\n int wheat = theCrops.getWheatInStore();\n \n //get land (acres)\n int acres = theCrops.getAcres();\n \n //get population \n \n int population = theCrops.getPopulation();\n \n //print results \n \n System.out.println(\"\\nInventory List:\");\n //wheat \n System.out.println(\"Wheat in Store:\" + wheat + \" bushels of \" + items[0]);\n //acres\n System.out.println(\"Acres of Land owned:\" + acres + \" acres of \" + items[1]);\n \n //population\n System.out.println(\"Current population:\" + population + \" people in the \" + items[2]);\n \n \n \n }", "public void initItems() {\n List<Integer> emptySlots = NimbleServer.enchantmentConfig.getEmptySlots();\n for (int i = 0; i < getSize(); i++) {\n if(!(emptySlots.contains(i))) {\n getInventory().setItem(i, getFiller());\n }\n }\n }", "private static List<Gene> getGenePool() {\n List<Gene> list = new ArrayList<>();\n\n Item item1 = new Item();\n item1.setName(\"Swiss Army Knife\");\n item1.setWeight(0.08125);\n item1.setVal(15);\n Gene gene1 = new Gene(item1);\n\n Item item2 = new Item();\n item2.setName(\"Duct Tape\");\n item2.setWeight(1.3);\n item2.setVal(3);\n Gene gene2 = new Gene(item2);\n\n Item item3 = new Item();\n item3.setName(\"Rope (50 feet)\");\n item3.setWeight(7);\n item3.setVal(10);\n Gene gene3 = new Gene(item3);\n\n Item item4 = new Item();\n item4.setName(\"Satellite phone\");\n item4.setWeight(2);\n item4.setVal(8);\n Gene gene4 = new Gene(item4);\n\n Item item5 = new Item();\n item5.setName(\"Elmer's Glue\");\n item5.setWeight(0.25);\n item5.setVal(2);\n Gene gene5 = new Gene(item5);\n\n Item item6 = new Item();\n item6.setName(\"Toilet Paper Roll\");\n item6.setWeight(.5);\n item6.setVal(4);\n Gene gene6 = new Gene(item6);\n\n Item item7 = new Item();\n item7.setName(\"Binoculars\");\n item7.setWeight(3);\n item7.setVal(5);\n Gene gene7 = new Gene(item7);\n\n Item item8 = new Item();\n item8.setName(\"Compass\");\n item8.setWeight(0.0573202);\n item8.setVal(15);\n Gene gene8 = new Gene(item8);\n\n Item item9 = new Item();\n item9.setName(\"Jug (pre-filled with water)\");\n item9.setWeight(4);\n item9.setVal(6);\n Gene gene9 = new Gene(item9);\n\n Item item10 = new Item();\n item10.setName(\"Flashlight\");\n item10.setWeight(2);\n item10.setVal(4);\n Gene gene10 = new Gene(item10);\n\n Item item11 = new Item();\n item11.setName(\"Box of paper clips\");\n item11.setWeight(.9);\n item11.setVal(2);\n Gene gene11 = new Gene(item11);\n\n Item item12 = new Item();\n item12.setName(\"Gloves (1 pair)\");\n item12.setWeight(.8125);\n item12.setVal(3);\n Gene gene12 = new Gene(item12);\n\n Item item13 = new Item();\n item13.setName(\"Scissors\");\n item13.setWeight(0.2);\n item13.setVal(2);\n Gene gene13 = new Gene(item13);\n\n Item item14 = new Item();\n item14.setName(\"Signal Flair (4pk)\");\n item14.setWeight(4);\n item14.setVal(5);\n Gene gene14 = new Gene(item14);\n\n Item item15 = new Item();\n item15.setName(\"Water Purifying System\");\n item15.setWeight(0.5125);\n item15.setVal(4);\n Gene gene15 = new Gene(item15);\n\n Item item16 = new Item();\n item16.setName(\"Whistle\");\n item16.setWeight(0.075);\n item16.setVal(2);\n Gene gene16 = new Gene(item16);\n\n Item item17 = new Item();\n item17.setName(\"Sleeping Bag\");\n item17.setWeight(0.38125);\n item17.setVal(4);\n Gene gene17 = new Gene(item17);\n\n Item item18 = new Item();\n item18.setName(\"Insect Repellent\");\n item18.setWeight(1.15);\n item18.setVal(3);\n Gene gene18 = new Gene(item18);\n\n Item item19 = new Item();\n item19.setName(\"Trowel\");\n item19.setWeight(0.31875);\n item19.setVal(3);\n Gene gene19 = new Gene(item19);\n\n Item item20 = new Item();\n item20.setName(\"Lighter\");\n item20.setWeight(.2);\n item20.setVal(4);\n Gene gene20 = new Gene(item20);\n\n Item item21 = new Item();\n item21.setName(\"Safety Horn\");\n item21.setWeight(.21);\n item21.setVal(3);\n Gene gene21 = new Gene(item21);\n\n Item item22 = new Item();\n item22.setName(\"Headlamp\");\n item22.setWeight(.8);\n item22.setVal(4);\n Gene gene22 = new Gene(item22);\n\n Item item23 = new Item();\n item23.setName(\"Freeze Dried Food Kit\");\n item23.setWeight(2);\n item23.setVal(6);\n Gene gene23 = new Gene(item23);\n\n Item item24 = new Item();\n item24.setName(\"Sunscreen\");\n item24.setWeight(.5);\n item24.setVal(4);\n Gene gene24 = new Gene(item24);\n\n Item item25 = new Item();\n item25.setName(\"Trekking Pole (Adjustable)\");\n item25.setWeight(1.3);\n item25.setVal(4);\n Gene gene25 = new Gene(item25);\n\n Item item26 = new Item();\n item26.setName(\"Counter Assault Bear Spray\");\n item26.setWeight(.5);\n item26.setVal(4);\n Gene gene26 = new Gene(item26);\n\n Item item27 = new Item();\n item27.setName(\"Insect Spray\");\n item27.setWeight(.5);\n item27.setVal(3);\n Gene gene27 = new Gene(item27);\n\n Item item28 = new Item();\n item28.setName(\"Hand sanitizer\");\n item28.setWeight(.625);\n item28.setVal(3);\n Gene gene28 = new Gene(item28);\n\n Item item29 = new Item();\n item29.setName(\"Mirror\");\n item29.setWeight(.5);\n item29.setVal(3);\n Gene gene29 = new Gene(item29);\n\n Item item30 = new Item();\n item30.setName(\"First Aid Kit\");\n item30.setWeight(3);\n item30.setVal(6);\n Gene gene30 = new Gene(item30);\n\n list.add(gene1);\n list.add(gene2);\n list.add(gene3);\n list.add(gene4);\n list.add(gene5);\n list.add(gene6);\n list.add(gene7);\n list.add(gene8);\n list.add(gene9);\n list.add(gene10);\n list.add(gene11);\n list.add(gene12);\n list.add(gene13);\n list.add(gene14);\n list.add(gene15);\n list.add(gene16);\n list.add(gene17);\n list.add(gene18);\n list.add(gene19);\n list.add(gene20);\n list.add(gene21);\n list.add(gene22);\n list.add(gene23);\n list.add(gene24);\n list.add(gene25);\n list.add(gene26);\n list.add(gene27);\n list.add(gene28);\n list.add(gene29);\n list.add(gene30);\n\n return list;\n }", "List<Goods> getGoodsList();", "public static void main(String[] args) {\n\n\t\tint menuNumber;\n\t\tScanner input = new Scanner(System.in);\n\t\tArrayList<Inventory> newInventory = new ArrayList<>();\n\t\tint countID=0;\n\n\t\tint itemCount = newInventory.size();\n\t\tint id =0;\n\t\tdouble biaya=0;\n\t\tString name=\"\";\n\t\tString product=\"\";\n\t\tString description=\"\";\n\t\tdouble price=0;\n\t\tint stringLength = 16;\n\t\t\n//\t\tGadai data = new Gadai(countID, itemCount, id, biaya, name, product, description, price, stringLength);\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"+-------------------------------+\");\n\t\t\tSystem.out.println(\" \t\tMENU\t\t\t\");\n\t\t\tSystem.out.println(\"+-------------------------------+\");\n\t\t\tSystem.out.println(\"1. Gadai\");\n\t\t\tSystem.out.println(\"2. Tebus\");\n\t\t\tSystem.out.println(\"3. Tampilkan Inventory\");\n\t\t\tSystem.out.println(\"4. Exit\");\n\t\t\tSystem.out.println(\"+-------------------------------+\");\n\t\t\tSystem.out.print(\"Masukkan Menu Pilihan : \");\n\t\t\tmenuNumber = input.nextInt();\n\n\t\t\tif(menuNumber==1) {\n\t\t\t\tGadai gadai = new Gadai(newInventory, name, itemCount, product, description, price, stringLength);\n\t\t\t\titemCount = gadai.getItemCount();\n\t\t\t} \n\t\t\telse if(menuNumber==2) {\n\t\t\t\tInventory.printHeaderTebus();\n\t\t\t\tfor (Inventory inventory : newInventory) inventory.printRowTebus();\n\t\t\t\tInventory.printLine();\n\t\t\t\tdo {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSystem.out.println(\"Masukkan ID barang yang ingin di tebus : \");\t\n\t\t\t\t\t\tid = input.nextInt();\n\t\t\t\t\t\tif (id <= itemCount && id > 0) {\n\t\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Masukkan biaya yang ingin di tebus : \");\t\n\t\t\t\t\t\t\t\t\tbiaya = input.nextDouble();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch (Exception e){\n\t\t\t\t\t\t\t\t\tinput.next();\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} while(biaya > newInventory.get(id-1).getUtang() || biaya <= 0);\n\n\t\t\t\t\t\t\tif (biaya <= newInventory.get(id-1).getUtang()) {\n\t\t\t\t\t\t\t\tnewInventory.get(id-1).setUtang(newInventory.get(id-1).getUtang() - biaya);\n\t\t\t\t\t\t\t\tif (newInventory.get(id-1).getUtang() == 0) {\n\t\t\t\t\t\t\t\t\tnewInventory.get(id-1).setStatus(\"Lunas\");\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\tcatch (Exception e){\n\t\t\t\t\t\tinput.next();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t} while(id > itemCount || id <= 0 );\n\n\t\t\t} else if(menuNumber==3) {\n\t\t\t\tInventory.printHeaderInventory();\n\t\t\t\tfor (Inventory inventory : newInventory) \n\t\t\t\t\tif (inventory.getStatus() != \"Lunas\")\n\t\t \t\tinventory.printRowInventory();\n\t\t\t\tInventory.printLine();\n\t\t\t} else if(menuNumber==4) {\n\t\t\t\tSystem.out.println(\"Exit\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Menu Tidak Ada\");\n\t\t\t}\n\t\t} while(menuNumber!=4);\n\n\t}", "private void updateInventory(Sale newSale)\n {\n ArrayList<SaleItem> tempSaleItems = newSale.getSaleItems();\n for(int i = 0; i < tempSaleItems.size(); i++)\n {\n //Get saleItem quantity\n double saleNum = tempSaleItems.get(i).getQuantity();\n //Loop through ingredients\n ArrayList<Ingredient> tempIng = tempSaleItems.get(i).getIngredients();\n for(int j = 0; j < tempIng.size(); j++)\n {\n //get this ingredient name and quantity\n String thisName = tempIng.get(j).getName();\n double thisQty = tempIng.get(j).getQuantity();\n\n //get InventorySingleton qty\n double oldQty = InventorySingleton.get(this).getIngredientQuantity(thisName);\n double newQty = oldQty - (thisQty*saleNum);\n //Update Inventory Singleton and Database\n InventorySingleton.get(this).setIngredientQuantity(thisName, newQty);\n inventoryDBUpdate();\n }\n }\n }", "@Test\n\tpublic void testAddInventory() throws InventoryException {\n\t\tcoffeeMaker.addInventory(\"4\",\"7\",\"0\",\"9\");\n\t}", "public void fillCardInventoryDetail() throws UserManagementException {\n \n CardInventoryDataBean cardInventory = cardInventoryTransformerBean.retrieveCardInventoryDetail(id);\n cardInventoryDataBean.setId(cardInventory.getId());\n cardInventoryDataBean.setAssigneUserId(cardInventory.getAssigneUserId());\n cardInventoryDataBean.setCardEnrollNo(cardInventory.getCardEnrollNo());\n cardInventoryDataBean.setCardId(cardInventory.getCardId());\n cardInventoryDataBean.setName(cardInventory.getName());\n cardInventoryDataBean.setReason(cardInventory.getReason());\n cardInventoryDataBean.setVendor(cardInventory.getVendor());\n cardInventoryDataBean.setTempCardEnrollNo(id);\n\n }", "public TransationRecords buyProduct(String species, int number) {\n HashMap<String , List<HashMap<String,String >>> productInfo = new HashMap<>();\n productInfo = productList.getProductInfo();\n if (species.equals(\"CHICKEN\")) {\n for (int i = 0; i < number; i++) {\n Chicken chicken = new Chicken();\n productList.chickenList.add(chicken);\n this.farmOwner.minusMoney(chicken.getBuyValue());\n }\n return new TransationRecords(\"CHICKEN\", TransationRecords.SellOrBuy.BUY,\n number, new Chicken().getBuyValue(), (int) this.farmOwner.getMoney(), productInfo);\n } else if (species.equals(\"DOG\")) {\n for (int i = 0; i < number; i++) {\n Dog dog = new Dog();\n productList.dogList.add(dog);\n this.farmOwner.minusMoney(dog.getBuyValue());\n }\n return new TransationRecords(\"DOG\", TransationRecords.SellOrBuy.BUY,\n number, new Dog().getBuyValue(), (int) this.farmOwner.getMoney(), productInfo);\n } else if (species.equals(\"PERCH\")) {\n for (int i = 0; i < number; i++) {\n Perch perch = new Perch();\n productList.perchList.add(perch);\n this.farmOwner.minusMoney(perch.getBuyValue());\n }\n return new TransationRecords(\"PERCH\", TransationRecords.SellOrBuy.BUY,\n number, new Perch().getBuyValue(), (int) this.farmOwner.getMoney(), productInfo);\n } else if (species.equals(\"APPLE\")) {\n for (int i = 0; i < number; i++) {\n Apple apple = new Apple();\n productList.appleList.add(apple);\n this.farmOwner.minusMoney(apple.getBuyValue());\n }\n return new TransationRecords(\"APPLE\", TransationRecords.SellOrBuy.BUY,\n number, new Apple().getBuyValue(), (int) this.farmOwner.getMoney(), productInfo);\n } else if (species.equals(\"CHERRY\")) {\n for (int i = 0; i < number; i++) {\n Cherry cherry = new Cherry();\n productList.cherryList.add(cherry);\n this.farmOwner.minusMoney(cherry.getBuyValue());\n }\n return new TransationRecords(\"CHERRY\", TransationRecords.SellOrBuy.BUY,\n number, new Cherry().getBuyValue(), (int) this.farmOwner.getMoney(), productInfo);\n } else if (species.equals(\"POTATO\")) {\n for (int i = 0; i < number; i++) {\n Potato potato = new Potato();\n productList.potatoList.add(potato);\n this.farmOwner.minusMoney(potato.getBuyValue());\n }\n return new TransationRecords(\"POTATO\", TransationRecords.SellOrBuy.BUY,\n number, new Potato().getBuyValue(), (int) this.farmOwner.getMoney(), productInfo);\n } else if (species.equals(\"TOMATO\")) {\n for (int i = 0; i < number; i++) {\n Tomato tomato = new Tomato();\n productList.tomatoList.add(tomato);\n this.farmOwner.minusMoney(tomato.getBuyValue());\n }\n return new TransationRecords(\"TOMATO\", TransationRecords.SellOrBuy.BUY,\n number, new Tomato().getBuyValue(), (int) this.farmOwner.getMoney(), productInfo);\n }\n return emptyRecords;\n }", "public void dropDownInventory(ComboBox combo) throws SQLException {\r\n dataAccess = new Connection_SQL(\"jdbc:mysql://localhost:3306/items\", \"root\", \"P@ssword123\");\r\n combo.setItems(dataAccess.menuInventory());\r\n }", "void loadInventory() {\n\n // make sure there isn't already an inventory record\n MrnInventory checkInv[] =\n new MrnInventory(survey.getSurveyId()).get();\n\n if (dbg3) System.out.println(\"<br>loadInventory: survey.getSurveyId() = \" +\n survey.getSurveyId());\n if (dbg3) System.out.println(\"<br>loadInventory: checkInv.length = \" +\n checkInv.length);\n\n if (checkInv.length == 0) {\n\n inventory.setSurveyId(survey.getSurveyId());\n\n // defaults\n inventory.setDataCentre(\"SADCO\");\n inventory.setTargetCountryCode(0); // unknown\n inventory.setStnidPrefix(survey.getInstitute());\n inventory.setDataRecorded(\"Y\");\n\n // from screen - done in LoadMRNData.getArgsFromFile()\n //inventory.setCountryCode(screenInv.getCountryCode());\n //inventory.setPlanamCode(screenInv.getPlanamCode());\n //inventory.setInstitCode(screenInv.getInstitCode());\n //inventory.setCruiseName(screenInv.getCruiseName());\n //inventory.setProjectName(screenInv.getProjectName());\n //inventory.setAreaname(screenInv.getAreaname()); // use as default to show on screen\n //inventory.setDomain(screenInv.getDomain()); // use as default to show on screen\n\n inventory.setCountryCode(0); // unknown\n\n inventory.setSciCode1(1); // unknown\n inventory.setSciCode2(1); // unknown // new\n inventory.setCoordCode(1); // unknown\n\n inventory.setProjectionCode(1); // unknown\n inventory.setSpheroidCode(1); // unknown\n inventory.setDatumCode(1); // unknown\n\n inventory.setSurveyTypeCode(1); // hydro\n if (dbg) System.out.println(\"loadInventory: put inventory = \" + inventory);\n\n try {\n inventory.put();\n } catch(Exception e) {\n System.err.println(\"loadInventory: put inventory = \" + inventory);\n System.err.println(\"loadInventory: put sql = \" + inventory.getInsStr());\n e.printStackTrace();\n } // try-catch\n if (dbg3) System.out.println(\"<br>loadInventory: put inventory = \" +\n inventory);\n\n } // if (checkInv.length > 0)\n\n }", "public static Items initialVendingMachine() {\n Items items = new Items();\n Item cola = new Item(R.drawable.cola, \"Cola\", 30, 100, 3000, 0);\n Item chips = new Item(R.drawable.chips, \"Chips\", 30, 50, 3000, 0);\n Item candy = new Item(R.drawable.candy, \"Candy\", 30, 65, 3000, 0);\n items.addItem(cola);\n items.addItem(chips);\n items.addItem(candy);\n items.addMachineCredit(5000);\n return items;\n }", "public Inventory inventoryUpdate (TheGroceryStore g, LinkedList<Inventory> updater) throws ItemNotFoundException;", "private static String[] populateShopKeeperInventory(String[] shopKeeperInventory){\r\n shopKeeperInventory[0] = \"Healing Potion\";\r\n shopKeeperInventory[1] = \"Greater Healing Potion\";\r\n shopKeeperInventory[2] = \"Long Sword\";\r\n shopKeeperInventory[3] = \"Great Sword\";\r\n return shopKeeperInventory;\r\n }", "public static void loadIndustrys(){\n //Try to connect to the database\n try {\n\n //Create Database Connection\n Class.forName(Main.database.DRIVER);\n Connection con = DriverManager.getConnection(Main.database.SERVER, Main.database.USERNAME, Main.database.PASSWORD);\n\n String sql = \"SELECT * FROM Industry\";\n\n //Create the java statement\n Statement statement = con.createStatement();\n\n //Execute the query and get the result\n ResultSet row = statement.executeQuery(sql);\n\n //Iterate through the results\n while (row.next()) {\n industrys.addItem(makeItem(row.getString(\"Name\")));\n }\n\n } catch (Exception ex) {\n\n //We got an Exception\n System.err.println(ex.getMessage());\n\n //Alert Error\n JOptionPane.showMessageDialog(Main.frame, \" Error Connecting to Database!\");\n }\n }", "public InventoryItem(){\r\n this.itemName = \"TBD\";\r\n this.sku = 0;\r\n this.price = 0.0;\r\n this.quantity = 0;\r\n nItems++;\r\n }", "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\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}", "private void makeBag(final HashMap<Integer, Integer> legalGoods,\n final HashMap<Integer, Integer> illegalGoods) {\n if (!legalGoods.isEmpty()) {\n this.putLegalGoods(legalGoods);\n } else {\n this.putIllegalGood(illegalGoods);\n this.setDeclaredGood(0);\n }\n }", "public Inventory getInventory(){\n return inventory;\n }", "public void onInventoryChanged();", "public void init_store() {\r\n /* init inventory dictionary*/ \r\n System.out.println(\"Initializing Store\");\r\n dailyRollInventory.put(\"Egg roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Jelly roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Pastry roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Sausage roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Spring roll\", MAX_ROLL_COUNT);\r\n\r\n /* init totalRollSales for the month */\r\n totalRollSales.put(\"Egg roll\", 0.0);\r\n totalRollSales.put(\"Jelly roll\", 0.0);\r\n totalRollSales.put(\"Pastry roll\", 0.0);\r\n totalRollSales.put(\"Sausage roll\", 0.0);\r\n totalRollSales.put(\"Spring roll\", 0.0);\r\n\r\n /* init totalCustomerSales for the month */\r\n totalCustomerSales.put(\"Casual\", 0.0);\r\n totalCustomerSales.put(\"Business\", 0.0);\r\n totalCustomerSales.put(\"Catering\", 0.0);\r\n\r\n /* init daily customer sales */\r\n dailyCustomerSales.put(\"Casual\", 0.0);\r\n dailyCustomerSales.put(\"Business\", 0.0);\r\n dailyCustomerSales.put(\"Catering\", 0.0);\r\n \r\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 }", "@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}", "private void addInventoryInformation() {\r\n \tString[] toolTypeFieldItems = {\"Electrical\", \"Non-Electrical\"};\r\n \t\r\n \taddButton = new JButton (\"Add\");\r\n deleteButton = new JButton (\"Delete\");\r\n clearButton = new JButton (\"Clear\");\r\n decreaseButton = new JButton (\"Buy\");\r\n toolIdText = new JTextField (5);\r\n toolNameText = new JTextField (5);\r\n stockText = new JTextField (5);\r\n priceText = new JTextField (5);\r\n supplierText = new JTextField (5);\r\n toolTypeField = new JComboBox<String> (toolTypeFieldItems); \r\n powerText = new JTextField (5);\r\n\r\n add (addButton);\r\n add (deleteButton);\r\n add (clearButton);\r\n add (decreaseButton);\r\n add (toolIdText);\r\n add (toolNameText);\r\n add (stockText);\r\n add (priceText);\r\n add (supplierText);\r\n add (toolTypeField);\r\n add (powerText);\r\n \r\n addButton.setBounds (585, 590, 100, 25);\r\n deleteButton.setBounds (715, 590, 100, 25);\r\n clearButton.setBounds (650, 630, 100, 25);\r\n decreaseButton.setBounds (650, 670, 100, 25);\r\n toolIdText.setBounds (690, 290, 100, 25);\r\n toolNameText.setBounds (690, 330, 100, 25);\r\n stockText.setBounds (690, 410, 100, 25);\r\n priceText.setBounds (690, 450, 100, 25);\r\n supplierText.setBounds (690, 490, 100, 25);\r\n toolTypeField.setBounds (690, 370, 100, 25);\r\n powerText.setBounds (690, 530, 100, 25);\r\n }", "private static void viewItems() {\r\n\t\tdisplayShops();\r\n\t\tint shopNo = getValidUserInput(scanner, shops.length);\r\n\t\tdisplayItems(shopNo);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please enter the ID of the element to add to cart. \\\"0\\\" for exit\");\r\n\t\tSystem.out.println();\r\n\t\tint productNo = getValidUserInput(scanner, shops[shopNo].getAllSales().length + 1);\r\n\t\tif (productNo > 0) {\r\n\t\t\tProduct productToBeAdd = shops[shopNo].getAllSales()[productNo - 1];\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.print(\" Please enter the number of the item you would like to buy: \");\r\n\t\t\tint numberOfTheItems = getUserIntInput();\r\n\t\t\tcart.addProduct(productToBeAdd, numberOfTheItems);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Purchase done, going back to the menu.\");\r\n\t\tSystem.out.println();\r\n\t}", "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 }", "private void getAllItems() {\n\n try {\n double sellingPrice = 0;\n ArrayList<Item> allItems = ItemController.getAllItems();\n for (Item item : allItems) {\n double selling_margin = item.getSelling_margin();\n if (selling_margin > 0) {\n sellingPrice = item.getSellingPrice() - (item.getSellingPrice() * selling_margin / 100);\n } else {\n sellingPrice = item.getSellingPrice();\n }\n Object row[] = {item.getItemCode(), item.getDescription(), Validator.BuildTwoDecimals(item.getQuantity()), Validator.BuildTwoDecimals(sellingPrice)};\n tableModel.addRow(row);\n }\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(FormItemSearch.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(FormItemSearch.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void getItemList(){\n sendPacket(Item_stocksTableAccess.getConnection().getItemList());\n \n }", "public Product getProduct(int i){\n return inventory.get(i);\n }", "public VendingMachine(){\n this.customerMoney = new ArrayList<>();\n this.bank = new ArrayList<>();\n this.stock = new ArrayList<>();\n stock.add(new Product(\"Cookie\", .50, 10));\n stock.add(new Product(\"Crackers\", .25, 10));\n stock.add(new Product(\"Candy\", .45, 10));\n stock.add(new Product(\"Water\", 1.0, 10));\n stock.add(new Product(\"Juice\", 1.5, 10));\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 getKilledProduct() \n {\n try{\n Player.getInstance().getInventory().add(new CowMeat());\n } catch (IllegalAccessException e) {\n //Do nothing\n }\n }", "public static HashMap<Integer, Item> storeItems(){\n\t\tItem prod1 = new Item(\"Candy\",40);\n\t\tItem prod2 = new Item(\"Bread\",30);\n\t\tItem prod3 = new Item(\"Butter\",50);\n\t\tItem prod4 = new Item(\"Milk\",43);\n\t\tItem prod5 = new Item(\"Toast\",60);\n\t\tItem prod6 = new Item(\"Curd\",20);\n\t\tItem prod7 = new Item(\"Cream\",80);\n\t\tItem prod8 = new Item(\"Pastry\",45);\n\t\tItem prod9 = new Item(\"Cake\",300);\n\t\tItem prod10 = new Item(\"Panner\",200);\n\t\tItem prod11 = new Item(\"Egg\",8);\n\t\tproducts.put(1,prod1);\n\t\tproducts.put(2,prod2);\n\t\tproducts.put(3,prod3);\n\t\tproducts.put(4,prod4);\n\t\tproducts.put(5,prod5);\n\t\tproducts.put(6,prod6);\n\t\tproducts.put(7,prod7);\n\t\tproducts.put(8,prod8);\n\t\tproducts.put(9,prod9);\n\t\tproducts.put(10,prod10);\n\t\tproducts.put(11,prod11);\n\t\treturn products;\n\t}", "public void getFoodItems() {\n\t\tDBConnection dbcon = new DBConnection(this);\n\t\tdb = dbcon.getConnection();\n\n\t\tfood_items = db.rawQuery(\"select * from item where \" + category_name_id\n\t\t\t\t+ \"='\" + categoryid + \"'\", null);\n\t\tfood_items.moveToPosition(0);\n\n\t\tdb.close();\n\n\t}", "public TransationRecords sellProduct(String species, int number) {\n HashMap<String , List<HashMap<String,String >>> productInfo = new HashMap<>();\n productInfo = productList.getProductInfo();\n if (species.equals(\"CHICKEN\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.chickenList.size(); i++) {\n if (productList.chickenList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.chickenList.size(); i++) {\n int value = new Chicken().getSellValue();\n if (productList.chickenList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n hasSoldNumber++;\n productList.chickenList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"CHICKEN\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"DOG\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.dogList.size(); i++) {\n if (productList.dogList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.dogList.size(); i++) {\n int value = new Dog().getSellValue();\n if (productList.dogList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n hasSoldNumber++;\n productList.dogList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"DOG\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"PERCH\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.perchList.size(); i++) {\n if (productList.perchList.get(number).getLifestage() == Animal.LifeStage.ADULT) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.perchList.size(); i++) {\n int value = new Perch().getSellValue();\n if (productList.perchList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n hasSoldNumber++;\n productList.perchList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"PERCH\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"APPLE\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.appleList.size(); i++) {\n if (productList.appleList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.appleList.size(); i++) {\n int value = new Apple().getSellValue();\n if (productList.appleList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.appleList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"APPLE\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"CHERRY\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.cherryList.size(); i++) {\n if (productList.cherryList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.cherryList.size(); i++) {\n int value = new Cherry().getSellValue();\n if (productList.cherryList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.cherryList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"CHERRY\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"POTATO\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.potatoList.size(); i++) {\n if (productList.potatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.potatoList.size(); i++) {\n int value = new Potato().getSellValue();\n if (productList.potatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.potatoList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"POTATO\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"TOMATO\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.tomatoList.size(); i++) {\n if (productList.tomatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.tomatoList.size(); i++) {\n int value = new Tomato().getSellValue();\n if (productList.tomatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.tomatoList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"TOMATO\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n }\n return emptyRecords;\n }", "public void reestablecerFullStock() { \n bodega Bodega = new bodega();\n Bodega.setProductosList(this.bodegaDefault());\n }", "public static int[] guthansEquipment() {\n return new int[]{\n Items.GUTHANS_HELM_4724,\n Items.GUTHANS_HELM_100_4904,\n Items.GUTHANS_HELM_75_4905,\n Items.GUTHANS_HELM_50_4906,\n Items.GUTHANS_HELM_25_4907,\n Items.GUTHANS_PLATEBODY_4728,\n Items.GUTHANS_PLATEBODY_100_4916,\n Items.GUTHANS_PLATEBODY_75_4917,\n Items.GUTHANS_PLATEBODY_50_4918,\n Items.GUTHANS_PLATEBODY_25_4919,\n Items.GUTHANS_CHAINSKIRT_4730,\n Items.GUTHANS_CHAINSKIRT_100_4922,\n Items.GUTHANS_CHAINSKIRT_75_4923,\n Items.GUTHANS_CHAINSKIRT_50_4924,\n Items.GUTHANS_CHAINSKIRT_25_4925,\n Items.GUTHANS_WARSPEAR_4726,\n Items.GUTHANS_WARSPEAR_100_4910,\n Items.GUTHANS_WARSPEAR_75_4911,\n Items.GUTHANS_WARSPEAR_50_4912,\n Items.GUTHANS_WARSPEAR_25_4913,\n Items.BERSERKER_RING_I_11773\n };\n }", "public importProduct() {\n initComponents();\n Sql s = new Sql();\n\n s.Select_MaterialItem(Materials_combox);\n s.loadcombo(item_combox);\n s.Select_BigItem(Bigitem_combox);\n }", "public GroceryStore () {\n aisles = 20;\n freezers = 5;\n inventoryFull = 8;\n fresh = 9;\n liveAnimals = false;\n bakery = true;\n bestSeller = \"Milk\";\n numberOfProducts = 10000;\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 }", "public ItemStack b(InventoryCrafting var1)\n {\n int var2 = var1.getSize();\n boolean var3 = false;\n int var4 = 0;\n int var5 = 0;\n ItemStack var6 = null;\n Vector var7 = new Vector();\n int var8;\n ItemStack var9;\n\n for (var8 = 0; var8 < var2; ++var8)\n {\n var9 = var1.getItem(var8);\n\n if (var9 != null)\n {\n if (var9.getItem() instanceof ItemEnergySensorLocationCard)\n {\n var7.add(var9);\n ++var4;\n }\n else\n {\n if (!(var9.getItem() instanceof ItemEnergyArrayLocationCard))\n {\n var3 = true;\n break;\n }\n\n var6 = var9;\n ++var5;\n }\n }\n }\n\n if (var3)\n {\n return null;\n }\n else if (var4 >= 2 && var4 <= 6 && var5 == 0)\n {\n ItemStack var10 = new ItemStack(IC2NuclearControl.itemEnergyArrayLocationCard, 1, 0);\n ItemEnergyArrayLocationCard.initArray(var10, var7);\n return var10;\n }\n else\n {\n if (var4 == 0 && var5 == 1)\n {\n var8 = ItemEnergyArrayLocationCard.getCardCount(var6);\n\n if (var8 > 0)\n {\n return new ItemStack(Items.getItem(\"electronicCircuit\").getItem(), 2 * var8, 0);\n }\n }\n else if (var5 == 1 && var4 > 0)\n {\n var8 = ItemEnergyArrayLocationCard.getCardCount(var6);\n\n if (var8 + var4 <= 6)\n {\n var9 = new ItemStack(IC2NuclearControl.itemEnergyArrayLocationCard, 1, 0);\n var9.setTag((NBTTagCompound)var6.getTag().clone());\n ItemEnergyArrayLocationCard.initArray(var9, var7);\n return var9;\n }\n }\n\n return null;\n }\n }", "Items(int quantidade,Produto produto){\n\t\tqntd = quantidade;\n\t\tthis.produto = produto;\n\t\t\n\t}", "public Product getProductInventory() {\n return productInventory;\n }", "@Override\n\tpublic void browseItems(Session session){\n\t\t//exception handling block\n\t\ttry{\n\t\t\tbrowseItem=mvc.browseItems(session);\n\t\t\t//displaying items from database\n\t\t\tSystem.out.println(\"<---+++---Your shopping items list here----+++--->\");\n\t\t\tSystem.out.println(\"ItemId\"+\" \"+\"ItemName\"+\" \"+\"ItemType\"+\" \"+\"ItemPrice\"+\" \"+\"ItemQuantity\");\n\t\t\tfor(int i = 0; i < browseItem.size(); i++) {\n\t System.out.println(browseItem.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App Exception- Browse Items: \" +e.getMessage());\n\t\t}\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}", "public Basket(Inventory inventory){\n myBasket = new HashMap<>();\n totalCost = 0;\n isPaid = false;\n Random randomGenerator = new Random();\n invoiceNumber = randomGenerator.nextInt(30000) + 1;\n this.inventory = inventory;\n }", "public static void main(String args[])\n {\n Location location = new Location(\"Depok\", \"Jawa Brat\", \"sebuah kota bukan kata\");\n DatabaseSupplier.addSupplier(new Supplier(\"Bambang\", \"[email protected]\", \"085866669999\",location));\n System.out.println(\"====Supplier Already Exist====\");\n DatabaseSupplier.addSupplier(new Supplier(\"Bambang\", \"[email protected]\", \"085966669999\",location));\n// for (Supplier i: DatabaseSupplier.getSupplierDatabase()\n// ) {\n// System.out.println(i);\n// }\n DatabaseItem.addItem(new Item(\"Ian\", ItemStatus.Refurbished, 10000, DatabaseSupplier.getSupplier(1), ItemCategory.Stationery));\n System.out.println(\"====Customer Already Exist====\");\n DatabaseItem.addItem(new Item(\"Ian\", ItemStatus.New, 10000, DatabaseSupplier.getSupplier(1), ItemCategory.Stationery));\n// for (Item i: DatabaseItem.getItemDatabase())\n// {\n// System.out.println(i);\n// }\n\n DatabaseCustomer.addCustomer(new Customer(\"Shiroe\", \"[email protected]\", \"shiroe69\", \"Shiroe2019\", 2010, 10, 1));\n System.out.println(\"====Supplier Item Exist====\");\n DatabaseCustomer.addCustomer(new Customer(\"Shiroe\", \"[email protected]\", \"shiroe70\", \"Shiroe2019\", 2010, 10, 2));\n// for (Customer i: DatabaseCustomer.getCustomerDatabase())\n// {\n// System.out.println(i);\n// }\n ArrayList<Integer> item = new ArrayList<Integer>();\n item.add(1);\n\n DatabaseInvoice.addInvoice(new Sell_Unpaid(item, DatabaseCustomer.getCustomer(1)));\n System.out.println(\"====Invoice Already Exist====\");\n DatabaseInvoice.addInvoice(new Sell_Unpaid(item, DatabaseCustomer.getCustomer(1)));\n\n System.out.println(\"====Invoice Not Found====\");\n DatabaseInvoice.removeInvoice(100);\n System.out.println(\"====Customer Not Found====\");\n DatabaseCustomer.removeCustomer(100);\n System.out.println(\"====Supplier Not Found====\");\n DatabaseSupplier.removeSupplier(100);\n System.out.println(\"====Item Not Found====\");\n DatabaseItem.removeItem(100);\n Customer customer2 = new Customer(\"Shiroe7\", \"[email protected]\", \"sh77iroe70\", \"Shiroe20i19\", 2010, 10, 2);\n System.out.println(\"====Dont Have Active====\");\n DatabaseInvoice.getActiveOrder(customer2);\n DatabaseCustomer.addCustomer(customer2);\n\n System.out.println(\"====Result====\");\n for (Supplier i: DatabaseSupplier.getSupplierDatabase())\n {\n System.out.println(i);\n }\n\n for (Customer i: DatabaseCustomer.getCustomerDatabase())\n {\n System.out.println(i);\n }\n\n for (Item i: DatabaseItem.getItemDatabase())\n {\n System.out.println(i);\n }\n\n for (Invoice i: DatabaseInvoice.getInvoiceDatabase())\n {\n System.out.println(i);\n }\n\n\n\n // for (Invoice i: DatabaseInvoice.getInvoiceDatabase())\n// {\n// System.out.println(i);\n// }\n Transaction.finishTransaction(DatabaseInvoice.getInvoice(1));\n Transaction.finishTransaction(DatabaseInvoice.getInvoice(3));\n// for (Invoice i: DatabaseInvoice.getInvoiceDatabase())\n// {\n// System.out.println(i);\n// }\n// Transaction.cancelTransaction(DatabaseInvoice.getInvoice(1));\n// for (Invoice i: DatabaseInvoice.getInvoiceDatabase())\n// {\n// System.out.println(i);\n// }\n }", "void registerGoods(Goods goods, int quantity) throws StoreKeeperWorkException;" ]
[ "0.77665627", "0.6420589", "0.62521636", "0.6217943", "0.61839557", "0.61372066", "0.60983473", "0.60866517", "0.60734326", "0.6069954", "0.6046013", "0.6036844", "0.60243124", "0.599889", "0.59921455", "0.59298265", "0.5928325", "0.5907638", "0.5902877", "0.59020317", "0.58790135", "0.58753175", "0.58663934", "0.58501685", "0.58465916", "0.58217025", "0.5813947", "0.58019483", "0.5794926", "0.5792052", "0.57678753", "0.576703", "0.5748179", "0.5743309", "0.57226336", "0.5706528", "0.56931347", "0.56658655", "0.5659941", "0.56434447", "0.563305", "0.56321347", "0.56219834", "0.5620504", "0.56172985", "0.5606735", "0.55913085", "0.5576285", "0.5574357", "0.55719525", "0.55700463", "0.5559807", "0.5552336", "0.5551564", "0.5549799", "0.5528238", "0.5524123", "0.5513806", "0.55132943", "0.55067796", "0.55051595", "0.54984206", "0.5496925", "0.54824847", "0.54783404", "0.5477131", "0.5473334", "0.5468951", "0.5456634", "0.54523337", "0.54504937", "0.5437995", "0.543245", "0.543057", "0.54297644", "0.5428386", "0.5422855", "0.54203945", "0.54184324", "0.54163414", "0.5413492", "0.54122967", "0.5403741", "0.54015356", "0.53986734", "0.53962374", "0.5392882", "0.5391993", "0.53834593", "0.53824216", "0.5378182", "0.5373899", "0.53733927", "0.5373322", "0.5373017", "0.53710264", "0.53705007", "0.53694195", "0.53553873", "0.53473353" ]
0.65572613
1
Function to populate the Blue Moon City Guild with quests
private static String[] populateBlueMoonGuild(String[] questList){ questList[0] = "Kill Skeletons"; return questList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static ArrayList<Quest> createQuests() {\n ArrayList<Quest> quests = new ArrayList();\n //Create Cooks assistant and imp catcher;\n\n //Imp Catcher\n ArrayList<String> itemReqs = new ArrayList();\n itemReqs.add(\"Yellow Bead\");\n itemReqs.add(\"Red Bead\");\n itemReqs.add(\"Black Bead\");\n itemReqs.add(\"While Bead\");\n QuestStep qs1 = new QuestStep(1, \"Hand in beads to wizard\", itemReqs,12337);\n ArrayList<QuestStep> questSteps = new ArrayList();\n questSteps.add(qs1);\n\n int[] skillReqs = new int[Constant.NUMBER_OF_Skills];\n for (int i = 0; i < Constant.NUMBER_OF_Skills; i++) {\n skillReqs[i] = 0;\n }\n ArrayList<String> questReqs = new ArrayList();\n Quest q1 = new Quest(\"Imp Catcher\", questSteps,12337, skillReqs, 0, questReqs);\n quests.add(q1);\n\n //Cooks assistant\n itemReqs = new ArrayList();\n itemReqs.add(\"Pot of Flour\");\n itemReqs.add(\"Egg\");\n itemReqs.add(\"Bucket of Milk\");\n qs1 = new QuestStep(1, \"Hand in ingredients to chef\", itemReqs,12850);\n questSteps = new ArrayList();\n questSteps.add(qs1);\n\n\n Quest q2 = new Quest(\"Cooks Assistant\", questSteps,12850, skillReqs, 0, questReqs);\n quests.add(q2);\n return quests;\n }", "com.lvl6.proto.QuestProto.FullQuestProto getNewlyAvailableQuests(int index);", "public void newQuest() {\n\t\tList <String> quests;\n\t\tif (activeQuest == null) {\n\t\t\tquests = QuestCfg.getStringList(\"quests.names\");\n\t\t} else {\n\t\t\tquests = activeQuest.getSuccessors();\n\t\t\tif (quests == null) {\n\t\t\t\tquests = QuestCfg.getStringList(\"quests.names\");\n\t\t\t}\n\t\t}\n\t\tbakeInstance.getLogger().info(\"[BAKE] Choosing new quest. Quests available: \" + quests.toString());\n\t\tint questID = (int) Math.round(Math.random()*(quests.size()-1));\n\t\tactiveQuest = new Quest(QuestCfg, quests.get(questID));\n\t}", "public com.lvl6.proto.QuestProto.FullQuestProto getNewlyAvailableQuests(int index) {\n if (newlyAvailableQuestsBuilder_ == null) {\n return newlyAvailableQuests_.get(index);\n } else {\n return newlyAvailableQuestsBuilder_.getMessage(index);\n }\n }", "java.util.List<com.lvl6.proto.QuestProto.FullQuestProto> \n getNewlyAvailableQuestsList();", "com.rpg.framework.database.Protocol.Quest getQuest(int index);", "com.lvl6.proto.QuestProto.FullQuestProtoOrBuilder getNewlyAvailableQuestsOrBuilder(\n int index);", "public com.lvl6.proto.QuestProto.FullQuestProto getNewlyAvailableQuests(int index) {\n return newlyAvailableQuests_.get(index);\n }", "public com.lvl6.proto.QuestProto.FullQuestProto.Builder getNewlyAvailableQuestsBuilder(\n int index) {\n return getNewlyAvailableQuestsFieldBuilder().getBuilder(index);\n }", "public static void main(String[] args) {\n playerTest();\n unlockedChunks = new ArrayList<Integer>();\n unlockedChunks.add(1);\n currentSkills = new int[Constant.NUMBER_OF_Skills];\n currentSkills[0] = 2;\n currentSkills[1] = 2;\n currentSkills[2] = 2;\n completedQuests = new ArrayList<String>();\n\n ArrayList<Integer> chunks = new ArrayList<Integer>();\n chunks.add(1);\n Item item = new Item(\"Test Item\", chunks);\n\n UnlockedItemDatabase.addToDB(item);\n\n ArrayList<String> itemReqs = new ArrayList();\n itemReqs.add(\"Test Item 2\");\n ArrayList<String> itemReqs2 = new ArrayList();\n QuestStep q1= new QuestStep(1,\"step 1\",itemReqs,1);\n QuestStep q2 = new QuestStep(2,\"step 2\", itemReqs2, 2);\n ArrayList<QuestStep> steps = new ArrayList();\n steps.add(q1);\n steps.add(q2);\n int[] skillReqs = new int[Constant.NUMBER_OF_Skills];\n skillReqs[0] = 1;\n skillReqs[1] = 1;\n skillReqs[2] = 1;\n ArrayList<String> questReqs = new ArrayList();\n Quest quest = new Quest(\"Quest 1\",steps,1,skillReqs,0,questReqs);\n System.out.println();\n System.out.println(\"Quest: \" + quest.getName() + \" has a completable section: \" + quest.isCompletable(unlockedChunks, currentSkills,completedQuests));\n }", "public com.lvl6.proto.QuestProto.FullQuestProto.Builder addNewlyAvailableQuestsBuilder() {\n return getNewlyAvailableQuestsFieldBuilder().addBuilder(\n com.lvl6.proto.QuestProto.FullQuestProto.getDefaultInstance());\n }", "public com.lvl6.proto.QuestProto.FullQuestProto.Builder addNewlyAvailableQuestsBuilder(\n int index) {\n return getNewlyAvailableQuestsFieldBuilder().addBuilder(\n index, com.lvl6.proto.QuestProto.FullQuestProto.getDefaultInstance());\n }", "public Builder clearQuest() {\n if (questBuilder_ == null) {\n quest_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00100000);\n onChanged();\n } else {\n questBuilder_.clear();\n }\n return this;\n }", "java.util.List<com.rpg.framework.database.Protocol.Quest> \n getQuestList();", "public com.lvl6.proto.QuestProto.FullQuestProtoOrBuilder getNewlyAvailableQuestsOrBuilder(\n int index) {\n if (newlyAvailableQuestsBuilder_ == null) {\n return newlyAvailableQuests_.get(index); } else {\n return newlyAvailableQuestsBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.rpg.framework.database.Protocol.QuestOrBuilder getQuestOrBuilder(\n int index) {\n return quest_.get(index);\n }", "public Builder clearNewlyAvailableQuests() {\n if (newlyAvailableQuestsBuilder_ == null) {\n newlyAvailableQuests_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n newlyAvailableQuestsBuilder_.clear();\n }\n return this;\n }", "public com.rpg.framework.database.Protocol.Quest getQuest(int index) {\n if (questBuilder_ == null) {\n return quest_.get(index);\n } else {\n return questBuilder_.getMessage(index);\n }\n }", "public com.lvl6.proto.QuestProto.FullQuestProtoOrBuilder getNewlyAvailableQuestsOrBuilder(\n int index) {\n return newlyAvailableQuests_.get(index);\n }", "private void fillQuestionsTable() {\n Question q1 = new Question(\"Who is NOT a Master on the Jedi council?\", \"Anakin Skywalker\", \"Obi Wan Kenobi\", \"Mace Windu\", \"Yoda\", 1);\n Question q2 = new Question(\"Who was Anakin Skywalker's padawan?\", \"Kit Fisto\", \"Ashoka Tano\", \"Barris Ofee\", \"Jacen Solo\",2);\n Question q3 = new Question(\"What Separatist leader liked to make find additions to his collection?\", \"Pong Krell\", \"Count Dooku\", \"General Grevious\", \"Darth Bane\", 3);\n Question q4 = new Question(\"Choose the correct Response:\\n Hello There!\", \"General Kenobi!\", \"You are a bold one!\", \"You never should have come here!\", \"You turned her against me!\", 1);\n Question q5 = new Question(\"What ancient combat technique did Master Obi Wan Kenobi use to his advantage throughout the Clone Wars?\", \"Kendo arts\", \"The High ground\", \"Lightsaber Form VIII\", \"Force healing\", 2);\n Question q6 = new Question(\"What was the only surviving member of Domino squad?\", \"Fives\", \"Heavy\", \"Echo\", \"Jesse\", 3);\n Question q7 = new Question(\"What Jedi brutally murdered children as a part of his descent to become a Sith?\", \"Quinlan Vos\", \"Plo Koon\", \"Kit Fisto\", \"Anakin Skywalker\", 4);\n Question q8 = new Question(\"What Sith was the first to reveal himself to the Jedi after a millenia and was subsquently cut in half shortly after?\", \"Darth Plagieus\", \"Darth Maul\", \"Darth Bane\", \"Darth Cadeus\", 2);\n Question q9 = new Question(\"What 4 armed creature operates a diner on the upper levels of Coruscant?\", \"Dexter Jettster\", \"Cad Bane\", \"Aurua Sing\", \"Dorme Amidala\", 1);\n Question q10 = new Question(\"What ruler fell in love with an underage boy and subsequently married him once he became a Jedi?\", \"Aurua Sing\", \"Duttchess Satine\", \"Mara Jade\", \"Padme Amidala\", 4);\n\n // adds them to the list\n addQuestion(q1);\n addQuestion(q2);\n addQuestion(q3);\n addQuestion(q4);\n addQuestion(q5);\n addQuestion(q6);\n addQuestion(q7);\n addQuestion(q8);\n addQuestion(q9);\n addQuestion(q10);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_sign_out) {\n signOut();\n }\n else if(id == R.id.action_sign_in){\n signIn();\n }\n else if(id == R.id.action_fake_quests){\n mData.add(new QuestItem(\"Get Groceries\",\"Milk, eggs, bread, lettuce, meat, cheese, rice, seasonings\",\"20 October 2019\", R.drawable.ic_ball_red));\n mData.add(new QuestItem(\"Do Laundry\",\"It's been 5 weeks now. Time to finally get it over with...\",\"20 October 2019\", R.drawable.ic_ball_blue));\n mData.add(new QuestItem(\"Meet with Taylor\",\"She's got time between class, let's hang out.\",\"20 October 2019\", R.drawable.ic_ball_green));\n mData.add(new QuestItem(\"Work Out\",\"25 reps 3 sets Pull Ups\\n25 reps 3 sets Push Ups\\n25 reps 3 sets Crunches\\n25 reps 3 sets Pike Press\\n25 reps 3 sets Squats\",\"20 October 2019\", R.mipmap.ic_launcher_round));\n mData.add(new QuestItem(\"Study\",\"Test coming up in CS403 on Wednesday\",\"20 October 2019\", R.mipmap.ic_launcher_round));\n mData.add(new QuestItem(\"Clean Room\",\"No girl is gonna wanna come over to this mess. Better get to it.\",\"20 October 2019\", R.mipmap.ic_launcher_round));\n mData.add(new QuestItem(\"Call the Apt Office\",\"The AC broke and it's pretty inconvenient. Call them ASAP.\",\"20 October 2019\", R.mipmap.ic_launcher_round));\n mData.add(new QuestItem(\"Dentist Appt\",\"Thursday at 4:30pm. Get there early to fill out paperwork.\",\"20 October 2019\", R.mipmap.ic_launcher_round));\n mData.add(new QuestItem(\"Fix Computer\",\"Computer has been acting up since I called it names and hurt its feelings.\",\"20 October 2019\", R.mipmap.ic_launcher_round));\n questRecyclerView.getAdapter().notifyDataSetChanged();\n }\n return super.onOptionsItemSelected(item);\n }", "public QuestEntity(String questName) {\r\n this.questName = questName;\r\n }", "com.rpg.framework.database.Protocol.QuestOrBuilder getQuestOrBuilder(\n int index);", "public java.util.List<com.lvl6.proto.QuestProto.FullQuestProto> getNewlyAvailableQuestsList() {\n if (newlyAvailableQuestsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(newlyAvailableQuests_);\n } else {\n return newlyAvailableQuestsBuilder_.getMessageList();\n }\n }", "public Builder addAllNewlyAvailableQuests(\n java.lang.Iterable<? extends com.lvl6.proto.QuestProto.FullQuestProto> values) {\n if (newlyAvailableQuestsBuilder_ == null) {\n ensureNewlyAvailableQuestsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, newlyAvailableQuests_);\n onChanged();\n } else {\n newlyAvailableQuestsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public com.rpg.framework.database.Protocol.Quest getQuest(int index) {\n return quest_.get(index);\n }", "public java.util.List<com.rpg.framework.database.Protocol.Quest> getQuestList() {\n if (questBuilder_ == null) {\n return java.util.Collections.unmodifiableList(quest_);\n } else {\n return questBuilder_.getMessageList();\n }\n }", "public Builder addNewlyAvailableQuests(\n int index, com.lvl6.proto.QuestProto.FullQuestProto value) {\n if (newlyAvailableQuestsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNewlyAvailableQuestsIsMutable();\n newlyAvailableQuests_.add(index, value);\n onChanged();\n } else {\n newlyAvailableQuestsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public Builder setNewlyAvailableQuests(\n int index, com.lvl6.proto.QuestProto.FullQuestProto value) {\n if (newlyAvailableQuestsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNewlyAvailableQuestsIsMutable();\n newlyAvailableQuests_.set(index, value);\n onChanged();\n } else {\n newlyAvailableQuestsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public Builder addNewlyAvailableQuests(com.lvl6.proto.QuestProto.FullQuestProto value) {\n if (newlyAvailableQuestsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNewlyAvailableQuestsIsMutable();\n newlyAvailableQuests_.add(value);\n onChanged();\n } else {\n newlyAvailableQuestsBuilder_.addMessage(value);\n }\n return this;\n }", "public com.rpg.framework.database.Protocol.Quest.Builder addQuestBuilder() {\n return getQuestFieldBuilder().addBuilder(\n com.rpg.framework.database.Protocol.Quest.getDefaultInstance());\n }", "public Builder addAllQuest(\n java.lang.Iterable<? extends com.rpg.framework.database.Protocol.Quest> values) {\n if (questBuilder_ == null) {\n ensureQuestIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, quest_);\n onChanged();\n } else {\n questBuilder_.addAllMessages(values);\n }\n return this;\n }", "public java.util.List<com.rpg.framework.database.Protocol.Quest> getQuestList() {\n return quest_;\n }", "public com.rpg.framework.database.Protocol.Quest.Builder addQuestBuilder(\n int index) {\n return getQuestFieldBuilder().addBuilder(\n index, com.rpg.framework.database.Protocol.Quest.getDefaultInstance());\n }", "public QuestEntity(String questName, String questDescription,\r\n String completionCode,\r\n int experienceRewarded,\r\n int levelRequirement,\r\n String aDateAvailable,\r\n String aDateUnavailable,\r\n String victoryText,\r\n String prereqQuest,\r\n List<Long> itemsRewardedPassed,\r\n int questPoints) {\r\n this.questName = questName;\r\n this.questDescription = questDescription;\r\n this.completionCode = completionCode;\r\n this.victoryText = victoryText;\r\n this.experienceRewarded = experienceRewarded;\r\n this.levelRequirement = levelRequirement;\r\n this.dateAvailable = aDateAvailable;\r\n this.dateUnavailable = aDateUnavailable;\r\n this.prereqQuest = prereqQuest;\r\n globallyAvailable = false;\r\n itemsRewarded = new ArrayList<Long>();\r\n itemsRewarded = itemsRewardedPassed;\r\n this.questPoints = questPoints;\r\n questCompleted = false;\r\n \r\n\r\n }", "public java.util.List<com.lvl6.proto.QuestProto.FullQuestProto> getNewlyAvailableQuestsList() {\n return newlyAvailableQuests_;\n }", "public void newQuest(String name) {\n\t\t//Prevent NullPointerExcpetions\n\t\tif (name == null) {\n\t\t\tbakeInstance.getLogger().info(\"[Bake] Null name for new generated quest. Falling back to default quest selection.\");\n\t\t\tnewQuest();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (QuestCfg.getString(\"quests.\" + name + \".type\", \"N/A\").equals(\"N/A\")) {\n\t\t\tbakeInstance.getLogger().info(\"[Bake] Invalid name (\" + name + \") for new generated quest. Falling back to default quest selection.\");\n\t\t\t//Invalid quest name\n\t\t\tnewQuest();\n\t\t} else {\n\t\t\t//Valid quest name\n\t\t\tactiveQuest = new Quest(QuestCfg, name);\n\t\t}\n\t}", "public com.rpg.framework.database.Protocol.QuestOrBuilder getQuestOrBuilder(\n int index) {\n if (questBuilder_ == null) {\n return quest_.get(index); } else {\n return questBuilder_.getMessageOrBuilder(index);\n }\n }", "public com.rpg.framework.database.Protocol.Quest.Builder getQuestBuilder(\n int index) {\n return getQuestFieldBuilder().getBuilder(index);\n }", "public Builder clearQuestID() {\n bitField0_ = (bitField0_ & ~0x00000002);\n questID_ = 0;\n onChanged();\n return this;\n }", "public Builder clearQuestID() {\n bitField0_ = (bitField0_ & ~0x00000002);\n questID_ = 0;\n onChanged();\n return this;\n }", "public Builder clearQuestID() {\n bitField0_ = (bitField0_ & ~0x00000002);\n questID_ = 0;\n onChanged();\n return this;\n }", "private static List<Quest> getQuests(Key userKey) {\n\t\treturn dao.query(Quest.class).setAncestor(userKey).prepare().asList();\n\t}", "public void quest() {\n if ((int) (Math.random() * 100) > 50) {\n addStrangeCharacter();\n System.out.println(\"You found the npc to talk with\");\n if ((int) (Math.random() * 75) > 50) {\n addStrangeCharacter();\n System.out.println(\"And you beat the baws\");\n } else {\n System.out.println(\"And he baws owned you\");\n }\n } else {\n System.out.println(\"You couldn't even find the npc, lol n00b\");\n }\n }", "public void fillQuestionsTable() {\n\n //Hard Questions\n Questions q1 = new Questions(\"The redshift of a distant galaxy is 0·014. According to Hubble’s law, the distance of the galaxy from Earth is? \", \" 9·66 × 10e-12 m\", \" 9·32 × 10e27 m\", \"1·83 × 10e24 m\", \"1·30 × 10e26 m \", 3);\n addQuestion(q1);\n Questions q2 = new Questions(\"A ray of monochromatic light passes from air into water. The wavelength of this light in air is 589 nm. The speed of this light in water is? \", \" 2·56 × 10e2 m/s \", \"4·52 × 10e2 m/s\", \"4·78 × 10e2 m/s\", \"1·52 × 10e2 m/s\", 2);\n addQuestion(q2);\n Questions q3 = new Questions(\"A car is moving at a speed of 2·0 m s−1. The car now accelerates at 4·0 m s−2 until it reaches a speed of 14 m s−1. The distance travelled by the car during this acceleration is\", \"1.5m\", \"18m\", \"24m\", \"25m\", 3);\n addQuestion(q3);\n Questions q4 = new Questions(\"A spacecraft is travelling at 0·10c relative to a star. \\nAn observer on the spacecraft measures the speed of light emitted by the star to be?\", \"0.90c\", \"1.00c\", \"1.01c\", \"0.99c\", 2);\n addQuestion(q4);\n Questions q5 = new Questions(\"Measurements of the expansion rate of the Universe lead to the conclusion that the rate of expansion is increasing. Present theory proposes that this is due to? \", \"Redshift\", \"Dark Matter\", \"Dark Energy\", \"Gravity\", 3);\n addQuestion(q5);\n Questions q6 = new Questions(\"A block of wood slides with a constant velocity down a slope. The slope makes an angle of 30º with the horizontal axis. The mass of the block is 2·0 kg. The magnitude of the force of friction acting on the block is?\" , \"1.0N\", \"2.0N\", \"9.0N\", \"9.8N\", 4);\n addQuestion(q6);\n Questions q7 = new Questions(\"A planet orbits a star at a distance of 3·0 × 10e9 m. The star exerts a gravitational force of 1·6 × 10e27 N on the planet. The mass of the star is 6·0 × 10e30 kg. The mass of the planet is? \", \"2.4 x 10e14 kg\", \"3.6 x 10e25 kg\", \"1.2 x 10e16 kg\", \"1.6 x 10e26 kg\", 2);\n addQuestion(q7);\n Questions q8 = new Questions(\"Radiation of frequency 9·00 × 10e15 Hz is incident on a clean metal surface. The maximum kinetic energy of a photoelectron ejected from this surface is 5·70 × 10e−18 J. The work function of the metal is?\", \"2.67 x 10e-19 J\", \"9.10 x 10e-1 J\", \"1.60 x 10e-18 J\", \"4.80 x 10e-2 J\", 1);\n addQuestion(q8);\n Questions q9 = new Questions(\"The irradiance of light from a point source is 32 W m−2 at a distance of 4·0 m from the source. The irradiance of the light at a distance of 16 m from the source is? \", \"1.0 W m-2\", \"8.0 W m-2\", \"4.0 W m-2\", \"2.0 W m-2\", 4);\n addQuestion(q9);\n Questions q10 = new Questions(\"A person stands on a weighing machine in a lift. When the lift is at rest, the reading on the weighing machine is 700 N. The lift now descends and its speed increases at a constant rate. The reading on the weighing machine...\", \"Is a constant value higher than 700N. \", \"Is a constant value lower than 700N. \", \"Continually increases from 700 N. \", \"Continually decreases from 700 N. \", 2);\n addQuestion(q10);\n\n //Medium Questions\n Questions q11 = new Questions(\"What is Newtons Second Law of Motion?\", \"F = ma\", \"m = Fa\", \"F = a/m\", \"Every action has an equal and opposite reaction\", 1);\n addQuestion(q11);\n Questions q12 = new Questions(\"In s = vt, what does s stand for?\", \"Distance\", \"Speed\", \"Sin\", \"Displacement\", 4);\n addQuestion(q12);\n Questions q13 = new Questions(\"An object reaches terminal velocity when...\", \"Forward force is greater than the frictional force.\", \"All forces acting on that object are equal.\", \"Acceleration starts decreasing.\", \"Acceleration is greater than 0\", 2);\n addQuestion(q13);\n Questions q14 = new Questions(\"An Elastic Collision is where?\", \"There is no loss of Kinetic Energy.\", \"There is a small loss in Kinetic Energy.\", \"There is an increase in Kinetic Energy.\", \"Some Kinetic Energy is transferred to another type.\", 1);\n addQuestion(q14);\n Questions q15 = new Questions(\"The speed of light is?\", \"Different for all observers.\", \"The same for all observers. \", \"The same speed regardless of the medium it is travelling through. \", \"Equal to the speed of sound.\", 2);\n addQuestion(q15);\n Questions q16 = new Questions(\"What is redshift?\", \"Light moving to us, shifting to red. \", \"A dodgy gear change. \", \"Light moving away from us shifting to longer wavelengths.\", \"Another word for dark energy. \", 3);\n addQuestion(q16);\n Questions q17 = new Questions(\"Which law allows us to estimate the age of the universe?\", \"Newtons 3rd Law \", \"The Hubble-Lemaitre Law \", \"Planck's Law \", \"Wien's Law \", 2);\n addQuestion(q17);\n Questions q18 = new Questions(\"The standard model...\", \"Models how time interacts with space. \", \"Describes how entropy works. \", \"Is the 2nd Law of Thermodynamics. \", \"Describes the fundamental particles of the universe and how they interact\", 4);\n addQuestion(q18);\n Questions q19 = new Questions(\"The photoelectric effect gives evidence for?\", \"The wave model of light. \", \"The particle model of light. \", \"The speed of light. \", \"The frequency of light. \", 2);\n addQuestion(q19);\n Questions q20 = new Questions(\"AC is a current which...\", \"Doesn't change direction. \", \"Is often called variable current. \", \"Is sneaky. \", \"Changes direction and instantaneous value with time. \", 4);\n addQuestion(q20);\n\n //Easy Questions\n Questions q21 = new Questions(\"What properties does light display?\", \"Wave\", \"Particle\", \"Both\", \"Neither\", 3);\n addQuestion(q21);\n Questions q22 = new Questions(\"In V = IR, what does V stand for?\", \"Velocity\", \"Voltage\", \"Viscosity\", \"Volume\", 2);\n addQuestion(q22);\n Questions q23 = new Questions(\"The abbreviation rms typically stands for?\", \"Round mean sandwich. \", \"Random manic speed. \", \"Root manic speed. \", \"Root mean squared. \", 4);\n addQuestion(q23);\n Questions q24 = new Questions(\"Path Difference = \", \"= (m/λ) or (m + ½)/λ where m = 0,1,2…\", \"= mλ or (m + ½) λ where m = 0,1,2…\", \"= λ / m or (λ + ½) / m where m = 0,1,2…\", \" = mλ or (m + ½) λ where m = 0.5,1.5,2.5,…\", 2);\n addQuestion(q24);\n Questions q25 = new Questions(\"How many types of quark are there?\", \"6\", \"4 \", \"8\", \"2\", 1);\n addQuestion(q25);\n Questions q26 = new Questions(\"A neutrino is a type of?\", \"Baryon\", \"Gluon\", \"Lepton\", \"Quark\", 3);\n addQuestion(q26);\n Questions q27 = new Questions(\"A moving charge produces:\", \"A weak field\", \"An electric field\", \"A strong field\", \"Another moving charge\", 2);\n addQuestion(q27);\n Questions q28 = new Questions(\"What contains nuclear fusion reactors?\", \"A magnetic field\", \"An electric field\", \"A pool of water\", \"Large amounts of padding\", 1);\n addQuestion(q28);\n Questions q29 = new Questions(\"What is the critical angle of a surface?\", \"The incident angle where the angle of refraction is 45 degrees.\", \"The incident angle where the angle of refraction is 90 degrees.\", \"The incident angle where the angle of refraction is 135 degrees.\", \"The incident angle where the angle of refraction is 180 degrees.\", 2);\n addQuestion(q29);\n Questions q30 = new Questions(\"Which is not a type of Lepton?\", \"Electron\", \"Tau\", \"Gluon\", \"Muon\", 3);\n addQuestion(q30);\n }", "public Builder clearQuestID() {\n bitField0_ = (bitField0_ & ~0x00000001);\n questID_ = 0;\n onChanged();\n return this;\n }", "public QuestEntity() {\r\n\r\n }", "public Builder clearQuestId() {\n bitField0_ = (bitField0_ & ~0x00000002);\n questId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearQuestId() {\n bitField0_ = (bitField0_ & ~0x00000002);\n questId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearQuestId() {\n bitField0_ = (bitField0_ & ~0x00000002);\n questId_ = 0;\n onChanged();\n return this;\n }", "public Builder clearQuestId() {\n bitField0_ = (bitField0_ & ~0x00000010);\n questId_ = 0;\n onChanged();\n return this;\n }", "private static void displayQuestList(String[] questList){\r\n for(int i = 0; i < questList.length; i++){\r\n switch(questList[i]){\r\n case \"Kill Skeletons\":\r\n System.out.println((i + 1) + \") \" + questList[i]);\r\n break;\r\n }\r\n }\r\n }", "public void instantiateTomes(){\n for (String tomeKey : this.getConfig().getConfigurationSection(\"tomes\").getKeys(false)){\n\n if (this.getConfig().getBoolean(\"tomes.\" + tomeKey + \".enabled\") == false){\n continue;\n }\n\n ArrayList<IQuest> questsToAddToTome = new ArrayList<IQuest>();\n for (String questKey : this.getConfig().getConfigurationSection(\"tomes.\" + tomeKey + \".quests\").getKeys(false)){\n for (IQuest quest : quests){\n if (questKey.equalsIgnoreCase(quest.getQuestName())){\n questsToAddToTome.add(quest);\n }\n }\n }\n\n //Fetch rewards of each tome\n ConfigurationSection itemsSection = Tomes.getInstance().getConfig().getConfigurationSection(\"tomes.\" + tomeKey + \".rewards.items\");\n ConfigurationSection weightsSection = Tomes.getInstance().getConfig().getConfigurationSection(\"tomes.\" + tomeKey + \".rewards.weights\");\n\n ArrayList<ItemStack> rewardsArray = new ArrayList<ItemStack>();\n\n if (itemsSection != null) {\n for (String key : itemsSection.getKeys(false)) {\n ItemStack item = itemsSection.getItemStack(key);\n\n for (int i = 0; i < Integer.parseInt(weightsSection.getString(key)); i++) {\n rewardsArray.add(item);\n }\n }\n }\n\n ConfigurationSection tomeConfig = this.getConfig().getConfigurationSection(\"tomes.\" + tomeKey);\n tomes.add(new Tome(\n tomeKey,\n tomeConfig.getString(\"displayName\"),\n tomeConfig.getInt(\"numberOfQuests\"),\n tomeConfig.getInt(\"cost\"),\n questsToAddToTome,\n rewardsArray\n ));\n\n\n }\n }", "public Builder addQuest(com.rpg.framework.database.Protocol.Quest value) {\n if (questBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureQuestIsMutable();\n quest_.add(value);\n onChanged();\n } else {\n questBuilder_.addMessage(value);\n }\n return this;\n }", "public void setQuest(Quest quest) {\n\t\tthis.quest = quest;\n\t}", "public java.util.List<? extends com.lvl6.proto.QuestProto.FullQuestProtoOrBuilder> \n getNewlyAvailableQuestsOrBuilderList() {\n if (newlyAvailableQuestsBuilder_ != null) {\n return newlyAvailableQuestsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(newlyAvailableQuests_);\n }\n }", "private void generateItemEntities(){\n\t\tfinal int NUM_POTIONS = 6;\n\t\tfinal int NUM_IRON_ARMOUR = 1;\n\t\tfinal int NUM_CHESTS = 2;\n\t\tfinal String ITEM_BOX_STYLE = \"tundra\";\n\t\t\n\n\t\tfor (int i = 0; i < NUM_POTIONS; i++) {\n\t\t\tTile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n\t\t\t\t\tItem.randomItemPositionGenerator(DEFAULT_HEIGHT));\n\t\t\tif (!tile.hasParent()) {\n\t\t\t\tHealthPotion potion = new HealthPotion(tile, false,(PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE);\n\t\t\t\tentities.add(potion);\n\t\t\t\tthis.allTundraDialogues.add(potion.getDisplay());\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < NUM_IRON_ARMOUR; i++) {\n\t\t\tTile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n\t\t\t\t\tItem.randomItemPositionGenerator(DEFAULT_HEIGHT));\n\t\t\tif (!tile.hasParent()) {\n\t\t\t\tIronArmour ironArmour = new IronArmour(tile, false,\n\t\t\t\t\t\t(PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE,200);\n\t\t\t\tentities.add(ironArmour);\n\t\t\t\tthis.allTundraDialogues.add(ironArmour.getDisplay());\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < NUM_CHESTS; i++) {\n\t\t\tTile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n\t\t\t\t\tItem.randomItemPositionGenerator(DEFAULT_HEIGHT));\n\t\t\tif (!tile.hasParent()) {\n\t\t\t\tTreasure chest = new Treasure(tile, false,(PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE);\n\t\t\t\tentities.add(chest);\n\t\t\t\tthis.allTundraDialogues.add(chest.getDisplay());\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tTile cooldownring = getTile(18,17);\n\t\tCooldownRing cdring = new CooldownRing(cooldownring, false,\n\t\t\t\t(PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,0.5f);\n\t\tentities.add(cdring);\n\t\tthis.allTundraDialogues.add(cdring.getDisplay());\n\n\t\tTile attackAmuletTile = getTile(-19,14);\n\t\tAmulet attackAmulet = new Amulet(attackAmuletTile, false,\n\t\t\t\t(PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,10);\n\t\tentities.add(attackAmulet);\n\t\tthis.allTundraDialogues.add(attackAmulet.getDisplay());\n\n\t}", "public void fillChest(Inventory inv);", "int getQuestID();", "int getQuestID();", "int getQuestID();", "int getQuestID();", "public Builder setQuestId(int value) {\n bitField0_ |= 0x00000010;\n questId_ = value;\n onChanged();\n return this;\n }", "public Builder addQuest(\n int index, com.rpg.framework.database.Protocol.Quest value) {\n if (questBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureQuestIsMutable();\n quest_.add(index, value);\n onChanged();\n } else {\n questBuilder_.addMessage(index, value);\n }\n return this;\n }", "private void creatingNewQuestion() {\r\n AbstractStatement<?> s;\r\n ListQuestions lq = new ListQuestions(ThemesController.getThemeSelected());\r\n switch ((String) typeQuestion.getValue()) {\r\n case \"TrueFalse\":\r\n // just to be sure the answer corresponds to the json file\r\n Boolean answer = CorrectAnswer.getText().equalsIgnoreCase(\"true\");\r\n s = new TrueFalse<>(Text.getText(), answer);\r\n break;\r\n\r\n case \"MCQ\":\r\n s = new MCQ<>(Text.getText(), TextAnswer1.getText(), TextAnswer2.getText(), TextAnswer3.getText(), CorrectAnswer.getText());\r\n break;\r\n\r\n default:\r\n s = new ShortAnswer<>(Text.getText(), CorrectAnswer.getText());\r\n break;\r\n }\r\n lq.addQuestion(new Question(s, ThemesController.getThemeSelected(), Difficulty.fromInteger((Integer) difficulty.getValue()) ));\r\n lq.writeJson(ThemesController.getThemeSelected());\r\n }", "@Scheduled(cron = \"0 0/15 * * * ?\")\n public void getQuestion() {\n JsonNode node = restTemplate.getForObject(\"https://opentdb.com/api.php?amount=1&type=multiple\", JsonNode.class);\n String question = node.get(\"results\").get(0).get(\"question\").asText();\n String correctValue = node.get(\"results\").get(0).get(\"correct_answer\").asText();\n String firstIncorrectValue = node.get(\"results\").get(0).get(\"incorrect_answers\").get(0).asText();\n String secondIncorrectValue = node.get(\"results\").get(0).get(\"incorrect_answers\").get(1).asText();\n String thirdIncorrectValue = node.get(\"results\").get(0).get(\"incorrect_answers\").get(2).asText();\n //Changes codes to chars\n question = question.replaceAll(\"&quot;\", \"'\");\n firstIncorrectValue = firstIncorrectValue.replaceAll(\"&quot;\", \"'\");\n secondIncorrectValue = secondIncorrectValue.replaceAll(\"&quot;\", \"'\");\n thirdIncorrectValue = thirdIncorrectValue.replaceAll(\"&quot;\", \"'\");\n question = question.replaceAll(\"&#039;\", \"'\");\n firstIncorrectValue = firstIncorrectValue.replaceAll(\"&#039;\", \"'\");\n secondIncorrectValue = secondIncorrectValue.replaceAll(\"&#039;\", \"'\");\n thirdIncorrectValue = thirdIncorrectValue.replaceAll(\"&#039;\", \"'\");\n\n //Shuffles the options\n List<String> values = new ArrayList();\n values.add(correctValue);\n values.add(firstIncorrectValue);\n values.add(secondIncorrectValue);\n values.add(thirdIncorrectValue);\n Collections.shuffle(values);\n\n //Creates the question\n Question q = new Question();\n q.setAccount(accountDatabase.findByUsername(\"Question bot\").getId());\n q.setName(question);\n q.setPublished(true);\n q.setPublisher(accountDatabase.findByUsername(\"Question bot\"));\n questionDatabase.create(q.getName(), q.getAccount(), true);\n\n //Links the options with the created question.\n values.stream().map((value) -> {\n Option o = new Option();\n o.setValue(value);\n List<Question> questions = questionDatabase.findByAccount(accountDatabase.findByUsername(\"Question bot\").getId());\n //Question id must be the one added the latest\n o.setQuestion_id(questions.get(questions.size() - 1).getId());\n if (value.equals(correctValue)) {\n o.setCorrect(true);\n } else {\n o.setCorrect(false);\n }\n return o;\n }).forEachOrdered((o) -> {\n optionDatabase.create(o.getValue(), o.isCorrect(), o.getQuestion_id());\n });\n }", "public Builder setQuestID(int value) {\n bitField0_ |= 0x00000001;\n questID_ = value;\n onChanged();\n return this;\n }", "int getQuestId();", "int getQuestId();", "int getQuestId();", "int getQuestId();", "public Builder setQuestID(int value) {\n bitField0_ |= 0x00000002;\n questID_ = value;\n onChanged();\n return this;\n }", "public Builder setQuestID(int value) {\n bitField0_ |= 0x00000002;\n questID_ = value;\n onChanged();\n return this;\n }", "public Builder setQuestID(int value) {\n bitField0_ |= 0x00000002;\n questID_ = value;\n onChanged();\n return this;\n }", "public Builder setQuest(\n int index, com.rpg.framework.database.Protocol.Quest value) {\n if (questBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureQuestIsMutable();\n quest_.set(index, value);\n onChanged();\n } else {\n questBuilder_.setMessage(index, value);\n }\n return this;\n }", "public static void createNPC() {\n //create the good npc\n BSChristiansen.setName(\"BS_Christiansen\");\n BSChristiansen.setCurrentRoom(jungle);\n BSChristiansen.setDescription(\"The survivor of the plane crash look to be some kind of veteran soldier, \"\n + \"\\nbut he is heavly injured on his right leg so he cant move \");\n BSChristiansen.addDialog(\"If you want to survive on this GOD forsaken island, you \\nmust first find food and shelter.\"\n + \"\\nYou can craft items to help you survive, if you \\nhave the right components.\");\n BSChristiansen.addDialog(\"To escape the island you need a raft, \\nsome berries and fish so you can survive on the sea,\\nand a spear so you can hunt for more food\");\n\n //create the bad npc\n josephSchnitzel.setName(\"Joseph_Schnitzel\");\n josephSchnitzel.setCurrentRoom(mountain);\n josephSchnitzel.setDescription(\"A lonely surviver with very filthy hair, and a wierd smell of weinerschnitzel.\");\n josephSchnitzel.addDialog(\"Heeelloooo there my freshlooking friend, I am Joseph\\nSchnitzel, if you scratch my back I might scratch your's.\" + \"\\n\" + \"Go fetch me some eggs, or I'll kill you\");\n josephSchnitzel.addDialog(\"Talks to himself\\nis that muppet still alive\");\n josephSchnitzel.addDialog(\"Talks to himself\\nHow long is he going to last\");\n josephSchnitzel.addDialog(\"Talks to himself\\nI wonder what those noises were ing the cave\");\n josephSchnitzel.addDialog(\"GET THE HELL OUT OF MY WAY!!!\");\n josephSchnitzel.setDamageValue(100);\n\n //create another npc\n mysteriousCrab.setName(\"Mysterious_Crab\");\n mysteriousCrab.setCurrentRoom(cave);\n mysteriousCrab.setDescription(\"A mysterious crab that you dont really get why can talk\");\n mysteriousCrab.addDialog(\"MUHAHAHA i'm the finest and most knowledgeable \\ncrab of them all mr.Crab and know this island\\nlike the back of my hand! oh i mean claw...\"\n + \"\\nA Random fact: \"\n + \"to escape this island you need a raft, \\nsome berries and fish so you can survive on the sea,\\nand a spear so you can hunt for more food\");\n }", "void addQuest(Question quest){\r\n\t\t//if the test bank does not contain this topic, create a new one and add question\r\n\t\tif(!bank.containsKey(quest.getTopic())){\r\n\t\t\tquest.setID(0);\r\n\t\t\tbank.put(quest.getTopic(), new ArrayList<Question>());\r\n\t\t\tbank.get(quest.getTopic()).add(quest);\r\n\t\t}else{\r\n\t\t\tquest.setID(bank.get(quest.getTopic()).size());\r\n\t\t\tbank.get(quest.getTopic()).add(quest);\r\n\t\t}\r\n\t}", "public java.util.List<? extends com.lvl6.proto.QuestProto.FullQuestProtoOrBuilder> \n getNewlyAvailableQuestsOrBuilderList() {\n return newlyAvailableQuests_;\n }", "private static String[] populateBlueMoonGeneral(String[] generalInventory){\r\n generalInventory[0] = \"Healing Potion\";\r\n generalInventory[1] = \"Greater Healing Potion\";\r\n return generalInventory;\r\n }", "public Builder setQuestId(int value) {\n bitField0_ |= 0x00000002;\n questId_ = value;\n onChanged();\n return this;\n }", "public Builder setQuestId(int value) {\n bitField0_ |= 0x00000002;\n questId_ = value;\n onChanged();\n return this;\n }", "public Builder setQuestId(int value) {\n bitField0_ |= 0x00000002;\n questId_ = value;\n onChanged();\n return this;\n }", "public int getQuestCount() {\n return quest_.size();\n }", "int getNewlyAvailableQuestsCount();", "private void createAdapters() {\n // Available quests for a Neutral hero\n adapterAvailableNeutral = new QuestAdapter(this, new ParseQueryAdapter.QueryFactory<ParseObject>(){\n @Override\n public ParseQuery create() {\n ParseQuery query = new ParseQuery(QuestApp.QUEST_DATABASE);\n query.whereEqualTo(QuestApp.COMPLETED_KEY, false);\n query.whereDoesNotMatchKeyInQuery(QuestApp.ACCEPTEDBY_KEY, QuestApp.OBJECTID_KEY, ParseUser.getQuery());\n return query;\n }\n });\n\n // Available quests for a Good hero\n adapterAvailableGood = new QuestAdapter(this, new ParseQueryAdapter.QueryFactory<ParseObject>(){\n @Override\n public ParseQuery create() {\n ParseQuery query = new ParseQuery(QuestApp.QUEST_DATABASE);\n query.whereEqualTo(QuestApp.COMPLETED_KEY, false);\n query.whereEqualTo(QuestApp.ALIGNMENT_KEY, 0);\n query.whereDoesNotMatchKeyInQuery(QuestApp.ACCEPTEDBY_KEY, QuestApp.OBJECTID_KEY, ParseUser.getQuery());\n return query;\n }\n });\n\n // Available quests for an Evil hero\n adapterAvailableEvil = new QuestAdapter(this, new ParseQueryAdapter.QueryFactory<ParseObject>(){\n @Override\n public ParseQuery create() {\n ParseQuery query = new ParseQuery(QuestApp.QUEST_DATABASE);\n query.whereEqualTo(QuestApp.COMPLETED_KEY, false);\n query.whereEqualTo(QuestApp.ALIGNMENT_KEY, 2);\n query.whereDoesNotMatchKeyInQuery(QuestApp.ACCEPTEDBY_KEY, QuestApp.OBJECTID_KEY, ParseUser.getQuery());\n return query;\n }\n });\n\n // Quests accepted by user\n adapterAccepted = new QuestAdapter(this, new ParseQueryAdapter.QueryFactory<ParseObject>(){\n @Override\n public ParseQuery create() {\n ParseQuery query = new ParseQuery(QuestApp.QUEST_DATABASE);\n query.whereEqualTo(QuestApp.COMPLETED_KEY, false);\n query.whereEqualTo(QuestApp.ACCEPTEDBY_KEY, user);\n return query;\n }\n });\n\n // Quests completed by user\n adapterCompleted = new QuestAdapter(this, new ParseQueryAdapter.QueryFactory<ParseObject>(){\n @Override\n public ParseQuery create() {\n ParseQuery query = new ParseQuery(QuestApp.QUEST_DATABASE);\n query.whereEqualTo(QuestApp.COMPLETED_KEY, true);\n query.whereEqualTo(QuestApp.ACCEPTEDBY_KEY, user);\n return query;\n }\n });\n }", "public static void populate() throws IOException, Exception {\n\n EntityManager em = emf.createEntityManager();\n facade.fillingUpDBWithEquipments(facade.getEquipmentDTOsFromAPI(jsonReader));\n Player player1 = new Player(\"Nikolaj\", \"Hamster16\");\n Player DM = new Player(\"Cathrine\", \"Portraet11\");\n Player player2 = new Player(\"Jens\", \"Skeletor69\");\n AbillityScores abiSco11 = new AbillityScores(18, 8, 14, 12, 14, 10);\n AbillityScores abiSco12 = new AbillityScores(18, 8, 14, 12, 14, 10);\n AbillityScores abiSco13 = new AbillityScores(18, 8, 14, 12, 14, 10);\n Random randi = new Random(0);\n Skills skils1 = new Skills(randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5));\n Skills skils2 = new Skills(randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5));\n Skills skils3 = new Skills(randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5), randi.nextInt(5));\n Character ch1 = new Character(5, 150, 85, 10, 30, \"Damascus\", \"He was a valiant paladin.\", \"orc\", \"paladin\", abiSco11, skils1);\n Character ch2 = new Character(5, 104, 85, 17, 60, \"Heidi\", \"He was a valiant druid.\", \"human\", \"druid\", abiSco12, skils2);\n Character ch3 = new Character(5, 160, 85, 17, 30, \"Varanoth\", \"He was a valiant fighter.\", \"orc\", \"fighter\", abiSco13, skils3);\n Equipment e1 = em.find(Equipment.class, \"club\");\n Equipment e2 = em.find(Equipment.class, \"candle\");\n Equipment e3 = em.find(Equipment.class, \"camel\");\n Equipment e4 = em.find(Equipment.class, \"bucket\");\n ch1.addInventory(new Inventory(e1, 1));\n ch2.addInventory(new Inventory(e2, 1));\n ch2.addInventory(new Inventory(e3, 1));\n ch3.addInventory(new Inventory(e4, 1));\n e1.addInventory(ch1.getInventories().get(0));\n e2.addInventory(ch2.getInventories().get(0));\n e3.addInventory(ch2.getInventories().get(1));\n e4.addInventory(ch3.getInventories().get(0));\n //ch1.getInventory().addEquipmentAndQty(equipment, 1);\n try {\n em.getTransaction().begin();\n Role playerRole = new Role(\"player\");\n Role DMRole = new Role(\"dungeonmaster\");\n player1.addRole(playerRole);\n DM.addRole(DMRole);\n player2.addRole(playerRole);\n //both.addRole(DMRole); // MAN KAN GODT HAVE BEGGE ROLLER CATHRINE !!!\n em.persist(playerRole);\n em.persist(DMRole);\n //em.persist(equipment);\n player1.addCharacter(ch1);\n player1.addCharacter(ch2);\n player2.addCharacter(ch3);\n //em.persist(ch1);\n em.persist(player1);\n em.persist(DM);\n em.persist(player2);\n em.getTransaction().commit();\n System.out.println(\"\");\n } finally {\n em.close();\n }\n }", "java.util.List<? extends com.lvl6.proto.QuestProto.FullQuestProtoOrBuilder> \n getNewlyAvailableQuestsOrBuilderList();", "private void setUpQuestion() {\n if (index == questions.size()) {\n endgame();\n } else {\n currentQuestion = questions.get(index);\n\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"TestObject\");\n query.getInBackground(currentQuestion.getQuestion(), new GetCallback<ParseObject>() {\n public void done(ParseObject object, ParseException e) {\n if (e == null) {\n\n String NewQuestion = object.getString(\"question\");\n lblQuestion.setText(NewQuestion);\n expectedAnswer = object.getBoolean(\"answer\");\n imgPicture.setImageResource(currentQuestion.getPicture());\n index++;\n } else {\n }\n }\n }); // this pulls values from parse\n }\n }", "public java.util.List<? extends com.rpg.framework.database.Protocol.QuestOrBuilder> \n getQuestOrBuilderList() {\n return quest_;\n }", "public java.util.List<? extends com.rpg.framework.database.Protocol.QuestOrBuilder> \n getQuestOrBuilderList() {\n if (questBuilder_ != null) {\n return questBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(quest_);\n }\n }", "public EpicTargetItems(byte kingdomTemplateId) {\n/* 107 */ this.kingdomId = kingdomTemplateId;\n/* 108 */ loadAll();\n/* 109 */ MissionHelper.loadAll();\n/* */ }", "int getQuestCount();", "public void fillListView(QuestManager quests, View v) {\n\t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(),\n\t\t\t\tandroid.R.layout.simple_list_item_1, quests.getQuestNames());\n\n\t\tsetListAdapter(adapter);\n\t\t\n\t\tupdateButtons();\n\t}", "public InitializeGame() {\r\n\t //Non Player Characters\r\n\t\t\t//Hakunin, the shaman, will lead the player in his quest for freedom\r\n\t\t\tNpcDialog shaman = new NpcDialog(\"Hakunin\",\"Some kind of Shaman is standing in front of you. He appraises you with his crazy eyes from somewhere in the world only he inhabits.\", job.shaman);\r\n\t\t\t//The prisoner Npc\r\n\t\t\tNpcDialog prisoner = new NpcDialog(\"Gilgamesh\",\"A weird kind of humanoid is in front of you, wearing rags, he looks tired and is dying\",job.prisoner);\r\n\t\t\t// A bunch of generic citizen npc's\r\n\t\t\tNpcDialog citizen1 = new NpcDialog(\"Waldo\",\"a local life form\",job.citizen);\r\n\t\t\tNpcDialog citizen2 = new NpcDialog(\"Opipou\",\"Typical girl next door, except you doesn't live here,it's not a girl an it's right in front of you\",job.citizen);\r\n\t\t\tNpcDialog citizen3 = new NpcDialog(\"Fifou\",\"he seems to be crazyly normal for an alien ... wait ... you are the alien here\",job.citizen);\r\n\t\t\tNpcDialog citizen4 = new NpcDialog(\"Genericname\",\"just another citizen\",job.citizen);\r\n\t\t\t\r\n\t\t\t//Fighter Non player characters\r\n\t\t\t//the boss\r\n\t\t\tNpcFightBoss boss= new NpcFightBoss(150, 5, \"Transplantor\",\" the boss\", 30);\r\n\t\t\t//the monsters\r\n\t\t\tNpcFightMonster snake1=new NpcFightMonster(10,2,\"Snake\",\"small snake\");\r\n\t\t\tNpcFightMonster snake1bis=new NpcFightMonster(10,2,\"Snake\",\"small snake\");\r\n\t\t\tNpcFightMonster snake2=new NpcFightMonster(20,5,\"Snake\",\"big snake\");\r\n\t\t\tNpcFightMonster wolf=new NpcFightMonster(50,10,\"Wolf\",\"black wolf\");\r\n\t\t\tNpcFightMonster shark=new NpcFightMonster(25,5,\"Shark\",\"shark\");\r\n\t\t\t//the guard\r\n\t\t\tNpcFightGuard guard = new NpcFightGuard(100,1,\"Guard\",\"This is a city guard\",jail); \r\n\r\n\t\t\t\r\n\t\t //images\r\n\t\t //zone pictures\r\n\t\t crashZonePic = new ImageIcon(getClass().getResource(\"/images/crash.png\"));\r\n\t\t gladePic = new ImageIcon(getClass().getResource(\"/images/glade.jpg\"));\r\n\t\t forestWPic = new ImageIcon(getClass().getResource(\"/images/forestW.jpg\"));\r\n\t\t forestSPic = new ImageIcon(getClass().getResource(\"/images/forestS.jpg\"));\r\n\t\t forestNPic = new ImageIcon(getClass().getResource(\"/images/forestN.jpg\"));\r\n\t\t housePic = new ImageIcon(getClass().getResource(\"/images/house.jpg\"));\r\n\t\t lairofthebeastPic = new ImageIcon(getClass().getResource(\"/images/lairodthebeastPic.jpg\"));\r\n\t\t cavePic = new ImageIcon(getClass().getResource(\"/images/cave.jpg\"));\r\n\t\t frozenlakePic = new ImageIcon(getClass().getResource(\"/images/frozenlake.gif\"));\r\n\t\t pickPic = new ImageIcon(getClass().getResource(\"/images/peak.jpg\"));\r\n\t\t mountainbasePic = new ImageIcon(getClass().getResource(\"/images/mountainbase.jpg\"));\r\n\t\t bridgePic = new ImageIcon(getClass().getResource(\"/images/bridge.jpg\"));\r\n\t\t jailPic = new ImageIcon(getClass().getResource(\"/images/jail.jpg\"));\r\n\t\t jailentrancePic = new ImageIcon(getClass().getResource(\"/images/jailentrance.jpg\"));\r\n\t\t churchPic = new ImageIcon(getClass().getResource(\"/images/church.jpg\"));\r\n\t\t cityentrancePic = new ImageIcon(getClass().getResource(\"/images/cityentrance.jpg\"));\r\n\t\t marketplacePic = new ImageIcon(getClass().getResource(\"/images/marketplace.jpg\"));\r\n\t\t caveentrancePic = new ImageIcon(getClass().getResource(\"/images/caveentrance.png\"));\r\n\t\t //weapon pictures\r\n\t\t swordPic = new ImageIcon(getClass().getResource(\"/images/sword.png\"));\r\n\t\t knifePic = new ImageIcon(getClass().getResource(\"/images/knife.png\"));\r\n\t\t gunPic = new ImageIcon(getClass().getResource(\"/images/gun.png\"));\r\n\t\t key1Pic = new ImageIcon(getClass().getResource(\"/images/key.jpg\"));\r\n\t\t key2Pic = new ImageIcon(getClass().getResource(\"/images/key2.png\"));\r\n\t\t key3Pic = new ImageIcon(getClass().getResource(\"/images/key3.jpg\"));\r\n\t\t machetePic = new ImageIcon(getClass().getResource(\"/images/machete.png\"));\r\n\t\t bunchkeyPic = new ImageIcon(getClass().getResource(\"/images/bunch_key.png\"));\r\n\t\t grapplePic = new ImageIcon(getClass().getResource(\"/images/grapple.png\"));\r\n\t\t medlakePic = new ImageIcon(getClass().getResource(\"/images/magic_water.png\"));\r\n\t\t medikitPic = new ImageIcon(getClass().getResource(\"/images/Medkit_1.png\"));\r\n\t\t chestPic = new ImageIcon(getClass().getResource(\"/images/chest.jpg\"));\t\t \r\n\t\t plankPic = new ImageIcon(getClass().getResource(\"/images/plank.jpg\"));\t\t \r\n\r\n\t\t \r\n\t\t\t//creation of the items\r\n\t\t\t//creation of the weapons\r\n\t\t\tknife = new Weapon(5, 2, \"knife\", \"This knife can be useful to fight small targets.\", knifePic);\r\n\t\t\tsword = new Weapon(15, 6, \"sword\", \"This sword was found in the Market place. It is surely more powerful than your knife!\", swordPic);\r\n\t\t\tgun = new Weapon(30, 12, \"gun\", \"This gun was taken from a guard. You will need it sooner than you think.\", gunPic);\r\n\t\t\t\r\n\t\t\t//creation of the medikits\r\n\t\t\tmedChurch = new Medikit(30, 30, \"Small Medikit\", \"This is a medikit. Use it carefully!\",medikitPic);\r\n\t\t\tmedLake = new Medikit(60,40,\"Magic Lake Water\", \"This lake is refreshing. Oh, it can heal you! Come back as much as you need.\",medlakePic);\r\n\t\r\n\t\t\t// creation of the keys\r\n\t\t\t//keys to unlock the paths\r\n\t\t\tkeyForestS = new Key(\"Machete\", \" Perfect to pull some wood out of the way.\",machetePic);\r\n\t\t\tkeyForestW = new Key(\"Planks\", \" Great to build a path across gaps.\",plankPic);\r\n\t\t\tkeyHouse = new Key(\"Old Key\", \" No idea of what it can open...\",key2Pic);\r\n\t\t\tkeyJail = new Key(\"Bunch of keys\", \" Given by a helpful prisoner in jail.\",bunchkeyPic);\r\n\t\t\tkeyPick = new Key(\"Climbing kit\", \" Perfect to cross difficulties on the way.\",grapplePic);\r\n\t\t\t//keys to open the chests\r\n\t\t\tkeyChestMarketplace = new Key(\"A very old Key\", \" Found in the house.\",key1Pic);\r\n\t\t\tkeyChestHouse = new Key(\"A big old Key\", \" Wandering on the ground.\",key1Pic);\r\n\t\t\tkeyChestChurch = new Key(\"Small old Key\", \" Picked up on the Market place.\",key3Pic);\r\n\t\t\t//keys to repair the spaceship (SS)\r\n\t\t\tkeySSGenerator = new Key(\"Generator Cell\", \" Generator cell of your spaceship.\",null);\r\n\t\t\tkeySSWheel = new Key(\"Wheels\", \" Wheels of your spaceship.\",null);\r\n\t\t\tkeySSEnergyCell = new Key(\"Energy Cell\", \" Energy cell of your spaceship.\",null);\r\n\t\t\tkeySSFTL = new Key(\"FTL\", \" 'Faster Than Light' technology, necessary for your spaceship.\",null);\r\n\t\t\t\r\n\t\t\t//creation of the chests\r\n\t\t\tchestMarketplace = new Chest(sword, \"Old Chest\", \" A very old wooden chest, a bit hidden in the street.\", keyChestMarketplace,chestPic);\r\n\t\t\tchestHouse = new Chest(keySSWheel, \"A Tidying Chest\", \" A big tidying chest. Something is shining inside...\", keyChestHouse,chestPic);\r\n\t\t\tchestChurch = new Chest(medChurch, \"Chest\", \" There is a wooden chest in the church. Do you think you're allowed to open it?\", keyChestChurch,chestPic);\r\n \r\n\t\t\t//create zones\r\n\t\t crashzone = new Zone(\"crashZone\", \"the crash zone, where your spaceship is\", crashZonePic);\r\n glade = new Zone(\"glade\", \"the glade, a calm zone\", gladePic);\r\n forestS = new Zone(\"forestS\",\"the south part of the forest\", forestSPic);\r\n forestW = new Zone(\"forestW\",\"the west part of the forest\", forestWPic);\r\n forestN = new Zone(\"forestN\", \"the north part of the forest\", forestNPic);\r\n bridge = new Zone(\"bridge\", \"front of a long wooden bridge\", bridgePic);\r\n cityentrance = new Zone(\"cityentrance\",\"the entrance of a little city\", cityentrancePic);\r\n marketplace = new Zone(\"marketplace\", \"the animated market place\", marketplacePic);\r\n house= new Zone(\"house\", \"the house of someone\", housePic);\r\n church = new Zone(\"church\", \"the church, the god house\", churchPic);\r\n jailentrance = new Zone(\"jailentrance\", \"the entrance of the jail\", jailentrancePic);\r\n jail = new Zone(\"jail\", \"the jail, what are you doing here\", jailPic);\r\n caveentrance = new Zone(\"caveentrance\", \"the entrance of a dark cave\", caveentrancePic);\r\n frozenlake = new Zone(\"frozenlake\", \"front of a beautiful lake\", frozenlakePic);\r\n mountainbase= new Zone(\"mountainbase\", \"the snow of the mountain base\", mountainbasePic);\r\n pick = new Zone(\"pick\", \"the pick of the mountain\", pickPic);\r\n cave = new Zone(\"cave\", \"the dark cave\", cavePic);\r\n lairofthebeast = new Zone(\"lairofthebeast\", \"the lair of the beast, be careful !\", lairofthebeastPic);\r\n currentZone = crashzone;\r\n \r\n //list of items per zone \r\n forestS.setItems(keyForestS);\r\n forestS.setItems(keySSGenerator);\r\n \r\n forestW.setItems(keyForestW);\r\n \r\n marketplace.setItems(chestMarketplace);\r\n marketplace.setItems(keyChestChurch);\r\n marketplace.setItems(keyHouse);\r\n \r\n house.setItems(chestHouse);\r\n house.setItems(keyChestMarketplace);\r\n \r\n church.setItems(chestChurch);\r\n \r\n caveentrance.setItems(keyChestHouse);\r\n \r\n jailentrance.setItems(gun);\r\n \r\n jail.setItems(keyJail);\r\n \r\n frozenlake.setItems(medLake);\r\n \r\n pick.setItems(keySSFTL);\r\n \r\n cave.setItems(keyPick);\r\n \r\n lairofthebeast.setItems(keySSEnergyCell);\r\n \r\n //create path\r\n glade_crashzone = new Path(crashzone,false, null);\r\n crashzone_glade = new Path(glade,false, null);\r\n glade_forestS = new Path(forestS,false, null);\r\n forestS_glade = new Path(glade,false, null);\r\n glade_forestW = new Path(forestW,true, keyForestS);//path initially blocked\r\n forestW_glade = new Path(glade,false, null);\r\n glade_forestN = new Path(forestN,true, keyForestS);//path initially blocked\r\n forestN_glade = new Path(glade,false, null);\r\n bridge_forestW = new Path(forestW,false, null);\r\n forestW_bridge = new Path(bridge,false, null);\r\n bridge_forestN = new Path(forestN,false, null);\r\n forestN_bridge = new Path(bridge,false, null);\r\n bridge_cityentrance = new Path(cityentrance,true, keyForestW);//path initially blocked\r\n cityentrance_bridge = new Path(bridge,false, null);\r\n forestN_caveentrance = new Path(caveentrance,false, null);\r\n caveentrance_forestN = new Path(forestN,false, null);\r\n pick_mountainbase = new Path(mountainbase, false, null);\r\n mountainbase_pick = new Path(pick, true, keyPick);// path initially blocked\r\n mountainbase_caveentrance = new Path(caveentrance, false, null);\r\n caveentrance_mountainbase = new Path(mountainbase, false, null);\r\n caveentrance_cave = new Path(cave, false, null);\r\n cave_caveentrance = new Path(caveentrance, false, null);\r\n caveentrance_frozenlake = new Path(frozenlake, false, null);\r\n frozenlake_caveentrance = new Path(caveentrance, false, null);\r\n cave_lairofthebeast = new Path(lairofthebeast, false, null);\r\n lairofthebeast_cave = new Path(cave, false, null);\r\n jailentrance_jail = new Path(jail, true, keyJail);//path always blocked, the way can be crossed only if the guards put the player in jail\r\n jail_jailentrance = new Path(jailentrance, true, keyJail);//path initially blocked\r\n jailentrance_marketplace = new Path(marketplace, false, null);\r\n marketplace_jailentrance = new Path(jailentrance, false, null);\r\n marketplace_church = new Path(church, false, null);\r\n church_marketplace = new Path(marketplace, false, null);\r\n marketplace_cityentrance = new Path(cityentrance, false, null);\r\n cityentrance_marketplace = new Path(marketplace, false, null);\r\n marketplace_house = new Path(house, true, keyHouse);//path initially blocked\r\n house_marketplace = new Path(marketplace, false, null);\r\n \r\n //initialization of exits\r\n glade.setExits(\"north\",glade_forestN);\r\n glade.setExits(\"east\",glade_crashzone);\r\n glade.setExits(\"west\",glade_forestW);\r\n glade.setExits(\"south\",glade_forestS);\r\n \r\n crashzone.setExits(\"west\",crashzone_glade);\r\n \r\n forestS.setExits(\"north\",forestS_glade); \r\n \r\n forestW.setExits(\"east\",forestW_glade);\r\n forestW.setExits(\"north\",forestW_bridge);\r\n \r\n forestN.setExits(\"west\",forestN_bridge);\r\n forestN.setExits(\"north\",forestN_caveentrance);\r\n forestN.setExits(\"south\", forestN_glade);\r\n \r\n caveentrance.setExits(\"north\",caveentrance_cave);\r\n caveentrance.setExits(\"east\",caveentrance_frozenlake);\r\n caveentrance.setExits(\"west\",caveentrance_mountainbase);\r\n caveentrance.setExits(\"south\",caveentrance_forestN);\r\n \r\n frozenlake.setExits(\"west\",frozenlake_caveentrance);\r\n \r\n cave.setExits(\"east\",cave_lairofthebeast);\r\n cave.setExits(\"south\",cave_caveentrance);\r\n \r\n lairofthebeast.setExits(\"west\",lairofthebeast_cave);\r\n \r\n mountainbase.setExits(\"north\",mountainbase_pick);\r\n mountainbase.setExits(\"east\",mountainbase_caveentrance);\r\n \r\n bridge.setExits(\"west\",bridge_cityentrance);\r\n bridge.setExits(\"south\",bridge_forestW);\r\n bridge.setExits(\"east\",bridge_forestN);\r\n \r\n cityentrance.setExits(\"west\",cityentrance_marketplace);\r\n cityentrance.setExits(\"east\",cityentrance_bridge);\r\n \r\n marketplace.setExits(\"west\",marketplace_church);\r\n marketplace.setExits(\"north\",marketplace_jailentrance);\r\n marketplace.setExits(\"east\",marketplace_cityentrance);\r\n marketplace.setExits(\"south\",marketplace_house);\r\n \r\n house.setExits(\"north\",house_marketplace);\r\n \r\n church.setExits(\"east\",church_marketplace);\r\n \r\n jailentrance.setExits(\"north\",jailentrance_jail);\r\n jailentrance.setExits(\"south\",jailentrance_marketplace);\r\n \r\n jail.setExits(\"south\",jail_jailentrance);\r\n \r\n pick.setExits(\"south\", pick_mountainbase);\r\n \n //Placement of Npcs\r\n \t\thouse.setCurrentNpcFightGuard(guard);\n\r\n\t\t\tlairofthebeast.setCurrentNpcFightBoss(boss);\r\n\t\t\tSystem.out.println(lairofthebeast.getCurrentNpcFightBoss().getName());\r\n\t\t\t//TODO\r\n\t\t\t\r\n\t\t\tglade.setCurrentNpcDialog(shaman);\r\n\t\t\tcityentrance.setCurrentNpcDialog(citizen1);\r\n\t\t\tjail.setCurrentNpcDialog(prisoner);\r\n\t\t\tmarketplace.setCurrentNpcDialog(citizen2);\r\n\t\t\tchurch.setCurrentNpcDialog(citizen3);\r\n\t\t\thouse.setCurrentNpcDialog(citizen4);\r\n\r\n\t\t\tforestN.setCurrentNpcFightMonster(snake1);\r\n\t\t\tforestW.setCurrentNpcFightMonster(snake1bis);\r\n\t\t\tcaveentrance.setCurrentNpcFightMonster(snake2);\r\n\t\t\tcave.setCurrentNpcFightMonster(wolf);\r\n\t\t\tbridge.setCurrentNpcFightMonster(shark);\r\n\r\n\t}", "public int getQuestID() {\n return questID_;\n }", "public int getQuestID() {\n return questID_;\n }", "public int getQuestID() {\n return questID_;\n }", "public int getQuestID() {\n return questID_;\n }", "@Test\n\tpublic void testLoadEach() {\n\t\tCollection<QuestForUser> quests = \n\t\t\tqfuRepo.findByUserIdAndAll(\n\t\t\t\tuserId,\n\t\t\t\tnew Director<QuestForUserRepository.QuestForUserConditionBuilder>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void apply(QuestForUserConditionBuilder builder) {\n\t\t\t\t\t\tbuilder.complete(new Director<IBooleanConditionBuilder>() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void apply(IBooleanConditionBuilder builder) {\n\t\t\t\t\t\t\t\tbuilder.isTrue();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}).questId(new Director<IIntConditionBuilder>() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void apply(IIntConditionBuilder builder) {\n\t\t\t\t\t\t\t\tbuilder.inNumberCollection(questIds);\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\tlog.info(\"Found {} quests\", quests.size());\n\t\tAssert.assertTrue(\"Found all quests\", quests.size() == questIds.size());\n\t}", "public void fillInventory(TheGroceryStore g);" ]
[ "0.6326168", "0.6291822", "0.62431526", "0.58683455", "0.5782122", "0.5720031", "0.568151", "0.5681428", "0.5606854", "0.55906934", "0.55756646", "0.5517138", "0.54994786", "0.54961103", "0.548997", "0.54404205", "0.5430506", "0.542788", "0.5405087", "0.5368803", "0.5365625", "0.53524303", "0.5336144", "0.53274894", "0.5326502", "0.5313842", "0.53066516", "0.5275546", "0.5271661", "0.5262725", "0.5261331", "0.5224114", "0.52086926", "0.5206058", "0.5177403", "0.51400024", "0.5133055", "0.51258296", "0.50964165", "0.50923777", "0.50923777", "0.50923777", "0.5091262", "0.5082171", "0.50587404", "0.50557965", "0.5054791", "0.5052266", "0.5052266", "0.5052266", "0.5045695", "0.5031936", "0.50002074", "0.4992699", "0.49869776", "0.49644923", "0.49394965", "0.49097747", "0.49063078", "0.49063078", "0.49063078", "0.49063078", "0.48888052", "0.4888614", "0.48886043", "0.48829812", "0.48706156", "0.4869513", "0.4869513", "0.4869513", "0.4869513", "0.4866464", "0.4866464", "0.4866464", "0.48661184", "0.48660982", "0.48658592", "0.48522535", "0.48431873", "0.48332718", "0.48332718", "0.48332718", "0.48279214", "0.4826648", "0.48230878", "0.4783597", "0.47787544", "0.47708026", "0.476783", "0.47521812", "0.47476193", "0.47231573", "0.4717748", "0.47054353", "0.46974087", "0.46974087", "0.46974087", "0.46974087", "0.4690932", "0.4686816" ]
0.7031629
0
Function to display quests
private static void displayQuestList(String[] questList){ for(int i = 0; i < questList.length; i++){ switch(questList[i]){ case "Kill Skeletons": System.out.println((i + 1) + ") " + questList[i]); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void printQuestions(ArrayList<Question> quest) {\n\t\tfor (Question question : quest) {\n\t\t\tquestion.getText();\n\t\t}\n\t}", "public static void displayQuestions() {\n System.out.println(\"1. Is your character male?\");\n System.out.println(\"2. Is your character female?\");\n System.out.println(\"3. Does your character have brown hair?\");\n System.out.println(\"4. Does your character have red hair?\");\n System.out.println(\"5. Does your character have blonde hair?\");\n System.out.println(\"6. Does your character have green eyes?\");\n System.out.println(\"7. Does your character have blue eyes?\");\n System.out.println(\"8. Does your character have brown eyes?\");\n System.out.println(\"9. Is your character wearing a green shirt?\");\n System.out.println(\"10. Is your character wearing a blue shirt?\");\n System.out.println(\"11. Is your character wearing a red shirt?\");\n }", "public void printQuestions()\r\n\t{\r\n\t\tfor(int i = 0; i < questions.size(); i++)\r\n\t\t{\r\n\t\t\tString q = questions.get(i).toString();\r\n\t\t\tSystem.out.println( (i+1) + \". \" + q);\r\n\t\t}\r\n\t}", "public void displayQuestions(){\n\t\t//create a string which would be displayed in the question label\n\t\tString q = currentNode.getData().toString();\n\t\t//set text question Label\n\t\tquestions.setText(q);\n\t}", "public String printQuestStatus() {\r\n\t\t\tif(this.getCurrentQuest().getName().equals(\"noquest\")) { // INITIAL QUEST CALLED \"noquest\"\r\n\t\t\t\treturn \"You have completed no quests, look for something to do!\";\r\n\t\t\t}\r\n\t\t\telse if(this.getCurrentQuest().sendMessageNext()) {\r\n\t\t\t\tthis.getCurrentQuest().setSendMessageNext(false);\r\n\t\t\t\tthis.getPlayer().gainXp(this.getCurrentQuest().getXpYield());\r\n\t\t\t\treturn this.getCurrentQuest().getCompletionMessage() + \"\\n\" +\r\n\t\t\t\t\t\t\"You gain \" + this.getCurrentQuest().getXpYield() + \" xp. \\n\";\r\n\t\t\t}\r\n\t\t\telse if(this.getCurrentQuest().isCompleted()) {\r\n\t\t\t\treturn \"You have completed your last quest, \" + this.getCurrentQuest().getName() + \". \\n\"\r\n\t\t\t\t\t\t+ \"You can now serach for a new quest. \\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn \"Current Quest: \\n\"\r\n\t\t\t\t\t\t+ this.getCurrentQuest().getName() + \"\\n\"\r\n\t\t\t\t\t\t+ this.getCurrentQuest().getDescription() + \"\\n\" + \r\n\t\t\t\t\t\tthis.getCurrentQuest().printProgress();\r\n\r\n\t\t\t}\r\n\t\t}", "public void drawQuest(){\n System.out.println(\"¿Que cantidad desea retirar?\");\n System.out.println(\"\"); \n}", "private void fillQuestionsTable() {\n Question q1 = new Question(\"Who is NOT a Master on the Jedi council?\", \"Anakin Skywalker\", \"Obi Wan Kenobi\", \"Mace Windu\", \"Yoda\", 1);\n Question q2 = new Question(\"Who was Anakin Skywalker's padawan?\", \"Kit Fisto\", \"Ashoka Tano\", \"Barris Ofee\", \"Jacen Solo\",2);\n Question q3 = new Question(\"What Separatist leader liked to make find additions to his collection?\", \"Pong Krell\", \"Count Dooku\", \"General Grevious\", \"Darth Bane\", 3);\n Question q4 = new Question(\"Choose the correct Response:\\n Hello There!\", \"General Kenobi!\", \"You are a bold one!\", \"You never should have come here!\", \"You turned her against me!\", 1);\n Question q5 = new Question(\"What ancient combat technique did Master Obi Wan Kenobi use to his advantage throughout the Clone Wars?\", \"Kendo arts\", \"The High ground\", \"Lightsaber Form VIII\", \"Force healing\", 2);\n Question q6 = new Question(\"What was the only surviving member of Domino squad?\", \"Fives\", \"Heavy\", \"Echo\", \"Jesse\", 3);\n Question q7 = new Question(\"What Jedi brutally murdered children as a part of his descent to become a Sith?\", \"Quinlan Vos\", \"Plo Koon\", \"Kit Fisto\", \"Anakin Skywalker\", 4);\n Question q8 = new Question(\"What Sith was the first to reveal himself to the Jedi after a millenia and was subsquently cut in half shortly after?\", \"Darth Plagieus\", \"Darth Maul\", \"Darth Bane\", \"Darth Cadeus\", 2);\n Question q9 = new Question(\"What 4 armed creature operates a diner on the upper levels of Coruscant?\", \"Dexter Jettster\", \"Cad Bane\", \"Aurua Sing\", \"Dorme Amidala\", 1);\n Question q10 = new Question(\"What ruler fell in love with an underage boy and subsequently married him once he became a Jedi?\", \"Aurua Sing\", \"Duttchess Satine\", \"Mara Jade\", \"Padme Amidala\", 4);\n\n // adds them to the list\n addQuestion(q1);\n addQuestion(q2);\n addQuestion(q3);\n addQuestion(q4);\n addQuestion(q5);\n addQuestion(q6);\n addQuestion(q7);\n addQuestion(q8);\n addQuestion(q9);\n addQuestion(q10);\n }", "void display() {\n for (int i = 0; i < this.questions.size(); i++)\n this.questions.get(i).display(i, gradeable());\n }", "public void drawQuestion(){\n\t\tfont.draw(batch, ques, screenWidth / 5 , 75 );\n\t}", "@Override\n\tpublic String getQuest() {\n\t\t// TODO Auto-generated method stub\n\t\treturn this.question;\n\t}", "@Override\n public void display()\n {\n // Display the question text\n super.display();\n int choiceNumber = 0;\n // Display the answer choices\n for (int i = 0; i < m_choices.size(); i++) {\n choiceNumber = i + 1;\n System.out.println(choiceNumber + \": \" + m_choices.get(i));\n }\n }", "public void showQuestion()\n\t{\n\t\tSystem.out.println(ans);\n\t\tfor(int k = 0; k<numAns; k++)\n\t\t{\n\t\t\tSystem.out.println(k+\". \"+answers[k]);\n\t\t}\n\t}", "public void quest() {\n if ((int) (Math.random() * 100) > 50) {\n addStrangeCharacter();\n System.out.println(\"You found the npc to talk with\");\n if ((int) (Math.random() * 75) > 50) {\n addStrangeCharacter();\n System.out.println(\"And you beat the baws\");\n } else {\n System.out.println(\"And he baws owned you\");\n }\n } else {\n System.out.println(\"You couldn't even find the npc, lol n00b\");\n }\n }", "public void printQuestions() {\n\t\tif (this.questions.size() == 0) {\n\t\t\tSystem.out.println(\"Sorry. There are no questions in this quiz.\");\n\t\t} else {\n\t\t\tfor (Question q : this.questions) {\n\t\t\t\tSystem.out.println(q.getText());\n\t\t\t}\n\t\t}\n\t}", "public void fillQuestionsTable() {\n\n //Hard Questions\n Questions q1 = new Questions(\"The redshift of a distant galaxy is 0·014. According to Hubble’s law, the distance of the galaxy from Earth is? \", \" 9·66 × 10e-12 m\", \" 9·32 × 10e27 m\", \"1·83 × 10e24 m\", \"1·30 × 10e26 m \", 3);\n addQuestion(q1);\n Questions q2 = new Questions(\"A ray of monochromatic light passes from air into water. The wavelength of this light in air is 589 nm. The speed of this light in water is? \", \" 2·56 × 10e2 m/s \", \"4·52 × 10e2 m/s\", \"4·78 × 10e2 m/s\", \"1·52 × 10e2 m/s\", 2);\n addQuestion(q2);\n Questions q3 = new Questions(\"A car is moving at a speed of 2·0 m s−1. The car now accelerates at 4·0 m s−2 until it reaches a speed of 14 m s−1. The distance travelled by the car during this acceleration is\", \"1.5m\", \"18m\", \"24m\", \"25m\", 3);\n addQuestion(q3);\n Questions q4 = new Questions(\"A spacecraft is travelling at 0·10c relative to a star. \\nAn observer on the spacecraft measures the speed of light emitted by the star to be?\", \"0.90c\", \"1.00c\", \"1.01c\", \"0.99c\", 2);\n addQuestion(q4);\n Questions q5 = new Questions(\"Measurements of the expansion rate of the Universe lead to the conclusion that the rate of expansion is increasing. Present theory proposes that this is due to? \", \"Redshift\", \"Dark Matter\", \"Dark Energy\", \"Gravity\", 3);\n addQuestion(q5);\n Questions q6 = new Questions(\"A block of wood slides with a constant velocity down a slope. The slope makes an angle of 30º with the horizontal axis. The mass of the block is 2·0 kg. The magnitude of the force of friction acting on the block is?\" , \"1.0N\", \"2.0N\", \"9.0N\", \"9.8N\", 4);\n addQuestion(q6);\n Questions q7 = new Questions(\"A planet orbits a star at a distance of 3·0 × 10e9 m. The star exerts a gravitational force of 1·6 × 10e27 N on the planet. The mass of the star is 6·0 × 10e30 kg. The mass of the planet is? \", \"2.4 x 10e14 kg\", \"3.6 x 10e25 kg\", \"1.2 x 10e16 kg\", \"1.6 x 10e26 kg\", 2);\n addQuestion(q7);\n Questions q8 = new Questions(\"Radiation of frequency 9·00 × 10e15 Hz is incident on a clean metal surface. The maximum kinetic energy of a photoelectron ejected from this surface is 5·70 × 10e−18 J. The work function of the metal is?\", \"2.67 x 10e-19 J\", \"9.10 x 10e-1 J\", \"1.60 x 10e-18 J\", \"4.80 x 10e-2 J\", 1);\n addQuestion(q8);\n Questions q9 = new Questions(\"The irradiance of light from a point source is 32 W m−2 at a distance of 4·0 m from the source. The irradiance of the light at a distance of 16 m from the source is? \", \"1.0 W m-2\", \"8.0 W m-2\", \"4.0 W m-2\", \"2.0 W m-2\", 4);\n addQuestion(q9);\n Questions q10 = new Questions(\"A person stands on a weighing machine in a lift. When the lift is at rest, the reading on the weighing machine is 700 N. The lift now descends and its speed increases at a constant rate. The reading on the weighing machine...\", \"Is a constant value higher than 700N. \", \"Is a constant value lower than 700N. \", \"Continually increases from 700 N. \", \"Continually decreases from 700 N. \", 2);\n addQuestion(q10);\n\n //Medium Questions\n Questions q11 = new Questions(\"What is Newtons Second Law of Motion?\", \"F = ma\", \"m = Fa\", \"F = a/m\", \"Every action has an equal and opposite reaction\", 1);\n addQuestion(q11);\n Questions q12 = new Questions(\"In s = vt, what does s stand for?\", \"Distance\", \"Speed\", \"Sin\", \"Displacement\", 4);\n addQuestion(q12);\n Questions q13 = new Questions(\"An object reaches terminal velocity when...\", \"Forward force is greater than the frictional force.\", \"All forces acting on that object are equal.\", \"Acceleration starts decreasing.\", \"Acceleration is greater than 0\", 2);\n addQuestion(q13);\n Questions q14 = new Questions(\"An Elastic Collision is where?\", \"There is no loss of Kinetic Energy.\", \"There is a small loss in Kinetic Energy.\", \"There is an increase in Kinetic Energy.\", \"Some Kinetic Energy is transferred to another type.\", 1);\n addQuestion(q14);\n Questions q15 = new Questions(\"The speed of light is?\", \"Different for all observers.\", \"The same for all observers. \", \"The same speed regardless of the medium it is travelling through. \", \"Equal to the speed of sound.\", 2);\n addQuestion(q15);\n Questions q16 = new Questions(\"What is redshift?\", \"Light moving to us, shifting to red. \", \"A dodgy gear change. \", \"Light moving away from us shifting to longer wavelengths.\", \"Another word for dark energy. \", 3);\n addQuestion(q16);\n Questions q17 = new Questions(\"Which law allows us to estimate the age of the universe?\", \"Newtons 3rd Law \", \"The Hubble-Lemaitre Law \", \"Planck's Law \", \"Wien's Law \", 2);\n addQuestion(q17);\n Questions q18 = new Questions(\"The standard model...\", \"Models how time interacts with space. \", \"Describes how entropy works. \", \"Is the 2nd Law of Thermodynamics. \", \"Describes the fundamental particles of the universe and how they interact\", 4);\n addQuestion(q18);\n Questions q19 = new Questions(\"The photoelectric effect gives evidence for?\", \"The wave model of light. \", \"The particle model of light. \", \"The speed of light. \", \"The frequency of light. \", 2);\n addQuestion(q19);\n Questions q20 = new Questions(\"AC is a current which...\", \"Doesn't change direction. \", \"Is often called variable current. \", \"Is sneaky. \", \"Changes direction and instantaneous value with time. \", 4);\n addQuestion(q20);\n\n //Easy Questions\n Questions q21 = new Questions(\"What properties does light display?\", \"Wave\", \"Particle\", \"Both\", \"Neither\", 3);\n addQuestion(q21);\n Questions q22 = new Questions(\"In V = IR, what does V stand for?\", \"Velocity\", \"Voltage\", \"Viscosity\", \"Volume\", 2);\n addQuestion(q22);\n Questions q23 = new Questions(\"The abbreviation rms typically stands for?\", \"Round mean sandwich. \", \"Random manic speed. \", \"Root manic speed. \", \"Root mean squared. \", 4);\n addQuestion(q23);\n Questions q24 = new Questions(\"Path Difference = \", \"= (m/λ) or (m + ½)/λ where m = 0,1,2…\", \"= mλ or (m + ½) λ where m = 0,1,2…\", \"= λ / m or (λ + ½) / m where m = 0,1,2…\", \" = mλ or (m + ½) λ where m = 0.5,1.5,2.5,…\", 2);\n addQuestion(q24);\n Questions q25 = new Questions(\"How many types of quark are there?\", \"6\", \"4 \", \"8\", \"2\", 1);\n addQuestion(q25);\n Questions q26 = new Questions(\"A neutrino is a type of?\", \"Baryon\", \"Gluon\", \"Lepton\", \"Quark\", 3);\n addQuestion(q26);\n Questions q27 = new Questions(\"A moving charge produces:\", \"A weak field\", \"An electric field\", \"A strong field\", \"Another moving charge\", 2);\n addQuestion(q27);\n Questions q28 = new Questions(\"What contains nuclear fusion reactors?\", \"A magnetic field\", \"An electric field\", \"A pool of water\", \"Large amounts of padding\", 1);\n addQuestion(q28);\n Questions q29 = new Questions(\"What is the critical angle of a surface?\", \"The incident angle where the angle of refraction is 45 degrees.\", \"The incident angle where the angle of refraction is 90 degrees.\", \"The incident angle where the angle of refraction is 135 degrees.\", \"The incident angle where the angle of refraction is 180 degrees.\", 2);\n addQuestion(q29);\n Questions q30 = new Questions(\"Which is not a type of Lepton?\", \"Electron\", \"Tau\", \"Gluon\", \"Muon\", 3);\n addQuestion(q30);\n }", "com.rpg.framework.database.Protocol.Quest getQuest(int index);", "public void printQuestion() {\n\t\tSystem.out.println(question);\n\t}", "public void dicebreakers(View view) {\n TextView Questions = this.findViewById(R.id.displayCongrats);\n\n switch (number) {\n case 1:\n Questions.setText(Q1);\n break;\n case 2:\n Questions.setText(Q2);\n break;\n case 3:\n Questions.setText(Q3);\n break;\n case 4:\n Questions.setText(Q4);\n break;\n case 5:\n Questions.setText(Q5);\n break;\n case 6:\n Questions.setText(Q6);\n break;\n\n }\n\n }", "public void showQuestion(int i) {\n i--;\n VocabularyQuiz question = gui.getQuiz().viewQuiz(i);\n JLabel header = new JLabel(\"Question\" + (i + 1));\n gui.getConstraints().insets = new Insets(10, 10,40,10);\n header.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 28));\n gui.getConstraints().gridx = 0;\n gui.getConstraints().gridy = 0;\n gui.getPanel().add(header, gui.getConstraints());\n JTextArea description = new JTextArea(\"What is meaning of \\\"\" + question.getVocabulary().getVocab() + \"\\\"?\");\n description.setEditable(false);\n description.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 18));\n gui.getConstraints().gridy = 1;\n gui.getPanel().add(description, gui.getConstraints());\n showChoices(question);\n }", "public void showQuests(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/Quests.fxml\"));\n AnchorPane janela = (AnchorPane) loader.load();\n \n Stage questsStage = new Stage();\n questsStage.setTitle(\"Inventory\");\n questsStage.initModality(Modality.WINDOW_MODAL);\n questsStage.initOwner(primaryStage);\n Scene scene = new Scene(janela);\n questsStage.setScene(scene);\n \n QuestsController controller = loader.getController();\n controller.setGame(this);\n \n questsStage.showAndWait();\n }catch(IOException e){\n }\n }", "public com.rpg.framework.database.Protocol.Quest getQuest(int index) {\n if (questBuilder_ == null) {\n return quest_.get(index);\n } else {\n return questBuilder_.getMessage(index);\n }\n }", "private void showResults() {\n if (!sent) {\n if(checkAnswerOne()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerTwo()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerThree()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerFour()) {\n nbOfCorrectAnswers++;\n }\n\n showResultAsToast(nbOfCorrectAnswers);\n\n } else {\n showResultAsToast(nbOfCorrectAnswers);\n }\n }", "private void printWelcome()//refactored\n {\n System.out.println();\n waitTime(0.5);\n System.out.println(\"Let´s play a game...\");\n waitTime(0.5);\n System.out.println(\"Welcome to the awesome Adventure Game 'Magic Quest'!\");\n waitTime(0.5);\n System.out.println(\"If you want to become a mighty madican - you have to play.\");\n waitTime(0.5);\n System.out.println(\"Type 'help' if you need help.\");\n waitTime(0.5);\n System.out.println();\n waitTime(0.5);\n System.out.println(currentRoom.getDescription() + \"\\n\");//new\n waitTime(0.5);\n System.out.println(currentRoom.getExitDescription() + \"\\n\");//new\n waitTime(0.5);\n System.out.println();\n }", "public synchronized String toString() {\n\t\treturn getTitle() + \" - \" + getQuestions();\n\t}", "public void print_question(PrintWriter output) {\n output.printf(\"%-15d|%-10d|%-15s|%-40s|\",getQID(),getTopicNo(),getDifficultyLevel(),getDescription());\r\n \r\n }", "static void printQuestion(int questionNum) {\n\t System.out.println(multiChoice[questionNum][QUESTION]);\n\t int lastColumn = multiChoice[questionNum].length;\n\t for (int x = START_OF_CHOICES; x < lastColumn; x++) {\n\t System.out.println(\"\\t\" + multiChoice[questionNum][x]);\n\t }\n\t}", "public String printOutQuestion()\n\t{\n\t\tRandom rand = new Random();\n\t\tString[] answers = new String[4];\n\t\tString returnString;\n\t\tanswers[0] = answer;\n\t\tanswers[1] = falseAnswers[0];\n\t\tanswers[2] = falseAnswers[1];\n\t\tanswers[3] = falseAnswers[2];\n\t\tString firstAns = \"\", secondAns = \"\", thirdAns = \"\", fourthAns = \"\";\n\t\t\n\t\twhile(firstAns == secondAns || firstAns == thirdAns || firstAns == fourthAns || secondAns == thirdAns || secondAns == fourthAns || thirdAns == fourthAns)\n\t\t{\n\t\t\tfirstAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(firstAns); Used for debugging\n\t\t\tsecondAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(secondAns); Used for debugging\n\t\t\tthirdAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(thirdAns); Used for debugging\n\t\t\tfourthAns = answers[rand.nextInt(4)];\n\t\t//\tSystem.out.println(fourthAns); Used for debugging\n\t\t}\n\t\t\n\t\tanswerA = firstAns;\n\t\tanswerB = secondAns;\n\t\tanswerC = thirdAns;\n\t\tanswerD = fourthAns;\n\t\t//System.out.println(questionString + \"Answer A: \" + firstAns + \"Answer B: \" + secondAns + \"Answer C: \" + thirdAns + \"Answer D: \" + fourthAns); Used for debugging\n\t\treturnString = questionString + \"?\"; \n\t\tSystem.out.println(\"Actual Answer is: \" + answer);\n\t\treturn returnString;\n\t}", "public void printVottingQuestion(){\n for (Voting voting : votingList){\n System.out.println(\"question : \"+voting.getQuestion());\n }\n\n }", "public void ingQuest(){\n System.out.println(\"¿Que cantidad desea ingresar?\");\n System.out.println(\"\"); \n}", "private void showQuesAndAnswers() {\r\n QuestionData qd = theQuestions.get(thisQues);\r\n TextView tv = (TextView)findViewById(R.id.theQuestion);\r\n tv.setText(Titles[bookNbrIx] + \", question nbr: \" + qd.quesNbr\r\n + \", line: \" + thisQues + \"\\n\\n\" + qd.question);\r\n \r\n\t\tadapter = new ArrayAdapter<String>(USCG_QuestionsActivity.this, android.R.layout.simple_list_item_1, qd.choices);\r\n\t\tsetListAdapter(adapter);\r\n\t\t\r\n\t\t// Does this question have an illustration image?\r\n\t\tif(!qd.illustrations.equals(NoIllusFlag)){\r\n\t\t\tSystem.out.println(\"Question \"+thisQues+\" has diagram:\"+qd.illustrations);\r\n\t\t\tBitmap bitmap = loadDiagram(IllusFolder + qd.illustrations + IllusExt);\r\n\t\t\tif(bitmap == null) {\r\n\t\t\t\tSystem.out.println(\"bitmap null for \" + IllusFolder + qd.illustrations + IllusExt);\r\n\t\t\t\tshowMsg(\"bitmap null for \" + IllusFolder + qd.illustrations + IllusExt);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t// Build and show a popup window\r\n\t\t LayoutInflater inflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n\t\t int puwWidth = (int)(bitmap.getWidth() * pxlDensity) + 5;\r\n\t\t int puwHeight = (int)(bitmap.getHeight() * pxlDensity) + 5;\r\n \t puw = new PopupWindow(inflater.inflate(R.layout.diagram_popup, null, false), \r\n\t\t\t\t\t\t \t puwWidth, \r\n\t\t\t\t\t\t \t puwHeight, \r\n\t\t\t\t\t\t \t true);\r\n// \t puw.setOutsideTouchable(true); //WHAT DOES THIS CHANGE ???? <<<<<<<<\r\n \t puw.setBackgroundDrawable(new BitmapDrawable()); // To enable Back button\r\n\r\n \t puw.showAtLocation(this.findViewById(R.id.theQuestion), Gravity.CENTER, 0, 0); \r\n \t puw.setOnDismissListener(new PopupWindow.OnDismissListener(){\r\n \t \tpublic void onDismiss() {\r\n \t \t\tpuw = null; // set flag for onBackPressed()\r\n \t \t}\r\n \t } \t \r\n \t );\r\n \t \r\n \t // Show the image in a popup window\r\n \t ShowDiagramView sdv = (ShowDiagramView)puw.getContentView().findViewById(R.id.view_area);\r\n \t sdv.setBitmap(bitmap, puw, pxlDensity);\r\n \t sdv.invalidate(); // force a call to onDraw()\r\n \t \r\n// \t TextView tv2 = (TextView)puw.getContentView().findViewById(R.id.view_area);\r\n// \t tv2.setText(\"Question has diagram:\"+qd.illustrations);\r\n \t \r\n \t Button dspBtn = (Button)puw.getContentView().findViewById(R.id.disposeBtn);\r\n dspBtn.setOnClickListener(new View.OnClickListener() {\r\n public void onClick(View v) {\r\n puw.dismiss();\r\n puw = null; // flag for onBackPressed()\r\n }\r\n });\r\n// */\r\n\t\t}\r\n\r\n\t}", "public com.rpg.framework.database.Protocol.Quest getQuest(int index) {\n return quest_.get(index);\n }", "public List<TextQuestion> TextQuestions(int aid);", "private static ArrayList<Quest> createQuests() {\n ArrayList<Quest> quests = new ArrayList();\n //Create Cooks assistant and imp catcher;\n\n //Imp Catcher\n ArrayList<String> itemReqs = new ArrayList();\n itemReqs.add(\"Yellow Bead\");\n itemReqs.add(\"Red Bead\");\n itemReqs.add(\"Black Bead\");\n itemReqs.add(\"While Bead\");\n QuestStep qs1 = new QuestStep(1, \"Hand in beads to wizard\", itemReqs,12337);\n ArrayList<QuestStep> questSteps = new ArrayList();\n questSteps.add(qs1);\n\n int[] skillReqs = new int[Constant.NUMBER_OF_Skills];\n for (int i = 0; i < Constant.NUMBER_OF_Skills; i++) {\n skillReqs[i] = 0;\n }\n ArrayList<String> questReqs = new ArrayList();\n Quest q1 = new Quest(\"Imp Catcher\", questSteps,12337, skillReqs, 0, questReqs);\n quests.add(q1);\n\n //Cooks assistant\n itemReqs = new ArrayList();\n itemReqs.add(\"Pot of Flour\");\n itemReqs.add(\"Egg\");\n itemReqs.add(\"Bucket of Milk\");\n qs1 = new QuestStep(1, \"Hand in ingredients to chef\", itemReqs,12850);\n questSteps = new ArrayList();\n questSteps.add(qs1);\n\n\n Quest q2 = new Quest(\"Cooks Assistant\", questSteps,12850, skillReqs, 0, questReqs);\n quests.add(q2);\n return quests;\n }", "public String toString()\n\t{\n\t\tString returnString = question;\n\t\tfor (int i = 0; i < numLines; i++)\n\t\t{\n\t\t\treturnString = returnString.concat(\"\\n\");\n\t\t}\n\t\t\n\t\treturn returnString;\n\t}", "public void setQuestions() {\n\t\tString question1 = str1 + _QwdQuestionFst;\n\t\tSpannableString sb1 = new SpannableString(question1);\n\t\tsb1.setSpan(new ForegroundColorSpan(Color.BLACK), str1.length() ,\n\t\t\t\tsb1.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);\n\t\t_FPTV_Question_1.setText(sb1);\n\n\t\tString question2 = str2 + _QwdQuestionSec;\n\t\tSpannableString sb2 = new SpannableString(question2);\n\t\tsb2.setSpan(new ForegroundColorSpan(Color.BLACK), str2.length() ,\n\t\t\t\tsb2.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);\n\t\t_FPTV_Question_2.setText(sb2);\n\t}", "public String checkNewQuestions() {\n\t\tint numAnswers = testGenerator.getNumAnswers(questionNo);\n\t\tString question = \"\";\n\n\t\tquestion += testGenerator.getQuestionText(questionNo);\n\t\tquestion += testGenerator.getAnswerText(questionNo, 1);\n\t\tquestion += testGenerator.getAnswerText(questionNo, 2);\n\n\t\tif(numAnswers >= 3) {\n\t\t\tquestion += testGenerator.getAnswerText(questionNo, 3);\n\t\t} \n\t\tif(numAnswers == 4) {\n\t\t\tquestion += testGenerator.getAnswerText(questionNo, 4);\n\t\t}\n\t\treturn question;\n\t}", "java.util.List<com.rpg.framework.database.Protocol.Quest> \n getQuestList();", "public void display() {\n io.writeLine(\"The correct answer is \" + rightAnswers.get(0));\n }", "public void printVotingQuestions(){\n int i=0;\n System.out.println(\"Question\");\n for (Voting v:votingList) {\n System.out.println(i+\":\"+v.getQuestion());\n i++ ;\n }\n }", "private void displayQuestion(Question question) {\n String query = question.getQuery();\n TextView queryTextView = getTextViewById(\"quiz_query\");\n queryTextView.setText(query);\n\n //Setting text for quiz options\n Iterator<String> options = question.getOptions().iterator();\n RadioButton A = getRadioButtonById(\"optionA\");\n RadioButton B = getRadioButtonById(\"optionB\");\n RadioButton C = getRadioButtonById(\"optionC\");\n RadioButton D = getRadioButtonById(\"optionD\");\n A.setText(options.next());\n B.setText(options.next());\n C.setText(options.next());\n D.setText(options.next());\n }", "private void showElements(){\n question.setVisibility(View.VISIBLE);\n yes_for_joke.setVisibility(View.VISIBLE);\n no_for_joke.setVisibility(View.VISIBLE);\n progressBar.setVisibility(View.GONE);\n }", "private void chapter1Display(Batch batch) {\n backgroundSprite.draw(batch);\n renderSharedAssets(batch);\n if (!isTeacher && chapterSection >= startOfQuestionSection && chapterSection < lastChapterSection) {\n next.draw(batch);\n\n if (chapterSection == startOfQuestionSection) {\n detectCorrectAnswer();\n ansX = (screenWidth / 1.6f) - (studentAnswer.getBounds(typedAnswer.toString()).width / 2);\n ansY = (screenHeight / 2.9f) - (studentAnswer.getBounds(typedAnswer.toString()).height / 2);\n } else if (chapterSection > startOfQuestionSection && chapterSection < lastChapterSection) {\n detectCorrectAnswer();\n ansX = (screenWidth / 1.6f) - (studentAnswer.getBounds(typedAnswer.toString()).width / 2);\n ansY = (screenHeight / 2.35f) - (studentAnswer.getBounds(typedAnswer.toString()).height / 2);\n }\n studentAnswer.draw(batch, typedAnswer.toString(), ansX, ansY);\n }\n studentAnswer.draw(batch, typedAnswer.toString(), ansX, ansY);\n }", "public java.util.List<com.rpg.framework.database.Protocol.Quest> getQuestList() {\n return quest_;\n }", "private static void displayAnswers(String[] answers, int size)\n {\n System.out.println(\"/////////////////////////List of Answers//////////////////////////\");\n for(int i=0; i < size ; i++){ // Go through every elements in []answers array\n System.out.printf(\"%s \\n\",answers[i]); //\n }//for j\n System.out.println();\n }", "private void printQueens() {\n StringBuffer buffer = new StringBuffer();\n\n for (int i = 0; i < Main.N; ++i) {\n for (int j = 0; j < Main.N; ++j) {\n if (j == positions[i]) {\n buffer.append(\"Q\");\n } else {\n buffer.append(\"-\");\n }\n }\n\n buffer.append(\"\\n\");\n }\n\n System.out.println(buffer);\n \n }", "public String quizDisplay(String question, String[] options, int optionSequence) {\n String s = (\"What is the meaning of \" + question + \"?\\n\");\n int index = 1;\n for (int i = optionSequence; i < optionSequence + 4; i++) {\n s += (index + \".\" + options[i % 4] + \" \\n\");\n index++;\n }\n s += \"\\n\";\n return s;\n }", "private static void task43() {\n System.out.println(\"Twinkle, twinkle, little star,\");\n System.out.println(\"\\tHow I wonder what you are!\");\n System.out.println(\"\\t\\tUp above the world so high,\");\n System.out.println(\"\\t\\tLike a diamond in the sky!\");\n System.out.println(\"Twinkle, twinkle, little star,\");\n System.out.println(\"How I wonder what you are.\");\n }", "private void displayNextQuestion() {\n\n if (quizIterator.hasNext()){\n question = quizIterator.next();\n qTextView.setText(question.getQuestion());\n setBtnUsability(true);\n }\n else\n {\n setBtnUsability(false);\n qTextView.setText(\"Great job! You're a stack star!\");\n }\n\n }", "public String toString() {\n\t\tString s = \"\";\n\t\tif (title != null) {\n\t\t\ts += title + \"\\n\";\n\t\t}\n\t\tfor (Integer number : questions.keySet()) {\n\t\t\ts += questions.get(number) + \"\\n\";\n\t\t}\n\t\treturn s;\n\t}", "public String quizGreet() {\n return (\"\\n | | _ _ _| / \\\\ _ \\n\"\n + \" |/\\\\|(_)| (_| \\\\__/|_) \\n\"\n + \" | \\n\"\n + \"Let's do some quiz to enhance your word knowledge \\n\"\n + \"Type \\\"start\\\" to begin quiz or \\\"exit_quiz\\\" to go back\");\n }", "public int getQuestCount() {\n return quest_.size();\n }", "private void addQuestion() {\n Question q = new Question(\n \"¿Quien propuso la prueba del camino básico ?\", \"Tom McCabe\", \"Tom Robert\", \"Tom Charlie\", \"Tom McCabe\");\n this.addQuestion(q);\n\n\n Question q1 = new Question(\"¿Qué es una prueba de Caja negra y que errores desean encontrar en las categorías?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \" determina la funcionalidad del sistema\", \" determina la funcionalidad del sistema\");\n this.addQuestion(q1);\n Question q2 = new Question(\"¿Qué es la complejidad ciclomática es una métrica de calidad software?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \"basada en el cálculo del número\", \"basada en el cálculo del número\");\n this.addQuestion(q2);\n //preguntas del quiz II\n Question q3=new Question(\"Las pruebas de caja blanca buscan revisar los caminos, condiciones, \" +\n \"particiones de control y datos, de las funciones o módulos del sistema; \" +\n \"para lo cual el grupo de diseño de pruebas debe:\",\n \"Conformar un grupo de personas para que use el sistema nuevo\",\n \"Ejecutar sistema nuevo con los datos usados en el sistema actual\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\");\n this.addQuestion(q3);\n Question q4=new Question(\"¿Las pruebas unitarias son llamadas?\",\n \"Pruebas del camino\", \"Pruebas modulares\",\n \"Pruebas de complejidad\", \"Pruebas modulares\");\n this.addQuestion(q4);\n Question q5=new Question(\"¿Qué es una prueba de camino básico?\",\n \"Hace una cobertura de declaraciones del código\",\n \"Permite determinar si un modulo esta listo\",\n \"Técnica de pueba de caja blanca\",\n \"Técnica de pueba de caja blanca\" );\n this.addQuestion(q5);\n Question q6=new Question(\"Prueba de camino es propuesta:\", \"Tom McCabe\", \"McCall \", \"Pressman\",\n \"Tom McCabe\");\n this.addQuestion(q6);\n Question q7=new Question(\"¿Qué es complejidad ciclomatica?\",\"Grafo de flujo\",\"Programming\",\n \"Metrica\",\"Metrica\");\n this.addQuestion(q7);\n //preguntas del quiz III\n Question q8 = new Question(\n \"¿Se le llama prueba de regresión?\", \"Se tienen que hacer nuevas pruebas donde se han probado antes\",\n \"Manten informes detallados de las pruebas\", \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\");\n this.addQuestion(q8);\n Question q9 = new Question(\"¿Cómo se realizan las pruebas de regresión?\",\n \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\", \"A través de herramientas de automatización de pruebas\", \"A través de herramientas de automatización de pruebas\");\n this.addQuestion(q9);\n Question q10 = new Question(\"¿Cuándo ya hay falta de tiempo para ejecutar casos de prueba ya ejecutadas se dejan?\",\n \"En primer plano\", \"En segundo plano\", \"En tercer plano\", \"En segundo plano\");\n this.addQuestion(q10);\n //preguntas del quiz IV\n Question q11 = new Question(\n \"¿En qué se enfocan las pruebas funcionales?\",\n \"Enfocarse en los requisitos funcionales\", \"Enfocarse en los requisitos no funcionales\",\n \"Verificar la apropiada aceptación de datos\", \"Enfocarse en los requisitos funcionales\");\n this.addQuestion(q11);\n Question q12 = new Question(\"Las metas de estas pruebas son:\", \"Verificar la apropiada aceptación de datos\",\n \"Verificar el procesamiento\", \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\",\n \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\");\n this.addQuestion(q12);\n Question q13 = new Question(\"¿En qué estan basadas este tipo de pruebas?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Técnicas de cajas negra\", \"Técnicas de cajas negra\");\n this.addQuestion(q13);\n //preguntas del quiz V\n Question q14 = new Question(\n \"¿Cúal es el objetivo de esta técnica?\", \"Identificar errores introducidos por la combinación de programas probados unitariamente\",\n \"Decide qué acciones tomar cuando se descubren problemas\",\n \"Verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Identificar errores introducidos por la combinación de programas probados unitariamente\");\n this.addQuestion(q14);\n Question q15 = new Question(\"¿Cúal es la descripción de la Prueba?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\");\n this.addQuestion(q15);\n Question q16 = new Question(\"Por cada caso de prueba ejecutado:\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Comparar el resultado esperado con el resultado obtenido\", \"Comparar el resultado esperado con el resultado obtenido\");\n this.addQuestion(q16);\n //preguntas del quiz VI\n Question q17 = new Question(\n \"Este tipo de pruebas sirven para garantizar que la calidad del código es realmente óptima:\",\n \"Pruebas Unitarias\", \"Pruebas de Calidad de Código\",\n \"Pruebas de Regresión\", \"Pruebas de Calidad de Código\");\n this.addQuestion(q17);\n Question q18 = new Question(\"Pruebas de Calidad de código sirven para: \",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Verificar que las especificaciones de diseño sean alcanzadas\",\n \"Garantizar la probabilidad de tener errores o bugs en la codificación\", \"Garantizar la probabilidad de tener errores o bugs en la codificación\");\n this.addQuestion(q18);\n Question q19 = new Question(\"Este análisis nos indica el porcentaje que nuestro código desarrollado ha sido probado por las pruebas unitarias\",\n \"Cobertura\", \"Focalización\", \"Regresión\", \"Cobertura\");\n this.addQuestion(q19);\n\n Question q20 = new Question( \"¿Qué significa V(G)?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Regiones\");\n this.addQuestion(q20);\n\n Question q21 = new Question( \"¿Qué significa A?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Aristas\");\n this.addQuestion(q21);\n\n Question q22 = new Question( \"¿Qué significa N?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Nodos\");\n this.addQuestion(q22);\n\n Question q23 = new Question( \"¿Qué significa P?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos Predicado\", \"Número de Nodos Predicado\");\n this.addQuestion(q23);\n Question q24 = new Question( \"De cuantás formas se puede calcular la complejidad ciclomatica V(G):\",\n \"3\", \"1\", \"2\", \"3\");\n this.addQuestion(q24);\n\n // END\n }", "public void howToPlay() {\r\n // An item has been added to the ticket. Fire an event and let everyone know.\r\n System.out.println(\"Step 1: Have no life. \\nStep 2: Deal cards\\nStep 3: Cry yourself to sleep.\");\r\n }", "public java.util.List<com.rpg.framework.database.Protocol.Quest> getQuestList() {\n if (questBuilder_ == null) {\n return java.util.Collections.unmodifiableList(quest_);\n } else {\n return questBuilder_.getMessageList();\n }\n }", "public void printQuestionList(){\n if(questionList.isEmpty()) {\n System.out.println(\"Question list is empty.\");\n }\n else{\n for (int i = 1; i < questionList.size()+1; i++) {\n System.out.println(i + \") \" + questionList.get(i - 1));\n }\n }\n\n }", "public void transQuest(){\n System.out.println(\"Que cantidad desea transferir?\");\n System.out.println(\"\");\n}", "public void showNextQuestion() {\n currentQuiz++;\n gui.setUp();\n if (currentQuiz <= VocabularyQuizList.MAX_NUMBER_QUIZ) {\n showQuestion(currentQuiz);\n } else {\n result();\n }\n gui.getFrame().setVisible(true);\n }", "public void showInventory()\n\t{\n\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t+ \"__________________\\n\\n\");\n\t\tSystem.out.print(\"\\t\\t\\t\\tInventory\");\n\t\t\n\t\tfor (String s: inventory)\n\t\t{\n\t\t\tSystem.out.print(\"\\n\" + s);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\\n[R] Return\\n\");\n\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t+ \"__________________\\n\\n\");\n\t\tSystem.out.print(\"Action: \");\n\t\t\n\t}", "private String printHelp()//refactored\n { String result = \"\";\n result += \"\\n\";\n result += \"You are weak if you have to ask me\\n\";\n result += \"Try not to die, while i´am mocking you.\\n\";\n result += \"\\n\";\n result += \"\" + currentRoom.getDescription() + \"\\n\"; //new\n result += \"\\nExits: \" + currentRoom.getExitDescription() + \"\\n\";//new\n result += \"\\nCommand words:\\n\";\n result += ValidAction.getValidCommandWords();\n result += \"\\n\";\n \n return result;\n }", "public void showStory() {\r\n\t\tGameEngine.getInstance().getCommandProcessor().clearScreen();\r\n\t\tprintln(\"\");\r\n\t\tprintln(RenderUtil.getWelcomeMessage());\r\n\t\ttry {\r\n\t\t\tfor (String outputString : GamePlayUtil.GAME_STORY) {\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\tRenderUtil.println(\"\\t\" + outputString);\r\n\t\t\t}\r\n\t\t\tThread.sleep(2000);\r\n\t\t} catch (Exception e) {\r\n\t\t\tprintln(\"Problem Occured...\");\r\n\t\t}\r\n\t}", "public abstract void newGuiQuestions(long ms, int n);", "public void displayCorrect(){\n textPane1.setText(\"\");\r\n generatePlayerName();\r\n textPane1.setText(\"GOOD JOB! That was the correct answer.\\n\"\r\n + atBatPlayer + \" got a hit!\\n\" +\r\n \"Press Next Question, or hit ENTER, to continue.\");\r\n SWINGButton.setText(\"Next Question\");\r\n formattedTextField1.setText(\"\");\r\n formattedTextField1.setText(\"Score: \" + score);\r\n }", "public static void showRecentQuestionsByNumber() {\r\n \t\tArrayList<Question> recentQuestionsByNumber = manager\r\n \t\t\t\t.getRecentQuestionsByNumber(25);\r\n \r\n \t\trender(recentQuestionsByNumber);\r\n \t}", "int getQuestCount();", "@Override\r\n\tpublic String toString() {\r\n\t\treturn question;\r\n\t}", "public com.rpg.framework.database.Protocol.QuestOrBuilder getQuestOrBuilder(\n int index) {\n return quest_.get(index);\n }", "public void showCorrectAnswers() {\n holders.forEach(QuizViewHolder::showCorrectAnswer);\n }", "public static void printGameQuestion(String question) {\n final String label = \"Q: \";\n System.out.println(label + prettyPrintFormatter(question, label.length()));\n System.out.println(ENTER_ATTEMPT_LINE);\n printPrompt();\n }", "public String getExerciseList() {\n int max = 5;\n int min = 1;\n\n int random = (int )(Math.random() * max + min);\n\n // DETERMINE WHICH EXERCISE TO ADD\n String exerciseList = \"\\n\";\n\n if (random == pushup) {\n exerciseList += \"Push Ups\";\n } else if (random == splitSquat) {\n exerciseList += \"Split Squats\";\n } else if (random == kbDeadLift) {\n exerciseList += \"Kettle Bell Dead Lifts\";\n } else if (random == armLift) {\n exerciseList += \"Arm Lifts\";\n } else {\n exerciseList += \"Sit Ups\";\n }\n\n return exerciseList;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_sign_out) {\n signOut();\n }\n else if(id == R.id.action_sign_in){\n signIn();\n }\n else if(id == R.id.action_fake_quests){\n mData.add(new QuestItem(\"Get Groceries\",\"Milk, eggs, bread, lettuce, meat, cheese, rice, seasonings\",\"20 October 2019\", R.drawable.ic_ball_red));\n mData.add(new QuestItem(\"Do Laundry\",\"It's been 5 weeks now. Time to finally get it over with...\",\"20 October 2019\", R.drawable.ic_ball_blue));\n mData.add(new QuestItem(\"Meet with Taylor\",\"She's got time between class, let's hang out.\",\"20 October 2019\", R.drawable.ic_ball_green));\n mData.add(new QuestItem(\"Work Out\",\"25 reps 3 sets Pull Ups\\n25 reps 3 sets Push Ups\\n25 reps 3 sets Crunches\\n25 reps 3 sets Pike Press\\n25 reps 3 sets Squats\",\"20 October 2019\", R.mipmap.ic_launcher_round));\n mData.add(new QuestItem(\"Study\",\"Test coming up in CS403 on Wednesday\",\"20 October 2019\", R.mipmap.ic_launcher_round));\n mData.add(new QuestItem(\"Clean Room\",\"No girl is gonna wanna come over to this mess. Better get to it.\",\"20 October 2019\", R.mipmap.ic_launcher_round));\n mData.add(new QuestItem(\"Call the Apt Office\",\"The AC broke and it's pretty inconvenient. Call them ASAP.\",\"20 October 2019\", R.mipmap.ic_launcher_round));\n mData.add(new QuestItem(\"Dentist Appt\",\"Thursday at 4:30pm. Get there early to fill out paperwork.\",\"20 October 2019\", R.mipmap.ic_launcher_round));\n mData.add(new QuestItem(\"Fix Computer\",\"Computer has been acting up since I called it names and hurt its feelings.\",\"20 October 2019\", R.mipmap.ic_launcher_round));\n questRecyclerView.getAdapter().notifyDataSetChanged();\n }\n return super.onOptionsItemSelected(item);\n }", "private void printAnswerResults(){\n\t\tSystem.out.print(\"\\nCorrect Answer Set: \" + q.getCorrectAnswers().toString());\n\t\tSystem.out.print(\"\\nCorrect Answers: \"+correctAnswers+\n\t\t\t\t\t\t \"\\nWrong Answers: \"+wrongAnswers);\n\t}", "public String getPlayerTaskProgressText(int task) {\n\t\tString questtype = taskType.get(task);\n\t\tint taskprogress = getPlayerTaskProgress(task);\n\t\tint taskmax = getTaskAmount(task);\n\t\tString taskID = getTaskID(task);\n\t\tString message = null;\n\t\t\n\t\t//Convert stuff to task specifics\n\t\t//Quest types: Collect, Kill, Killplayer, Killanyplayer, Destroy, Place, Levelup, Enchant, Tame, Goto\n\t\tif(questtype.equalsIgnoreCase(\"killplayer\")){ questtype = \"Kill\"; }\n\t\tif(questtype.equalsIgnoreCase(\"killanyplayer\")){ questtype = \"Kill\"; }\n\t\tif(questtype.equalsIgnoreCase(\"levelup\")){ questtype = \"Level up\"; }\n\t\tif(questtype.equalsIgnoreCase(\"goto\")){ questtype = \"Go to\"; }\n\t\t\n\t\tif(questtype.equalsIgnoreCase(\"level up\")){ taskID = \"times\"; }\n\t\tif(questtype.equalsIgnoreCase(\"Go to\")){ taskID = getTaskID(task).split(\"=\")[2]; }\n\t\tif(questtype.equalsIgnoreCase(\"collect\")||\n\t\t\t\tquesttype.equalsIgnoreCase(\"destroy\")||\n\t\t\t\tquesttype.equalsIgnoreCase(\"place\")||\n\t\t\t\tquesttype.equalsIgnoreCase(\"enchant\")||\n\t\t\t\tquesttype.equalsIgnoreCase(\"craft\")||\n\t\t\t\tquesttype.equalsIgnoreCase(\"smelt\")){ \n\t\t\ttaskID = taskID.toLowerCase().replace(\"_\", \" \");\n\t\t}\n\t\t\n\t\t//Capitalize first letter (questtype)\n\t\tquesttype = WordUtils.capitalize(questtype);\n\t\t\n\t\t//Change certain types around for grammatical purposes\n\t\tif(getPlayerTaskCompleted(task)){\n\t\t\tif(questtype.equalsIgnoreCase(\"collect\")){ questtype = \"Collected\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"kill\")){ questtype = \"Killed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"killplayer\")){ questtype = \"Killed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"killanyplayer\")){ questtype = \"Killed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"destroy\")){ questtype = \"Destroyed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"place\")){ questtype = \"Placed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"levelup\")){ questtype = \"Leveled up\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"enchant\")){ questtype = \"Enchant\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"tame\")){ questtype = \"Tamed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"craft\")){ questtype = \"Crafted\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"smelt\")){ questtype = \"Smelted\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"goto\")){ questtype = \"Went to\"; }\n\t\t\t\n\t\t\t//Create the message if the task is finished\n\t\t\tif(!questtype.equalsIgnoreCase(\"go to\")){\n\t\t\t\tmessage = ChatColor.GREEN + questtype + \" \" + taskmax + \" \" + taskID + \".\";\n\t\t\t} else {\n\t\t\t\tmessage = ChatColor.GREEN + questtype + \" \" + taskID + \".\";\n\t\t\t}\n\t\t}else{\n\t\t\tif(!questtype.equalsIgnoreCase(\"go to\")){\n\t\t\t\tmessage = ChatColor.RED + questtype + \" \" + taskprogress + \"/\" + taskmax + \" \" + taskID + \".\";\n\t\t\t}else{\n\t\t\t\tmessage = ChatColor.RED + questtype + \" \" + taskID + \".\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Return message\n\t\treturn message;\n\t}", "com.lvl6.proto.QuestProto.FullQuestProto getNewlyAvailableQuests(int index);", "void printPlaylistMenu(){\n\t\tSystem.out.println(\"\\n\\nPlaylist Menu:\");\n\t\tSystem.out.println(\"1. Delete Song: delete <song id>\");\n\t\tSystem.out.println(\"2. Insert Song: insert <song id>\");\n\t\tSystem.out.println(\"3. Search and Insert Song: insert_search title/artist <string of words to be searched>\");\n\t\tSystem.out.println(\"4. Print Playlist: print\");\n\t\tSystem.out.println(\"5. Sort songs: sort artist/title\");\n\t\tSystem.out.println(\"6. Search Song: search artist/title <string of words to be searched>\");\n\t\tSystem.out.println(\"7. Main Menu: main\");\n\t\tSystem.out.print(\"Enter a Command : \");\n\t}", "@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Intent intent = new Intent(this, QuestDisplayActivity.class );\n intent.putExtra(\"Quest\", quests.get(position));\n\n startActivity(intent);\n }", "private void setQuestion() {\n Question.setText(gen.getQuestion() + \"\\t\\tProblem # \" + currentQuestion + \"/\" + numQuestions);\n }", "public void showQuestion() {\n\n // Variable to store the total questions in out question Array\n int totalQuestions = questions.length;\n\n // Variables to refer to textview in XML to show total number of questions\n TextView questionTotalTextView = findViewById(R.id.question_number_text_view);\n\n // Variables to refer to textview in XML to show question\n TextView questionTextView = findViewById(R.id.question_text_view);\n\n //Variable to refer to textview in XML to show score\n TextView scoreTextView = findViewById(R.id.score_text_view);\n\n // Initialize buttons to refer to answer button in XML\n answer1Button = (Button) findViewById(R.id.answer1_button);\n answer2Button = (Button) findViewById(R.id.answer2_button);\n answer3Button = (Button) findViewById(R.id.answer3_button);\n answer4Button = (Button) findViewById(R.id.answer4_button);\n\n // Condtion to check if the current question number on screen is less then total number of questions\n if (currentQuestionNumber < (totalQuestions)) {\n\n // Set the current question number and total number of questions on screen\n questionTotalTextView.setText(String.valueOf(currentQuestionNumber + 1) + \"/\" + String.valueOf(totalQuestions));\n\n // Set the current question on question textview in XML\n questionTextView.setText(questions[currentQuestionNumber]);\n\n // Set the score in score textview in XML\n\n scoreTextView.setText(String.valueOf(\"Score:\" + score));\n\n // Set the answers for the current question to answer buttons in XML\n answer1Button.setText(answers[currentQuestionNumber][0]);\n answer2Button.setText(answers[currentQuestionNumber][1]);\n answer3Button.setText(answers[currentQuestionNumber][2]);\n answer4Button.setText(answers[currentQuestionNumber][3]);\n\n\n } else {\n // If the last uestion has been answered i.e current question is equal to total questions then mark the quiz complete\n quizComplete = true;\n }\n\n // Check if the quiz is completed and show the summary to the user\n if (quizComplete) {\n\n totalIncorrectAnswers = totalQuestions - (totalCorrectAnswers + totalNotAttemptedAnswers);\n callAlertDialog(totalQuestions);\n\n }\n\n }", "public String answerQuestions(int qNumber, Tile[] tile1, \n\t\t\t\t\t\t\t\tTile[] tile2, Tile[] tile3) {\n\t\t\n\t\tint sum = 0;\n\t\tint sumRack1 = 0;\n\t\tint sumRack2 = 0;\n\t\tint sumRack3 = 0;\n\t\tint answerSum = 0;\n\t\tString more = \"\";\n\t\tArrayList<Tile> allCards = new ArrayList<Tile>();\n\t\tint ySevens = 0;\n\t\tint gSixes = 0;\n\t\tint rSixes = 0;\n\t\tint blues = 0;\n\t\tint oranges = 0;\n\t\tint browns = 0;\n\t\tint reds = 0;\n\t\tint blacks = 0;\n\t\tint greens = 0;\n\t\tint yellows = 0;\n\t\t\n\t\t// question number that's being asked\n\t\tswitch(qNumber) {\n\t\t\n\t\tcase 1:\n\t\t\t\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\tsumRack1 = sumRack1 + tile1[i].getNumber();\n\t\t\t}\n\t\t\tif(sumRack1 >= 18) {\n\t\t\t\tanswerSum++;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < tile2.length; i++) {\n\t\t\t\tsumRack2 = sumRack2 + tile2[i].getNumber();\n\t\t\t}\n\t\t\tif(sumRack2 >= 18) {\n\t\t\t\tanswerSum++;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < tile3.length; i++) {\n\t\t\t\tsumRack3 = sumRack3 + tile3[i].getNumber();\n\t\t\t}\n\t\t\tif(sumRack3 >= 18) {\n\t\t\t\tanswerSum++;\n\t\t\t}\n\t\t\tanswer = \"On \" + answerSum + \" racks\";\n\t\t\tbreak;\n\t\t\n\t\tcase 2:\n\t\t\t\n\t\t\tfor (int i = 0; i < tile1.length; i++) {\n\t\t\t\tsum = sum + tile1[i].getNumber();\n\t\t\t}\n\t\t\tif (sum <= 12) {\n\t\t\t\tanswerSum++;\n\t\t\t}\n\t\t\t\n\t\t\tsum = 0;\n\t\t\tfor (int i = 0; i < tile2.length; i++) {\n\t\t\t\tsum = sum + tile2[i].getNumber();\n\t\t\t}\n\t\t\tif (sum <= 12) {\n\t\t\t\tanswerSum++;\n\t\t\t}\n\t\t\t\n\t\t\tsum = 0;\n\t\t\tfor (int i = 0; i < tile2.length; i++) {\n\t\t\t\tsum = sum + tile2[i].getNumber();\n\t\t\t}\n\t\t\tif (sum <= 12) {\n\t\t\t\tanswerSum++;\n\t\t\t}\n\t\t\tanswer = \"On \" + answerSum + \" racks\";\n\t\t\tbreak;\n\t\t\n\t\tcase 3:\n\t\t\tboolean sameNumDiffColors = false;\n\t\t\tint rackCount = 0;\n\t\t\t\n\t\t\tArrayList<Tile> list1 = new ArrayList<Tile>();\n\t\t\tArrayList<Tile> list2 = new ArrayList<Tile>();\n\t\t\tArrayList<Tile> list3 = new ArrayList<Tile>();\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tlist1.add(tile1[i]);\n\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 3, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry{\n\t\t\t\tif(((Tile) list1.get(0)).getNumber() == ((Tile) list1.get(1)).getNumber()) {\n\t\t\t\t\tif(((Tile) list1.get(0)).getColor() != ((Tile) list1.get(1)).getColor()) {\n\t\t\t\t\t\tsameNumDiffColors = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(((Tile) list1.get(0)).getNumber() == ((Tile) list1.get(2)).getNumber()) {\n\t\t\t\t\tif(((Tile) list1.get(0)).getColor() != ((Tile) list1.get(2)).getColor()) {\n\t\t\t\t\t\tsameNumDiffColors = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(((Tile) list1.get(2)).getNumber() == ((Tile) list1.get(1)).getNumber()) {\n\t\t\t\t\tif(((Tile) list1.get(2)).getColor() != ((Tile) list1.get(1)).getColor()) {\n\t\t\t\t\t\tsameNumDiffColors = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(sameNumDiffColors) {\n\t\t\t\t\trackCount++;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.d(\"Code777\", \"Player.java Case 3, Tile1 sameNumDiffColors.\");\n\t\t\t}\n\t\t\t\n\t\t\tsameNumDiffColors = false;\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tlist2.add(tile2[i]);\n\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 3, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(((Tile) list2.get(0)).getNumber() == ((Tile) list2.get(1)).getNumber()) {\n\t\t\t\t\tif(((Tile) list2.get(0)).getColor() != ((Tile) list2.get(1)).getColor()) {\n\t\t\t\t\t\tsameNumDiffColors = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(((Tile) list2.get(0)).getNumber() == ((Tile) list2.get(2)).getNumber()) {\n\t\t\t\t\tif(((Tile) list2.get(0)).getColor() != ((Tile) list2.get(2)).getColor()) {\n\t\t\t\t\t\tsameNumDiffColors = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(((Tile) list2.get(2)).getNumber() == ((Tile) list2.get(1)).getNumber()) {\n\t\t\t\t\tif(((Tile) list2.get(2)).getColor() != ((Tile) list2.get(1)).getColor()) {\n\t\t\t\t\t\tsameNumDiffColors = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(sameNumDiffColors) {\n\t\t\t\t\trackCount++;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.d(\"Code777\", \"Player.java Case 3, Tile1 sameNumDiffColors.\");\n\t\t\t}\n\t\t\t\n\t\t\tsameNumDiffColors = false;\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tlist3.add(tile3[i]);\n\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 3, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry{\n\t\t\t\tif(((Tile) list3.get(0)).getNumber() == ((Tile) list3.get(1)).getNumber()) {\n\t\t\t\t\tif(((Tile) list3.get(0)).getColor() != ((Tile) list3.get(1)).getColor()) {\n\t\t\t\t\t\tsameNumDiffColors = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(((Tile) list3.get(0)).getNumber() == ((Tile) list3.get(2)).getNumber()) {\n\t\t\t\t\tif(((Tile) list3.get(0)).getColor() != ((Tile) list3.get(2)).getColor()) {\n\t\t\t\t\t\tsameNumDiffColors = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(((Tile) list3.get(2)).getNumber() == ((Tile) list3.get(1)).getNumber()) {\n\t\t\t\t\tif(((Tile) list3.get(2)).getColor() != ((Tile) list3.get(1)).getColor()) {\n\t\t\t\t\t\tsameNumDiffColors = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(sameNumDiffColors) {\n\t\t\t\t\trackCount++;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.d(\"Code777\", \"Player.java Case 3, Tile1 sameNumDiffColors.\");\n\t\t\t}\n\t\t\tanswer = \"On \" + rackCount + \" racks\";\n\t\t\tbreak;\n\t\t\n\t\tcase 4:\n\t\t\trackCount = 0;\n\t\t\tString[] arrayTileColor = new String[3];\n\t\t\ttry {\n\t\t\t\tarrayTileColor[0] = tile1[0].getColor();\n\t\t\t\tarrayTileColor[1] = tile1[1].getColor();\n\t\t\t\tarrayTileColor[2] = tile1[2].getColor();\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 4 tile1\");\n\t\t\t}\n\t\t\tif(!(arrayTileColor[0].equals(arrayTileColor[1])))\n\t\t\t\tif(!(arrayTileColor[0].equals(arrayTileColor[2])))\n\t\t\t\t\tif(!(arrayTileColor[1].equals(arrayTileColor[2])))\n\t\t\t\t\t\trackCount++;\n\t\t\t\t\t\t\n\t\t\ttry {\n\t\t\t\tarrayTileColor[0] = tile2[0].getColor();\n\t\t\t\tarrayTileColor[1] = tile2[1].getColor();\n\t\t\t\tarrayTileColor[2] = tile2[2].getColor();\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 4 tile2\");\n\t\t\t}\n\t\t\tif(!(arrayTileColor[0].equals(arrayTileColor[1])))\n\t\t\t\tif(!(arrayTileColor[0].equals(arrayTileColor[2])))\n\t\t\t\t\tif(!(arrayTileColor[1].equals(arrayTileColor[2])))\n\t\t\t\t\t\trackCount++;\n\t\t\t\n\t\t\ttry {\n\t\t\t\tarrayTileColor[0] = tile3[0].getColor();\n\t\t\t\tarrayTileColor[1] = tile3[1].getColor();\n\t\t\t\tarrayTileColor[2] = tile3[2].getColor();\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 4 tile3\");\n\t\t\t}\n\t\t\tif(!(arrayTileColor[0].equals(arrayTileColor[1])))\n\t\t\t\tif(!(arrayTileColor[0].equals(arrayTileColor[2])))\n\t\t\t\t\tif(!(arrayTileColor[1].equals(arrayTileColor[2])))\n\t\t\t\t\t\trackCount++;\n\t\t\t\n\t\t\tanswer = \"On \" + rackCount + \" racks\";\n\t\t\tbreak;\n\n\t\t\n\t\tcase 5:\n\t\t\tLog.d(\"Code777\", \"---Answer Question 5: \"+ qNumber);\n\t\t\tint[] modArray = new int[3];\n\t\t\tint numRacks = 0;\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\tmodArray[i] = tile1[i].getNumber() % 2;\n\t\t\t}\n\t\t\tif((modArray[0] == modArray[1]) && (modArray[0] == modArray[2])) {\n\t\t\t\tnumRacks++;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\tmodArray[i] = tile2[i].getNumber() % 2;\n\t\t\t}\n\t\t\tif((modArray[0] == modArray[1]) && (modArray[0] == modArray[2])) {\n\t\t\t\tnumRacks++;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\tmodArray[i] = tile3[i].getNumber() % 2;\n\t\t\t}\n\t\t\tif((modArray[0] == modArray[1]) && (modArray[0] == modArray[2])) {\n\t\t\t\tnumRacks++;\n\t\t\t}\n\t\t\tanswer = \"On \" + numRacks + \" racks\";\t\n\t\t\tbreak;\n\n\t\t\t\n\t\tcase 6:\n\t\t\tint dupTiles = 0;\n\t\t\ttry {\n\t\t\t\tif(((tile1[0].getNumber() == tile1[1].getNumber()) && \n\t\t\t\t\t\t(tile1[0].getColor().equals(tile1[1].getColor()))\n\t\t\t\t\t\t|| ((tile1[0].getNumber() == tile1[2].getNumber()) \n\t\t\t\t\t\t\t\t&& (tile1[0].getColor().equals(tile1[2].getColor())))\n\t\t\t\t\t\t\t\t\t|| ((tile1[1].getNumber() == tile1[2].getNumber()) \n\t\t\t\t\t\t\t\t\t\t\t&& (tile1[1].getColor().equals(tile1[2].getColor())))))\n\t\t\t\t\t\t\t\t\t\t\t\t\tdupTiles++;\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 6, tile1. \");\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tif(((tile2[0].getNumber() == tile2[1].getNumber()) && \n\t\t\t\t\t\t(tile2[0].getColor().equals(tile2[1].getColor()))\n\t\t\t\t\t\t|| ((tile2[0].getNumber() == tile2[2].getNumber()) \n\t\t\t\t\t\t\t\t&& (tile2[0].getColor().equals(tile2[2].getColor())))\n\t\t\t\t\t\t\t\t|| ((tile2[1].getNumber() == tile2[2].getNumber()) \n\t\t\t\t\t\t\t\t\t\t&& (tile2[1].getColor().equals(tile2[2].getColor()))))) \n\t\t\t\t\t\t\t\t\t\t\t\t\tdupTiles++;\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 6, tile2. \");\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tif(((tile3[0].getNumber() == tile3[1].getNumber()) && \n\t\t\t\t\t\t(tile3[0].getColor().equals(tile3[1].getColor()))\n\t\t\t\t\t\t|| ((tile3[0].getNumber() == tile3[2].getNumber()) \n\t\t\t\t\t\t\t\t&& (tile3[0].getColor().equals(tile3[2].getColor())))\n\t\t\t\t\t\t\t\t\t|| ((tile3[1].getNumber() == tile3[2].getNumber()) \n\t\t\t\t\t\t\t\t\t\t&& (tile3[1].getColor().equals(tile3[2].getColor())))))\n\t\t\t\t\t\t\t\t\t\t\t\t\tdupTiles++;\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 9, tile3. \");\n\t\t\t}\n\t\t\tanswer = \"On \" + dupTiles + \" racks\";\n\t\t\tbreak;\n\n\t\t\n\t\tcase 7:\n\t\t\tint consecutive = 0;\n\t\t\t\n\t\t\tint[] numArray = new int[3];\n\t\t\ttry {\n\t\t\t\tnumArray[0] = tile1[0].getNumber();\n\t\t\t\tnumArray[1] = tile1[1].getNumber();\n\t\t\t\tnumArray[2] = tile1[2].getNumber();\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 7, tile1. \");\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(numArray);\n\t\t\tif((numArray[2] - numArray[1]) == 1 )\n\t\t\t\tif((numArray[1] - numArray[0]) == 1)\n\t\t\t\t\tconsecutive++;\n\t\t\t\n\t\t\ttry {\n\t\t\t\tnumArray[0] = tile2[0].getNumber();\n\t\t\t\tnumArray[1] = tile2[1].getNumber();\n\t\t\t\tnumArray[2] = tile2[2].getNumber();\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 7, tile1. \");\n\t\t\t}\n\t\t\tArrays.sort(numArray);\n\t\t\tif((numArray[2] - numArray[1]) == 1 )\n\t\t\t\tif( (numArray[1] - numArray[0]) == 1)\n\t\t\t\t\tconsecutive++;\n\t\t\t\n\t\t\ttry {\n\t\t\t\tnumArray[0] = tile3[0].getNumber();\n\t\t\t\tnumArray[1] = tile3[1].getNumber();\n\t\t\t\tnumArray[2] = tile3[2].getNumber();\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 7, tile1. \");\n\t\t\t}\n\t\t\tArrays.sort(numArray);\n\t\t\tif((numArray[2] - numArray[1]) == 1) \n\t\t\t\tif( (numArray[1] - numArray[0]) == 1)\n\t\t\t\t\tconsecutive++;\n\t\t\n\t\t\tanswer = \"On \" + consecutive + \" racks\";\n\t\t\tbreak;\n\n\t\t\n\t\tcase 8:\n\t\t\tSet<String> tileList = new HashSet<String>();\n\t\t\tint uniqueColors = 0;\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\ttileList.add(tile1[i].getColor());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 8, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\ttileList.add(tile2[i].getColor());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 9, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\ttileList.add(tile3[i].getColor());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 9, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tuniqueColors = tileList.size();\n\t\t\tanswer = \"I see \" + uniqueColors + \" colors\";\n\t\t\tbreak;\n\n\t\t\t\n\t\tcase 9:\n\t\t\tArrayList<String> allColors = new ArrayList<String>();\n\t\t\tint greenCount = 0;\n\t\t\tint yellowCount = 0;\n\t\t\tint blackCount = 0;\n\t\t\tint brownCount = 0;\n\t\t\tint orangeCount = 0;\n\t\t\tint pinkCount = 0;\n\t\t\tint blueCount = 0;\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallColors.add(tile1[i].getColor());\n\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 9, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallColors.add(tile2[i].getColor());\n\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 9, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallColors.add(tile3[i].getColor());\n\t\t\t\t} catch (NullPointerException e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 9, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < allColors.size(); i++) {\n\t\t\t\tif(allColors.get(i).equals(\"green\")) {\n\t\t\t\t\tgreenCount++;\n\t\t\t\t}\n\t\t\t\tif(allColors.get(i).equals(\"yellow\")) {\n\t\t\t\t\tyellowCount++;\n\t\t\t\t}\n\t\t\t\tif(allColors.get(i).equals(\"black\")) {\n\t\t\t\t\tblackCount++;\n\t\t\t\t}\n\t\t\t\tif(allColors.get(i).equals(\"brown\")) {\n\t\t\t\t\tbrownCount++;\n\t\t\t\t}\n\t\t\t\tif(allColors.get(i).equals(\"orange\")) {\n\t\t\t\t\torangeCount++;\n\t\t\t\t}\n\t\t\t\tif(allColors.get(i).equals(\"red\")) {\n\t\t\t\t\tpinkCount++;\n\t\t\t\t}\n\t\t\t\tif(allColors.get(i).equals(\"blue\")) {\n\t\t\t\t\tblueCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (greenCount >= 3) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (yellowCount >= 3) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (blackCount >= 3) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (brownCount >= 3) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (orangeCount >= 3) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (pinkCount >= 3) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif (blueCount >= 3) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tanswer = \"\" + count + \" colors\";\n\t\t\tbreak;\n\n\t\t\n\t\tcase 10:\n\t\t\tint totalNums = 7;\n\t\t\tint uniqueNumsPresent = 0;\n\t\t\tint numsMissing = 0;\n\t\t\tSet<Integer> presentNums = new HashSet<Integer>();\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tpresentNums.add(tile1[i].getNumber());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 10, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tpresentNums.add(tile2[i].getNumber());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 10, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tpresentNums.add(tile3[i].getNumber());\n\t\t\t\t} catch (Exception e ) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 10, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tuniqueNumsPresent = presentNums.size();\n\t\t\tnumsMissing = totalNums - uniqueNumsPresent;\n\t\t\tanswer = \"\" + numsMissing + \" numbers are missing\";\n\t\t\tbreak;\n\n\t\t\n\t\tcase 11:\n\t\t\tArrayList<Tile> allTiles = new ArrayList<Tile>();\n\t\t\tint cardsISee = 0;\n\t\t\t\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallTiles.add(tile1[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 11, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallTiles.add(tile2[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 11, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallTiles.add(tile3[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 11, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < allTiles.size(); i++) {\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile) allTiles.get(i)).getNumber() == 1) &&\n\t\t\t\t\t\t\t(((Tile)allTiles.get(i)).getColor().equals(\"green\"))){\n\t\t\t\t\t\tcardsISee++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 11, tile1, getNumber(). \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile) allTiles.get(i)).getNumber() == 5) &&\n\t\t\t\t\t\t\t(((Tile)allTiles.get(i)).getColor().equals(\"black\"))){\n\t\t\t\t\t\tcardsISee++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 11, tile2, getNumber(). \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile) allTiles.get(i)).getNumber() == 7) &&\n\t\t\t\t\t\t\t(((Tile)allTiles.get(i)).getColor().equals(\"red\"))){\n\t\t\t\t\t\tcardsISee++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 11, tile3, getNumber() \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tanswer = \"\" + cardsISee;\n\t\t\tbreak;\n\n\t\t\t\n\t\tcase 12:\n\t\t\tint threes = 0;\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile1[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 12, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile2[i]);\n\t\t\t\t} catch (Exception e ) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 12, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile3[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 12, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < allCards.size(); i++) {\n\t\t\t\ttry {\n\t\t\t\t\tif(((Tile) allCards.get(i)).getNumber() == 3){\n\t\t\t\t\t\tthrees++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 12, getNumber()=3. \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile) allCards.get(i)).getNumber() == 6) &&\n\t\t\t\t\t\t\t(((Tile)allCards.get(i)).getColor().equals(\"red\"))){\n\t\t\t\t\t\trSixes++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 12, getNumber = 6. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(threes < rSixes) {\n\t\t\t\tmore = \"More Red 6s\";\n\t\t\t}\n\t\t\telse if(threes > rSixes) {\n\t\t\t\tmore = \"More 3s\";\n\t\t\t}\n\t\t\telse if(threes == rSixes) {\n\t\t\t\tmore = \"About the same\";\n\t\t\t}\n\t\t\tanswer = \"\" + more;\n\t\t\tbreak;\n\n\t\t\t\n\t\tcase 13:\n\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile1[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 13, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile2[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 13, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile3[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 13, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < allCards.size(); i++) {\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile) allCards.get(i)).getNumber() == 6) &&\n\t\t\t\t\t\t\t(((Tile)allCards.get(i)).getColor().equals(\"green\"))){\n\t\t\t\t\t\tgSixes++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 13, getNumber = 6. \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile) allCards.get(i)).getNumber() == 7) &&\n\t\t\t\t\t\t\t(((Tile)allCards.get(i)).getColor().equals(\"yellow\"))){\n\t\t\t\t\t\tySevens++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 13, getNumber = 7 \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(gSixes < ySevens) {\n\t\t\t\tmore = \"More Yellow 7s\";\n\t\t\t}\n\t\t\telse if(gSixes > ySevens) {\n\t\t\t\tmore = \"More Green 6s\";\n\t\t\t}\n\t\t\telse if(gSixes == ySevens) {\n\t\t\t\tmore = \"About the same\";\n\t\t\t}\n\t\t\tanswer = \"\" + more;\n\t\t\tbreak;\n\n\t\t\t\n\t\tcase 14:\n\t\t\tint yTwos = 0;\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile1[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 14, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile2[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 14, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile3[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 14, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < allCards.size(); i++) {\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile) allCards.get(i)).getNumber() == 2) &&\n\t\t\t\t\t\t\t(((Tile)allCards.get(i)).getColor().equals(\"yellow\"))){\n\t\t\t\t\t\tyTwos++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 14, getNumber = 2. \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile) allCards.get(i)).getNumber() == 7) &&\n\t\t\t\t\t\t\t(((Tile)allCards.get(i)).getColor().equals(\"yellow\"))){\n\t\t\t\t\t\tySevens++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 14, getNumber = 7. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(yTwos < ySevens) {\n\t\t\t\tmore = \"More Yellow 7s\";\n\t\t\t}\n\t\t\telse if(yTwos > ySevens) {\n\t\t\t\tmore = \"More Yellow 2s\";\n\t\t\t}\n\t\t\telse if(yTwos == ySevens) {\n\t\t\t\tmore = \"About the same\";\n\t\t\t}\n\t\t\tanswer = \"\" + more;\n\t\t\tbreak;\n\n\t\t\t\n\t\tcase 15:\n\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile1[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 15, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile2[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 15, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile3[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 15, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < allCards.size(); i++) {\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile) allCards.get(i)).getNumber() == 6) &&\n\t\t\t\t\t\t\t(((Tile)allCards.get(i)).getColor().equals(\"green\"))){\n\t\t\t\t\t\tgSixes++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 15, getColor = green. \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile) allCards.get(i)).getNumber() == 6) &&\n\t\t\t\t\t\t\t(((Tile)allCards.get(i)).getColor().equals(\"orange\"))){\n\t\t\t\t\t\trSixes++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 15, getColor = orange\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(gSixes < rSixes) {\n\t\t\t\tmore = \"More Orange 6s\";\n\t\t\t}\n\t\t\telse if(gSixes > rSixes) {\n\t\t\t\tmore = \"More Green 6s\";\n\t\t\t}\n\t\t\telse if(gSixes == rSixes) {\n\t\t\t\tmore = \"About the same\";\n\t\t\t}\n\t\t\tanswer = \"\" + more;\n\t\t\tbreak;\n\n\t\t\t\n\t\tcase 16:\n\t\t\tint oSevens = 0;\n\t\t\tint bSevens = 0;\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile1[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 16, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile2[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 16, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile3[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 17, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < allCards.size(); i++) {\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile) allCards.get(i)).getNumber() == 7) &&\n\t\t\t\t\t\t\t(((Tile)allCards.get(i)).getColor().equals(\"blue\"))){\n\t\t\t\t\t\tbSevens++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 16, getNumber = blue. \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif(!(((Tile) allCards.get(i)).getNumber() == 7) &&\n\t\t\t\t\t\t\t(((Tile)allCards.get(i)).getColor().equals(\"blue\"))){\n\t\t\t\t\t\toSevens++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 16, getNumber = not blue. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(bSevens < oSevens) {\n\t\t\t\tmore = \"More 7s of Other Colors\";\n\t\t\t}\n\t\t\telse if(bSevens > oSevens) {\n\t\t\t\tmore = \"More Blue 7s\";\n\t\t\t}\n\t\t\telse if(bSevens == oSevens) {\n\t\t\t\tmore = \"About the same\";\n\t\t\t}\n\t\t\tanswer = \"\" + more;\n\t\t\tbreak;\n\n\t\t\t\n\t\tcase 17:\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile1[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 17, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile2[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 17, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile3[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 18, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < allCards.size(); i++) {\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile)allCards.get(i)).getColor().equals(\"brown\"))){\n\t\t\t\t\t\tbrowns++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 18, getColor=brown. \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile)allCards.get(i)).getColor().equals(\"blue\"))){\n\t\t\t\t\t\tblues++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 18, getColor=blue. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(browns < blues) {\n\t\t\t\tmore = \"More Blue Numbers\";\n\t\t\t}\n\t\t\telse if(browns > blues) {\n\t\t\t\tmore = \"More Brown Numbers\";\n\t\t\t}\n\t\t\telse if(browns == blues) {\n\t\t\t\tmore = \"About the same\";\n\t\t\t}\n\t\t\tanswer = \"\" + more;\n\t\t\tbreak;\n\n\t\t\t\n\t\tcase 18:\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile1[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 18, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile2[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 18, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile3[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 18, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < allCards.size(); i++) {\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile)allCards.get(i)).getColor().equals(\"red\"))){\n\t\t\t\t\t\treds++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 18, getColor=red. \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile)allCards.get(i)).getColor().equals(\"orange\"))){\n\t\t\t\t\t\toranges++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 18, getColor=orange. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(reds < oranges) {\n\t\t\t\tmore = \"More Orange Numbers\";\n\t\t\t}\n\t\t\telse if(reds > oranges) {\n\t\t\t\tmore = \"More Red Numbers\";\n\t\t\t}\n\t\t\telse if(reds == oranges) {\n\t\t\t\tmore = \"About the same\";\n\t\t\t}\n\t\t\tanswer = \"\" + more;\n\t\t\tbreak;\n\n\t\t\t\n\t\tcase 19:\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile1[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 19, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile2[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 19, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile3[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 19, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < allCards.size(); i++) {\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile)allCards.get(i)).getColor().equals(\"green\"))){\n\t\t\t\t\t\tgreens++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 19, getColor=green. \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile)allCards.get(i)).getColor().equals(\"blue\"))){\n\t\t\t\t\t\tblues++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 19, getColor=blue. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(greens < blues) {\n\t\t\t\tmore = \"More Blue Numbers\";\n\t\t\t}\n\t\t\telse if(greens > blues) {\n\t\t\t\tmore = \"More Green Numbers\";\n\t\t\t}\n\t\t\telse if(greens == blues) {\n\t\t\t\tmore = \"About the same\";\n\t\t\t}\n\t\t\tanswer = \"\" + more;\n\t\t\tbreak;\n\n\t\t\t\n\t\tcase 20:\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile1[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 20, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile2[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 20, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile3[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 20, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < allCards.size(); i++) {\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile)allCards.get(i)).getColor().equals(\"yellow\"))){\n\t\t\t\t\t\tyellows++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 20, getColor=yellow. \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile)allCards.get(i)).getColor().equals(\"orange\"))){\n\t\t\t\t\t\toranges++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 20, getColor=orange. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(yellows < oranges) {\n\t\t\t\tmore = \"More Orange Numbers\";\n\t\t\t}\n\t\t\telse if(yellows > oranges) {\n\t\t\t\tmore = \"More Yellow Numbers\";\n\t\t\t}\n\t\t\telse if(yellows == oranges) {\n\t\t\t\tmore = \"About the same\";\n\t\t\t}\n\t\t\tanswer = \"\" + more;\n\t\t\tbreak;\n\t\t\t\n\t\tcase 21:\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile1[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 21, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile2[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 21, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile3[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 21, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < allCards.size(); i++) {\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile)allCards.get(i)).getColor().equals(\"black\"))){\n\t\t\t\t\t\tblacks++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 21, getColor=black. \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile)allCards.get(i)).getColor().equals(\"brown\"))){\n\t\t\t\t\t\tbrowns++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 21, getColor=brown. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(blacks < browns) {\n\t\t\t\tmore = \"More Brown Numbers\";\n\t\t\t}\n\t\t\telse if(blacks > browns) {\n\t\t\t\tmore = \"More Black Numbers\";\n\t\t\t}\n\t\t\telse if(blacks == browns) {\n\t\t\t\tmore = \"About the same\";\n\t\t\t}\n\t\t\tanswer = \"\" + more;\n\t\t\tbreak;\n\n\t\t\t\n\t\tcase 22:\n\t\t\tallCards = new ArrayList<Tile>();\n\t\t\treds = 0;\n\t\t\tblacks = 0;\n\t\t\tmore = \"\";\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile1[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 22, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile2[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 22, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile3[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 22, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < allCards.size(); i++) {\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile)allCards.get(i)).getColor().equals(\"red\"))){\n\t\t\t\t\t\treds++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 22, getColor=red. \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile)allCards.get(i)).getColor().equals(\"black\"))){\n\t\t\t\t\t\tblacks++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 22, getColor=black. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(reds < blacks) {\n\t\t\t\tmore = \"More Black Numbers\";\n\t\t\t}\n\t\t\telse if(reds > blacks) {\n\t\t\t\tmore = \"More Red Numbers\";\n\t\t\t}\n\t\t\telse if(reds == blacks) {\n\t\t\t\tmore = \"About the same\";\n\t\t\t}\n\t\t\tanswer = \"\" + more;\n\t\t\tbreak;\n\t\t\t\n\t\tcase 23:\n\t\t\tfor(int i = 0; i < tile1.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile1[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 23, tile1. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile2.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile2[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 23, tile2. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < tile3.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tallCards.add(tile3[i]);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 23, tile3. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 0; i < allCards.size(); i++) {\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile)allCards.get(i)).getColor().equals(\"green\"))){\n\t\t\t\t\t\tgreens++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 23, getColor=green. \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tif((((Tile)allCards.get(i)).getColor().equals(\"yellow\"))){\n\t\t\t\t\t\tyellows++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.d(\"Code777\", \"ERROR - Player.java Case 23, getColor=yellow. \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(greens < yellows) {\n\t\t\t\tmore = \"More Yellow Numbers\";\n\t\t\t}\n\t\t\telse if(greens > yellows) {\n\t\t\t\tmore = \"More Green Numbers\";\n\t\t\t}\n\t\t\telse if(greens == yellows) {\n\t\t\t\tmore = \"About the same\";\n\t\t\t}\n\t\t\tanswer = \"\" + more;\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\treturn answer;\n\t}", "public static void printQueens(int[] q) {\n int n = q.length;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n System.out.print(\"|\");\n if (q[i] == j) System.out.print(\"Q\");\n else System.out.print(\" \");\n }\n System.out.println(\"|\");\n }\n System.out.println();\n }", "int getQuestID();", "int getQuestID();", "int getQuestID();", "int getQuestID();", "public void displayGame()\n { \n System.out.println(\"\\n-------------------------------------------\\n\");\n for(int i=3;i>=0;i--)\n {\n if(foundationPile[i].isEmpty())\n System.out.println(\"[ ]\");\n else System.out.println(foundationPile[i].peek());\n }\n System.out.println();\n for(int i=6;i>=0;i--)\n {\n for(int j=0;j<tableauHidden[i].size();j++)\n System.out.print(\"X\");\n System.out.println(tableauVisible[i]);\n }\n System.out.println();\n if(waste.isEmpty())\n System.out.println(\"[ ]\");\n else System.out.println(waste.peek());\n if(deck.isEmpty())\n System.out.println(\"[O]\");\n else System.out.println(\"[X]\");\n }", "public void showInstructions() {\n \tcreateLabel(myResources.getString(\"whatgame\"), 1, 1, NORMAL_FONT);\n \tcreateLabel(myResources.getString(\"rightkey\"), 1, 2, NORMAL_FONT);\n \tcreateLabel(myResources.getString(\"esckey\"), 1, 3, NORMAL_FONT);\n \tcreateLabel(myResources.getString(\"buttons\"), 1, 4, NORMAL_FONT);\n }", "private String getPromptStrings(int choice) {\n //negative numbers correspond with the very first screen (not really anymore)\n //then the positive numbers go based on the choice the user makes\n switch (choice) {\n case 0: return \"\";\n //this is for the introductory screen\n case -1: return \"There is an enemy Ship! Looks like an Inter Planetary Pirate ship.\";\n case -2: return \"What would you like to do? Looks like is has a similar layout to our ship.\";\n case -3: return \"this is a dummy line for the status bar... health for you: 20, shields 1, enemy health: 20, shields 1\";\n case -4: return \"Now What?\";\n case -5: return \"Well that didn't work...\";\n case -6: return \"You are out of missiles.\";\n case -7: return \"All systems operational, and shields are up.\";\n case -8: return \"They are out of missiles...\";\n case -9: return \"Your Laser gun system is damaged, you can't shoot!\";\n case -10: return \"Your Missile system is damaged, you can't shoot!\";\n case -11: return \"Their Laser gun system is damaged, they can't shoot!\";\n case -12: return \"Their Missile system is damaged, they can't shoot!\";\n //this is for what you choose to do\n case 1: return \"You want to shot your laser gun at the enemy ship.\";\n case 2: return \"You want to shot a missile at the enemy ship.\";\n case 3: return \"You decided to wait and let your shields recharge.\";\n\n case 4: return \"Where do you want to shoot?\";\n case 5: return \"Where do you want to shoot?\";\n case 6: return \"\";\n\n case 45: return \"You damaged their Engine system!\";\n case 46: return \"You damaged their Shield system!\";\n case 47: return \"You damaged their Missile system!\";\n case 48: return \"You damaged their Laser Gun system!\";\n case 49: return \"You damaged their Piloting system!\";\n case 51: return \"You shoot at their Piloting system!\";\n case 52: return \"You shoot at their Laser gun system!\";\n case 53: return \"You shoot at their Missile system!\";\n case 54: return \"You shoot at their Shield system!\";\n case 55: return \"You shoot at their Engine system!\";\n\n case -45: return \"They damaged your Engine system!\";\n case -46: return \"They damaged your Shield system!\";\n case -47: return \"They damaged your Missile system!\";\n case -48: return \"They damaged your Laser Gun system!\";\n case -49: return \"They damaged your Piloting system!\";\n case -51: return \"They shoot at your Piloting system!\";\n case -52: return \"They shoot at your Laser gun system!\";\n case -53: return \"They shoot at your Missile system!\";\n case -54: return \"They shoot at your Shield system!\";\n case -55: return \"They shoot at your Engine system!\";\n\n case 80: return \"You decide to wait...\";\n case 81: return \"Your shields recharge and your systems are fixed.\";\n case -80: return \"They decide to wait..\";\n case -81: return \"Their shields recharge, and systems get repaired.\";\n\n case 97: return \"Their shield is down!\";\n case 98: return \"Their shield is up, your laser can't penetrate!\";\n case -98: return \"Your shields are up, their lasers can't penetrate!\";\n case 99: return \"It hit!\";\n case -99: return \"They landed the shot!\";\n case 100: return \"It missed!\";\n case -100: return \"They missed!\";\n\n case -101: return \"The laser hit!\";\n case -102: return \"The missile hit!\";\n case -103: return \"The laser missed.\";\n case -104: return \"The missile missed.\";\n }\n //if the input given is not one of the above\n return \"Error\";\n }", "public void printAssistants(Player player);", "public void display() {\n\t\tfor (int i = 0; i < player.length; ++i) {\n\t\t\t// inserting empty line in every 3 rows.\n\t\t\tif (i % 3 == 0 && i != 0) {\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor (int j = 0; j < player[i].length; ++j) {\n\t\t\t\t// inserting empty space in every 3 columns.\n\t\t\t\tif (j % 3 == 0 && j != 0) {\n\t\t\t\t\tSystem.out.print(' ');\n\t\t\t\t}\n\t\t\t\tif (problem[i][j] == 0 && player[i][j] == 0) {\n\t\t\t\t\tSystem.out.print(\"( )\");\n\t\t\t\t} else if (problem[i][j] == 0) {\n\t\t\t\t\tSystem.out.print(\"(\" + player[i][j] + \")\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"[\" + player[i][j] + \"]\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void loadQuestion() {\r\n\r\n //getting the number of the question stored in variable r\r\n //making sure that a question is not loaded up if the count exceeds the number of total questions\r\n if(count <NUMBER_OF_QUESTIONS) {\r\n int r = numberHolder.get(count);\r\n //creating object that will access the QuestionStore class and retrieve values and passing the value of the random question number to the class\r\n QuestionStore qs = new QuestionStore(r);\r\n //calling methods in order to fill up question text and mutliple choices and load the answer\r\n qs.storeQuestions();\r\n qs.storeChoices();\r\n qs.storeAnswers();\r\n //setting the question and multiple choices\r\n\r\n q.setText(qs.getQuestion());\r\n c1.setText(qs.getChoice1());\r\n c2.setText(qs.getChoice2());\r\n c3.setText(qs.getChoice3());\r\n answer = qs.getAnswer();\r\n }\r\n else{\r\n endGame();\r\n }\r\n\r\n\r\n\r\n\r\n }", "private void howToPlay() {\n\n String s = \"You are presented with a grid of tiles, some of which contain mines.\\n\"\n + \"The aim of Minesweeper is to reveal all tiles in the grid which do not contain mines.\\n\"\n + \"To reveal a tile, click on it. If the tile you reveal is a mine, you lose the game.\\n\"\n + \"If the tile you reveal is empty, all surrounding tiles will be revealed, \\n\"\n + \"and if those are also empty, their surrounding tiles will be revealed too.\\n\"\n + \"Tiles containing numbers indicate how many mines there are surrounding that tile.\\n\"\n + \"If you think a tile contains a mine, right click on it to mark it as a mine.\\n\"\n + \"You win the game once either you mark all mines, or reveal all tiles which are not mines.\";\n\n JFrame helpframe = new JFrame(\"How to play\");\n JPanel helppanel = new JPanel();\n JButton close = new JButton(\"Got it!\");\n JTextArea text = new JTextArea(s);\n\n close.addActionListener((ActionEvent ev) -> {\n helpframe.dispose();\n });\n\n text.setEditable(false);\n text.setOpaque(false);\n text.setWrapStyleWord(true);\n helppanel.add(text);\n helppanel.add(close);\n helpframe.add(helppanel);\n helpframe.setLocationRelativeTo(null);\n helpframe.setSize(560, 200);\n helpframe.setVisible(true);\n helpframe.setResizable(false);\n }", "void gatherInfoBeforePopulating (){\n\t\t\n\t\tcategoryId = Trivia_Game.getCategoryIdInMainMenu();\n\n\t \t //Loop until a valid questionId that hasn't been used is obtained\n\t \t\twhile (validQuestionNumber == false){\n\t \t\t\trandomValue0to29 = RandomGenerator0To29();\n\t \t\t\tSystem.out.println(\"random30 in onClick = \" + randomValue0to29);\n\n\t \t\t alreadyDisplayQuestion = questionsAlreadyDisplayed (randomValue0to29);\n\t \t\t if (alreadyDisplayQuestion == true){\n\t \t\t\t System.out.println(\"question number already displayed looking for a non displayed question\");\n\t \t\t }\n\t \t\t if (alreadyDisplayQuestion == false){\n\t \t\t\t System.out.println(\"question not displayed yet\");\n\t \t\t\t validQuestionNumber = true;\n\t \t\t }\n\t \t }\n\t \t \n\t \t validQuestionNumber = false;\n\t \t alreadyDisplayQuestion = false;\n\t \t questionId = randomValue0to29;\t//sets the valid random generated number to the questionID\n\t \t \n\t \t //connect to database to gather the question and answers\n\t \t getInfoFromDatabase(categoryId, questionId);\n \t\n\t \t //Calls random number from 0 to 3 to determine which button will display the correct answer\n\t \t randomValueZeroToThree = RandomGeneratorZeroToThree();\n\t \t System.out.println(\"random4 in onClick = \" + randomValueZeroToThree);\n\t \t \n\t \t //Sets the order according to the button that is to display the correct answer\n\t \t switch (randomValueZeroToThree){\n\t \t \tcase 0:\n\t \t \t\tdisplayedAnswer1FromDatabase = answer1FromDatabase;\t//correct answer\n\t \t \t\tdisplayedAnswer2FromDatabase = answer2FromDatabase;\n\t \t \t\tdisplayedAnswer3FromDatabase = answer3FromDatabase;\n\t \t \t\tdisplayedAnswer4FromDatabase = answer4FromDatabase;\n\t \t \t\trightButton1 = true;\n\t \t \t\trightButton2 = false;\n\t \t \t\trightButton3 = false;\n\t \t \t\trightButton4 = false;\n\t \t \t\tbreak;\n\t \t \t\t\n\t \t \tcase 1:\n\t \t \t\tdisplayedAnswer2FromDatabase = answer1FromDatabase;\t//correct answer\n\t \t \t\tdisplayedAnswer1FromDatabase = answer2FromDatabase;\n\t \t \t\tdisplayedAnswer3FromDatabase = answer3FromDatabase;\n\t \t \t\tdisplayedAnswer4FromDatabase = answer4FromDatabase;\n\t \t \t\trightButton1 = false;\n\t \t \t\trightButton2 = true;\n\t \t \t\trightButton3 = false;\n\t \t \t\trightButton4 = false;\n\t \t \t\tbreak;\n\t \t \t\n\t \t \tcase 2:\n\t \t \t\tdisplayedAnswer3FromDatabase = answer1FromDatabase;\t//correct answer\n\t \t \t\tdisplayedAnswer1FromDatabase = answer2FromDatabase;\n\t \t \t\tdisplayedAnswer2FromDatabase = answer3FromDatabase;\n\t \t \t\tdisplayedAnswer4FromDatabase = answer4FromDatabase;\n\t \t \t\trightButton1 = false;\n\t \t \t\trightButton2 = false;\n\t \t \t\trightButton3 = true;\n\t \t \t\trightButton4 = false;\n\t \t \t\tbreak;\n\t \t \t\t\n\t \t \tcase 3:\n\t \t \t\tdisplayedAnswer4FromDatabase = answer1FromDatabase;\t//correct answer\n\t \t \t\tdisplayedAnswer1FromDatabase = answer2FromDatabase;\n\t \t \t\tdisplayedAnswer3FromDatabase = answer3FromDatabase;\n\t \t \t\tdisplayedAnswer2FromDatabase = answer4FromDatabase;\n\t \t \t\trightButton1 = false;\n\t \t \t\trightButton2 = false;\n\t \t \t\trightButton3 = false;\n\t \t \t\trightButton4 = true;\n\t \t \t\tbreak;\n\t \t \t\n\t \t \tdefault: \n\t \t \t\tdisplayedAnswer1FromDatabase = answer4FromDatabase;\t//no correct answer\n\t \t \t\tdisplayedAnswer2FromDatabase = answer2FromDatabase;\n\t \t \t\tdisplayedAnswer3FromDatabase = answer3FromDatabase;\n\t \t \t\tdisplayedAnswer4FromDatabase = answer1FromDatabase;\t\n\t \t \t\trightButton1 = false;\n\t \t \t\trightButton2 = false;\n\t \t \t\trightButton3 = false;\n\t \t \t\trightButton4 = false;\n\t \t \t\t\n \t }\n\t \n\t // After the 9th question is displayed, the nextOfFinishValue should be set to 1 so the button displayes Finish instead of Next\n \t if (numberOfQuestionsDisplayedCounter < 9){\n\t \t\t\tnextOrFinishValue = 0;\n\t \t\t}\n\t \t\telse{\n\t \t\t\tnextOrFinishValue = 1;\n\t \t\t}\n\t\t\n\t}", "public void showChoices(VocabularyQuiz q) {\n ButtonGroup bg = new ButtonGroup();\n HashMap<String, Integer> choiceTable = new HashMap<String, Integer>();\n JPanel buttonArea = new JPanel(new GridBagLayout());\n gui.getConstraints().insets = new Insets(10,10,10,10);\n for (int i = 0; i < VocabularyQuiz.NUM_SELECT; i++) {\n String choice = q.getSelections().get(i);\n JRadioButton rb = new JRadioButton(choice);\n rb.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 13));\n rb.setBackground(Color.white);\n gui.getConstraints().gridy = i;\n buttonArea.add(rb, gui.getConstraints());\n rb.setActionCommand(choice);\n bg.add(rb);\n choiceTable.put(choice, i);\n }\n gui.getConstraints().gridy = 2;\n gui.getPanel().add(buttonArea, gui.getConstraints());\n JButton b = new JButton(\"submit\");\n gui.getConstraints().gridy = 3;\n gui.getConstraints().insets = new Insets(10,200,10,200);\n gui.getPanel().add(b, gui.getConstraints());\n QuizCheckerTool checker = new QuizCheckerTool(q.getAnswer());\n submitAnswerListener(b, choiceTable, bg, checker, q);\n }", "public static void facultyText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'ADD' 3.'REMOVE' 4.'FIND' 5.'SCHEDULE' 6.'GRANTS' 7.'MORE' -for more detail about options\");\n\t}", "public void meny(){\r\n System.out.println(\"\\nMeny\");\r\n System.out.println(\"1. Legg til ny person\");\r\n System.out.println(\"2. Kjop ny DVD\");\r\n System.out.println(\"3. Laan bort DVD\");\r\n System.out.println(\"4. Vis info om valgt person\");\r\n System.out.println(\"5. Vis oversikt over personer\");\r\n System.out.println(\"6. Returner DVD\");\r\n System.out.println(\"7. Avslutt\");\r\n }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "public String showAllNhanvien();", "public static void printQueens(int[] q) {\n\n\t\tif (q[firstY] == firstX) {\t\t\t\t\t\t\t\t\t\t\t\t// Checks if the permutation contains the Queen position given by user.\n\t\t\tSystem.out.println(\" |1 2 3 4 5 6 7 8 \");\n\t\t\tSystem.out.println(\"-+----------------\");\n\t\t\tfor (int i = 0; i < 8; i++) {\n\t\t\t\tSystem.out.print(letters[i] + \"|\");\n\t\t\t\tfor (int j = 0; j < 8; j++) {\n\t\t\t\t\tif (q[i] == j) System.out.print(\"Q \");\n\t\t\t\t\telse System.out.print(\"* \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t} \n\t\t\tSystem.out.println();\n\t\t}\n\t}", "private void choosePrompt() {\r\n\t\tfor (int i = 0; i < mustChoose.size(); i++) {\r\n\t\t\tString prompt = \"**[Choose]** \";\r\n\t\t\t// Find the correct text to display\r\n\t\t\tif (mustChoose.get(i).contentEquals(\"Shrine\")) {\r\n\t\t\t\tprompt += \"**1** :moneybag: ~OR~ **1** :heart:\";\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Dragon Shrine\")) {\r\n\t\t\t\tprompt += \"**2** :moneybag: ~OR~ **1** :wastebasket:\";\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Treasure Hunter\")) {\r\n\t\t\t\tprompt += \"a card to replace in the dungeon row (4-9)\";\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Underworld Dealing\")) {\r\n\t\t\t\tprompt += \"**1** :moneybag: ~OR~ **BUY 2** __Secret Tome__ **FOR 7** :moneybag:\";\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Apothecary\")) {\r\n\t\t\t\tprompt += \"**3** :crossed_swords: **~OR~** **2** :moneybag: **~OR~** **1** :heart:\";\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Mister Whiskers\")) {\r\n\t\t\t\tprompt += \"**Dragon Attack** ~OR~ **-2** :warning:\";\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Wand of Wind\")) {\r\n\t\t\t\tif (GlobalVars.teleportRoomsPerRoom.length > 0) {\r\n\t\t\t\t\tprompt += \"**1** :crystal_ball: ~OR~ Take a **SECRET** from an adjacent room ``\"+\r\n\t\t\t\t\t\tUtils.arrayToString(GlobalVars.adjacentRoomsPerRoom[currentPlayer.getCurrentRoom()])+\" ┃ \"+\r\n\t\t\t\t\t\tUtils.arrayToString(GlobalVars.teleportRoomsPerRoom[currentPlayer.getCurrentRoom()])+\"``\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tprompt += \"**1** :crystal_ball: ~OR~ Take a **SECRET** from an adjacent room ``\"+\r\n\t\t\t\t\t\t\tUtils.arrayToString(GlobalVars.adjacentRoomsPerRoom[currentPlayer.getCurrentRoom()])+\"``\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tgameChannel.sendMessage(prompt).queue();\r\n\t\t}\r\n\t}", "public void setQuest(Quest quest) {\n\t\tthis.quest = quest;\n\t}" ]
[ "0.72594714", "0.71768546", "0.6845434", "0.67600846", "0.67488515", "0.65909797", "0.6498585", "0.63923484", "0.6365729", "0.63247126", "0.6314028", "0.62863564", "0.62780523", "0.62418646", "0.6172935", "0.6103158", "0.60898", "0.6031452", "0.6029913", "0.60248965", "0.5984519", "0.5886474", "0.5878119", "0.5870493", "0.586377", "0.5856632", "0.5856117", "0.58545077", "0.58395976", "0.58341146", "0.5822353", "0.5813908", "0.57924896", "0.5783586", "0.5779226", "0.57646036", "0.57624704", "0.57624084", "0.5746937", "0.57336825", "0.57248557", "0.5723208", "0.5721053", "0.57206994", "0.5710367", "0.5703368", "0.5698666", "0.56898963", "0.5687855", "0.5679032", "0.56760347", "0.56718373", "0.5661627", "0.5650432", "0.5632191", "0.56280434", "0.5612312", "0.5603814", "0.56033283", "0.5592733", "0.5567644", "0.5567522", "0.55592245", "0.55520344", "0.5548054", "0.554665", "0.5544978", "0.5542382", "0.5541124", "0.55387217", "0.553465", "0.5531562", "0.5531189", "0.55294067", "0.55253536", "0.5520556", "0.55113786", "0.55111897", "0.55017895", "0.5499888", "0.54951894", "0.54951894", "0.54951894", "0.54951894", "0.5490909", "0.5488658", "0.548822", "0.54873425", "0.54801106", "0.5478994", "0.5470338", "0.54688317", "0.5468666", "0.54667014", "0.5446558", "0.543815", "0.543523", "0.5435095", "0.54236937", "0.54227126" ]
0.7514536
0
Function to display the shop keepers inventory
private static void displayShopInventory(String[] shopInventory){ for(int i=0; i<shopInventory.length; i++){ switch(shopInventory[i]){ case "Healing Potion": healingPotion HealingPotion = new healingPotion(); System.out.println((i + 1) + ") " + shopInventory[i]); System.out.println("Price: " + HealingPotion.getHealingPotionBuyPrice()); break; case "Greater Healing Potion": greaterHealingPotion GreaterHealingPotion = new greaterHealingPotion(); System.out.println((i + 1) + ") " + shopInventory[i]); System.out.println("Price: " + GreaterHealingPotion.getGreaterHealingPotionBuyPrice()); break; case "Long Sword": longSword LongSword = new longSword(); System.out.println((i + 1) + ") " + shopInventory[i]); System.out.println("Price: " + LongSword.getBuyPrice()); break; case "Great Sword": greatSword GreatSword = new greatSword(); System.out.println((i + 1) + ") " + shopInventory[i]); System.out.println("Price: " + GreatSword.getBuyPrice()); break; case "Iron Helmet": ironHelmet IronHelmet = new ironHelmet(); System.out.println((i + 1) + ") " + shopInventory[i]); System.out.println("Price: " + IronHelmet.getBuyPrice()); break; case "Iron Chest Plate": ironChestPlate IronChestPlate = new ironChestPlate(); System.out.println((i + 1) + ") " + shopInventory[i]); System.out.println("Price: " + IronChestPlate.getBuyPrice()); break; case "Iron Boots": ironBoots IronBoots = new ironBoots(); System.out.println((i + 1) + ") " + shopInventory[i]); System.out.println("Price: " + IronBoots.getBuyPrice()); break; case "Iron Gloves": ironGloves IronGloves = new ironGloves(); System.out.println((i + 1) + ") " + shopInventory[i]); System.out.println("Price: " + IronGloves.getBuyPrice()); break; case "Scroll of Fireball": fireball Fireball = new fireball(); System.out.println((i+1) + ") " + shopInventory[i]); System.out.println("Price: " + Fireball.getBuyPrice()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printInventory()\n {\n System.out.println(\"Welcome to \" + storeName + \"! We are happy to have you here today!\");\n System.out.println(storeName + \" Inventory List\");\n System.out.println();\n \n System.out.println(\"Our Books:\");\n System.out.println(Book1.toString());\n System.out.println(Book2.toString());\n System.out.println(Book3.toString());\n System.out.println(Book4.toString());\n System.out.println(Book5.toString());\n \n System.out.println();\n \n System.out.println(\"Our Bevereges:\");\n System.out.println(Beverage1.toString());\n System.out.println(Beverage2.toString());\n System.out.println(Beverage3.toString());\n\n System.out.println();\n }", "public void showInventory()\n\t{\n\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t+ \"__________________\\n\\n\");\n\t\tSystem.out.print(\"\\t\\t\\t\\tInventory\");\n\t\t\n\t\tfor (String s: inventory)\n\t\t{\n\t\t\tSystem.out.print(\"\\n\" + s);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\\n[R] Return\\n\");\n\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t+ \"__________________\\n\\n\");\n\t\tSystem.out.print(\"Action: \");\n\t\t\n\t}", "private void viewBackpack() {\n Item[] inventory = GameControl.getSortedInventoryList();\r\n \r\n System.out.println(\"\\n List of inventory Items\");\r\n System.out.println(\"Description\" + \"\\t\" + \r\n \"Required\" + \"\\t\" +\r\n \"In Stock\");\r\n \r\n // For each inventory item\r\n for (Item inventoryItem : inventory){\r\n // Display the description, the required amount and amount in stock\r\n System.out.println(InventoryItem.getType + \"\\t \" +\r\n InventoryItem.requiredAmount + \"\\t \" +\r\n InventoryItem.getQuantity);\r\n }\r\n \r\n }", "public void printInventory()\n { \n System.out.println();\n\n // Checks if the player has items.\n if(!(getPerson(PLAYER).getInventory().getItems().isEmpty())){\n System.out.println(\"In your backpack, you have:\");\n\n // Gets each item in the player's inventory.\n for(Item item: getPerson(PLAYER).getInventory().getItems()){\n System.out.print(item.getName() + \",\");\n }\n System.out.println();\n System.out.println(\"You are carrying \"+ getPerson(PLAYER).getWeight() + \"kg.\");\n }\n else{\n System.out.println(\"There are currently no items in your backpack.\");\n }\n System.out.println();\n }", "public void inventory() {\n\t\tList<Item> items = super.getItems();\n\n\t\tString retStr = \"Items: \";\n\t\tItem item;\n\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\titem = items.get(i);\n\t\t\tretStr += item.toString();\n\t\t\tif (i != items.size()-1)\n \t{\n\t\t\t\tretStr += \", \";\n \t}\n\t\t}\n\t\tretStr += \"\\nCapacity: \" + this.currentCapacity() + \"/\" + this.maxCapacity;\n\t\tSystem.out.println(retStr);\n\t}", "public String printPlayerInventory() {\r\n\t\t\tif(this.getPlayer().getInventory().getContent().isEmpty()) {\r\n\t\t\t\treturn \"You have no items in your inventory.\" + \"\\n\"\r\n\t\t\t\t\t\t+ \"You can carry \" + this.getPlayer().getCarryCapacity() + \" more units of weight. \\n\"\r\n\t\t\t\t\t\t+ \"You have \" + this.getPlayer().getGold() + \" gold.\";\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\treturn \"Your \" + this.getPlayer().getInventory().printContent()\r\n\t\t\t\t+ \"You can carry \" + this.getPlayer().getCarryCapacity() + \" more units of weight. \\n\"\r\n\t\t\t\t\t\t+ \"You have \" + this.getPlayer().getGold() + \" gold.\";\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}", "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 }", "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 }", "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 void printInventory(){\n\t\tint i;\n\t\tint listSize = inventory.size();\n\t\tRoll temp;\n\t\tString outputText;\n\t\toutputText = \"Inventory Stocks Per Roll: \";\n\t\t//outputText = inventory.get(0).getRoll().getType() + \" Roll Current stock: \" + inventory.get(0).getStock();\n\t\tfor(i = 0; i < listSize; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\toutputText = outputText + \"\\n\";\n\t\t\t}\n\t\t\toutputText = outputText + inventory.get(i).getRoll().getType() + \" : \" + inventory.get(i).getStock() + \" \";\n\t\t}\n\t\tSystem.out.println(outputText);\n\t\tthis.status = outputText;\n\t\tsetChanged();\n notifyObservers();\n\t}", "private static void viewItems() {\r\n\t\tdisplayShops();\r\n\t\tint shopNo = getValidUserInput(scanner, shops.length);\r\n\t\tdisplayItems(shopNo);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please enter the ID of the element to add to cart. \\\"0\\\" for exit\");\r\n\t\tSystem.out.println();\r\n\t\tint productNo = getValidUserInput(scanner, shops[shopNo].getAllSales().length + 1);\r\n\t\tif (productNo > 0) {\r\n\t\t\tProduct productToBeAdd = shops[shopNo].getAllSales()[productNo - 1];\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.print(\" Please enter the number of the item you would like to buy: \");\r\n\t\t\tint numberOfTheItems = getUserIntInput();\r\n\t\t\tcart.addProduct(productToBeAdd, numberOfTheItems);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Purchase done, going back to the menu.\");\r\n\t\tSystem.out.println();\r\n\t}", "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 }", "@Override\r\n public String toString() {\r\n String result = \"\";\r\n for (Map.Entry<Item, Integer> item : inventory.entrySet()) {\r\n if (item.getValue() == 0) {\r\n result += \"SOLD OUT\\n\";\r\n } else {\r\n result += item.getKey();\r\n }\r\n }\r\n return result;\r\n }", "public synchronized String printInventory(){\n String inventStr = \"\";\n\n for (int i = 0; i < titleList.size(); i++){\n inventStr += titleList.get(i) + \" \" + quantityList.get(i);\n if(i < titleList.size() - 1) {\n inventStr +=\"___\";\n }\n }\n return inventStr;\n }", "public static void display(){\n \n //create an array : Remember positions\n //wheat= 0\n //Land = 1 \n //Population = 2\n \n String[] items = {\"Wheat\", \"Land\", \"Population\"};\n \n \n // call the crops object \n Crops theCrops = Game.getCrop();\n \n //get wheat\n int wheat = theCrops.getWheatInStore();\n \n //get land (acres)\n int acres = theCrops.getAcres();\n \n //get population \n \n int population = theCrops.getPopulation();\n \n //print results \n \n System.out.println(\"\\nInventory List:\");\n //wheat \n System.out.println(\"Wheat in Store:\" + wheat + \" bushels of \" + items[0]);\n //acres\n System.out.println(\"Acres of Land owned:\" + acres + \" acres of \" + items[1]);\n \n //population\n System.out.println(\"Current population:\" + population + \" people in the \" + items[2]);\n \n \n \n }", "public String printGrabbedItems() {\n return \"Items in your inventory: \" + grabbedItems;\n }", "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 }", "public String toString() {\n System.out.println(\"Inventory: \");\n String str = \"\";\n for(int i = 0; i < numItems; i++) {\n if(inventory[i]!= null) {\n str += inventory[i].toString() + \"\\n\";\n }\n }\n return str;\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 display_inventory() {\n\t\t// displays all identified crystals\n\t\tfor(int i = 0;i<maxInvSize;i++) {\n\t\t\tif(identifiedArray[i] != null) {\n\t\t\t\tcrystal_description(identifiedArray[i]);\n\t\t\t}\n\t\t}\n\t\t\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 getItemsString()\n {\n String returnString =\"\";\n if(Inventory.isEmpty()){\n returnString = \"You are not holding any items\";\n } else {\n returnString = \"Items you are holding:\";\n String temp = \"\";\n for(Items item : Inventory.values()) {\n temp += \", \" + item.getName() ; \n }\n returnString += temp.substring(1);\n }\n return returnString;\n }", "@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\tString result = \"\";\n for (int x = 0; x < list.size(); x++) {\n result += list.get(x).toString();\n }\n\treturn \"Inventory: \\n\" + result + \"\\n\";\n}", "private void printToolListMenu(Shop shop) {\n System.out.println(shop.getInventory());\n }", "public String getPlayerInventory() {\r\n String res = \"You have the following items in your inventory:\" + System.getProperty(\"line.separator\");\r\n for (int i = 0; i < player.getInventory().size(); i++) {\r\n res += i + \": \" + player.getInventory().get(i).toString() + System.getProperty(\"line.separator\");\r\n }\r\n return res;\r\n }", "public String printPlayerEquipment() {\r\n\t\t\treturn this.getPlayer().presentEquippedItems();\r\n\t\t}", "@Override\n\tpublic void seeSoldItem() {\n\t\tShip selectedShip = game.getSelectedShip();\n\t\tHashMap<Goods, ArrayList<String>> soldItems = selectedShip.getSoldItems();\n\t\tint index = 1;\n\t\tSystem.out.println(\"Items that has been sold: \");\n\t\tfor (HashMap.Entry<Goods, ArrayList<String>> set: soldItems.entrySet()) {\n\t\t\tString name = set.getKey().getName();\n\t\t\tint quantity = set.getKey().getQuantitySold();\n\t\t\tSystem.out.println(\"(\" + index + \") Name: \" + name + \" Quantity: \" + quantity + \" Loaction it was sold: \" + set.getValue());\n\t\t\tindex++;\n\t\t\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\tboolean state = false;\n\t\twhile (state == false) {\n\t\t\tSystem.out.println(\"Choose your actions: \");\n\t\t\tSystem.out.println(\"(1) Go back!\");\n\t\t\ttry {\n\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\t\n\t\t\t\t\tstate = true;\n\t\t\t\t\tgame.seeShipSpec();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t}", "public String showItemInfo()\n {\n return \"The room has 1 \" + currentItem.getDescription() \n + \" weighted \" + currentItem.getWeight() + \" pounds\"; \n }", "public String getInventoryString() {\n String msg = new String(\"Inventory: \\n\");\n for (Map.Entry<String, Item> me : inventory.entrySet()) {\n msg += \" item: \" + me.getKey() + \" description: \" + me.getValue().getDescription() + \"\\n\";\n }\n return msg;\n }", "public boolean showInventory() {\n\n // removes products of 0 quantity\n for (int k = 0; k < this.getInventorySize(); k++) {\n\n if (this.getProduct(k).getQuantity() == 0) {\n this.removeProduct(this.getProduct(k));\n k --;\n }\n }\n return (this.getInventorySize() != 0);\n }", "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 }", "private static String displayItemFromBag(String[] inventory, String option){\r\n String itemToDoAction;\r\n int counter = 1;\r\n if(option.equals(\"Equip\")){\r\n for(int i = 0; i < inventory.length; i++){\r\n if(inventory[i].equals(\"Short Sword\") || inventory[i].equals(\"Leather Helmet\") || inventory[i].equals(\"Leather Chest Plate\")\r\n || inventory[i].equals(\"Long Sword\") || inventory[i].equals(\"Great Sword\") || inventory[i].equals(\"Iron Helmet\") \r\n ||inventory[i].equals(\"Iron Chest Plate\") || inventory[i].equals(\"Iron Boots\") || inventory[i].equals(\"Iron Gloves\")){\r\n System.out.println(\"\\t\" + counter + \") \" + inventory[i]);\r\n counter++;\r\n }\r\n }\r\n System.out.println(\"\\t\" + counter + \") Exit\");\r\n itemToDoAction = getUserInput(\"Which item would you like to equip? \\n(Type the name of the item) \");\r\n }else if(option.equals(\"Sell\")){\r\n for(int i = 0; i < inventory.length; i++){\r\n if(inventory[i].equals(\"Short Sword\") || inventory[i].equals(\"Leather Helmet\") || inventory[i].equals(\"Leather Chest Plate\")\r\n || inventory[i].equals(\"Long Sword\") || inventory[i].equals(\"Great Sword\") || inventory[i].equals(\"Iron Helmet\") \r\n ||inventory[i].equals(\"Iron Chest Plate\") || inventory[i].equals(\"Iron Boots\") || inventory[i].equals(\"Iron Gloves\")){\r\n System.out.println(\"\\t\" + counter + \") \" + inventory[i]);\r\n counter++;\r\n }\r\n }\r\n System.out.println(\"\\t\" + counter + \") Exit\");\r\n itemToDoAction = getUserInput(\"Which item would you like to sell? \\n(Type the name of the item) \");\r\n }else if(option.equals(\"Use\")){\r\n System.out.println(\"we here\");\r\n for(int i = 0; i < inventory.length; i++){\r\n if(inventory[i].equals(\"Healing Potion\") || inventory[i].equals(\"Greater Healing Potion\") || inventory[i].equals(\"Scroll of Fireball\")){\r\n System.out.println(\"\\t\" + counter + \") \" + inventory[i]);\r\n counter++;\r\n }\r\n }\r\n System.out.println(\"\\t\" + counter + \") Exit\");\r\n itemToDoAction = getUserInput(\"Which item would you like to use? \\n(Type the name of the item) \");\r\n }else{\r\n itemToDoAction = \"\";\r\n }\r\n return itemToDoAction;\r\n }", "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 }", "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}", "private void loadInv() {\n\t\titem = Main.inventory.business.getAllBaked();\n\t\tString test = \"ID, Name, Amount, Price\\n\";\n\t\t//formatting for string to load into the screen\n\t\tfor(int i=0 ; i< item.size() ; i++) {\n\t\t\ttest += (i+1) + \" \" + item.get(i).getName() +\", \" \n\t\t\t\t\t+ item.get(i).getQuantity() + \n\t\t\t\t\t\", $\"+ Main.inventory.business.getItemCost(item.get(i).getName()) +\"\\n\";\n\t\t}\n\t\tthis.inv.setText(test);\n\t}", "public void printItems()\n {\n if (getItems().size()==0){\n System.out.println(\"There are no items in this room.\");\n }\n else{\n System.out.print(\"The item(s) in this room are: \");\n int i=0;\n while(i<getItems().size()){\n if(i<getItems().size()-1){\n System.out.print(getItems().get(i).getName()+\", \");\n }\n else{\n System.out.println(getItems().get(i).getName()+\".\");\n }\n i++;\n }\n }\n }", "private static void viewCart() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" The items in your cart\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Name |Price |Count\");\r\n\t\tfor (Map.Entry<Product, Integer> productCountPair: cart.getCartProductsEntries()) {\r\n\t\t\tStringBuilder productName = generatePaddings(productCountPair.getKey().getName(), PRODUCT_NAME_LENGTH);\r\n\t\t\tStringBuilder price = generatePaddings(convertCentToDollar(productCountPair.getKey().getPriceInCent()), PRICE_LENGTH);\r\n\t\t\tSystem.out.println(\" \" + productName + \"|\" + price + \"|\" + productCountPair.getValue());\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Total price: \" + convertCentToDollar(cart.totalPriceInCent()));\r\n\t\tSystem.out.println();\r\n\t\tdisplayCartMenu();\r\n\t}", "private void display(){\n out.println(\"\\n-STOCK EXCHANGE-\");\n out.println(\"Apple - Share Price: \" + game.apple.getSharePrice() + \" [\" + game.apple.top() + \"]\");\n out.println(\"BP - Share Price: \" + game.bp.getSharePrice() + \" [\" + game.bp.top() + \"]\");\n out.println(\"Cisco - Share Price: \" + game.cisco.getSharePrice() + \" [\" + game.cisco.top() + \"]\");\n out.println(\"Dell - Share Price: \" + game.dell.getSharePrice() + \" [\" + game.dell.top() + \"]\");\n out.println(\"Ericsson - Share Price: \" + game.ericsson.getSharePrice() + \" [\" + game.ericsson.top() + \"]\");\n\n out.println(\"\\n-PLAYERS-\");\n// System.out.println(playerList.toString());\n for (Player e : playerList) {\n if (e.equals(player)) {\n out.println(e.toString() + \" (you)\");\n } else {\n out.println(e.toString());\n }\n }\n }", "private void loadStore(Inventory inventory){\n\t\t \n\t\t TextView tvPremiumUpgradeTitle = (TextView)this.findViewById(R.id.tvPremiumUpgradeTitle);\n\t\t TextView tvPremiumUpgradeDescription = (TextView)this.findViewById(R.id.tvPremiumUpgradeDescription);\n\t\t Button bPremiumUpgradePrice = (Button)this.findViewById(R.id.bPremiumUpgradePrice);\n\t\t ImageView ivPremiumUpgradePurchased = (ImageView)this.findViewById(R.id.ivPremiumUpgradePurchased);\n\t\t \n\t\t \n\t\t SkuDetails skuPremiumUpgrade = inventory.getSkuDetails(this.getString(R.string.SKU_GOOGLE_PLAY_PREMIUM_UPGRADE));\n\t\t tvPremiumUpgradeTitle.setText(this.getString(R.string.store_item_premium_upgrade_title));\n\t\t tvPremiumUpgradeDescription.setText(this.getString(R.string.store_item_premium_upgrade_description));\n\t\t if (inventory.hasPurchase(this.getString(R.string.SKU_GOOGLE_PLAY_PREMIUM_UPGRADE))){\n\t\t\t bPremiumUpgradePrice.setVisibility(View.GONE); \n\t\t\t }\n\t\t else{\n\t\t\t bPremiumUpgradePrice.setText(skuPremiumUpgrade.getPrice());\n\t\t\t bPremiumUpgradePrice.setTag(this.getString(R.string.SKU_GOOGLE_PLAY_PREMIUM_UPGRADE));\n\t\t\t bPremiumUpgradePrice.setOnClickListener(this);\n\t\t\t ivPremiumUpgradePurchased.setVisibility(View.GONE);\n\t\t }\n\n\t\t\t }", "public Inventory getInventory(){ //needed for InventoryView - Sam\n return inventory;\n }", "public void fillInventory(TheGroceryStore g);", "public int inventorySize (TheGroceryStore g);", "Collection<Item> getInventory();", "@SuppressWarnings(\"deprecation\")\r\n\t@EventHandler\r\n\tpublic void inventoryClickEvent(InventoryClickEvent e) {\r\n\t\tEntity applier = e.getWhoClicked();\r\n\t\tif (!e.isCancelled()) {\r\n\t\t\tif (applier instanceof Player) {\r\n\t\t\t\tPlayer papplier = (Player) applier;\r\n\t\t\t\t// PlayerInventory pinventory = papplier.getInventory();\r\n\t\t\t\t// inven.put(papplier, pinventory);\r\n\t\t\t\tItemStack item = e.getCurrentItem();\r\n\t\t\t\tItemStack transmog = e.getCursor();\r\n\t\t\t\tString tname = \"\";\r\n\t\t\t\tif (item != null) {\r\n\t\t\t\t\tItemMeta itemMeta = item.getItemMeta();\r\n\t\t\t\t\tArrayList<String> lore1 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore2 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore3 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore4 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore5 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore6 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore7 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> totallore = new ArrayList<String>();\r\n\t\t\t\t\tif (item.getType() != Material.AIR) {\r\n\t\t\t\t\t\t// papplier.sendMessage(\"1\");\r\n\t\t\t\t\t\tif (transmog != null) {\r\n\t\t\t\t\t\t\t// papplier.sendMessage(\"2\");\r\n\t\t\t\t\t\t\tif (item.getType().name().endsWith(\"SWORD\") || item.getType().name().endsWith(\"AXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HELMET\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"SHOVEL\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"CHESTPLATE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"LEGGINGS\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"BOOTS\") || item.getType().name().endsWith(\"BOW\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"PICKAXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HOE\")) {\r\n\t\t\t\t\t\t\t\t// papplier.sendMessage(\"3\");\r\n\t\t\t\t\t\t\t\tif (item.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"4\");\r\n\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"5\");\r\n\t\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"6\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"7\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(Api.transint(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t// + \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tdname.put(item, item.getItemMeta().getDisplayName());\r\n\t\t\t\t\t\t\t\t\t\t\t\tI.put(papplier, Methods.transint(item));\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, true);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"8\");\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (!item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"9\");\r\n\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"10\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"11\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"12\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"13\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"14\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"15\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"16\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"17\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanted.put(titem, false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantmentCategory(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T1\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore1.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T2\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore2.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T3\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore3.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T4\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore4.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T5\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore5.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T6\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore6.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = \"&a\" + item.getType().name()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"21\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tString dname1 = dname.get(item).replace(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(\"&d&l[&b&l&n\" + I.get(papplier) + \"&d&l]\"), \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"22\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"23\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"24\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"25\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"26\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"27\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"28\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantmentCategory(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T1\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore1.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T2\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore2.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T3\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore3.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T4\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore4.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T5\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore5.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T6\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore6.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = dname1 + \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public 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 void display() {\r\n System.out.println(\" Cart Information \" + System.lineSeparator() +\r\n \"=========================\" + System.lineSeparator() +\r\n \"Customer ID: \" + getCustID() + System.lineSeparator() + \r\n \"Cart Total: \" + getTotal()+ System.lineSeparator());\r\n items.display();\r\n }", "List<InventoryItem> getInventory();", "public String getInventoryName()\n {\n return this.hasCustomName() ? this.getCustomName() : Names.Containers.WATERJET;\n }", "private void displayAll() {\n\t\tif(inventoryObject.totalNumCards() == 0) { // checks to see if there are 0 StockIndexCards\n\t\t\tSystem.out.println(\"The Inventory is empty\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t\telse {\n\t\tSystem.out.println(inventoryObject.displayAll());\n\t\tgetUserInfo();\n\t\t}\n\t}", "public String[] showStock() {\n \tString[] stock = new String[5];\n \tstock[0] = Integer.toString(this.getId());\n \tstock[1] = this.getName();\n \tstock[2] = Integer.toString(this.getAvailableNumber());\n \tstock[3] = Double.toString(this.getBuyPrice().getAmount());\n \tstock[4] = Double.toString(this.getSellPrice().getAmount());\n \treturn stock;\n }", "public void vender() {\n\t\tSystem.out.println(\"Vender \"+cantidad+\" de \"+itemName);\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tIterator entriesIterator = getEntries();\r\n\r\n\t\twhile(entriesIterator.hasNext()) {\r\n\t\t\tItem item = getCurrentItem(entriesIterator);\r\n\t\t\tbuilder.append(item.getItemDescription().toString());\r\n\t\t\taddNewLine(builder, \" | Quantity: \" + item.getQuantity().toString());\r\n\t\t}\r\n\r\n\t\taddNewLine(builder, \"Total: \" + total.getTotalPrice().toString());\r\n\t\taddNewLine(builder, \"VAT: \" + total.getTotalVAT().toString());\r\n\t\treturn builder.toString();\r\n\t}", "private void displayItem(){\n synchronized(this){\n for(ClientHandler client : clientArray){\n client.getOutput().println(\"\" + currentItem.getItem() +\n \" price starts at \" + currentItem.getStartingPrice() +\n \".\\n\");\n }\n }\n }", "public void displayCartContents() {\r\n for (int i = 0; i < numItems; i++) { // Checks all objects in the cart\r\n if ((cart[i].getContents() != \"\")) { // If not item\r\n System.out.println(cart[i].getDescription()); // Display bag description\r\n System.out.println(cart[i].getContents()); // Display contents of bag\r\n } else { // Else it must be item\r\n System.out.println(cart[i].getDescription()); // Display item description\r\n }\r\n }\r\n }", "private static void totalItemsSoldToday(List<Inventory> inventoryList) {\n System.out.println(\"\\nStock Summary sold today:\");\n inventoryList.forEach(c2);\n }", "public static void SHOW(CS145LinkedList<BookData> inventory) {\n\n System.out.println();\n\n // Iterate through all the BookData Objects in the CSLinkedList<BookData>\n Iterator<BookData> itr = inventory.iterator();\n while( itr.hasNext() ) {\n BookData currentBKD = itr.next();\n\n // Print to Screen a statement containing all current\n // data of the book object inside the BookData Object\n currentBKD.BookInventoryStatement();\n\n // Iterate through all BackOrder objects saved inside\n // the ArrayDeque of the BookData Object if any\n for (BackOrder order : currentBKD.getBackOrders()) {\n System.out.println(\"Backorders:\");\n System.out.print(\" customer: \" + order.getCustomerNum());\n System.out.print(\", amount: \" + order.getNumOrders() + \"\\n\");\n }\n }\n System.out.println();\n }", "public String getDescription() {return \"Use an item in your inventory\"; }", "public String toString() {\n return (\"Item: \" + itemCode + \" \" + itemName + \" \" + itemQuantityInStock + \" price: $\" + df.format(itemPrice) +\" cost: $\"+ df.format(itemCost) + \" farm supplier: \" + farmName);\n }", "List<SimpleInventory> getInventories();", "@Override\n public void displayInventory(Player player)\n {\n Platform.runLater(() -> {\n InventoryDisplay inventory = gui.getInventory();\n inventory.displayInventory(player);\n });\n }", "public String getItem()\n {\n // put your code here\n return \"This item weighs: \" + weight + \"\\n\" + description + \"\\n\";\n }", "@Override\n public String toString(){\n return \"\" + item.name + \" \" + item.price + \" Coins\";\n }", "public static Inventory createStorageInventory(UserShop shop) {\n\t\tInventory inv = Bukkit.createInventory(null, 27, shop.getTitle() + \" §7- §6Lager\");\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tinv.setItem(i, spacer);\n\t\t}\n\t\tinv.setItem(8, back);\n\t\tfor (ShopItemEntry offer : shop.getStoredItems()) {\n\t\t\tinv.addItem(offer.getItem());\n\t\t}\n\t\treturn inv;\n\t}", "public void showShopInfo(Integer shopID, Player player){\n\t\tString query = \"SELECT * FROM `shops` WHERE `shop_id`=\"+shopID+\";\";\n\t\tdebugOut(query);\n\t\ttry {\n\t\t\tPreparedStatement sql = connection.prepareStatement(query);\n\t\t\tResultSet result = sql.executeQuery();\n\t\t\tdebugOut(\"Query Done\");\n\t\t\tresult.next();\n\t\t\tdebugOut(\"Getting material\");\n\t\t\tString material= result.getString(\"itemmaterial\");\n\t\t\tdebugOut(\"getting enchantments\");\n\t\t\tString enchantments= result.getString(\"itemenchantments\");\n\t\t\tdebugOut(\"getting stock\");\n\t\t\tInteger stock= result.getInt(\"stock\");\n\t\t\tdebugOut(\"getting buy price\");\n\t\t\tInteger buy= result.getInt(\"buy\");\n\t\t\tdebugOut(\"getting sell price\");\n\t\t\tInteger sell= result.getInt(\"sell\");\n\t\t\tdebugOut(\"getting data\");\n\t\t\tString data= getData(result.getString(\"data\"));\n\t\t\tdebugOut(\"Giving all info:\");\n\t\t\tdebugOut(\"Stock:\"+stock+\" Buy:\"+buy+\" Sell:\"+sell+\" Material:\"+material+\" Data:\"+data+\" Enchantments:\"+enchantments);\n\t\t\tplayer.sendMessage(ChatColor.YELLOW+\"Shop Information:\");\n\t\t\tplayer.sendMessage(ChatColor.GREEN+\"Item: \"+ChatColor.BLUE+material);\n\t\t\tif(!data.equals( 0 ) ){\n\t\t\t\tdebugOut(\"data not null\");\n\t\t\t\tplayer.sendMessage(ChatColor.GREEN+\"Data: \"+ChatColor.BLUE+data);\n\t\t\t}\n\t\t\tif(!enchantments.equals(\"\")){\n\t\t\t\tsayEnchantments(enchantments, player);\n\t\t\t}\n\t\t\tplayer.sendMessage(ChatColor.GREEN+\"Buying Price: \"+ChatColor.BLUE+buy);\n\t\t\tplayer.sendMessage(ChatColor.GREEN+\"Selling Price: \"+ChatColor.BLUE+sell);\n\t\t\tplayer.sendMessage(ChatColor.GREEN+\"Current Stock: \"+ChatColor.BLUE+stock);\n\t\t\tplayer.sendMessage(ChatColor.YELLOW+\"Hit again to buy or activate to sell\");\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t//e.printStackTrace();\n\t\t}\n\t}", "SimpleInventory getOpenedInventory(Player player);", "public static void inventoryListHeader() {\n System.out.println(\n UI.prettyPrint(\"Items Name\", 15) + \" | \"\n + UI.prettyPrint(\"Price\", 10) + \" | \"\n + UI.prettyPrint(\"Quantity\", 5));\n }", "static void displayInv()\r\n {\r\n //Draws the current inventory \r\n \r\n char[][] inv = MainApp.inv;\r\n \r\n //Assigns formatting variables\r\n char i0_0 = inv[0][0];\r\n char i1_0 = inv[0][1];\r\n char i2_0 = inv[0][2];\r\n char i3_0 = inv[0][3];\r\n char i0_1 = inv[1][0];\r\n char i1_1 = inv[1][1];\r\n char i2_1 = inv[1][2];\r\n char i3_1 = inv[1][3];\r\n char i0_2 = inv[2][0];\r\n char i1_2 = inv[2][1];\r\n char i2_2 = inv[2][2];\r\n char i3_2 = inv[2][3];\r\n \r\n String temp = MainApp.playerName;\r\n \r\n //displays the inventory\r\n \r\n System.out.printf(\"%s's inventory\\n\", temp);\r\n System.out.printf(\"~~~~~~~~~~~~~~\\n\");\r\n System.out.printf(\"| %1s %1s %1s %1s |\\n\", i0_0, i1_0, i2_0, i3_0);\r\n System.out.printf(\"| %1s %1s %1s %1s |\\n\", i0_1, i1_1, i2_1, i3_1);\r\n System.out.printf(\"| %1s %1s %1s %1s |\\n\", i0_2, i1_2, i2_2, i3_2);\r\n System.out.printf(\"~~~~~~~~~~~~~~\\n\");\r\n System.out.printf(\"%d Small Potions\\n\",MainApp.potions[0]);\r\n System.out.printf(\"%d Medium Potions\\n\",MainApp.potions[1]);\r\n System.out.printf(\"%d Large Potions\\n\",MainApp.potions[2]);\r\n \r\n \r\n }", "public void diplayAvailableFood() {\n\t\tfor (int i = 0; i < food.size(); i++) {\n\t\t\tSystem.out.print(food.get(i).name + \" \");\n\t\t}\n\t}", "public String getInventoryName()\n {\n return this.inventoryTitle;\n }", "public void printCart() {\n\t\tSystem.out.println(\"Items currently in the cart: \\n\");\n\t\tfor (int i =0; i < currentSize; i ++) {\n\t\t\tSystem.out.println(\"Item \" + i + \":\\n\" + Cart[i]);\n\t\t}\n\t}", "public String[] listItems() {\n \n\t\tif (itemCount==0) {\n\t\t\tSystem.out.println(\"\\tNo items available.\\n\");\n\t\t}\n\t\telse {\n\t\t\tfor(int index = 1; index<=itemCount; index++) {\n VendItem s = stock[index-1];\n itemList[index-1]=(s.getName());\n\t\t\t}\n System.out.println();\n \n }\n return itemList;\n\n }", "@Override\n\tpublic int getSizeInventory() {\n\t\treturn 0;\n\t}", "@Override\n public String toString() {\n return \"stock: \" + stock + \"\\n\" +\n \"cost: \" + itemPrice + \"\\n\";\n }", "private void printDecreaseItemQuantityMenu(Shop shop, FileManager fileManager) {\n ArrayList<Tool> toolList = new ArrayList<Tool>();\n String selection = \"Y\";\n toolList = sellTools(shop, toolList, selection);\n createAutoOrder(shop, fileManager, toolList);\n }", "public void onInventoryChanged();", "public void inventoryPanel() {\n int invSize = inventory.getSize();\n System.out.println(\"Number of product in the inventory: \" + invSize);\n setLastProductDisplayed(getFirstProductDisplayed());\n System.out.println(\"I am starting with: \" + getFirstProductDisplayed());\n\n //Dsiplay 10 products per window\n for (int i = 0; i < MAX_NUMB_PRODUCTS; i++) {\n //Creating a JPanel for a product\n setProductPanel(i, new JPanel(new BorderLayout(5, 5)));\n //Creating a JPanel for buttons\n setProdPanelBottom(i, new JPanel(new FlowLayout()));\n //Add to cart button\n addToCartBtn[i] = new JButton(\"Add to Cart\");\n addToCartBtn[i].addActionListener(this);\n //Details button\n setProdBTN1(i, new JButton(\"Details\"));\n getProdBTN1(i).addActionListener(this);\n //Adding button to panel\n getProdPanelBottom(i).add(addToCartBtn[i]);\n getProdPanelBottom(i).add(getProdBTN1(i));\n //Checking product quantity\n Product p = inventory.getProductAt(getLastProductDisplayed());\n if (p.getQuantity() == 0) {\n addToCartBtn[i].setEnabled(false);\n }\n //Creating textArea with product information\n setProdInfoPanel(i, new JTextArea(p.toString()));\n //Adding Components to the Product JPanel\n getProductPanel(i).add(getProdInfoPanel(i), BorderLayout.NORTH);\n getProductPanel(i).setBorder(new LineBorder(Color.GRAY));\n getProductPanel(i).add(getProdPanelBottom(i), BorderLayout.SOUTH);\n //Adding Components to the mainPanel\n getMainPanel().add(getProductPanel(i));\n setLastProductDisplayed(getLastProductDisplayed() + 1);\n //Break if i is equal to inventory's size\n if (i + getFirstProductDisplayed() == invSize - 1) {\n break;\n }\n }\n }", "@Override\n\tpublic void seeShip() {\n\t\tShip selectedShip = game.getSelectedShip();\n\t\tString name = selectedShip.getShipName();\n\t\tint crew = selectedShip.getCrew();\n\t\tdouble cargo = selectedShip.getCapacity();\n\t\tdouble shipsHealth = selectedShip.getShipsStatus();\n\t\tint speed = selectedShip.getShipsSpeed();\n\t\tArrayList<Equipment> equipments = selectedShip.getEquipment();\n\t\tHashMap<Goods, Integer> myGoods = selectedShip.getMyGoods();\n\t\tSystem.out.println(\"Ship's name: \" + name);\n\t\tSystem.out.println(\"Number of crews: \" + crew);\n\t\tSystem.out.println(\"Ship's health: \" + shipsHealth);\n\t\tSystem.out.println(\"Speed: \" + speed);\n\t\tSystem.out.println(\"Maximum cargo capacity: \" + String.format(\"%.2f\",cargo) + \"\\n\");\n\t\tprintEquipments(equipments);\n\t\tprintMyGoods(myGoods);\n\t\tboolean state = false;\n\t\twhile (state == false) {\n\t\t\tSystem.out.println(\"Choose your actions: \");\n\t\t\tSystem.out.println(\"(1) Go back!\");\n\t\t\tSystem.out.println(\"(2) See your sold items.\");\n\t\t\ttry {\n\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\tif (selectedAction <= 2 && selectedAction > 0) {\n\t\t\t\t\tstate = true;\n\t\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\t\tgame.backToMain();;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tgame.seeSoldItems();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t}", "public abstract List<String> getInventory();", "public void displayCart() {\n\t\tSystem.out.println(cart.toString());\n\t}", "@Override\r\n \tpublic String toString() {\n \t\tString itemString = \"\" + item.getTypeId() + ( item.getData().getData() != 0 ? \":\" + item.getData().getData() : \"\" );\r\n \t\t\r\n \t\t//saving the item price\r\n \t\tif ( !listenPattern )\r\n \t\t\titemString += \" p:\" + new DecimalFormat(\"#.##\").format(price);\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" s:\" + slot;\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" d:\" + item.getDurability();\r\n \t\t\r\n \t\t//saving the item amounts\r\n \t\titemString += \" a:\";\r\n \t\tfor ( int i = 0 ; i < amouts.size() ; ++i )\r\n \t\t\titemString += amouts.get(i) + ( i + 1 < amouts.size() ? \",\" : \"\" );\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasLimit() ) \r\n \t\t\titemString += \" gl:\" + limit.toString();\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasPlayerLimit() ) \r\n \t\t\titemString += \" pl:\" + limit.playerLimitToString();\r\n \t\t\r\n \t\t//saving enchantment's\r\n \t\tif ( !item.getEnchantments().isEmpty() ) {\r\n \t\t\titemString += \" e:\";\r\n \t\t\tfor ( int i = 0 ; i < item.getEnchantments().size() ; ++i ) {\r\n \t\t\t\tEnchantment e = (Enchantment) item.getEnchantments().keySet().toArray()[i];\r\n \t\t\t\titemString += e.getId() + \"/\" + item.getEnchantmentLevel(e) + ( i + 1 < item.getEnchantments().size() ? \",\" : \"\" );\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\t//saving additional configurations\r\n \t\tif ( stackPrice )\r\n \t\t\titemString += \" sp\";\r\n \t\tif ( listenPattern )\r\n \t\t\titemString += \" pat\";\r\n \t\t\r\n \t\treturn itemString;\r\n \t}", "public List<Inventory> getInventory();", "public String ServerToString(){\n return leftPad(itemId, 15) + leftPad(itemDescription, 30)\n + leftPad(unitPrice, 15) + leftPad(\"\" + inventory, 15);\n }", "InventoryItem getInventoryItem();", "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 }", "@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(itemName + \" \" + price + \"kr \" + tax + \"% \");\n return builder.toString();\n }", "public void showDetails (Player player) {\r\n\t\tString \tc\t= Term.COLOR_INACTIVE.get();\r\n\t\t\r\n\t\t// Get the color\r\n\t\tif (getActivity() == Activity.SELL\t\t&& isActive())\r\n\t\t\tc\t= Term.COLOR_SELL.get();\r\n\t\t\r\n\t\telse if (getActivity() == Activity.BUY\t\t&& isActive())\r\n\t\t\tc\t= Term.COLOR_BUY.get();\r\n\t\t\r\n\t\telse if (getActivity() == Activity.EXCHANGE\t&& isActive())\r\n\t\t\tc\t= Term.COLOR_EXCHANGE.get();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tList<String>\tmessage\t= new ArrayList<String>();\r\n\t\t\t\t\t\tmessage.add(Term.INFO_1.get() + c + getActivity().toString() \t+ Term.INFO_2.get() + c +scs.formatCurrency(getPrice())\t\t+ Term.INFO_9.get() + c + getOwner());\r\n\t\t\r\n\t\tString \ttext\t= null;\r\n\t\tString\tname\t= getItemName();\r\n\t\t\r\n\t\tif (!isUnlimited()) {\r\n\t\t\tif (getActivity() == Activity.BUY)\r\n\t\t\t\ttext = getAmount()+ \"/\" + getMaxAmount();\r\n\t\t\telse\r\n\t\t\t\ttext = \"\" + getAmount();\r\n\t\t} else {\r\n\t\t\ttext = Term.INFO_UNLIMITED.get();\r\n\t\t}\r\n\t\t\r\n\t\tif (getItemStack().getType() == Material.WRITTEN_BOOK)\r\n\t\t\tname = getNBTStorage().getBookTitle();\r\n\t\t\r\n\t\tmessage.add(Term.INFO_4.get() + c + name\t\t\t\t+ Term.INFO_3.get() + c + text);\r\n//\t\t\t\t\t\tmessage.add(Term.INFO_4.get() + c + getItemName()\t\t\t\t+ Term.INFO_3.get() + c + (!isUnlimited() ? (getActivity() == Activity.BUY ? getMaxAmount() : getAmount()) : Term.INFO_UNLIMITED.get()));\r\n\t\t\r\n\t\tStringBuffer\tbuffer \t= new StringBuffer();\r\n\t\tString\t\t\tdelim\t= \"\";\r\n\t\r\n\t\tfor (Enchantment en : getEnchantments().keySet()) {\r\n\t\t\tint lvl\t= getEnchantments().get(en);\r\n\t\t\t\r\n\t\t\tbuffer.append(delim + en.getName() + \" lvl \" + lvl);\r\n\t\t\tdelim\t= \", \";\r\n\t\t}\r\n\t\t\r\n\t\tif (buffer.toString().length() > 0)\r\n\t\t\tmessage.add(Term.INFO_8.get() + c + buffer.toString());\r\n\t\t\r\n\t\tif (player.hasPermission(Properties.permAdmin))\r\n\t\t\tmessage.add(c + getSHA1());\r\n\t\t\r\n\t\tMessaging.mlSend(player, message);\r\n\t}", "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 ArrayList<Stock> getAvaiableStock (){\n\t\treturn inventory;\n\t}", "public void displayAll() {\r\n \t Item currentItem;\r\n \t \r\n \t System.out.println(\"-----BOOKS-----\");\r\n \t for(int i=0; i<items.size(); i++) {\r\n \t currentItem = items.get(i);\r\n \t \t //This next line checks if the current item is a book.\r\n \t if(currentItem.getItemType() == Item.ItemTypes.BOOK) \r\n \t System.out.println(currentItem.toString());\r\n \t }\r\n \t \t\r\n \t System.out.println(\"-----MAGAZINES-----\");\r\n \t for(int i=0; i<items.size(); i++) {\r\n \t currentItem = items.get(i);\r\n \t \t //This next line checks if the current item is a magazine.\r\n \t if(currentItem.getItemType() == Item.ItemTypes.MAGAZINE)\r\n \t System.out.println(currentItem.toString());\r\n \t }\r\n\r\n }", "public void showSellItem(){\n\t\tListView view = (ListView) getView().findViewById(R.id.itemshopList);\n\t\tview.setVisibility(View.VISIBLE);\n\t\t\n\t\tMainGameActivity.setShopCode((Integer) 2);\n\t\t\n\t\t ArrayList<Item> itemList = MainGameActivity.getPlayerFromBackpack().GetItem();\n\t\t \n\t\t ArrayAdapter<Item> arrayAdapter = new ArrayAdapter<Item>(this.getActivity(),android.R.layout.simple_list_item_1, itemList);\n\t\t view.setAdapter(arrayAdapter); \n\n\t\t final Context ctx = this.getActivity();\n\t\t \n\t\t view.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t\t\t \n\t\t @Override\n\t\t public void onItemClick(AdapterView<?> parent, final View view,\n\t\t int position, long id) {\n\t\t \t \n\t\t final Item item = (Item) parent.getItemAtPosition(position);\n\t\t \t// custom dialog\n\t\t\t\t\tfinal Dialog dialog = new Dialog(ctx);\n\t\t\t\t\tdialog.setContentView(R.layout.shop_dialog);\n\t\t\t\t\tdialog.setTitle(\"Buy \" + item.GetName());\n\t\t \n\t\t\t\t\t// set the custom dialog components - text, image and button\n\t\t\t\t\tfinal EditText editText = (EditText) dialog.findViewById(R.id.amountofItem);\n\t\t\t\t\t\n\t\t\t\t\tTextView text = (TextView) dialog.findViewById(R.id.currentMoney);\n\t\t\t\t\ttext.setText(\"Current Money: \" + MainGameActivity.getPlayerFromBackpack().GetMoney());\n\n\t\t \n\t\t\t\t\tButton sellButton = (Button) dialog.findViewById(R.id.button2shop);\n\t\t\t\t\tButton backButton = (Button) dialog.findViewById(R.id.button1shop);\t\t\n\t\t\t\t\t\n\t\t\t\t\tsellButton.setText(\"Sell\");\n\t\t\t\t\t//if button is clicked, buy\n\t\t\t\t\tsellButton.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t/* Sell sequence here */\n\t\t\t\t\t\t\tInteger Amount = Integer.valueOf(editText.getText().toString());\n\t\t\t\t\t\t\tif ((Amount > 0) && (Amount <= item.GetNItem())){\n\t\t\t\t\t\t\t\tMainGameActivity.getPlayerFromBackpack().SetMoney(MainGameActivity.getPlayerFromBackpack().GetMoney() + Amount * item.GetPrice() / 2);\n\t\t\t\t\t\t\t\titem.SetNItem(item.GetNItem() - Amount);\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t\tshowSellItem();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t/* Showing message that Amount is not valid */\n\t\t\t\t\t\t\t\tTextView textError = (TextView) dialog.findViewById(R.id.messageItem);\n\t\t\t\t\t\t\t\ttextError.setText(\"Amount is not valid!\");\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}); \t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// if button is clicked, close the custom dialog\n\t\t\t\t\tbackButton.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t}); \n\t\t \n\t\t\t\t\tdialog.show();\n\t\t }\n\t\t });\t\n\t}", "public int getInventorySize(){\n return inventory.size();\n }", "public void displayAmount(){\n synchronized(this){\n for( ClientHandler client: clientArray){\n client.getOutput().println(\"Bid of \" + currentItem.getNewPrice() +\n \" placed by \" + currentItem.getHighestBidder().getClientDetails() + \n \" for \" + currentItem.getItem() + \n \".\\n\");\n }\n }\n }", "@Override\n\tpublic void browseItems(Session session){\n\t\t//exception handling block\n\t\ttry{\n\t\t\tbrowseItem=mvc.browseItems(session);\n\t\t\t//displaying items from database\n\t\t\tSystem.out.println(\"<---+++---Your shopping items list here----+++--->\");\n\t\t\tSystem.out.println(\"ItemId\"+\" \"+\"ItemName\"+\" \"+\"ItemType\"+\" \"+\"ItemPrice\"+\" \"+\"ItemQuantity\");\n\t\t\tfor(int i = 0; i < browseItem.size(); i++) {\n\t System.out.println(browseItem.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App Exception- Browse Items: \" +e.getMessage());\n\t\t}\n\t}", "List<InventoryItem> getInventory(String username);", "public void purchaseItem(PlayerModel mod, TowerModel model){\n\t\tint money = mod.getMoney();\n\t\tSystem.out.println(money);\n\t\tsandDollars = money - model.getPrice();\n\t\tSystem.out.println(sandDollars);\n\t\tsandDollarsLabel.setText(\"\" + sandDollars);\n\t}", "protected void showReservations() {\n storageDao.findAllRented()\n .forEach(System.out::println);\n }", "public void showPurchase(Client c1) {\n\t\tfor(Book book: c1.getBuyBookList()) {\n\t\t\tSystem.out.println(\"Liste des livres acheté : \\nTitre : \" \n\t\t+ book.getTitle() + \"\\nAuteur : \" + book.getAuthor() + \"\\n\");\n\t\t}\n\t}", "public Inventory getInventory() {\n return inventory;\n }", "@Override\n\tpublic void onInventoryChanged() {\n\t\tsuper.onInventoryChanged();\n\t}" ]
[ "0.757221", "0.7139621", "0.71369165", "0.7091125", "0.70189863", "0.695093", "0.69477713", "0.69171333", "0.69135225", "0.68562376", "0.68045455", "0.67778367", "0.6773057", "0.67653525", "0.67628145", "0.67540836", "0.6714807", "0.66523826", "0.6645698", "0.66313916", "0.6609876", "0.657853", "0.65764314", "0.65728265", "0.65704954", "0.65632635", "0.65343857", "0.64631104", "0.6462965", "0.643478", "0.63757724", "0.6361601", "0.63452035", "0.6340512", "0.62461036", "0.6239452", "0.6233066", "0.62036014", "0.6202674", "0.618947", "0.61670995", "0.616199", "0.6120043", "0.6119109", "0.61185145", "0.61109024", "0.61017835", "0.6093295", "0.60687613", "0.603789", "0.60068125", "0.60066575", "0.5994891", "0.5988339", "0.5983969", "0.5982897", "0.59791785", "0.5962536", "0.5955473", "0.59455234", "0.5938234", "0.5934696", "0.5918507", "0.59146935", "0.5901037", "0.5899864", "0.5897404", "0.58432806", "0.5836997", "0.5836529", "0.58360493", "0.58337307", "0.58314407", "0.58198535", "0.5812239", "0.57993263", "0.57966244", "0.57883835", "0.5785276", "0.5781888", "0.5764764", "0.57606655", "0.57537925", "0.57415444", "0.57394356", "0.57346463", "0.57294685", "0.57134885", "0.57100457", "0.57093453", "0.57028544", "0.57004154", "0.5678542", "0.5678338", "0.56769365", "0.56767344", "0.56620425", "0.56598026", "0.5658944", "0.5657679" ]
0.584037
68
Function to get the sell price of the item being sold
private static int sellGold(String itemToSell){ int goldReceived = 0; if(itemToSell.equals("Leather Helmet")){ leatherHelmet LeatherHelmet = new leatherHelmet(); goldReceived = LeatherHelmet.getSellPrice(); return goldReceived; }else if(itemToSell.equals("Chest Plate")){ leatherChestPlate LeatherChestPlate = new leatherChestPlate(); goldReceived = LeatherChestPlate.getSellPrice(); return goldReceived; }else if(itemToSell.equals("Short Sword")){ shortSword ShortSword = new shortSword(); goldReceived = ShortSword.getSellPrice(); return goldReceived; }else if(itemToSell.equals("Long Sword")){ longSword LongSword = new longSword(); goldReceived = LongSword.getSellPrice(); return goldReceived; }else if(itemToSell.equals("Great Sword")){ greatSword GreatSword = new greatSword(); goldReceived = GreatSword.getSellPrice(); return goldReceived; }else if(itemToSell.equals("Healing Potion")){ healingPotion HealingPotion = new healingPotion(); goldReceived = HealingPotion.getHealingPotionSellPrice(); return goldReceived; }else if(itemToSell.equals("Greater Healing Potion")){ greaterHealingPotion GreaterHealingPotion = new greaterHealingPotion(); goldReceived = GreaterHealingPotion.getGreaterHealingPotionSellPrice(); return goldReceived; }else{ return goldReceived; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSellPrice(){\n\t\treturn (int)(price * 0.6);\n\t}", "public BigDecimal getSellingPrice() {\n return sellingPrice;\n }", "public double getItemPrice(){\n\t\t\t String priceStr;\n\t\t\t double price;\n\t\t\t String elemVal = driver.findElement(productPrice).getText();\n\t Reporter.log(\"==========Item Price is \" + elemVal + \"=======\", true);\n\t priceStr = elemVal.substring(1, elemVal.length());\n\t //return double as it is a price\n\t price = Double.parseDouble(priceStr);\n\t return price;\n\t }", "Price getTradePrice();", "public double getSellPrice(ShipType type) {\n return prices.get(type) * SELLPRICEPENALTY;\n }", "public double getDiscountedPrice(double itemPrice);", "double purchasePrice();", "int getSellQuantity();", "public int getPrice()\r\n\t{\r\n\t\treturn theItem.getPrice();\r\n\t}", "public static int getPrice() {\n return PRICE_TO_BUY;\n }", "double getPrice();", "double getPrice();", "double getPrice();", "public BigDecimal getActualSellingPrice() {\n return actualSellingPrice;\n }", "public int getPrice() {\n for (Item item : items) {\n price +=item.getPrice();\n }\n return price;\n }", "private double generateSellPrice(ShipType type) {\n return type.getPrice();\n }", "public double calculatePrice() {\r\n\t\treturn menuItem.getPrice() * quantity;\t\r\n\t}", "protected Double getItemPrice() {\n return itemPrice;\n }", "public double getSalePrice() {\n return salePrice;\n }", "public double getPricePerItem()\r\n {\r\n return pricePerItem;\r\n }", "@Override\n\tpublic java.lang.String getAskingPrice() {\n\t\treturn _buySellProducts.getAskingPrice();\n\t}", "public double getBuyPrice() {\n return buyPrice;\n }", "public float getItemPrice()\n\t{\n\t\treturn itemPrice;\n\t}", "public float getSellingPrice () {\n return (float) 0.0;\n }", "long getPrice();", "public double getPrice();", "public float getShopSellPrice(Integer shopID){\n\t\tString query = \"SELECT `sell` FROM `shops` WHERE `shop_id`=\"+shopID+\";\";\n\t\tdebugOut(\"Executing query: \"+ query);\n\t\tString sellPrice = \"0\";\n\t\ttry {\n\t\t\tPreparedStatement sql = connection.prepareStatement(query);\n\t\t\tResultSet result = sql.executeQuery();\n\t\t\tdebugOut(\"Query Completed\");\n\t\t\tresult.next();\n\t\t\tsellPrice= result.getString(\"sell\");\n\t\t}catch (SQLException e) {\n\t\t\tdebugOut(\"SQL Problem -- could not find shop's sell price\");\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\tdebugOut(\"getShopBuyPrice returned a value of \"+sellPrice+\" for the shopID \"+shopID);\n\t\tfloat sellPriceFloat = Float.parseFloat(sellPrice);\n\t\treturn sellPriceFloat;\n\t}", "public Double getPrice();", "public double price(){\n if (basePrice() >1000){\n return basePrice() *0.95;\n }else\n return basePrice() * 0.98;\n }", "public int salePrice(){\n return this.salePrice;\n }", "public double getSalePrice() {\n\t\n\t\treturn regularPrice;\n\t}", "public int calcMarketPrice() {\r\n player = Context.getInstance().getPlayer();\r\n //Random r = new Random();\r\n int techLevel = player.getCurrentPlanet().getTechLevel();\r\n Event event = player.getCurrentPlanet().getEvent();\r\n Resource resource = player.getCurrentPlanet().getResource();\r\n double price = basePrice;\r\n price += (ipl * (techLevel - mtlb)) + variance;\r\n if (player.getCurrentPlanet().getTechLevel() == this.ttp) {\r\n price *= Context.TECH_PRICE_MULT;\r\n }\r\n if (event.equals(this.ie)) {\r\n price *= event.getUpMult();\r\n } else if (event.equals(this.de)) {\r\n price *= event.getDownMult();\r\n }\r\n if (resource.equals(this.cr)) {\r\n price *= resource.getDownMult();\r\n } else if (resource.equals(this.er)) {\r\n price *= resource.getUpMult();\r\n }\r\n price *= (((double) player.getTrader() / DFIFTY) + 1.0);\r\n int finalPrice = (int) price;\r\n if (player.getTrader() > 0) {\r\n double discountedPrice = price;\r\n double trader = (double) player.getTrader();\r\n discountedPrice -= (price) * (4.0 * trader / PERCENT);\r\n return (int) discountedPrice;\r\n } else {\r\n return finalPrice;\r\n }\r\n }", "public double getPriceForItem(Item i)\n\t{\n\t\tdouble price = 0.0;\n\t\tprice = strDAO.getPriceForStorenameAndItem(name, i);\n\t\treturn price;\t\t\t\n\t}", "double calculatePrice();", "public double findItemPrice(String item){\n\t\t//TODO\n\t\t\n\t\tdouble price=0.0;\n\t\tfor(int i=0; i<ITEMS.length;i++) {\n\t\t\t\n\t\t\tif(ITEMS[i].equalsIgnoreCase(item)) {\n\t\t\t\tprice=PRICES[i];\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}return price;\n\t}", "public double calculateMoneySell(int quantity){\n\t\treturn this.getPriceSell() * quantity + (quantity * this.getPriceSell()) * 0.1;\n\t}", "public double getPrice()\r\n\t{\r\n\t\tif(isSpecial())\r\n\t\t{\r\n\t\t\treturn price * .5;\r\n\t\t}\r\n\t\treturn price;\r\n\t}", "int getPrice();", "private int getPrice(HardwareSet hws, boolean used){\n if(isNull(hws)) return 0;\n return used ? hws.getTotalSellPrice() : hws.getTotalPrice();\n }", "@Override\n\tpublic double getPrice() {\n\t\t\n\t\treturn 2000;\n\t}", "String getPrice();", "abstract public double getPrice();", "@Override\n\tpublic int getPrice() {\n\t\treturn product.getPrice();\n\t}", "public int getSalePrice() {\n return salePrice;\n }", "int getSellCurrent();", "public Integer getSellNumber() {\n return sellNumber;\n }", "public AmountType getItemPrice() {\n\t return this.itemPrice;\n\t}", "public double getPrice(){\n\t\treturn Price; // Return the product's price\n\t}", "@Override\n\tpublic double getItemPrice(String itemCode) {\n\n\t\treturn 100.00;\n\t}", "float calculatePrice () \n\t{\n\t\tfloat final_price = 0;\n\t\tfinal_price = (float)(price * quantity); // price * number of items\n\t\tfinal_price += final_price*(.10); // add tax\n\t\tif(perishable.equals(\"P\"))\n\t\t{\n\t\t\tfloat ship = (float)(20* weight)*quantity; // add shipping\n\t\t\tship += ship*.20;\n\t\t\tfinal_price += ship;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal_price += (20* weight)*quantity; // add shipping\n\t\t}\n\t\treturn final_price;\n\t}", "public Double getProductPrice(String product){\n return services.get(product);\n }", "TickerPrice getPrice(String symbol);", "public double getSellableSell(ShipUpgrade upgrade) {\n return upgrade.getPrice() * SELLPRICEPENALTY;\n }", "@Override\n\tpublic int getPrice(int itemNumber) {\n\t\treturn inventory.getItemPrice(itemNumber);\n\t}", "Price getPrice() throws Exception;", "public double getPrice(){\r\n\t\treturn price;\r\n\t}", "org.adscale.format.opertb.AmountMessage.Amount getExchangeprice();", "public double price() {\n return price;\n }", "@Override\n public double getPrice() {\n return souvenir.getPrice() + 20;\n }", "BigDecimal getPrice();", "public double getPrice(){\r\n\t\ttry {\r\n\t\t\treturn this.workerobj.getDouble(WorkerController.PRICE);\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}", "public Double getSaleBoxPrice() {\r\n return saleBoxPrice;\r\n }", "public double getPrice(){\n\t\t\n\t\treturn price;\n\t}", "public String getSaleprice() {\n return saleprice;\n }", "private String getShippingPrice(Document item) {\n String result;\n result = item.select(\"span[class^=shippingPrice]\").html();\n return result;\n }", "public static double getItemPrice(String item) {\n\t\tdouble price;\t\n\t\tswitch(item) {\n\t\tcase \"bread\":\n\t\t\tprice = 4.99;\n\t\t\tbreak;\n\t\tcase \"water\":\n\t\t\tprice = 2.99;\n\t\t\tbreak;\n\t\tcase \"apple\":\n\t\t\tprice = 1.50;\n\t\t\tbreak;\n\t\tcase \"bear\":\n\t\t\tprice = 7.90;\n\t\t\tbreak;\n\t\tcase \"red bull\":\n\t\t\tprice = 2.59;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tprice = 0.00;\n\t\t\tbreak;\t\n\t\t}\n\t\t\n\t\treturn price;\n\t}", "public String getIndividualProductPrice(String itemName)\n\t{\n\n\t\tString fixedString = fixString(itemName);\n\t\tString price = NO_PRICE_FOUND;\n\t\ttry {\n\t\t\tScanner scanner = getScanner(fixedString);\n\t\t\tprice = getPriceFromScanner(scanner);\n\n\t\t}catch ( Exception ex ) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn price;\n\t}", "public BigDecimal\tgetPrice();", "public float getPrice() {\n\t\treturn this._entree.getPriceWithAddons() + this._side.getPrice() + this._drink.getPrice() - 1f;\n\t}", "public double getPrice(){\n\t\treturn this.price;\n\t}", "public double getPrice(){\n\t\t\treturn price;\n\t\t}", "public int getPrice();", "public double getItemPrice(String itemBarCode) {\n double itemPrice = 0 ;\n Map<String,GroceryItem> itemsMap = readItemsFromFile();\n GroceryItem groceryItem = itemsMap.get(itemBarCode.trim());\n\n\n itemPrice = groceryItem.getPrice();\n return itemPrice;\n }", "public Number getPrice() {\n return (Number)getAttributeInternal(PRICE);\n }", "public double getPrice() {\n double price = BASE_PRICE;\n for (Topping topping : toppings) {\n if (topping.isPremium()) {\n price += 1.25;\n } else {\n price += 0.75;\n }\n }\n return price;\n }", "public double getPrice() \n\t{\n\t\treturn price;\n\t}", "public double getPrice() \n\t{\n\t\treturn price;\n\t}", "public int getPrice() {\r\n\t\tif (this.base.equals(\"tower\")) {\r\n\t\t\treturn price;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public double getPrice()\n {\n \treturn price;\n }", "int getBuyQuantity();", "@Override\n public double getPrice(){\n \n return currentPrice; \n }", "public double getPrice(){\n\t\treturn price;\n\t}", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "private ProductBookSide getSellSide() {\n\t\treturn sellSide;\n\t}", "public double getPrice()\r\n {\r\n return price;\r\n }", "public double getPrice() {\n return price_;\n }", "public double getPrice()\n\t{\n\t\treturn this.price;\n\t}", "public double getPrice() {\n return price_;\n }", "public double getPrice() {\n\t\treturn regularCheckOut.getPrice() * subscriberDiscount;\n\t}", "public double getPotatoesPrice();", "private String getBillPrice() {\n double cost = 0.00;\n\n for (MenuItem item : bill.getItems()) {\n cost += (item.getPrice() * item.getQuantity());\n cost += item.getExtraIngredientPrice();\n cost -= item.getRemovedIngredientsPrice();\n }\n\n return String.format(\"%.2f\", cost);\n }", "@Override\n\tpublic float getPrice() {\n\t\treturn 70.0f;\n\t}", "@Override\n public double calculatePrice() {\n return getVolume() * (1.0 + (getAlcoholPercent() / 100.0)) * this.liquids.size();\n }", "public BigDecimal getPriceEntered();", "public double getPrice() {\r\n\t\treturn this.price;\r\n\t}", "public double getPrice() {\r\n\t\treturn this.price;\r\n\t}", "public double getPrice() {\r\n\t\treturn this.price;\r\n\t}" ]
[ "0.80218947", "0.7608042", "0.7487964", "0.7403659", "0.7360146", "0.7340262", "0.7336093", "0.7328983", "0.72849804", "0.72821003", "0.72773093", "0.72773093", "0.72773093", "0.7240811", "0.7146452", "0.7141659", "0.71170074", "0.709134", "0.7064671", "0.70596915", "0.7057124", "0.70491594", "0.7038465", "0.70382714", "0.70351076", "0.70276636", "0.6998989", "0.69966286", "0.6988936", "0.69779783", "0.69727373", "0.697027", "0.69492805", "0.6946401", "0.6925537", "0.69235", "0.69178015", "0.69038576", "0.68978405", "0.68739814", "0.6860485", "0.6856389", "0.68375844", "0.683156", "0.6808153", "0.6791792", "0.6790202", "0.6777946", "0.67566556", "0.67546636", "0.67493796", "0.67398816", "0.6735051", "0.67337364", "0.6725669", "0.67148876", "0.67134404", "0.67103326", "0.67096454", "0.6706029", "0.67055595", "0.67039484", "0.6701469", "0.6693311", "0.6691189", "0.66832566", "0.6682561", "0.668103", "0.6678318", "0.6677887", "0.6668926", "0.6665802", "0.6664772", "0.66645277", "0.6657869", "0.6655433", "0.6655433", "0.66552436", "0.6652993", "0.66499186", "0.6648832", "0.66422313", "0.6633199", "0.6633199", "0.6633199", "0.6633199", "0.6626999", "0.6623896", "0.6618668", "0.6613195", "0.66124415", "0.6609968", "0.6604814", "0.66047686", "0.6597029", "0.65966773", "0.6596572", "0.6594186", "0.6594186", "0.6594186" ]
0.6678272
69
Function that scales skeleton health based on player level
private static int skeletonHealthScale(int skeletonHealth, int playerLevel){ if(playerLevel > 1){ skeletonHealth = skeletonHealth + (5 * playerLevel); return skeletonHealth; }else{ return skeletonHealth; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int skeletonAttackScale(int skeletonAttack, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonAttack = skeletonAttack + (1 * playerLevel);\r\n return skeletonAttack;\r\n }else{\r\n return skeletonAttack;\r\n }\r\n }", "private static int skeletonGoldScale(int skeletonGold, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonGold = skeletonGold + ( 1* playerLevel);\r\n return skeletonGold;\r\n }else{\r\n return skeletonGold;\r\n }\r\n }", "@Override\n public void scaleStats() {\n this.damage = BASE_DMG + (this.getLevel() * 3);\n }", "private static int devilHealthScale(int devilHealth, int playerLevel){\r\n if(playerLevel > 4){\r\n devilHealth = devilHealth + ((10 * (playerLevel - 4)));\r\n }\r\n return devilHealth;\r\n }", "private static int fireballDamageScale(int fireballDamage, int playerLevel){\r\n int totalDamage = 0;\r\n totalDamage = fireballDamage + (2 * playerLevel);\r\n return totalDamage;\r\n }", "private void updateHealth() {\n float percentage = (float) game.getPlayerComponent().getHealth() / (float) game.getPlayerComponent().getMaxHealth(); //Possible placed in controller\n healthBar.setWidth(healthBarMaxWidth * percentage);\n }", "@Override\n public void upgrade(int level){\n System.out.println(\"Level adfasdfasdf: \" + level);\n System.out.println(getLevel());\n\n if(level > 5) level = 5;\n\n if(level > 1){\n for (int i = 1; i < level; i++) levelUp();\n }\n\n /*\n //System.out.println(\"\\n-------\");\n //System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n\n double percentage = growth(level);\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (level % 2 != 0) range++;\n\n //System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n //System.out.println(\"-------\\n\");*/\n }", "public double getHealthScale ( ) {\n\t\treturn extract ( handle -> handle.getHealthScale ( ) );\n\t}", "public void update() {\n remHpWidth = healthbarWidth * ent.getCurrentHealth() / ent.getMaxHealth();\n lostHpWidth = healthbarWidth - remHpWidth;\n }", "public void checkHealth(){\n if (this.getHealth() < this.initialHealth/2){\n this.setImgSrc(\"/students/footballstudent1.png\");\n this.getTile().setImage(\"/students/footballstudent1.png\");\n }\n }", "private void percentageScaling() {\n switch (slot) {\n case Torso -> updateBonusStats(1);\n case Head -> updateBonusStats(0.8);\n case Legs -> updateBonusStats(0.6);\n }\n }", "private static int fireballMPScale(int fireballCost, int playerLevel){\r\n int MPCost = 0;\r\n MPCost = fireballCost + (1 * playerLevel);\r\n return MPCost;\r\n }", "Float getHealth();", "public void makeHero()\r\n { \r\n maxHealth = 100;\r\n health = maxHealth;\r\n }", "public void setHealth(double h){\n health = h;\n }", "public int getHealthScaling()\r\n {\r\n return mHealthScaling;\r\n }", "public void heal(int healAmount){\r\n health+= healAmount;\r\n }", "float getPercentHealth();", "public void addHealthLevel(int points)\n {\n healthLevel = healthLevel + points;\n showHealthLevel();\n if (healthLevel < 0) \n {\n Greenfoot.playSound(\"game-over.wav\");\n Greenfoot.stop();\n }\n }", "public void heal(float health) {\r\n \t\tthis.health += health;\r\n \t\tif(health > maxHealth) {\r\n \t\t\thealth = maxHealth;\r\n \t\t}\r\n \t}", "void gainHealth(int points) {\n this.health += points;\n }", "private static int devilAttackScale(int devilAttack, int playerLevel){\r\n if(playerLevel > 4){\r\n devilAttack = devilAttack + ((2 * (playerLevel - 4)));\r\n \r\n }\r\n return devilAttack;\r\n }", "public void heal2()\r\n {\r\n this.health = 900;\r\n Story.healText2();\r\n }", "public void setMaxHealth() {\n\t\tthis.maxHealth *= level / 10;\n\t}", "public void upgradeStats()\n {\n reload-=1;\n damage*=2;\n range+=50;\n }", "@Override\r\n\tpublic void act(float delta) {\r\n\r\n\t\t// position\r\n\t\tsetSpritesPosition();\r\n\t\tif(previousHealth != g.i().playerHealth)\r\n\t\t\tcover.setScale((100f -g.i().playerHealth)/100f, 1f);\r\n\t\tstateTime += Gdx.graphics.getDeltaTime();\r\n\t\tcurrentFrame = healthBarAnimation.getKeyFrame(stateTime, true);\r\n\t\theroHealth.setRegion(currentFrame);\r\n\t\t\r\n\t\tpreviousHealth = g.i().playerHealth;\r\n\r\n\t}", "private void UpdateAdds() {\n Adds = (Level + CurrentHealth)/10;\n }", "public void heal1()\r\n {\r\n this.health = 700;\r\n Story.healText1();\r\n }", "public void updateStats( ) {\r\n\t\tperseverance = owner.perseverance;\r\n\t\tobservation = owner.observation;\r\n\t\tintellect = owner.intellect;\r\n\t\tnegotiation = owner.negotiation;\r\n\t\ttact = owner.tact;\r\n\t\tstrength = owner.strength;\r\n\r\n\t\txCoord = owner.xCoord;\r\n\t\tyCoord = owner.yCoord;\r\n\r\n\t\tmaxHealth = 2400 + ( perseverance * 200 );\r\n\r\n\t\thealth = maxHealth;\r\n\r\n\t\tsetDamages( );\r\n\t}", "@Override\n public void levelUp(){\n //System.out.println(\"Level: \" + getLevel());\n if (getLevel() > 5) return;\n\n /* System.out.println(\"\\n-------\");\n System.out.println(\"Level: \" + getLevel());\n System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n*/\n double percentage = growth(getLevel()) + growthRate;\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (getLevel() % 2 != 0) range++;\n setLevel(getLevel() + 1);\n\n /* System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n System.out.println(\"-------\\n\");*/\n }", "private static int maxHealth(int health){\r\n int mHealth = 0;\r\n mHealth = health + 5;\r\n return mHealth; \r\n }", "private float getScale(Entity entity) {\n \tif (entity instanceof EntityPlayer) {\n \t\t//return ???\n \t}\n \treturn isChild ? 2 : 1;\n }", "public void onLivingUpdate() {\n if (!this.onGround && this.motionY < 0.0D)\n this.motionY *= 0.6D;\n\n\n if (this.ticksExisted % 20 == 0 && this.getHealth() != this.getMaxHealth() && this.getHealth() >= 1)\n this.setHealth(this.getHealth() + 1);\n\n if (worldObj.isRemote) {\n if (this.isSitting())\n worldObj.spawnParticle(EnumParticleTypes.REDSTONE, posX, posY + 1.5, posZ, 0, 0, 0);\n }\n\n if (worldObj.isRemote) {\n MoWitchAndWizard.proxy.spawnParticles(\"air_normal\", this);\n }\n\n super.onLivingUpdate();\n }", "public void setPlayerMaxHealth(Player player) {\n int health=16+(player.getLevel()/2);\n if(health>40) health=40;\n // player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, Integer.MAX_VALUE, player.getLevel(), true));\n player.setMaxHealth(health);\n }", "protected void renderHealth(Screen screen) {\n\t\tif (health >= 250) screen.renderMob((int) x, (int) y - 1, Sprite.health_10);\n\t\telse if (health >= 225) screen.renderMob((int) x, (int) y - 1, Sprite.health_9);\n\t\telse if (health >= 200) screen.renderMob((int) x, (int) y - 1, Sprite.health_8);\n\t\telse if (health >= 175) screen.renderMob((int) x, (int) y - 1, Sprite.health_7);\n\t\telse if (health >= 150) screen.renderMob((int) x, (int) y - 1, Sprite.health_6);\n\t\telse if (health >= 125) screen.renderMob((int) x, (int) y - 1, Sprite.health_5);\n\t\telse if (health >= 100) screen.renderMob((int) x, (int) y - 1, Sprite.health_4);\n\t\telse if (health >= 75) screen.renderMob((int) x, (int) y - 1, Sprite.health_3);\n\t\telse if (health >= 50) screen.renderMob((int) x, (int) y - 1, Sprite.health_2);\n\t\telse if (health >= 25) screen.renderMob((int) x, (int) y - 1, Sprite.health_1);\n\t}", "int getHealth();", "@Override\n\tpublic void setHealth(double health) {\n\n\t}", "public void incLevel(int lvl){this.Level=this.XP/(100);}", "private void drawHealthPoints() {\n int i = 0;\n for (; i < Math.floor(gameWorld.getHero().getHealthPoints()); i++) {\n hudBatch.draw(heartFull, i * HEART_SIZE, VIRTUAL_HEIGHT - HEART_SIZE, HEART_SIZE, HEART_SIZE);\n }\n if (gameWorld.getHero().getHealthPoints() % 1 != 0) {\n hudBatch.draw(heartHalf, i++ * HEART_SIZE, VIRTUAL_HEIGHT - HEART_SIZE, HEART_SIZE, HEART_SIZE);\n }\n for (; i < gameWorld.getHero().getMaxHealthPoints(); i++) {\n hudBatch.draw(heartEmpty, i * HEART_SIZE, VIRTUAL_HEIGHT - HEART_SIZE, HEART_SIZE, HEART_SIZE);\n }\n }", "public abstract void setHealth(int health);", "public void setHealth(double Health){\r\n health = Health;\r\n }", "@Override\n public void setLevel(int level) {\n if (level > 1) {\n this.level = level;\n scaleUp();\n percentageScaling();\n }\n }", "private void determineState() {\n if ( .66 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.HIGH ) {\n currentState = HealthState.HIGH;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"highHealth\" ) ) );\n }\n }\n } else if ( .33 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.MEDIUM ) {\n currentState = HealthState.MEDIUM;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"mediumHealth\" ) ) );\n }\n }\n } else if ( .0 <= ( ( float ) currentHealth / maxHealth ) ) {\n if ( currentState != HealthState.LOW ) {\n currentState = HealthState.LOW;\n for ( Image i : healthMeter ) {\n i.setDrawable( new TextureRegionDrawable( healthBars.findRegion( \"lowHealth\" ) ) );\n }\n }\n }\n }", "public void normalize()\n {\n\tdef += 200*counter;\n\tdmg -= 0.5*counter;\n\tcounter = 0;\n }", "public void checkHealth() {\n if (health == 0) {\n this.texture = new Texture (\"soggy-\" + tex + \".png\");\n }\n }", "public void punch (int health)\n {\n\thealth -= 8;\n\thealth2 = health;\n }", "@Override\r\n\tpublic void heal() {\n\t\tSystem.out.println(\"Paladin \" + super.getName() + \" heals for 50 points.\");\r\n\t\tsuper.setHitPoints(super.getHitPoints() + 50);\r\n\t}", "public static void resetMana(Player player) {\n\t\tif (mode!=Mode.BOSSBAR) return;\n\t\tProfile profile = Profile.loadOrCreate(player);\n\t\tif (!manaBar.containsKey(player.getUniqueId())) {\n\t\t\tServerBossBar bar = ServerBossBar.builder().from(baseBar).percent(1f).build();\n\t\t\tbar.addPlayer(player);\n\t\t\tmanaBar.put(player.getUniqueId(), bar);\n\t\t}\n\t\tif (profile.getRaceData().isPresent()) {\n\t\t\ttry {\n\t\t\t\tvirtualMax.put(player.getUniqueId(), \n\t\t\t\t\t\t(int)engine.evaluate(\n\t\t\t\t\t\t\t\tspawnMana.replace(\"level\", String.valueOf(profile.getRaceData().get().getLevel()))\n\t\t\t\t\t\t\t\t) );\n\t\t\t} catch (Exception e) {\n\t\t\t\tvirtualMax.put(player.getUniqueId(), 10);\n\t\t\t\tWarCraft.w(\"Could not compute mana level!\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tvirtualMana.put(player.getUniqueId(), (double)virtualMax.get(player.getUniqueId()));\n\t\t}\n\t}", "public void updateCreatureHealth(Entity entity) {\n HealthAspect aspect = entity.getAspect(HealthAspect.class);\n if (aspect == null) {\n Logger.UNITS.logError(\"Trying to update health of creature \" + entity + \" with no HealthAspect\");\n return;\n }\n changeParameter((Unit) entity, HealthParameterEnum.FATIGUE, 0.01f);\n changeParameter((Unit) entity, HealthParameterEnum.HUNGER, 0.01f);\n }", "public void SetHealth(int h)\n{\n\thealth=h;\n}", "public LevelInterface generateLevel (GamePlay playerMetrics);", "public void onUpdate()\n {\n super.onUpdate();\n\n if (!this.worldObj.isRemote && this.getBossHP() != this.health)\n {\n this.setBossHP();\n }\n }", "public void healthBarLowAnimation() {\n\t\tTimeline timeline = new Timeline();\n\t\ttimeline.setCycleCount(Timeline.INDEFINITE);\n\t\ttimeline.setAutoReverse(true);\n\t\tKeyValue kvOpp = new KeyValue(opponentHealthBar.heightProperty(),opponentHealthBar.getHeight()-5);\n\t\tKeyValue kvLoc = new KeyValue(localHealthBar.heightProperty(),localHealthBar.getHeight()-5);\n\t\tKeyFrame kfOpp = new KeyFrame(Duration.millis(500), kvOpp);\n\t\tKeyFrame kfLoc = new KeyFrame(Duration.millis(500), kvLoc);\n\t\ttimeline.getKeyFrames().addAll(kfOpp,kfLoc);\n\t\ttimeline.play();\n\t}", "private static int devilGoldScale(int devilGold, int playerLevel){\r\n if(playerLevel > 4){\r\n devilGold = devilGold + ( 1* playerLevel);\r\n return devilGold;\r\n }else{\r\n return devilGold;\r\n }\r\n }", "public float getHealth(){\n return health.getHealth();\n }", "public int heal(int health) {\r\n lifepoints += health;\r\n int left = 0;\r\n if (lifepoints > getMaximumLifepoints()) {\r\n left = lifepoints - getMaximumLifepoints();\r\n lifepoints = getMaximumLifepoints();\r\n }\r\n lifepointsUpdate = true;\r\n return left;\r\n }", "public int getHealth();", "public void scaleAnimetion(SpriteBatch batch){\n }", "public void setHealth(int health)\r\n {\r\n this.health = health;\r\n }", "public void buyHealth() {\n this.healthMod++;\n heathMax += 70 * healthMod;\n }", "public void setHealth(float health) {\r\n \t\tthis.health = health;\r\n \t}", "public void rollStats() {\n\t\tRandom roll = new Random();\n\t\tint rolled;\n\t\tint sign;\n\t\t\n\t\t\n\t\trolled = roll.nextInt(4);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetMaxHealth(getMaxHealth() + rolled*(getDifficulty()+5/5));\n\t\t\tsetHealth(getMaxHealth());\n\t\t} else {\n\t\t\tsetMaxHealth(getMaxHealth() - rolled*(getDifficulty()+5/5));\n\t\t\tsetHealth(getMaxHealth());\n\t\t}\n\t\t\n\t\trolled = roll.nextInt(2);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetAttack(getAttack() + rolled*(getDifficulty()+5/5));\n\t\t} else {\n\t\t\tsetAttack(getAttack() - rolled*(getDifficulty()+5/5));\n\t\t}\n\t\t\n\t\trolled = roll.nextInt(2);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetDefense(getDefense() + rolled*(getDifficulty()+5/5));\n\t\t} else {\n\t\t\tsetDefense(getDefense() - rolled*(getDifficulty()+5/5));\n\t\t}\n\t\t\n\t\trolled = roll.nextInt(2);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetSpeed(getSpeed() + rolled*(getDifficulty()+5/5));\n\t\t} else {\n\t\t\tsetSpeed(getSpeed() - rolled*(getDifficulty()+5/5));\n\t\t}\n\t\t\n\t}", "public void heal3()\r\n {\r\n this.health = 1200;\r\n Story.healText3();\r\n }", "public double getHealth() { return health; }", "private double scaleHeatrate(double loadperc) {\n if (loadperc >= 0 && loadperc < 0.25 ) {\r\n return heatrate *= 1.3;\r\n }\r\n else if (loadperc >= 0.25 && loadperc < 0.5 ) {\r\n return heatrate *= 1.2;\r\n }\r\n else if (loadperc >= 0.5 && loadperc < 0.75 ) {\r\n return heatrate *= 1.1;\r\n }\r\n else {\r\n return heatrate;\r\n }\r\n }", "public void upgrade(){\n\n //upgrade stats\n this.setLevel(this.getLevel() + 1);\n this.setMaxHealth(this.getMaxHealth() + 500);\n this.setHealth(this.getHealth() + 500);\n this.maxCapacity += 20;\n\n }", "public int getMaxHealth();", "private void healthBarDamageAnimation(int player, double reduction) {\n\t\tTimeline timeline = new Timeline();\n\t\ttimeline.setCycleCount(1);\n\t\ttimeline.setAutoReverse(false);\n\t\tKeyValue kv = null;\n\t\tif (player == OPPONENT) {\n\t\t\tkv = new KeyValue(opponentHealthBar.widthProperty(),reduction);\n\t\t} else if (player == LOCAL) {\n\t\t\tkv = new KeyValue(localHealthBar.widthProperty(),reduction);\n\t\t}\n\t\tKeyFrame kf = new KeyFrame(Duration.millis(500), kv);\n\t\ttimeline.getKeyFrames().add(kf);\n\t\ttimeline.play();\n\t}", "public void checkLevel(){\n if(score<50){\n level = 1;\n asteroidsMaxNumber = 5;\n }\n if(score>50 && level == 1){\n level = 2;\n asteroidsMaxNumber = 7;\n }\n if(score>100 && level == 2){\n level = 3;\n asteroidsMaxNumber = 10;\n }\n if(score>200 && level == 3){\n level = 4;\n asteroidsMaxNumber = 13;\n }\n if(score>350 && level == 4){\n level = 5;\n asteroidsMaxNumber = 15;\n }\n }", "public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}", "public void drawHealthBar() {}", "@Override\n public int maxHealth() {\n return 25;\n }", "public void meditate() {\n int currentSamuraiHealth = this.getHealth();\n this.setHealth(currentSamuraiHealth/2 + currentSamuraiHealth);\n System.out.println(\"Samurai's new health is : \" + this.getHealth());\n }", "public void updateHp(double amount);", "private void loadHealthBar()\r\n\t{\r\n \tTextureRegion [][] tempFrames;\r\n \tTextureRegion [] frames;\r\n\t\tTexture appearance = new Texture(\"img/hud/HeartBar.png\");\r\n\t\thealthWidth = appearance.getWidth() / 2;\r\n\t\thealthHeight = appearance.getHeight() / 26;\r\n\t\ttempFrames = TextureRegion.split(appearance, healthWidth,\r\n\t\t\t\thealthHeight);\r\n\t\tint index = 0;\r\n\t\tframes = new TextureRegion[52];\r\n\t\tfor (int i = 0; i < 26; i++) {\r\n\t\t\tfor (int j = 0; j < 2; j++) {\r\n\t\t\t\tframes[index++] = tempFrames[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\thealthBarAnimation = new Animation(0.01f, frames);\r\n\t\theroHealth.setOrigin(healthWidth/2, healthHeight/2);\r\n\t\theroHealth.setBounds(getX(),getY(), camera.viewportWidth * 0.3f,camera.viewportWidth * 0.3f * (appearance.getHeight() / 26)/(appearance.getWidth() / 2));\r\n\t\t\r\n\t\tstateTime = 0f;\r\n\t\tcurrentFrame = healthBarAnimation.getKeyFrame(stateTime, true);\r\n\t\t\r\n\t\t\r\n\t\tTexture tempT = new Texture(\"img/hud/HeartBarCover.jpg\");\r\n\t\tcover = new Sprite(tempT);\r\n\t\tcover.setSize(250f/270f * heroHealth.getWidth(), heroHealth.getHeight());\r\n\t\tcover.setOrigin(cover.getWidth(), cover.getHeight()/2);\r\n\t\tcover.setScale(1f, 1f);\r\n\t}", "public void setHealth(int h) {\n setStat(h, health);\n }", "public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }", "@Override\n public void hp(){\n HP=50*nivel;\n }", "public void setHealth(float health)\n {\n if ( health > getMaxHealth() )\n {\n this.health = getMaxHealth();\n }\n else if (health < 0)\n {\n this.health = 0.0f;\n }\n else\n {\n this.health = health;\n }\n\n }", "public abstract void incrementHealth(int hp);", "public void tick(){\r\n scoreKeep++;\r\n if(scoreKeep >= 500){\r\n scoreKeep = 0;\r\n hud.setLevel(hud.getLevel()+1);\r\n // continuous addition of enemies at each new level\r\n if(game.diff == 0) {\r\n \tif((hud.getLevel() >= 2 && hud.getLevel() <= 3)||(hud.getLevel() >= 7 && hud.getLevel() <= 9))\r\n \thandler.addObject(new BasicEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.BasicEnemy, handler));\r\n if(hud.getLevel() == 4 || hud.getLevel() == 6)\r\n handler.addObject(new FastEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.FastEnemy, handler));\r\n if(hud.getLevel() == 5)\r\n \thandler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n if(hud.getLevel() == 10){\r\n handler.clearEnemies();\r\n handler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n handler.addObject(new BossEnemy((Game.width/2)-48, -100, ID.BossEnemy, handler));\r\n }\r\n }else if(game.diff == 1) {\r\n \tif((hud.getLevel() >= 2 && hud.getLevel() <= 3)||(hud.getLevel() >= 7 && hud.getLevel() <= 9))\r\n \thandler.addObject(new HardEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.BasicEnemy, handler));\r\n if(hud.getLevel() == 4 || hud.getLevel() == 6)\r\n handler.addObject(new FastEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.FastEnemy, handler));\r\n if(hud.getLevel() == 5)\r\n \thandler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n if(hud.getLevel() == 10){\r\n handler.clearEnemies();\r\n handler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n handler.addObject(new BossEnemy((Game.width/2)-48, -100, ID.BossEnemy, handler));\r\n }\r\n }\r\n }\r\n }", "private void populateLevel() {\r\n\r\n\r\n\t\t// Setup Goal\r\n\t\tJsonValue goalVal = levelAssets.get(\"goal\");\r\n\t\tfloat gWidth = goalTile.getRegionWidth()/scale.x;\r\n\t\tfloat gHeight = goalTile.getRegionHeight()/scale.y;\r\n\t\tfloat gX = goalVal.get(\"pos\").getFloat(0) + gWidth / 2;\r\n\t\tfloat gY = goalVal.get(\"pos\").getFloat(1) + gHeight / 2;\r\n\t\tgoalDoor = new DoorModel(gX, gY, gWidth, gHeight);\r\n\t\tgoalDoor.setBodyType(BodyDef.BodyType.StaticBody);\r\n\t\tgoalDoor.setDensity(constants.get(\"goal\").getFloat(\"density\", 0));\r\n\t\tgoalDoor.setFriction(constants.get(\"goal\").getFloat(\"friction\", 0));\r\n\t\tgoalDoor.setRestitution(constants.get(\"goal\").getFloat(\"restitution\", 0));\r\n\t\tgoalDoor.setSensor(true);\r\n\t\tgoalDoor.setDrawScale(scale);\r\n\t\tgoalDoor.setTexture(goalTile);\r\n\t\tgoalDoor.setName(\"goal\");\r\n\t\taddObject(goalDoor);\r\n\t\taddObjectTo(goalDoor, LevelCreator.allTag);\r\n\r\n\t\t// Get default values\r\n\t\tJsonValue defaults = constants.get(\"defaults\");\r\n\t\tJsonValue objs = levelAssets.get(\"objects\");\r\n\r\n\t\t//group platform constants together for access in following for-loop\r\n\t\tTextureRegion[] xTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\tlightningLightTexture, lightningDarkTexture, lightningAllTexture,\r\n\t\t\trainLightTexture, rainDarkTexture, rainAllTexture,\r\n\t\t\t\tcrumbleLightTexture, crumbleDarkTexture, crumbleAllTexture};\r\n\r\n\t\tTextureRegion[] reducedXTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\t\tlightningLightTextureReduced, lightningDarkTextureReduced, lightningAllTextureReduced,\r\n\t\t\t\trainLightTextureReduced, rainDarkTextureReduced, rainAllTextureReduced,\r\n\t\t\t\tcrumbleLightTextureReduced, crumbleDarkTextureReduced, crumbleAllTextureReduced};\r\n\r\n\r\n\t\t// Setup platforms\r\n\t\tfor(int i=0; i < (objs != null ? objs.size : 0); i++)\r\n\t\t{\r\n\t\t\tJsonValue obj = objs.get(i);\r\n\r\n\t\t\t// Get platform attributes\r\n\t\t\tint platformType = obj.get(\"type\").asInt();\r\n\t\t\tint property = obj.get(\"property\") == null ? 0: obj.get(\"property\").asInt();\r\n\t\t\tJsonValue platformArgs = obj.get(\"positions\");\r\n\t\t\tJsonValue pathsArgs = obj.get(\"paths\");\r\n\r\n\t\t\tfor (int j = 0; j < platformArgs.size; j++) {\r\n\t\t\t\tfloat[] bounds = platformArgs.get(j).asFloatArray();\r\n\t\t\t\tfloat x = bounds[0], y = bounds[1], width = bounds[2], height = bounds[3];\r\n\t\t\t\tTextureRegion newXTexture;\r\n\t\t\t\tTextureRegion crumbleTexture = null;\r\n\t\t\t\tTexture originalTexture = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// temporary - need to refactor asset directory\r\n\t\t\t\t\tJsonValue assetName = obj.get(\"assetName\");\r\n\t\t\t\t\tint assetIndex = assetName.asInt();\r\n\t\t\t\t\tnewXTexture = new TextureRegion(tutorial_signs[assetIndex]);\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tint platIdx = platformType-1+(property - 1)*3;\r\n\t\t\t\t\tint crumbleIdx = platIdx + 3;\r\n\t\t\t\t\tnewXTexture = new TextureRegion(xTexture[platIdx]);\r\n\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t// For crumble animation\r\n\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\tcrumbleTexture = new TextureRegion(xTexture[crumbleIdx]);\r\n//\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the platform size is the same as the spritesheet size\r\n\t\t\t\t\tif (originalTexture.getWidth() > 32 && width%(originalTexture.getWidth()/32) == 0) {\r\n\t\t\t\t\t\tnewXTexture = new TextureRegion(reducedXTexture[platIdx]);\r\n\t\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\t\tcrumbleTexture = new TextureRegion(reducedXTexture[crumbleIdx]);\r\n//\t\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n//\t\t\t\t\tnewXTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t}\r\n\t\t\t\tPlatformModel platformModel = new PlatformModel(bounds, platformType, property, newXTexture, scale,\r\n\t\t\t\t\t\tdefaults.getFloat( \"density\", 0.0f ), defaults.getFloat( \"friction\", 0.0f ) ,\r\n\t\t\t\t\t\tdefaults.getFloat( \"restitution\", 0.0f ), originalTexture, crumbleTexture);\r\n\t\t\t\tplatformModel.setTag(platformType);\r\n\t\t\t\tplatformModel.setProperty(property);\r\n\t\t\t\taddObject(platformModel);\r\n\t\t\t\taddObjectTo(platformModel, platformType);\r\n\t\t\t\t//TODO: Moving platforms\r\n\r\n\r\n\t\t\t\tif (pathsArgs != null) {\r\n\t\t\t\t\tfloat[] paths = pathsArgs.get(j).asFloatArray();\r\n\r\n\t\t\t\t\t//** Moving platform if > 1 path or different path from starting position\r\n\t\t\t\t\tif (hasValidPath(x, y, paths)) {\r\n\t\t\t\t\t\tplatformModel.setBodyType(BodyDef.BodyType.KinematicBody);\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\r\n\t\t\t\t\t\tPooledList<Vector2> pathList = new PooledList<>();\r\n\t\t\t\t\t\tfor (int k = 0; k < paths.length; k+=2) {\r\n\t\t\t\t\t\t\tpathList.add(new Vector2(paths[k], paths[k+1]));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfloat velocity = 3;\r\n\r\n\t\t\t\t\t\tplatformModel.setGravityScale(0);\r\n\t\t\t\t\t\tplatformModel.setPaths(pathList);\r\n\t\t\t\t\t\tplatformModel.setVelocity(velocity);\r\n\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// This world is heavier\r\n\t\tworld.setGravity( new Vector2(0,defaults.getFloat(\"gravity\",0)) );\r\n\r\n\t\t// Set level background index\r\n\t\tint backgroundTextureIndex = levelAssets.get(\"background\").asInt();\r\n\t\tbackgroundLightTexture = backgrounds[backgroundTextureIndex - 1];\r\n\t\tbackgroundDarkTexture = backgrounds[backgroundTextureIndex];\r\n\t\tbackgroundTexture = backgroundLightTexture;\r\n\r\n\t\t// Initialize background animations\r\n\t\tactualBackgroundTexture = backgroundTexture.getTexture();\r\n\t\tbackgroundEntirePixelWidth = actualBackgroundTexture.getWidth();\r\n\t\tbackgroundNumAnimFrames = (int)(backgroundEntirePixelWidth/backgroundFramePixelWidth);\r\n\t\tbackgroundAnimator = new FilmStrip(backgroundTexture,1, backgroundNumAnimFrames, backgroundNumAnimFrames);\r\n\t\tbackgroundAnimator.setFrame(0);\r\n\t\tbackgroundAnimeframe = 0;\r\n\t\tbackgroundOrigin = new Vector2(backgroundAnimator.getRegionWidth()/2.0f, backgroundAnimator.getRegionHeight()/2.0f);\r\n\r\n\t\t// Set level bounds\r\n\t\twidthUpperBound = levelAssets.get(\"dimensions\").getInt(0);\r\n\t\theightUpperBound = levelAssets.get(\"dimensions\").getInt(1);\r\n\r\n\t\t// Setup Somni\r\n\r\n\t\tJsonValue somniVal = levelAssets.get(\"somni\");\r\n\t\tfloat sWidth = somniTexture.getRegionWidth()/scale.x;\r\n\t\tfloat sHeight = somniTexture.getRegionHeight()/scale.y;\r\n\t\tfloat sX = somniVal.get(\"pos\").getFloat(0) + sWidth / 2;\r\n\t\tfloat sY = somniVal.get(\"pos\").getFloat(1) + sHeight / 2;\r\n\t\tsomni = new CharacterModel(constants.get(\"somni\"), sX, sY, sWidth, sHeight, platformController.somnif, CharacterModel.LIGHT);\r\n\t\tsomni.setDrawScale(scale);\r\n\t\tsomni.setTexture(somniIdleTexture);\r\n\t\tsomni.setFilterData(platformController.somnif);\r\n\t\tsomni.setActive(true);\r\n\t\taddObject(somni);\r\n\t\taddObjectTo(somni, LevelCreator.allTag);\r\n\r\n\r\n\t\t// Setup Phobia\r\n\r\n\t\tJsonValue phobiaVal = levelAssets.get(\"phobia\");\r\n\t\tfloat pWidth = phobiaTexture.getRegionWidth()/scale.x;\r\n\t\tfloat pHeight = phobiaTexture.getRegionHeight()/scale.y;\r\n\t\tfloat pX = phobiaVal.get(\"pos\").getFloat(0) + pWidth / 2;\r\n\t\tfloat pY = phobiaVal.get(\"pos\").getFloat(1) + pHeight / 2;\r\n\t\tphobia = new CharacterModel(constants.get(\"phobia\"), pX, pY, pWidth, pHeight, platformController.phobiaf, CharacterModel.DARK);\r\n\t\tphobia.setDrawScale(scale);\r\n\t\tphobia.setTexture(phobiaIdleTexture);\r\n\t\tphobia.setFilterData(platformController.phobiaf);\r\n\t\taddObject(phobia);\r\n\t\taddObjectTo(phobia, LevelCreator.allTag);\r\n\t\tphobia.setActive(true);\r\n\r\n\t\t// Setup Combined\r\n\r\n\t\tfloat cWidth = combinedTexture.getRegionWidth()/scale.x;\r\n\t\tfloat cHeight = combinedTexture.getRegionHeight()/scale.y;\r\n\r\n\t\tcombined = new CharacterModel(constants.get(\"combined\"), 0, 0, cWidth, cHeight, platformController.combinedf, CharacterModel.DARK);\r\n\t\tcombined.setDrawScale(scale);\r\n\t\tcombined.setTexture(somniPhobiaTexture);\r\n\t\t//combined.setTag();\r\n\t\tcombined.setFilterData(platformController.combinedf);\r\n\t\taddObject(combined);\r\n\t\taddObjectTo(combined, LevelCreator.allTag);\r\n\t\tcombined.setActive(true);\r\n\r\n\t\t//Remove combined\r\n\t\tobjects.remove(combined);\r\n\t\tsharedObjects.remove(combined);\r\n\t\tcombined.setActive(false);\r\n\r\n\t\taction = 0;\r\n\r\n\t\tPreferences prefs = GDXRoot.getPreferences();\r\n\t\tvolume = prefs.contains(\"volume\") ? prefs.getFloat(\"volume\") : defaults.getFloat(\"volume\",\r\n\t\t\t\t1.0f);\r\n//\t\tSystem.out.println(volume);\r\n\r\n\t\tplatformController.applyFilters(objects);\r\n\t}", "public void heal(){\n\t\thp += potion.getHpBoost();\n\t\tif(hp > max_hp)hp = max_hp;\n\t}", "public float spiderScaleAmount()\n {\nreturn 1F;\n }", "public void drawHealth(Graphics2D g2d) {\t\n\t\tg2d.setColor(new Color(0,0,0,200));\n\t\tint w = StagePanel.boardRectSize;\n\t\tint h = StagePanel.boardRectSize/6;\n\t\tint x = (int)getRectHitbox().getCenterX() - w/2;\n\t\tint y = (int)getRectHitbox().getCenterY() - parentGP.boardRect.getSize()/2;\n\t\t\n\t\tRectangle maxHealthShieldRect = new Rectangle(x, y, w, h);\n\t\tg2d.fill(maxHealthShieldRect);\n\t\tfloat unitHealthSize = (w*(1.0f/(maxHealth+maxShield)));\n\t\tRectangle maxHealthRect = new Rectangle(x,y, (int)(unitHealthSize * health), h);\n\t\tRectangle maxShieldRect = new Rectangle(x+(int)(unitHealthSize * health),y, (int)(unitHealthSize * shield), h);\n\t\tg2d.setColor(Commons.cHealth);\n\t\tg2d.fill(maxHealthRect);\n\t\tg2d.setColor(Commons.cShield);\n\t\tg2d.fill(maxShieldRect);\n\t\tg2d.setStroke(new BasicStroke(3)); \n\t\tg2d.setColor(Color.BLACK);\n\t\tg2d.draw(maxHealthShieldRect);\n\t\tif(parentGP.boardRect == StagePanel.curHoverBR || parentGP == StagePanel.curSelectedGP) {\n\t\t\tdrawHealthValues(g2d, x, y,StagePanel.boardRectSize/5);\n\t\t}\n\t}", "public void levelUp1()\r\n {\r\n this.health = 900;\r\n Story.levelUp1Text();\r\n }", "public void levelUp2()\r\n {\r\n this.health = 1200;\r\n Story.levelUp2Text();\r\n }", "private void setHealth(Player p, int health)\n {\n int current = p.getHealth();\n \n // If the health is 20, just leave it at that no matter what.\n int regain = health == 20 ? 20 : health - current;\n \n // Set the health, and fire off the event.\n p.setHealth(health);\n EntityRegainHealthEvent event = new EntityRegainHealthEvent(p, regain, RegainReason.CUSTOM);\n Bukkit.getPluginManager().callEvent(event);\n }", "public void calibrated() {\n weaponDamage = weaponDamage + 10;\r\n }", "public void setHungerDamage(float hunger);", "private void calculateStats(World world, Vec3i spawnLocation) {\n double distanceFromSpawn = getWorldSpawn(world).getManhattanDistance(spawnLocation);\n int levelBase = (int) (distanceFromSpawn / (double) OpenPixelmonConfig.distancePerLevel) + 1;\n int lvlVariation = PixelmonUtils.randBetween(-5, 5);\n set(LEVEL, MathHelper.clamp(levelBase + lvlVariation, 1, OpenPixelmonConfig.maxLevelByDistance));\n\n// setHealth((get(IV_STORAGE).hp + 2.0F * (float) getPokedexEntry().hp + (float) get(EV_STORAGE).hp / 4.0F + 100.0F) * (float) getLevel() / 100.0F + 10.0F); old pixelmon method. not entirely sure why it's differnet\n set(MAX_HP, getPokedexEntry().hp);\n set(HP, (float) (Math.floor(0.01 * (2 * getPokedexEntry().hp + get(IV_STORAGE).hp + Math.floor(0.25 * get(EV_STORAGE).hp)) * getLevel()) + getLevel() + 10));\n }", "public float getHealth()\n {\n return health;\n }", "public void setCurHealth(int modifier) {\n\t\tcurHealth = curHealth + modifier;\n\t}", "public void setHealthScaling(int healthScaling)\r\n {\r\n this.mHealthScaling = healthScaling;\r\n }", "public void decreaseHealth() {\n setHealth(getHealth()-1);\n }", "private void showHealthLevel()\n {\n showText(\"Health Level: \" + healthLevel, 120, 25);\n }", "public void onLivingUpdate()\n {\n this.updateArmSwingProgress();\n float var1 = this.getBrightness(1.0F);\n\n if (var1 > 0.5F)\n {\n this.entityAge += 2;\n }\n\n super.onLivingUpdate();\n }", "public void healPlayer(int hp) {\n if (hero.getHp() < LabyrinthFactory.HP_PLAYER) {\n hero.increaseHP(hp);\n }\n }", "public void setHealth(int health) {\n this.health = health;\n }", "private void setHealth() {\n eliteMob.setHealth(maxHealth = (maxHealth > 2000) ? 2000 : maxHealth);\n }" ]
[ "0.76980823", "0.7525548", "0.6491237", "0.64858776", "0.6216629", "0.6112697", "0.5864397", "0.5803811", "0.57762915", "0.5759874", "0.5750062", "0.5725523", "0.57203794", "0.5671211", "0.56477946", "0.5592631", "0.5568644", "0.55610156", "0.55452347", "0.5514197", "0.5508612", "0.54978186", "0.5482837", "0.5482195", "0.5454561", "0.54456633", "0.5443955", "0.54398376", "0.5429375", "0.5420529", "0.5415493", "0.5390171", "0.5381393", "0.5377736", "0.53675497", "0.53658825", "0.53582555", "0.5342475", "0.5337302", "0.5326326", "0.5316623", "0.5305716", "0.5301101", "0.5299425", "0.5298363", "0.5297226", "0.5291058", "0.5290339", "0.52745396", "0.5271385", "0.52479887", "0.524598", "0.5242111", "0.5241088", "0.5238775", "0.523805", "0.52374285", "0.5236738", "0.52344763", "0.52238786", "0.52187586", "0.5189929", "0.51890033", "0.5164509", "0.51603913", "0.5159515", "0.5150234", "0.5149931", "0.51446295", "0.5142781", "0.51392263", "0.513381", "0.5132035", "0.5124463", "0.51186514", "0.5115446", "0.511521", "0.5112949", "0.51120114", "0.5108289", "0.5106085", "0.51014704", "0.50931567", "0.50915915", "0.5090989", "0.5090523", "0.508495", "0.50825715", "0.5078675", "0.5077103", "0.5064448", "0.50606024", "0.50594044", "0.5056519", "0.5054305", "0.5049474", "0.5048774", "0.50486857", "0.50388205", "0.5027923" ]
0.8617493
0
Function that scales skeleton attack based on player level
private static int skeletonAttackScale(int skeletonAttack, int playerLevel){ if(playerLevel > 1){ skeletonAttack = skeletonAttack + (1 * playerLevel); return skeletonAttack; }else{ return skeletonAttack; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int skeletonHealthScale(int skeletonHealth, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonHealth = skeletonHealth + (5 * playerLevel);\r\n return skeletonHealth;\r\n }else{\r\n return skeletonHealth;\r\n }\r\n }", "private static int skeletonGoldScale(int skeletonGold, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonGold = skeletonGold + ( 1* playerLevel);\r\n return skeletonGold;\r\n }else{\r\n return skeletonGold;\r\n }\r\n }", "private static int devilAttackScale(int devilAttack, int playerLevel){\r\n if(playerLevel > 4){\r\n devilAttack = devilAttack + ((2 * (playerLevel - 4)));\r\n \r\n }\r\n return devilAttack;\r\n }", "@Override\n public void scaleStats() {\n this.damage = BASE_DMG + (this.getLevel() * 3);\n }", "private static int devilHealthScale(int devilHealth, int playerLevel){\r\n if(playerLevel > 4){\r\n devilHealth = devilHealth + ((10 * (playerLevel - 4)));\r\n }\r\n return devilHealth;\r\n }", "private static int fireballDamageScale(int fireballDamage, int playerLevel){\r\n int totalDamage = 0;\r\n totalDamage = fireballDamage + (2 * playerLevel);\r\n return totalDamage;\r\n }", "private static int fireballMPScale(int fireballCost, int playerLevel){\r\n int MPCost = 0;\r\n MPCost = fireballCost + (1 * playerLevel);\r\n return MPCost;\r\n }", "public void scaleAnimetion(SpriteBatch batch){\n }", "@Override\r\n\tpublic void hurt(int points) {\r\n\t\tif (!hasExoskeleton()) {\r\n\t\thitPoints -= points;\r\n\t\t}\r\n\t}", "private static int devilGoldScale(int devilGold, int playerLevel){\r\n if(playerLevel > 4){\r\n devilGold = devilGold + ( 1* playerLevel);\r\n return devilGold;\r\n }else{\r\n return devilGold;\r\n }\r\n }", "protected void func_77041_b(EntityLivingBase par1EntityLiving, float par2)\n/* */ {\n/* 87 */ scaleSpider((EntityTaintSpider)par1EntityLiving, par2);\n/* */ }", "private void prepareLevel(){\n levelAnimation = true;\n\n // Reset the menace level\n menaceInterval = 1200;\n\n // Here we will initialize all the game objects\n // Make a new player space ship\n defender = new Defender(context, PlayableX, PlayableY, ExcessX);\n\n // Prepare the players bullet\n bullet = new Bullet(context, PlayableX, PlayableY, (float) 1.2);\n\n // Initialize the invadersBullets array\n for(int i = 0; i < invadersBullets.length; i++){\n invadersBullets[i] = new Bullet(context, PlayableX, PlayableY, (float) 0.80);\n }\n\n // Build an army of invaders\n numInvaders = 0;\n for(int column = 0; column < invadersColumn; column ++ ){\n for(int row = 0; row < invadersRow; row ++ ){\n invaders[numInvaders] = new Invader(context, row, column, PlayableX, PlayableY, ExcessX);\n numInvaders ++;\n }\n }\n invadersLeft = numInvaders;\n\n try {\n // Create objects of the 2 required classes\n AssetManager assetManager = context.getAssets();\n explosionEffect = new Bitmap[12];\n for (int i=0; i < 12; i++) {\n explosionEffect[i] = Bitmap.createScaledBitmap(BitmapFactory.decodeStream(assetManager.open(\"explosion/\" + (i + 1) + \".png\")), (int) (invaders[0].getLength()*1.75), (int) (invaders[0].getLength()*1.75), true);\n }\n } catch (IOException e) {\n e.printStackTrace();\n // Print an error message to the console\n Log.e(\"error\", \"failed to load explosion effect image files\");\n }\n\n }", "@Override\n public void attackedByShaman(double attack) {\n damageCounter += (2 * attack) / 3;\n this.attack = Math.max(this.attack - (2 * attack) / 3, 0);\n }", "public void incLevel(int lvl){this.Level=this.XP/(100);}", "@Override\n\tpublic void applyEffect(Player player) {\n\t\tplayer.setSightRange(7);\n\t}", "@Override\n public void upgrade(int level){\n System.out.println(\"Level adfasdfasdf: \" + level);\n System.out.println(getLevel());\n\n if(level > 5) level = 5;\n\n if(level > 1){\n for (int i = 1; i < level; i++) levelUp();\n }\n\n /*\n //System.out.println(\"\\n-------\");\n //System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n\n double percentage = growth(level);\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (level % 2 != 0) range++;\n\n //System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n //System.out.println(\"-------\\n\");*/\n }", "public void update(){\n if (bossMoveTime > 10){\n if(random(0,16) <= 8){\n dir = 1;\n }else{\n dir = -1;\n }\n velX *= dir;\n bossMoveTime = 0;\n }\n posY *= 0.8f;\n posX += velX;\n posY += velY;\n angle += 0.04f;\n bossMoveTime++;\n }", "abstract void applyItem(JuggernautPlayer player, int level);", "@Override\n public void setLevel(int level) {\n if (level > 1) {\n this.level = level;\n scaleUp();\n percentageScaling();\n }\n }", "void playerHandler() {\n player.turnToPoint(mouseX, mouseY);\n if (firing && sTimer < 1) {\n\n Sprite smb = new Sprite(smbulletbase);\n smb.moveToSprite(player);\n if(usingCoil){\n clickEffect = new KTSound(this, coilshotURL);\n ktAudio.add(clickEffect);\n clickEffect.play();\n clickEffect = new KTSound(this, gunshotURL);\n ktAudio.add(clickEffect);\n }\n smBullets.add(smb);\n clickEffect.play();\n if(weapon == \"minigun\"){\n smb.turnToPoint(mouseX+(int)random(-90,90), mouseY+(int)random(-90,90));\n }\n else{\n smb.turnToPoint(mouseX, mouseY);\n }\n\n sTimer = firingSpeed;\n }\n sTimer -= 1;\n \n prevX = player.getX();\n prevY = player.getY();\n\n if (up) {\n player.moveY( - 5);\n // pAngle -= 1;\n }\n if (down) {\n player.moveY(5);\n // pAngle += 1;\n }\n if (left) {\n player.moveX( - 5);\n // pAngle -= 1;\n }\n if (right) {\n player.moveX(5);\n }\n if (player.getY() < player.getH() / 2) {\n player.setY(player.getH() / 2);\n }\n if (player.getY() > 2048 - player.getH() / 2) {\n player.setY(2048 - player.getH() / 2);\n }\n if (player.getX() < player.getH() / 2) {\n player.setX(player.getH() / 2);\n }\n if (player.getX() > 2048 - player.getH() / 2) {\n player.setX(2048 - player.getH() / 2);\n }\n \n \n\n // player.turnToDir(pAngle);\n player.display();\n // player.displayHitbox();\n}", "public void normalize()\n {\n\tdef += 200*counter;\n\tdmg -= 0.5*counter;\n\tcounter = 0;\n }", "private void levelUp() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tif (a.getVisibility()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tresetInvaders();\n\t\taddRow();\n\t\t\n\t\tenemyShotList.add(new Shot(0, 0, SHOT_WIDTH, SHOT_HEIGHT, 15));\n\t\tlevel++;\n\t\t\n\t\tint powerupx = (int) (Math.random()*(WIDTH-PLAYER_WIDTH));\n\t\tdouble poweruprandom = Math.random();\n\t\t\n\t\tif (poweruprandom < 0.25) {\n\t\t\tarmorPiercing.reset(powerupx);\n\t\t}\n\t\t\n\t\tif (poweruprandom >= 0.25 && poweruprandom < 0.5) {\n\t\t\texplosive.reset(powerupx);\n\t\t}\n\t}", "@Override\n public void update() {\n adjustRenderHitbox();\n if (renderHurtboxes) {\n renderHurtbox.setRect(player.getHurtbox().x / 1920 * gameWidth, player.getHurtbox().y / 1080 * gameHeight, player.getHurtbox().width / 1920 * gameWidth, player.getHurtbox().height / 1080 * gameHeight);\n }\n updateAnimationLoop();\n }", "private float getScale(Entity entity) {\n \tif (entity instanceof EntityPlayer) {\n \t\t//return ???\n \t}\n \treturn isChild ? 2 : 1;\n }", "public void tick(){\r\n scoreKeep++;\r\n if(scoreKeep >= 500){\r\n scoreKeep = 0;\r\n hud.setLevel(hud.getLevel()+1);\r\n // continuous addition of enemies at each new level\r\n if(game.diff == 0) {\r\n \tif((hud.getLevel() >= 2 && hud.getLevel() <= 3)||(hud.getLevel() >= 7 && hud.getLevel() <= 9))\r\n \thandler.addObject(new BasicEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.BasicEnemy, handler));\r\n if(hud.getLevel() == 4 || hud.getLevel() == 6)\r\n handler.addObject(new FastEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.FastEnemy, handler));\r\n if(hud.getLevel() == 5)\r\n \thandler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n if(hud.getLevel() == 10){\r\n handler.clearEnemies();\r\n handler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n handler.addObject(new BossEnemy((Game.width/2)-48, -100, ID.BossEnemy, handler));\r\n }\r\n }else if(game.diff == 1) {\r\n \tif((hud.getLevel() >= 2 && hud.getLevel() <= 3)||(hud.getLevel() >= 7 && hud.getLevel() <= 9))\r\n \thandler.addObject(new HardEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.BasicEnemy, handler));\r\n if(hud.getLevel() == 4 || hud.getLevel() == 6)\r\n handler.addObject(new FastEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.FastEnemy, handler));\r\n if(hud.getLevel() == 5)\r\n \thandler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n if(hud.getLevel() == 10){\r\n handler.clearEnemies();\r\n handler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n handler.addObject(new BossEnemy((Game.width/2)-48, -100, ID.BossEnemy, handler));\r\n }\r\n }\r\n }\r\n }", "Float attack();", "@Override\n public void levelUp(){\n //System.out.println(\"Level: \" + getLevel());\n if (getLevel() > 5) return;\n\n /* System.out.println(\"\\n-------\");\n System.out.println(\"Level: \" + getLevel());\n System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n*/\n double percentage = growth(getLevel()) + growthRate;\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (getLevel() % 2 != 0) range++;\n setLevel(getLevel() + 1);\n\n /* System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n System.out.println(\"-------\\n\");*/\n }", "public void normalize(){\r\n \tif(!normal){\r\n\t attack/=2;\r\n\t defense*=2;\r\n\t normal=true;\r\n\t}\r\n }", "public void normalize(){\r\n \tif(!normal){\r\n\t attack/=2;\r\n\t defense*=2;\r\n\t normal=true;\r\n\t}\r\n }", "public void attack(Player player) {\n this.damage = 18 - player.getfPoint(); // the higher the Fighter skill,\n // the lower the damage. change the math.\n int newHealth = player.getShip().getHealth() - damage;\n player.getShip().setHealth(newHealth);\n }", "@Override\n public void attackedByPaladin(double attack) {\n this.attack += (2 * attack) / 3;\n damageCounter = Math.max(damageCounter - (2 * attack) / 3, 0);\n }", "private void normalize() {\n this.x = (this.x - RobocodeRunner.width / 2) / RobocodeRunner.width;\n this.y = (this.y - RobocodeRunner.height / 2) / RobocodeRunner.height;\n this.distance /= Math.sqrt(RobocodeRunner.width * RobocodeRunner.width + RobocodeRunner.height * RobocodeRunner.height);\n this.enemyHeading /= 90;\n this.enemyDx /= 8;\n this.enemyDy /= 8;\n this.gunToTurn /= 180;\n this.angle /= 180;\n }", "public void calibrated() {\n weaponDamage = weaponDamage + 10;\r\n }", "Boss(String imgPath, int x, int y, int hitPoints, Node player) {\n super(new ImageView(imgPath), x, y, hitPoints);\n\n this.getView().setTranslateX(x);\n this.getView().setTranslateY(y);\n this.defaultHp = hitPoints;\n this.isAlive = true;\n this.player = player;\n\n bossTimer = new AnimationTimer() {\n @Override\n public void handle(long now) {\n\n bossMove();\n\n }\n };\n bossTimer.start();\n }", "private void level3() {\n // level 0.3\n levelBlock.moveTo(0, 400);\n levelBlock.setScaleX(200 / levelBlock.getUnscaledWidth());\n levelBlock.setScaleY(200 / levelBlock.getUnscaledHeight());\n// levelBlock.setAlpha((float).001);\n level.addChild(levelBlock);\n\n levelBlock2.moveTo(300, 400);\n levelBlock2.setScaleX(200 / levelBlock.getUnscaledWidth());\n levelBlock2.setScaleY(200 / levelBlock.getUnscaledHeight());\n level.addChild(levelBlock2);\n\n levelBlock3.moveTo(600, 400);\n levelBlock3.setScaleX(400 / levelBlock.getUnscaledWidth());\n levelBlock3.setScaleY(200 / levelBlock.getUnscaledHeight());\n level.addChild(levelBlock3);\n\n crystal1.setPosition(new Point(levelBlock.getHitbox().x + levelBlock.getHitbox().width, 500));\n crystal1.setAlpha((float) .1);\n crystal1.setScaleX(.55);\n crystal1.setScaleY(.6);\n level.addChild(crystal1);\n\n crystal2.setPosition(new Point(levelBlock2.getHitbox().x + levelBlock2.getHitbox().width, 500));\n crystal2.setAlpha((float) .1);\n crystal2.setScaleX(.55);\n crystal2.setScaleY(.6);\n level.addChild(crystal2);\n\n ash.setPosition(new Point(\n crystal1.getPosition().x,\n crystal1.getPosition().y - 70)\n );\n ash.setAlpha((float) .21);\n ash.setScaleX(.55);\n level.addChild(ash);\n\n ash2.setPosition(new Point(\n crystal2.getPosition().x,\n crystal2.getPosition().y - 70)\n );\n ash2.setAlpha((float) .21);\n ash2.setScaleX(.55);\n level.addChild(ash2);\n\n beaconA.moveTo(levelBlock.getHitbox().x + levelBlock.getHitbox().width - 60,\n levelBlock.getHitbox().y - beaconA.getUnscaledHeight());\n level.addChild(beaconA);\n\n beaconB.moveTo(levelBlock2.getHitbox().x + levelBlock2.getHitbox().width - 125,\n levelBlock2.getHitbox().y - beaconA.getUnscaledHeight());\n level.addChild(beaconB);\n\n entrance.moveTo(10, 400 - entrance.getUnscaledHeight() * entrance.getGlobalScaleY());\n entrance.setAlpha((float) 0.4);\n level.addChild(entrance);\n\n exit.setAlpha((float) 0.4);\n exit.moveTo(800 - exit.getUnscaledWidth() * exit.getGlobalScaleX() - 20,\n 400 - entrance.getUnscaledHeight() * entrance.getGlobalScaleY());\n level.addChild(exit);\n\n echoes.addChild(echoA);\n echoes.addChild(echoB);\n }", "protected void preRenderCallback(EntityMegaZombie p_77041_1_, float p_77041_2_)\n {\n GL11.glScalef(2.0F, 2.0F, 2.0F);\n }", "@Override public void update(float dt)\n\t{\n\t\tthis.setScale((this.getScale().getX() + 0.1f) * 0.99f, (this.getScale().getY() + 0.1f) * 0.99f);\n\n\n\t}", "void takeDamage(int points) {\n this.health -= points;\n }", "public static void resetMana(Player player) {\n\t\tif (mode!=Mode.BOSSBAR) return;\n\t\tProfile profile = Profile.loadOrCreate(player);\n\t\tif (!manaBar.containsKey(player.getUniqueId())) {\n\t\t\tServerBossBar bar = ServerBossBar.builder().from(baseBar).percent(1f).build();\n\t\t\tbar.addPlayer(player);\n\t\t\tmanaBar.put(player.getUniqueId(), bar);\n\t\t}\n\t\tif (profile.getRaceData().isPresent()) {\n\t\t\ttry {\n\t\t\t\tvirtualMax.put(player.getUniqueId(), \n\t\t\t\t\t\t(int)engine.evaluate(\n\t\t\t\t\t\t\t\tspawnMana.replace(\"level\", String.valueOf(profile.getRaceData().get().getLevel()))\n\t\t\t\t\t\t\t\t) );\n\t\t\t} catch (Exception e) {\n\t\t\t\tvirtualMax.put(player.getUniqueId(), 10);\n\t\t\t\tWarCraft.w(\"Could not compute mana level!\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tvirtualMana.put(player.getUniqueId(), (double)virtualMax.get(player.getUniqueId()));\n\t\t}\n\t}", "@Override\n public void onEntityUpdate() {\n if (!(world.provider instanceof WorldProviderLimbo || world.provider instanceof WorldProviderDungeonPocket)) {\n setDead();\n super.onEntityUpdate();\n return;\n }\n\n super.onEntityUpdate();\n\n // Check for players and update aggro levels even if there are no players in range\n EntityPlayer player = world.getClosestPlayerToEntity(this, MAX_AGGRO_RANGE);\n boolean visibility = player != null && player.canEntityBeSeen(this);\n updateAggroLevel(player, visibility);\n\n // Change orientation and face a player if one is in range\n if (player != null) {\n facePlayer(player);\n if (!world.isRemote && isDangerous()) {\n // Play sounds on the server side, if the player isn't in Limbo.\n // Limbo is excluded to avoid drowning out its background music.\n // Also, since it's a large open area with many Monoliths, some\n // of the sounds that would usually play for a moment would\n // keep playing constantly and would get very annoying.\n playSounds(player.getPosition());\n }\n\n if (visibility) {\n // Only spawn particles on the client side and outside Limbo\n if (world.isRemote && isDangerous()) {\n spawnParticles(player);\n }\n\n // Teleport the target player if various conditions are met\n if (aggro >= MAX_AGGRO && !world.isRemote && ModConfig.monoliths.monolithTeleportation && !player.isCreative() && isDangerous()) {\n aggro = 0;\n Location destination = WorldProviderLimbo.getLimboSkySpawn(player);\n TeleportUtils.teleport(player, destination, 0, 0);\n player.world.playSound(null, player.getPosition(), ModSounds.CRACK, SoundCategory.HOSTILE, 13, 1);\n }\n }\n }\n }", "public void LevelUp(int[] fighter) {\n fighter[LEVEL]++;\n Random rnd = new Random();\n if (rnd.nextBoolean()) {\n//Increase attack\n fighter[MAX_ATTACK]++;\n } else {\n//Increase defense\n fighter[MAX_DEFENSE]++;\n }\n fighter[MAX_LIFE] += 2;\n//Renew fighter\n renew(fighter);\n }", "private void levelSoulCrystals(final L2Character attacker)\n\t{\n\t\t// Only L2PcInstance can absorb a soul\n\t\tif (!(attacker instanceof L2PcInstance) && !(attacker instanceof L2Summon))\n\t\t{\n\t\t\tresetAbsorbList();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfinal int maxAbsorbLevel = getAbsorbLevel();\n\t\tint minAbsorbLevel = 0;\n\t\t\n\t\t// If this is not a valid L2Attackable, clears the absorbersList and just return\n\t\tif (maxAbsorbLevel == 0)\n\t\t{\n\t\t\tresetAbsorbList();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// All boss mobs with maxAbsorbLevel 13 have minAbsorbLevel of 12 else 10\n\t\tif (maxAbsorbLevel > 10)\n\t\t{\n\t\t\tminAbsorbLevel = maxAbsorbLevel > 12 ? 12 : 10;\n\t\t}\n\t\t\n\t\t// Init some useful vars\n\t\tboolean isSuccess = true;\n\t\tboolean doLevelup = true;\n\t\tfinal boolean isBossMob = maxAbsorbLevel > 10 ? true : false;\n\t\t\n\t\tfinal L2NpcTemplate.AbsorbCrystalType absorbType = getTemplate().absorbType;\n\t\t\n\t\tL2PcInstance killer = attacker instanceof L2Summon ? ((L2Summon) attacker).getOwner() : (L2PcInstance) attacker;\n\t\t\n\t\t// If this mob is a boss, then skip some checkings\n\t\tif (!isBossMob)\n\t\t{\n\t\t\t// Fail if this L2Attackable isn't absorbed or there's no one in its absorbersList\n\t\t\tif (!isAbsorbed() /* || absorbersList == null */)\n\t\t\t{\n\t\t\t\tresetAbsorbList();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t// Fail if the killer isn't in the absorbersList of this L2Attackable and mob is not boss\n\t\t\tAbsorberInfo ai = absorbersList.get(killer);\n\t\t\tif (ai == null || ai.absorber.getObjectId() != killer.getObjectId())\n\t\t\t{\n\t\t\t\tisSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\t// Check if the soul crystal was used when HP of this L2Attackable wasn't higher than half of it\n\t\t\tif (ai != null && ai.absorbedHP > getMaxHp() / 2.0)\n\t\t\t{\n\t\t\t\tisSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\tif (!isSuccess)\n\t\t\t{\n\t\t\t\tresetAbsorbList();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tai = null;\n\t\t}\n\t\t\n\t\t// ********\n\t\tString[] crystalNFO = null;\n\t\tString crystalNME = \"\";\n\t\t\n\t\tfinal int dice = Rnd.get(100);\n\t\tint crystalQTY = 0;\n\t\tint crystalLVL = 0;\n\t\tint crystalOLD = 0;\n\t\tint crystalNEW = 0;\n\t\t\n\t\t// ********\n\t\t// Now we have four choices:\n\t\t// 1- The Monster level is too low for the crystal. Nothing happens.\n\t\t// 2- Everything is correct, but it failed. Nothing happens. (57.5%)\n\t\t// 3- Everything is correct, but it failed. The crystal scatters. A sound event is played. (10%)\n\t\t// 4- Everything is correct, the crystal level up. A sound event is played. (32.5%)\n\t\t\n\t\tList<L2PcInstance> players = new ArrayList<>();\n\t\t\n\t\tif (absorbType == L2NpcTemplate.AbsorbCrystalType.FULL_PARTY && killer.isInParty())\n\t\t{\n\t\t\tplayers = killer.getParty().getPartyMembers();\n\t\t}\n\t\telse if (absorbType == L2NpcTemplate.AbsorbCrystalType.PARTY_ONE_RANDOM && killer.isInParty())\n\t\t{\n\t\t\t// This is a naive method for selecting a random member. It gets any random party member and\n\t\t\t// then checks if the member has a valid crystal. It does not select the random party member\n\t\t\t// among those who have crystals, only. However, this might actually be correct (same as retail).\n\t\t\tplayers.add(killer.getParty().getPartyMembers().get(Rnd.get(killer.getParty().getMemberCount())));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tplayers.add(killer);\n\t\t}\n\t\t\n\t\tfor (final L2PcInstance player : players)\n\t\t{\n\t\t\tif (player == null)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tcrystalQTY = 0;\n\t\t\t\n\t\t\tL2ItemInstance[] inv = player.getInventory().getItems();\n\t\t\tfor (final L2ItemInstance item : inv)\n\t\t\t{\n\t\t\t\tfinal int itemId = item.getItemId();\n\t\t\t\tfor (final int id : SoulCrystal.SoulCrystalTable)\n\t\t\t\t{\n\t\t\t\t\t// Find any of the 39 possible crystals.\n\t\t\t\t\tif (id == itemId)\n\t\t\t\t\t{\n\t\t\t\t\t\tcrystalQTY++;\n\t\t\t\t\t\t// Keep count but make sure the player has no more than 1 crystal\n\t\t\t\t\t\tif (crystalQTY > 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisSuccess = false;\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\t// Validate if the crystal has already leveled\n\t\t\t\t\t\tif (id != SoulCrystal.RED_NEW_CRYSTAL && id != SoulCrystal.GRN_NEW_CYRSTAL && id != SoulCrystal.BLU_NEW_CRYSTAL)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (item.getItem().getName().contains(\"Grade\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t// Split the name of the crystal into 'name' & 'level'\n\t\t\t\t\t\t\t\t\tcrystalNFO = item.getItem().getName().trim().replace(\" Grade \", \"-\").split(\"-\");\n\t\t\t\t\t\t\t\t\t// Set Level to 13\n\t\t\t\t\t\t\t\t\tcrystalLVL = 13;\n\t\t\t\t\t\t\t\t\t// Get Name\n\t\t\t\t\t\t\t\t\tcrystalNME = crystalNFO[0].toLowerCase();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t// Split the name of the crystal into 'name' & 'level'\n\t\t\t\t\t\t\t\t\tcrystalNFO = item.getItem().getName().trim().replace(\" Stage \", \"\").split(\"-\");\n\t\t\t\t\t\t\t\t\t// Get Level\n\t\t\t\t\t\t\t\t\tcrystalLVL = Integer.parseInt(crystalNFO[1].trim());\n\t\t\t\t\t\t\t\t\t// Get Name\n\t\t\t\t\t\t\t\t\tcrystalNME = crystalNFO[0].toLowerCase();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Allocate current and levelup ids' for higher level crystals\n\t\t\t\t\t\t\t\tif (crystalLVL > 9)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tfor (final int[] element : SoulCrystal.HighSoulConvert)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t// Get the next stage above 10 using array.\n\t\t\t\t\t\t\t\t\t\tif (id == element[0])\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tcrystalNEW = element[1];\n\t\t\t\t\t\t\t\t\t\t\tbreak;\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}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcrystalNEW = id + 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (final NumberFormatException nfe)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tLOGGER.warn(\"An attempt to identify a soul crystal failed, \" + \"verify the names have not changed in etcitem table.\", nfe);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tplayer.sendMessage(\"There has been an error handling your soul crystal.\" + \" Please notify your server admin.\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tisSuccess = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (final Exception e)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\tisSuccess = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcrystalNME = item.getItem().getName().toLowerCase().trim();\n\t\t\t\t\t\t\tcrystalNEW = id + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Done\n\t\t\t\t\t\tcrystalOLD = id;\n\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\tif (!isSuccess)\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\tinv = null;\n\t\t\t\n\t\t\t// If the crystal level is way too high for this mob, say that we can't increase it\n\t\t\tif (crystalLVL < minAbsorbLevel || crystalLVL >= maxAbsorbLevel)\n\t\t\t{\n\t\t\t\tdoLevelup = false;\n\t\t\t}\n\t\t\t\n\t\t\t// The player doesn't have any crystals with him get to the next player.\n\t\t\tif (crystalQTY < 1 || crystalQTY > 1 || !isSuccess || !doLevelup)\n\t\t\t{\n\t\t\t\t// Too many crystals in inventory.\n\t\t\t\tif (crystalQTY > 1)\n\t\t\t\t{\n\t\t\t\t\tplayer.sendPacket(new SystemMessage(SystemMessageId.SOUL_CRYSTAL_ABSORBING_FAILED_RESONATION));\n\t\t\t\t}\n\t\t\t\t// The soul crystal stage of the player is way too high\n\t\t\t\t// Like L2OFF message must not appear if char hasn't crystal on inventory\n\t\t\t\telse if (!doLevelup && crystalQTY > 0)\n\t\t\t\t{\n\t\t\t\t\tplayer.sendPacket(new SystemMessage(SystemMessageId.SOUL_CRYSTAL_ABSORBING_REFUSED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcrystalQTY = 0;\n\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * TODO: Confirm boss chance for crystal level up and for crystal breaking. It is known that bosses with FULL_PARTY crystal level ups have 100% success rate, but this is not the case for the other bosses (one-random or last-hit). While not confirmed, it is most reasonable that crystals leveled up at\n\t\t\t * bosses will never break. Also, the chance to level up is guessed as around 70% if not higher.\n\t\t\t */\n\t\t\tfinal int chanceLevelUp = isBossMob ? 70 : SoulCrystal.LEVEL_CHANCE;\n\t\t\t\n\t\t\t// If succeeds or it is a full party absorb, level up the crystal.\n\t\t\tif (absorbType == L2NpcTemplate.AbsorbCrystalType.FULL_PARTY && doLevelup || dice <= chanceLevelUp)\n\t\t\t{\n\t\t\t\t// Give staged crystal\n\t\t\t\texchangeCrystal(player, crystalOLD, crystalNEW, false);\n\t\t\t}\n\t\t\t\n\t\t\t// If true and not a last-hit mob, break the crystal.\n\t\t\telse if (!isBossMob && dice >= 100.0 - SoulCrystal.BREAK_CHANCE)\n\t\t\t{\n\t\t\t\t// Remove current crystal an give a broken open.\n\t\t\t\tif (crystalNME.startsWith(\"red\"))\n\t\t\t\t{\n\t\t\t\t\texchangeCrystal(player, crystalOLD, SoulCrystal.RED_BROKEN_CRYSTAL, true);\n\t\t\t\t}\n\t\t\t\telse if (crystalNME.startsWith(\"gre\"))\n\t\t\t\t{\n\t\t\t\t\texchangeCrystal(player, crystalOLD, SoulCrystal.GRN_BROKEN_CYRSTAL, true);\n\t\t\t\t}\n\t\t\t\telse if (crystalNME.startsWith(\"blu\"))\n\t\t\t\t{\n\t\t\t\t\texchangeCrystal(player, crystalOLD, SoulCrystal.BLU_BROKEN_CRYSTAL, true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tresetAbsorbList();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tplayer.sendPacket(new SystemMessage(SystemMessageId.SOUL_CRYSTAL_ABSORBING_FAILED));\n\t\t\t}\n\t\t}\n\t\t\n\t\tkiller = null;\n\t\tplayers = null;\n\t\tcrystalNFO = null;\n\t\tcrystalNME = null;\n\t}", "public void handle(long now) {\n if (attackCD > 0) {\n attackCD--;\n }\n if (input.contains(\"J\") && attackCD <= 0) {\n currSpeed = 0;\n attackCD = 50;\n int temp = attack();\n damageWindow = temp;\n moveCD = temp;\n } else if (input.size() > 1) {\n currSpeed = speed * speedWeaponModifier * speedBuffModifier / Math.sqrt(2);\n } else {\n currSpeed = speed * speedWeaponModifier * speedBuffModifier;\n }\n if (damageWindow > 0) {\n for (Monster monster : GameLoop.getMonsters()) {\n if (Controller.getPlayer().intersects(monster) && !(weapon instanceof Bow)) {\n System.out.println(\"Player damaged monster for \" + damage * damageWeaponModifier * damageBuffModifier);\n monster.takeDamage(damage * damageWeaponModifier * damageBuffModifier);\n damageWindow = 0;\n }\n }\n damageWindow--;\n }\n if (damageCooldown > 0 && damageCooldown % 15 == 0) { // got hit\n invisibilityCd = 5; // set invis frames\n }\n damageCooldown--; // so dmgcd triggers for first frame (60 % 15)\n\n if (moveCD > 0) {\n moveCD--;\n } else {\n if (input.contains(\"A\") && positionX > 10) {\n imageView.setScaleX(1);\n moveRelative(-currSpeed, 0);\n direction = 0;\n }\n if (input.contains(\"D\") && positionX + width < (scene.getWidth() - 25)) {\n imageView.setScaleX(-1);\n moveRelative(currSpeed, 0);\n direction = 1;\n }\n if (input.contains(\"W\") && positionY > 10) {\n moveRelative(0, -currSpeed);\n }\n if (input.contains(\"S\") && positionY + height < (scene.getHeight() - 55)) {\n moveRelative(0, currSpeed);\n }\n }\n\n if (invisibilityCd > 0) { // Overwrite setScale if invis frames\n imageView.setScaleX(0);\n } else if (imageView.getScaleX() == 0) { // If player didn't move\n if (direction == 0) { // same direction\n imageView.setScaleX(1);\n } else if (direction == 1) {\n imageView.setScaleX(-1);\n }\n }\n invisibilityCd--;\n\n\n //Keyboard transitions to screens\n if (input.contains(\"I\")) {\n containedI = true;\n }\n if (containedI && !input.contains(\"I\")) { //Go to inventory if I was released.\n Controller.goToInventory();\n input.remove(\"I\");\n containedI = false;\n }\n\n }", "public static void Beriberi(EntityPlayer player){\n HealthEffect.effectSlowness(player, 1);\n }", "public void attack() {\n energy = 2;\n redBull = 0;\n gun = 0;\n target = 1;\n // if Player is in range take off a life.\n if (CharacterTask.ghostLocation == GameWindow.playerLocation) {\n playerLives = playerLives - 1;\n System.out.println(\"Player Lives: \" + playerLives);\n }\n }", "public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }", "public void boingg(Player player) {\n if (player.getCircle().getBoundsInParent().intersects(right.getBoundsInParent())) {\n\n if ((int) player.normalVelocityX == 0) {\n player.normalVelocityX = 4;\n } else {\n player.normalVelocityX = Math.abs(player.normalVelocityX) * springiness;\n }\n\n } else if (player.getCircle().getBoundsInParent().intersects(left.getBoundsInParent())) {\n if ((int) player.normalVelocityX == 0) {\n player.normalVelocityX = -4;\n } else {\n player.normalVelocityX = Math.abs(player.normalVelocityX) * -springiness;\n }\n } else {\n player.normalVelocityX *= springiness;\n }\n\n player.normalVelocityY *= -springiness;\n player.angularVelocity *= -springiness;\n \n rectangle.setFill(AssetManager.springSkin(false));\n\n }", "public static int getEnemyLives(){\n return 1 + currentLvl * 2;\n\n }", "public void checkLevel(){\n if(score<50){\n level = 1;\n asteroidsMaxNumber = 5;\n }\n if(score>50 && level == 1){\n level = 2;\n asteroidsMaxNumber = 7;\n }\n if(score>100 && level == 2){\n level = 3;\n asteroidsMaxNumber = 10;\n }\n if(score>200 && level == 3){\n level = 4;\n asteroidsMaxNumber = 13;\n }\n if(score>350 && level == 4){\n level = 5;\n asteroidsMaxNumber = 15;\n }\n }", "@Override\n public void update(float delta) {\n if (health>Boss.bossHealth * 0.75) phase = 1;\n if (health<=Boss.bossHealth * 0.75) phase = 2;\n if (health<=Boss.bossHealth * 0.5) phase = 3;\n if (health<=Boss.bossHealth * 0.25) phase = 4;\n updatePositions(delta);\n this.landmines.trimToSize();\n this.bulletArray.trimToSize();\n if (!this.isPositioned){\n this.positionSelf(delta);\n }else{\n if (phase == 1){\n moveSelf(delta);\n fireBullet(delta);\n shootLandmines(delta);\n }\n if (phase == 2){\n moveSelf(delta);\n fireBullet(delta);\n shootLandmines(delta);\n shootLaser(delta);\n }\n if (phase == 3){\n clearLaser();\n moveSelf(delta);\n shootLandmines(delta);\n spawnMinions(delta);\n }\n if (phase == 4){\n moveSelf(delta);\n fireBullet(delta);\n shootLandmines(delta);\n shootLaser(delta);\n spawnMinions(delta);\n }\n\n }\n\n }", "public void takedmg(int dmg){\n curHp -= dmg;\n }", "public void attack(){\n activity = CreatureActivity.ATTACK;\n createWeapon();\n endAttack = new CountDown(20); //100\n endAnimationAttack = new CountDown(100);\n }", "private void setScale() {\n this.particleScale = (1 - ((float) slowTime / 50)) * (1.5f * (float) offset);\n }", "public void update(float deltaTime) {\n if (creationPoint.y != (int)(GameView.instance.groundLevel - height*3/4) || creationPoint.x != x+width/2){\n creationPoint.x = x+width/2-width/4;\n creationPoint.y = (int)(GameView.instance.groundLevel - height/2)+height/8;\n }\n\n\n if(isStanding) {\n\n /*System.out.println(creationPoint.x);\n System.out.println(GameView.instance.player.position.x);\n System.out.println(GameView.instance.player.position.x-creationPoint.x);\n System.out.println(GameView.instance.cameraSize*attackRange);*/\n\n tax();\n\n\n //=======================================================================================//\n\n //Buildings\n\n //=======================================================================================//\n\n\n grow();\n\n\n // = ======== == ==\n // = = == == ==\n // ===== == ====\n // = = == == ===\n\n if (inRange() && !surrender) {\n countdown+=GameView.instance.fixedDeltaTime;\n //System.out.println(countdown);\n float shootSpeed=4-lv;\n if (countdown > 1000*shootSpeed) {\n\n if (countdown > 1200*shootSpeed && attack == 0) {\n Attack();\n\n attack += 1;\n }\n\n if (countdown > 1400*shootSpeed && attack == 1) {\n Attack();\n\n attack += 1;\n }\n\n if (countdown > 1600*shootSpeed && attack == 2) {\n Attack();\n\n attack += 1;\n }\n\n if (countdown >= 1800*shootSpeed) {\n countdown = 0;\n attack = 0;\n }\n }\n }\n if ((Scene.instance.timeOfDay) / (Scene.instance.dayLength) > 0.6) {\n spawnedNPC = false;\n }\n if(!spawnedNPC) {\n //spawning thief\n if ((townFear > 20 && lv != 0 && (currentGold < maxGold / 2)) || (goldRate < 200 && lv != 0) && Scene.instance.day > 2) {\n GameView.instance.npc_pool.spawnThiefs(x, (int) GameView.instance.groundLevel, 1, this);\n }\n if(!surrender) {\n //spawning dragonslayer\n if (townFear > 30 && lv != 0) {\n GameView.instance.npc_pool.spawnDragonLayers(x, (int) GameView.instance.groundLevel, this);\n }\n\n //spawning wizard\n if (townFear > 35 && lv == 2 && !summonedWizard) {\n GameView.instance.npc_pool.spawnFarmers(x, (int) GameView.instance.groundLevel, this);\n summonedWizard = true;\n }\n }\n spawnedNPC = true;\n }\n\n if(!surrender) {\n if (townFear > surrenderFear) {\n surrender = true;\n flag.setSurrender(surrender);\n SoundEffects.instance.play(SoundEffects.TRIBUTE);\n }\n }\n else {\n if(townFear < surrenderFear/2) {\n surrender = false;\n flag.setSurrender(surrender);\n\n }\n }\n\n\n\n Flagposition(deltaTime);\n }\n else {\n buildingImage = SpriteManager.instance.getBuildingSprite(\"FortressRuin\");\n\n if(beenEmptied == false){\n GoldPool.instance.spawnGold(collider.centerX(), collider.centerY(),Math.min(currentGold,100*(lv+1)) );\n beenEmptied = true;\n }\n townFear = 0;\n }\n\n //==== ===== ===== = == ==== ============================\n //= = == = = = = == = = ============================\n //==== == ===== ===== == ==== ============================\n //= == ===== = = = == = == ============================\n repair(deltaTime);\n\n for(int i = 0; i < currentBuildingsLeft.size(); i++){\n currentBuildingsLeft.get(i).update(deltaTime);\n }\n\n for(int i = 0; i < currentBuildingsRight.size(); i++){\n currentBuildingsRight.get(i).update(deltaTime);\n }\n super.update(deltaTime);\n\n }", "public void checkHealth(){\n if (this.getHealth() < this.initialHealth/2){\n this.setImgSrc(\"/students/footballstudent1.png\");\n this.getTile().setImage(\"/students/footballstudent1.png\");\n }\n }", "public float spiderScaleAmount()\n {\nreturn 1F;\n }", "protected void preRenderCallback(EntityBat p_77041_1_, float p_77041_2_)\n {\n GL11.glScalef(0.35F, 0.35F, 0.35F);\n }", "@Override\n public void update() {\n App.updateScore();\n App.updateRocketsCount();\n checkLevel();\n\n if(pickupSpawnCooldown > 0){\n pickupSpawnCooldown--;\n }\n\n player.setSpeed(new Point2D(player.getSpeed().getX()*0.98,player.getSpeed().getY()*0.98));\n int rand = random.nextInt(100);\n if(rand == 0 && asteroidsNumber<asteroidsMaxNumber){\n createAsteroid();\n asteroidsNumber++;\n }\n rand = random.nextInt(500);\n if(rand == 0 && astronautsNumber<astronautsMaxNumber){\n createAstronaut();\n astronautsNumber++;\n }\n }", "@Override\r\n\tpublic void act(float delta) {\r\n\r\n\t\t// position\r\n\t\tsetSpritesPosition();\r\n\t\tif(previousHealth != g.i().playerHealth)\r\n\t\t\tcover.setScale((100f -g.i().playerHealth)/100f, 1f);\r\n\t\tstateTime += Gdx.graphics.getDeltaTime();\r\n\t\tcurrentFrame = healthBarAnimation.getKeyFrame(stateTime, true);\r\n\t\theroHealth.setRegion(currentFrame);\r\n\t\t\r\n\t\tpreviousHealth = g.i().playerHealth;\r\n\r\n\t}", "public void tick() {\n if (ShulkerEntity.this.world.getDifficulty() != Difficulty.PEACEFUL) {\n --this.attackTime;\n LivingEntity livingentity = ShulkerEntity.this.getAttackTarget();\n ShulkerEntity.this.getLookController().setLookPositionWithEntity(livingentity, 180.0F, 180.0F);\n double d0 = ShulkerEntity.this.getDistanceSq(livingentity);\n if (d0 < 400.0D) {\n if (this.attackTime <= 0) {\n this.attackTime = 20 + ShulkerEntity.this.rand.nextInt(10) * 20 / 2;\n ShulkerEntity.this.world.addEntity(new ShulkerBulletEntity(ShulkerEntity.this.world, ShulkerEntity.this, livingentity, ShulkerEntity.this.getAttachmentFacing().getAxis()));\n ShulkerEntity.this.playSound(SoundEvents.ENTITY_SHULKER_SHOOT, 2.0F, (ShulkerEntity.this.rand.nextFloat() - ShulkerEntity.this.rand.nextFloat()) * 0.2F + 1.0F);\n }\n } else {\n ShulkerEntity.this.setAttackTarget((LivingEntity)null);\n }\n\n super.tick();\n }\n }", "public void levelUp2()\r\n {\r\n this.health = 1200;\r\n Story.levelUp2Text();\r\n }", "public void newlevel() {\n\t\tblack = new Background(COURT_WIDTH, COURT_HEIGHT); // reset background\n\t\tcannon = new Cannon(COURT_WIDTH, COURT_HEIGHT); // reset cannon\n\t\tdeadcannon = null;\n\t\tbullet = null;\n\t\tshot1 = null;\n\t\tshot2 = null;\n\t\t// reset top row\n\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\talien1[i] = new Alien(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien1[i].pos_x = alien1[i].pos_x + 30*i;\n\t\t\talien1[i].v_x = level + alien1[i].v_x;\n\t\t}\n\t\t// reset second row\n\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\talien2[i] = new Alien2(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien2[i].pos_x = alien2[i].pos_x + 30*i;\n\t\t\talien2[i].v_x = level + alien2[i].v_x;\n\t\t}\n\t\t// reset third row\n\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\talien3[i] = new Alien3(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien3[i].pos_x = alien3[i].pos_x + 30*i;\n\t\t\talien3[i].v_x = level + alien3[i].v_x;\n\t\t}\n\t}", "public Skeleton( int wave ){\n\tName = \"Skeleton\";\n\tHP = maxHP = 20 + ( wave * 20);\n\tAttack = (wave * 7);\n\tDefense = (wave * 4);\n\tSPDefense = (wave *2);\n\tAccuracy = (wave * 4);\n\tSpeed = .65;\n }", "int getAttackStatStage();", "@Override\r\n\tpublic void heal() {\n\t\tSystem.out.println(\"Paladin \" + super.getName() + \" heals for 50 points.\");\r\n\t\tsuper.setHitPoints(super.getHitPoints() + 50);\r\n\t}", "private void takeDamage(int damage){ health -= damage;}", "public void swim() {\r\n\t\tif(super.getPosition()[0] == Ocean.getInstance().getWidth()-71){\r\n\t\t\tinvX = true;\r\n\t\t} else if(super.getPosition()[0] == 0){\r\n\t\t\tinvX = false;\r\n\t\t}\r\n\t\tif(super.getPosition()[1] == Ocean.getInstance().getDepth()-71){\r\n\t\t\tinvY = true;\r\n\t\t} else if(super.getPosition()[1] == 0){\r\n\t\t\tinvY = false;\r\n\t\t}\r\n\t\tif(invX){\r\n\t\t\tsuper.getPosition()[0]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[0]+=1;\r\n\t\t}\r\n\t\tif(invY){\r\n\t\t\tsuper.getPosition()[1]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[1]+=1;\r\n\t\t}\r\n\t}", "void mineWave( LogicEngine in_logicEngine,int in_numberOfMines, boolean b_isStaggered,boolean randomX)\r\n\t{\r\n\t\tint i_numberOfMines=in_numberOfMines;\r\n\t\tif(randomX)\r\n\t\t\ti_numberOfMines=1;\r\n\t\t\r\n\t\t\r\n\t\t//String in_spritename, double in_x, double in_y, boolean in_rotateToV,int in_shootEverySteps\r\n\t\tfor(int i=0 ; i< i_numberOfMines ; i++)\r\n\t\t{\r\n\t\t\tGameObject mine = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/mine.png\",((double)i+0.5)* (LogicEngine.SCREEN_WIDTH/i_numberOfMines+1),LogicEngine.SCREEN_HEIGHT+5,5);\r\n\t\t\t\r\n\t\t\t//to do a interleafed pattern\r\n\t\t\tif(b_isStaggered)\r\n\t\t\t\tmine.v.setX(mine.v.getX()+(LogicEngine.SCREEN_WIDTH/((i_numberOfMines+1)*2)));\r\n\t\t\telse\r\n\t\t\t\tif(randomX)\r\n\t\t\t\t\tmine.v.setX(LogicEngine.SCREEN_WIDTH * Math.random());\r\n\t\t\t\r\n\t\t\tmine.i_animationFrame=0;\r\n\t\t\tmine.i_animationFrameSizeWidth=16;\r\n\t\t\tmine.i_animationFrameSizeHeight=16;\r\n\t\t\t\r\n\r\n\t\t\tmine.stepHandlers.add(new FlyStraightStep(new Vector2d(0,-2)));\r\n\t\t\t\r\n\t\t\tHitpointShipCollision c = new HitpointShipCollision(mine,3,10);\r\n\t\t\tc.setSimpleExplosion();\r\n\t\t\t\r\n\t\t\tmine.shotHandler = new ExplodeIfInRange(true);\r\n\t\t\t\r\n\t\t\tmine.collisionHandler =c; \r\n\t\t\tmine.allegiance = GameObject.ALLEGIANCES.LETHAL;\r\n\t\t\t\r\n\t\t\tin_logicEngine.objectsEnemies.add(mine);\r\n\t\t}\r\n\t}", "void dropHandler() {\n if (tickSpeed < 0) {\n if((int)random(1,6) == 1){ //every 6 medkits the handler drops a minigun\n Sprite mg = new Sprite(minigun);\n mg.moveToPoint(random(0,2048), random(0, 2048)); //moves drop to random point\n minigunDrop.add(mg);\n tickSpeed = (int)random(100,500);\n }else if((int)random(1,4) == 1){ //every 4 medkits the handler drops a coilgun\n Sprite cg = new Sprite(coilgun);\n cg.moveToPoint(random(0,2048), random(0,2048)); //moves drop to random point\n coilgunDrop.add(cg);\n tickSpeed = (int)random(100,500); //changes \n }\n else {\n \n \n Medkit hp = new Medkit();\n hp.med.moveToPoint(random(0, 2048), random(0, 2048));\n\n health.add(hp);\n\n tickSpeed = (int)random(100,500);\n }\n }\n tickSpeed--;\n for (Medkit hp: health) {\n hp.med.display();\n hp.timer--;\n\n }\n for (Sprite mg: minigunDrop){\n mg.display();\n }\n for (Sprite cg: coilgunDrop){\n cg.display();\n }\n // e.forward(5);\n}", "public void setHungerDamage(float hunger);", "public void runLevels() {\n int levelnum = 1;\n double speed = 1;\n while (true) {\n\n GameLevel level = new GameLevel(new Level(levelnum, speed),\n this.keyboardSensor, this.animationRunner, this.blocks,\n this.score, this.numLives);\n this.frameRate = level.getFrameRate();\n\n level.initialize();\n\n while (this.blocks.getValue() > 0 && this.numLives.getValue() > 0) {\n level.playOneTurn(frameRate);\n if (this.blocks.getValue() == 0) {\n\n break;\n }\n\n this.numLives.decrease(1);\n }\n levelnum++;\n speed += 0.5;\n\n if (this.numLives.getValue() <= 0) {\n break;\n }\n\n }\n\n this.animationRunner.run(new KeyPressStoppableAnimation(animationRunner.getGui().getKeyboardSensor(),\n KeyboardSensor.SPACE_KEY, new EndScreen(score.getValue(), false)), this.frameRate);\n\n showScore();\n\n score = new Counter(0);\n numLives = new Counter(numberLives);\n blocks = new Counter(0);\n\n }", "public void update(){\n if(player.getPlaying()) {\n // update player animation.\n player.update();\n // update background animation.\n bg.update();\n // checks if skater has finished falling animation to end the game.\n if (player.animate instanceof FallAnimate && player.animate.getDone()) {\n player.setPlaying(false);\n player.setFall(false);\n System.out.println(\"End \" + player.getPlaying());\n }\n // checks if player has reached required points.\n if(player.getScore() > TARGETSCORE){\n player.setPlaying(false);\n levelCompleted = true;\n levelReset = System.nanoTime();\n }\n // increment jumpcounter while crouched.\n if (player.animate instanceof CrouchingAnimate && (jumpCounter <= 25)) {\n jumpCounter++;\n }\n // Creating Bananas:\n long bananaElapsed = (System.nanoTime() - bananaStartTime) / 1000000;\n if(bananaElapsed > 10500 && MainActivity.difficulty != 0){\n bananas.add(new Banana(BitmapFactory.decodeResource(getResources(),\n R.drawable.bigbanana), WIDTH + 10, (int) (HEIGHT * 0.85), 40, 40, 1));\n bananaStartTime = System.nanoTime();\n }\n //collision detection:\n for (int i = 0; i < bananas.size(); i++) {\n bananas.get(i).update();\n if (collision(bananas.get(i), player)) {\n bananas.remove(i);\n player.setFall(true);\n player.setPlaying(false);\n break;\n }\n // removing bananas when off screen\n if (bananas.get(i).getX() < -100) {\n bananas.remove(i);\n break;\n }\n }\n // Creating Cones:\n long coneElapsed = (System.nanoTime() - coneStartTime) / 1000000;\n if (coneElapsed > 5000) {\n cones.add(new TallBricks(BitmapFactory.decodeResource(getResources(),\n R.drawable.tallbricks), WIDTH + 10, (int) (HEIGHT * 0.59), 100, 161, 1));\n coneStartTime = System.nanoTime();\n }\n // update and check collisions.\n for (int i = 0; i < cones.size(); i++) {\n\n cones.get(i).update();\n if (collision(cones.get(i), player) && MainActivity.difficulty == 0) {\n cones.remove(i);\n player.forceSetScore(-500);\n break;\n }\n\n if (collision(cones.get(i), player) && MainActivity.difficulty != 0) {\n cones.remove(i);\n player.setFall(true);\n break;\n }\n // removing cones when off screen\n if (cones.get(i).getX() < -100) {\n cones.remove(i);\n break;\n }\n\n if((cones.get(i).getX() < player.getX() -15) ){\n cones.remove(i);\n player.setPendingPoints(1000);\n break;\n }\n }\n }\n else if(player.getPlaying() == false && levelCompleted){\n long resetElapsed = (System.nanoTime()-levelReset)/1000000;\n if(resetElapsed > 4000) {\n Intent resultIntent = new Intent();\n resultIntent.putExtra(\"result\",true);\n ((Activity)context).setResult(Activity.RESULT_OK,resultIntent);\n ((Activity)context).finish();\n }\n }\n else if(player.getPlaying() == false && !levelCompleted){\n if(!reset){\n newGameCreated = false;\n startReset = System.nanoTime();\n reset = true;\n }\n\n long resetElapsed = (System.nanoTime()-startReset)/1000000;\n\n if(resetElapsed > 2500 && !newGameCreated){\n newGame();\n }\n else if(resetElapsed < 2500 && started){\n player.update();\n }\n }\n }", "private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }", "public void setScalePosition(int level) throws RemoteException, IllegalParamException {\n io.scaleRMI(number, level);\n }", "void gainHealth(int points) {\n this.health += points;\n }", "private void percentageScaling() {\n switch (slot) {\n case Torso -> updateBonusStats(1);\n case Head -> updateBonusStats(0.8);\n case Legs -> updateBonusStats(0.6);\n }\n }", "PlayingSquare giveDamage(int damage);", "@Override\n protected int strengthViability(Creature c){\n int baseViability = super.strengthViability(c);\n if (Elements.elementDamageMultiplier(c,bossFormation.getFrontCreature().getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST * 3);\n }\n if (Elements.elementDamageMultiplier(bossFormation.getFrontCreature(),c.getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST / 3);\n }\n return baseViability;\n }", "@Override\n public void setup_level(GameController gameController) {\n\n super.setup_level(gameController);\n \n castle = new Castle (this, FINISH_BARREL_POSITION, gameController);\n \n {\n BoxShape bottom_sensor_shape = new BoxShape (250f,0.2f);\n Body ground = new StaticBody(this,bottom_sensor_shape);\n Sensor killer_sensor = new Sensor(ground, bottom_sensor_shape);\n ground.setPosition(new Vec2(170f,-7f));\n killer_sensor.addSensorListener(new Hero_killer_sensor(this));\n \n \n Shape left_wall_shape = new BoxShape(1, 20);\n StaticBody wall = new StaticBody(this, left_wall_shape);\n wall.setPosition(new Vec2(-3f, 20f));\n wall.addImage(new BodyImage(\"sprites/platforms/invisible_wall.png\"));\n }\n {\n \n \n get_platforms().add(new Platform(this, 8, new Vec2 (3f, -1f), \"TRUNK\"));\n get_platforms().add(new Platform(this, 5, new Vec2 (20f, 6f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(22f, 12f)));\n get_coins().add(new Coin(this, new Vec2(24f, 12f)));\n get_coins().add(new Coin(this, new Vec2(26f, 12f)));\n get_platforms().add(new Platform(this, 18, new Vec2 (42f, 6f), \"CLOUD\")); \n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(44f,7f), 4, \"TURTLE\", this));\n \n \n get_platforms().add(new Platform(this, 4, new Vec2 (96f, 6f), \"CLOUD\")); \n get_fire_rods().add(new Fire_rod(this, new Vec2 (90f, 18f)));\n \n get_platforms().add(new Platform(this, 4, new Vec2 (118f, 6f), \"CLOUD\"));\n get_fire_rods().add(new Fire_rod(this, new Vec2 (112f, 18f)));\n \n get_platforms().add(new Platform(this, 4, new Vec2 (136f, 2f), \"CLOUD\"));\n get_fire_rods().add(new Fire_rod(this, new Vec2 (138f, 12f)));\n \n get_platforms().add(new Platform(this, 4, new Vec2 (148f, 8f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(150f, 14f)));\n get_coins().add(new Coin(this, new Vec2(152f, 14f)));\n get_platforms().add(new Platform(this, 5, new Vec2 (164f, 8f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (179f, 4f)));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(167f,9f), 4, \"TURTLE\", this));\n \n get_platforms().add(new Platform(this, 5, new Vec2 (184f, 8f), \"CLOUD\"));\n get_dynamic_enemies().add(new Brown_enemy(new Vec2(187f, 9f), 4, \"BROWN\", this));\n \n get_platforms().add(new Platform(this, 3, new Vec2 (204, 8f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(206f, 14f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (214, 13f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (230f, 10.5f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (228, 13f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (244f, 10.5f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (242, 13f), \"CLOUD\"));\n get_coins().add(new Coin(this, new Vec2(246f, 19f)));\n get_coins().add(new Coin(this, new Vec2(246f, 21f)));\n get_coins().add(new Coin(this, new Vec2(244f, 19f)));\n get_coins().add(new Coin(this, new Vec2(244f, 21f)));\n get_fire_rods().add(new Fire_rod(this, new Vec2 (258f, 10.5f)));\n get_platforms().add(new Platform(this, 3, new Vec2 (256, 13f), \"CLOUD\"));\n \n get_platforms().add(new Platform(this, 3, new Vec2 (266, 18f), \"CLOUD\"));\n get_dynamic_enemies().add(new Brown_enemy(new Vec2(268f, 19.25f), 4, \"BROWN\", this));\n \n get_platforms().add(new Platform(this, 3, new Vec2 (276f, 5f), \"TRUNK\"));\n get_coins().add(new Coin(this, new Vec2(279f, 21f)));\n get_coins().add(new Coin(this, new Vec2(279f, 19f)));\n get_coins().add(new Coin(this, new Vec2(279f, 17f)));\n get_coins().add(new Coin(this, new Vec2(279f, 15f)));\n \n get_platforms().add(new Platform(this, 6, new Vec2 (292f, 4f), \"TRUNK\"));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(294f,6f), -4, \"TURTLE\", this));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(298f,6f), 4, \"TURTLE\", this));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (312f, 5f), \"TRUNK\"));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (322f, 8f), \"TRUNK\"));\n \n get_platforms().add(new Platform(this, 1, new Vec2 (333f, 11f), \"CLOUD\"));\n \n \n \n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (351f, 11.5f)));\n get_platforms().add(new Platform(this, 1, new Vec2 (343f, 15f), \"CLOUD\"));\n get_platforms().add(new Platform(this, 1, new Vec2 (351, 15f), \"CLOUD\"));\n \n get_fire_rods().add(new Fire_rod(this, new Vec2 (357f, 27.5f)));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (359, 15f), \"CLOUD\"));\n \n get_platforms().add(new Platform(this, 2, new Vec2 (373, 6f), \"TRUNK\"));\n get_pipes().add(new Pipe(this, new Vec2(374.3f,11f) , true));\n get_platforms().add(new Platform(this, 3, new Vec2 (389, 12f), \"CLOUD\"));\n get_dynamic_enemies().add(new Turtle_fly_enemy(new Vec2(391f,14f), -4, \"TURTLE\", this));\n \n get_platforms().add(new Platform(this, 20, new Vec2 (399, 3f), \"GROUND\"));\n \n \n \n \n \n\n }\n \n this.start();\n\n }", "public LevelButton(int y, String number, int stars){\n this.stars = stars;\n this.name = number;\n this.number = new Sprite(new Texture(Gdx.files.internal(\"huds/numbers/\"+number+\".png\")));\n\n slot = new Sprite(new Texture(Gdx.files.internal(\"huds/menu/level slot.png\")));\n star1 = new Sprite(new Texture(Gdx.files.internal(\"huds/menu/star.png\")));\n star2 = new Sprite(star1.getTexture());\n star3 = new Sprite(star1.getTexture());\n slot.setSize(slot.getWidth()*2,slot.getHeight()*2);\n slot.setPosition(Initial.HEIGHT/5, Initial.WIDTH*0.69f - (slot.getHeight()+ 10)*y);\n this.number.setPosition(slot.getX()+slot.getWidth()*0.35f,slot.getY()+slot.getHeight()*0.3f);\n this.number.setSize(this.number.getWidth()*3,this.number.getHeight()*3);\n if(stars == 2){\n star3.setColor(Color.BLACK);\n }\n if(stars == 1){\n star2.setColor(Color.BLACK);\n star3.setColor(Color.BLACK);\n }\n if(stars == 0){\n star1.setColor(Color.BLACK);\n star2.setColor(Color.BLACK);\n star3.setColor(Color.BLACK);\n }\n star1.setPosition(slot.getX() + 5 + slot.getWidth(),slot.getY()+slot.getHeight()/6);\n star2.setPosition(slot.getX() + slot.getWidth()*2 -5,slot.getY()+slot.getHeight()/6);\n star3.setPosition(slot.getX() + slot.getWidth()*3 -10,slot.getY()+slot.getHeight()/6);\n star1.setSize(slot.getWidth()*0.7f,slot.getHeight()*0.7f);\n star2.setSize(slot.getWidth()*0.7f,slot.getHeight()*0.7f);\n star3.setSize(slot.getWidth()*0.7f,slot.getHeight()*0.7f);\n\n rect = new Rectangle(slot.getX(),slot.getY(), Initial.WIDTH/2.7f,slot.getHeight());\n }", "int getScale();", "@Override\r\n public void handleAttack(Player player) {\r\n player.decreaseHealth(3);\r\n player.setColor(true);\r\n }", "public void givePlayerLevelBonus() {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\t\tp.addScore(5 * (currentLevel-1));\n\t\t\t}\n\t\t}\n\t\tserver.updateHighscoreList();\n\t\tserver.addTextToLoggingWindow(\"Server gives all players level bonus\");\n\t}", "public void Attack(){\n float randomx = (float)(Math.random()-0.5)*attackRange*GameView.instance.cameraSize/10;\n float randomy = (float)(Math.random()-0.5)*attackRange*GameView.instance.cameraSize/5;\n Vector2 target = GameView.instance.player.aimFor();\n float dx = target.x-creationPoint.x;\n float dy =target.y-creationPoint.y;\n float l= (float)Math.sqrt(dx*dx+dy*dy);\n dx = dx/l-((float)Math.random()-0.5f)/2;\n dy = dy/l-(float)(Math.random())/10;\n ProjectilePool.instance.shootArrow(creationPoint.x, creationPoint.y, 1, dx, dy, 3);\n }", "public void move(Level level,Player player) {\n\t\tint currentX = getLocationX();\n\t\tint currentY = getLocationY();\n\t\tString[][] prev = pathFinder(currentX,currentY,level);\n\t\tboolean[][] path = reconstructPath(prev,currentX,currentY,player.getLocationX(),player.getLocationY(),level);\n\n\t\tif (path[getLocationX()+2][getLocationY()]) {\n\t\t\tsetLocationX(getLocationX() + 2);\n\t\t\tsetImage(new Image(\"/shark_right.png\"));\n\t\t} else if (path[getLocationX()-2][getLocationY()]) {\n\t\t\tsetLocationX(getLocationX() - 2);\n\t\t\tsetImage(new Image(\"/shark.png\"));\n\t\t} else if (path[getLocationX()][getLocationY()+2]) {\n\t\t\tsetLocationY(getLocationY() + 2);\n\t\t\tsetImage(new Image(\"/shark_down.png\"));\n\t\t} else if (path[getLocationX()][getLocationY()-2]) {\n\t\t\tsetLocationY(getLocationY() - 2);\n\t\t\tsetImage(new Image(\"/shark_up.png\"));\n\t\t} else if (path[getLocationX()+1][getLocationY()+1]) {\n\t\t\tsetLocationX(getLocationX() + 1);\n\t\t\tsetLocationY(getLocationY() + 1);\n\t\t\tsetImage(new Image(\"/shark_right.png\"));\n\t\t} else if (path[getLocationX()-1][getLocationY()-1]) {\n\t\t\tsetLocationX(getLocationX() - 1);\n\t\t\tsetLocationY(getLocationY() - 1);\n\t\t\tsetImage(new Image(\"/shark.png\"));\n\t\t} else if (path[getLocationX()-1][getLocationY()+1]) {\n\t\t\tsetLocationY(getLocationY() + 1);\n\t\t\tsetLocationX(getLocationX() - 1);\n\t\t\tsetImage(new Image(\"/shark_down.png\"));\n\t\t} else if (path[getLocationX()+1][getLocationY()-1]) {\n\t\t\tsetLocationY(getLocationY() - 1);\n\t\t\tsetLocationX(getLocationX() + 1);\n\t\t\tsetImage(new Image(\"/shark_up.png\"));\n\t\t} else if (path[getLocationX()+1][getLocationY()]) {\n\t\t\tsetLocationX(getLocationX() + 1);\n\t\t\tsetImage(new Image(\"/shark_right.png\"));\n\t\t} else if (path[getLocationX()-1][getLocationY()]) {\n\t\t\tsetLocationX(getLocationX() - 1);\n\t\t\tsetImage(new Image(\"/shark.png\"));\n\t\t} else if (path[getLocationX()][getLocationY()+1]) {\n\t\t\tsetLocationY(getLocationY() + 1);\n\t\t\tsetImage(new Image(\"/shark_down.png\"));\n\t\t} else if (path[getLocationX()][getLocationY()-1]) {\n\t\t\tsetLocationY(getLocationY() - 1);\n\t\t\tsetImage(new Image(\"/shark_up.png\"));\n\t\t}\n\t}", "public void attack()\n {\n getWorld().addObject(new RifleBullet(player.getX(), player.getY(), 1, 6, true), getX(), getY()); \n }", "@Override\n\tpublic void update() \n\t{\n\t\tPoint loc = getLocationCopy();\n\t\tEnemy c = game.findNearestEnemy(loc);\n\t\tif (c == null)\n\t\t\treturn;\n\t\t\n\t\tif(c.getLocation().distance(loc) < 100 && game.getFrameCount() % 30 == 0)\n\t\t{\n\t\t\tFlyingSalt s = new FlyingSalt(game, loc, \n\t\t\t\t\t\t\t\t\tc.getLocation().x - position.x,\n\t\t\t\t\t\t\t\t\tc.getLocation().y - position.y);\n\t\t\tgame.addAnimatable(s);\n\t\t}\n\t}", "private double timeFractionBasedOnLevel(){\n // assume AnimationTimer speed to be relevant to 60 fps\n switch (board.getLevel()){\n case 0 -> {\n return 60.0 / 48.0;\n }\n case 1 -> {\n return 60.0 / 43.0;\n }\n case 2 -> {\n return 60.0 / 38.0;\n }\n case 3 -> {\n return 60.0 / 33.0;\n }\n case 4 -> {\n return 60.0 / 28.0;\n }\n case 5 -> {\n return 60.0 / 23.0;\n }\n case 6 -> {\n return 60.0 / 18.0;\n }\n case 7 -> {\n return 60.0 / 13.0;\n }\n case 8 -> {\n return 60.0 / 8.0;\n }\n case 9 -> {\n return 60.0 / 6.0;\n }\n case 10, 11, 12 -> {\n return 60.0 / 5.0;\n }\n case 13, 14, 15 -> {\n return 60.0 / 4.0;\n }\n case 16, 17, 18 -> {\n return 60.0 / 3.0;\n }\n case 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 -> {\n return 60.0 / 2.0;\n }\n default -> {\n return 60.0 / 1.01;\n }\n }\n }", "public void updateSpeed() {\n\t\t// should work b/c of integer arithmetic\n\t\tif(isTwoPlayer)\n\t\t\treturn;\n\t\t//System.out.println(\"speed up factor: \" + speedUpFactor);\n\t\t//System.out.println(\"numlinescleared/6: \" + numLinesCleared/6);\n\t\tif (speedUpFactor != numLinesCleared/6) {\n\t\t\t// speed by 10% every lines cleared, needs to be checked\n\t\t\tspeedUpFactor = numLinesCleared/6;\n\t\t\tif(!(defaultSpeed - 30*speedUpFactor <= 0))\n\t\t\t\tdefaultSpeed = defaultSpeed - 30*speedUpFactor;\n\t\t\tlevel = speedUpFactor;\n\t\t}\n\t\t//System.out.println(\"default speed: \" + defaultSpeed);\n\t}", "public void setScale(float x) {\n worldMatrix = math3d.mul(math3d.scaling(new vec3(x,x,x)), worldMatrix);\n }", "private static float getBonus(LivingEntity living, int level) {\n // 25% boost per level at max\n int effectLevel = TinkerModifiers.momentumEffect.get().getLevel(living) + 1;\n return level * effectLevel / 128f;\n }", "public void levelUp1()\r\n {\r\n this.health = 900;\r\n Story.levelUp1Text();\r\n }", "private ScaleEntityDownAction(){\r\n\t\tscaleFactor = 0.1f;\r\n\t}", "void setMaxScale(int value);", "public LevelInterface generateLevel (GamePlay playerMetrics);", "public int scale(int original);", "public void setPlayerMaxHealth(Player player) {\n int health=16+(player.getLevel()/2);\n if(health>40) health=40;\n // player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, Integer.MAX_VALUE, player.getLevel(), true));\n player.setMaxHealth(health);\n }", "public void onLivingUpdate() {\n if (!this.onGround && this.motionY < 0.0D)\n this.motionY *= 0.6D;\n\n\n if (this.ticksExisted % 20 == 0 && this.getHealth() != this.getMaxHealth() && this.getHealth() >= 1)\n this.setHealth(this.getHealth() + 1);\n\n if (worldObj.isRemote) {\n if (this.isSitting())\n worldObj.spawnParticle(EnumParticleTypes.REDSTONE, posX, posY + 1.5, posZ, 0, 0, 0);\n }\n\n if (worldObj.isRemote) {\n MoWitchAndWizard.proxy.spawnParticles(\"air_normal\", this);\n }\n\n super.onLivingUpdate();\n }", "private void applyLvlUpCost() {\n }", "@Override\n\tpublic void update() {\n\t\tposX -= ninja.getSpeedX();\n\t\t\n\t}" ]
[ "0.79867524", "0.7544164", "0.67342836", "0.64218485", "0.632934", "0.6219222", "0.58486885", "0.5801193", "0.57407707", "0.56591487", "0.5652403", "0.55131596", "0.5492235", "0.5459598", "0.545856", "0.54164284", "0.5370942", "0.53461397", "0.53298795", "0.5321723", "0.5298762", "0.5294654", "0.5293192", "0.52630514", "0.5261397", "0.5254308", "0.52527046", "0.5246499", "0.5246499", "0.5237185", "0.5232644", "0.5223279", "0.5221074", "0.5208903", "0.5201141", "0.51796603", "0.516888", "0.5166177", "0.5141188", "0.5123014", "0.5111962", "0.50995255", "0.50956696", "0.5090573", "0.5089982", "0.5083152", "0.5079278", "0.50690794", "0.5049445", "0.5030544", "0.502734", "0.50251746", "0.5024888", "0.50245005", "0.5024077", "0.5021623", "0.5015912", "0.5015896", "0.5007667", "0.5000865", "0.4997783", "0.4995507", "0.49888033", "0.49885225", "0.49875113", "0.49737796", "0.49716043", "0.49715397", "0.49712446", "0.49697763", "0.49625733", "0.49617064", "0.49401924", "0.49396965", "0.4933404", "0.4931273", "0.492988", "0.49295303", "0.49286214", "0.49279654", "0.4926382", "0.49253747", "0.49238706", "0.49139553", "0.49130994", "0.49051204", "0.49028832", "0.49024987", "0.49007103", "0.48891118", "0.4887042", "0.48856077", "0.48820972", "0.48804238", "0.48762926", "0.4872228", "0.48584417", "0.48533705", "0.48498428", "0.48491174" ]
0.8533089
0
Function that scales skeleton gold dropped based on level
private static int skeletonGoldScale(int skeletonGold, int playerLevel){ if(playerLevel > 1){ skeletonGold = skeletonGold + ( 1* playerLevel); return skeletonGold; }else{ return skeletonGold; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int skeletonHealthScale(int skeletonHealth, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonHealth = skeletonHealth + (5 * playerLevel);\r\n return skeletonHealth;\r\n }else{\r\n return skeletonHealth;\r\n }\r\n }", "private static int skeletonAttackScale(int skeletonAttack, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonAttack = skeletonAttack + (1 * playerLevel);\r\n return skeletonAttack;\r\n }else{\r\n return skeletonAttack;\r\n }\r\n }", "@Override\n public void scaleStats() {\n this.damage = BASE_DMG + (this.getLevel() * 3);\n }", "public void normalize()\n {\n\tdef += 200*counter;\n\tdmg -= 0.5*counter;\n\tcounter = 0;\n }", "private void level3() {\n // level 0.3\n levelBlock.moveTo(0, 400);\n levelBlock.setScaleX(200 / levelBlock.getUnscaledWidth());\n levelBlock.setScaleY(200 / levelBlock.getUnscaledHeight());\n// levelBlock.setAlpha((float).001);\n level.addChild(levelBlock);\n\n levelBlock2.moveTo(300, 400);\n levelBlock2.setScaleX(200 / levelBlock.getUnscaledWidth());\n levelBlock2.setScaleY(200 / levelBlock.getUnscaledHeight());\n level.addChild(levelBlock2);\n\n levelBlock3.moveTo(600, 400);\n levelBlock3.setScaleX(400 / levelBlock.getUnscaledWidth());\n levelBlock3.setScaleY(200 / levelBlock.getUnscaledHeight());\n level.addChild(levelBlock3);\n\n crystal1.setPosition(new Point(levelBlock.getHitbox().x + levelBlock.getHitbox().width, 500));\n crystal1.setAlpha((float) .1);\n crystal1.setScaleX(.55);\n crystal1.setScaleY(.6);\n level.addChild(crystal1);\n\n crystal2.setPosition(new Point(levelBlock2.getHitbox().x + levelBlock2.getHitbox().width, 500));\n crystal2.setAlpha((float) .1);\n crystal2.setScaleX(.55);\n crystal2.setScaleY(.6);\n level.addChild(crystal2);\n\n ash.setPosition(new Point(\n crystal1.getPosition().x,\n crystal1.getPosition().y - 70)\n );\n ash.setAlpha((float) .21);\n ash.setScaleX(.55);\n level.addChild(ash);\n\n ash2.setPosition(new Point(\n crystal2.getPosition().x,\n crystal2.getPosition().y - 70)\n );\n ash2.setAlpha((float) .21);\n ash2.setScaleX(.55);\n level.addChild(ash2);\n\n beaconA.moveTo(levelBlock.getHitbox().x + levelBlock.getHitbox().width - 60,\n levelBlock.getHitbox().y - beaconA.getUnscaledHeight());\n level.addChild(beaconA);\n\n beaconB.moveTo(levelBlock2.getHitbox().x + levelBlock2.getHitbox().width - 125,\n levelBlock2.getHitbox().y - beaconA.getUnscaledHeight());\n level.addChild(beaconB);\n\n entrance.moveTo(10, 400 - entrance.getUnscaledHeight() * entrance.getGlobalScaleY());\n entrance.setAlpha((float) 0.4);\n level.addChild(entrance);\n\n exit.setAlpha((float) 0.4);\n exit.moveTo(800 - exit.getUnscaledWidth() * exit.getGlobalScaleX() - 20,\n 400 - entrance.getUnscaledHeight() * entrance.getGlobalScaleY());\n level.addChild(exit);\n\n echoes.addChild(echoA);\n echoes.addChild(echoB);\n }", "public void newlevel() {\n\t\tblack = new Background(COURT_WIDTH, COURT_HEIGHT); // reset background\n\t\tcannon = new Cannon(COURT_WIDTH, COURT_HEIGHT); // reset cannon\n\t\tdeadcannon = null;\n\t\tbullet = null;\n\t\tshot1 = null;\n\t\tshot2 = null;\n\t\t// reset top row\n\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\talien1[i] = new Alien(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien1[i].pos_x = alien1[i].pos_x + 30*i;\n\t\t\talien1[i].v_x = level + alien1[i].v_x;\n\t\t}\n\t\t// reset second row\n\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\talien2[i] = new Alien2(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien2[i].pos_x = alien2[i].pos_x + 30*i;\n\t\t\talien2[i].v_x = level + alien2[i].v_x;\n\t\t}\n\t\t// reset third row\n\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\talien3[i] = new Alien3(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien3[i].pos_x = alien3[i].pos_x + 30*i;\n\t\t\talien3[i].v_x = level + alien3[i].v_x;\n\t\t}\n\t}", "private void generateLevel() {\n\t\tgenerateBorder();\n\t\tfor (int y = 1; y < height - 1; y++) {\n\t\t\tfor (int x = 1; x < height - 1; x++) {\n\t\t\t\tif (random.nextInt(2) == 1) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t\trandForest(x, y);\n\t\t\t\t} else {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getDirt(), false, x, y);\n\t\t\t\t\trandOre(x, y);\n\t\t\t\t}\n\t\t\t\tif (x == 4 && y == 4) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "private static int fireballDamageScale(int fireballDamage, int playerLevel){\r\n int totalDamage = 0;\r\n totalDamage = fireballDamage + (2 * playerLevel);\r\n return totalDamage;\r\n }", "public float spiderScaleAmount()\n {\nreturn 1F;\n }", "private static int devilGoldScale(int devilGold, int playerLevel){\r\n if(playerLevel > 4){\r\n devilGold = devilGold + ( 1* playerLevel);\r\n return devilGold;\r\n }else{\r\n return devilGold;\r\n }\r\n }", "@Override\n public void setLevel(int level) {\n if (level > 1) {\n this.level = level;\n scaleUp();\n percentageScaling();\n }\n }", "private static int devilHealthScale(int devilHealth, int playerLevel){\r\n if(playerLevel > 4){\r\n devilHealth = devilHealth + ((10 * (playerLevel - 4)));\r\n }\r\n return devilHealth;\r\n }", "public void scaleAnimetion(SpriteBatch batch){\n }", "@Override\n public void upgrade(int level){\n System.out.println(\"Level adfasdfasdf: \" + level);\n System.out.println(getLevel());\n\n if(level > 5) level = 5;\n\n if(level > 1){\n for (int i = 1; i < level; i++) levelUp();\n }\n\n /*\n //System.out.println(\"\\n-------\");\n //System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n\n double percentage = growth(level);\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (level % 2 != 0) range++;\n\n //System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n //System.out.println(\"-------\\n\");*/\n }", "public void generateLevel() {\n\t\tfor (int y = 0; y < this.height; y++) {\n\t\t\tfor (int x = 0; x < this.width; x++) {\n\t\t\t\tif (x * y % 10 < 5)\n\t\t\t\t\ttiles[x + y * width] = Tile.GRASS.getId();\n\t\t\t\telse\n\t\t\t\t\ttiles[x + y * width] = Tile.STONE.getId();\n\t\t\t}\n\t\t}\n\t}", "protected void func_77041_b(EntityLivingBase par1EntityLiving, float par2)\n/* */ {\n/* 87 */ scaleSpider((EntityTaintSpider)par1EntityLiving, par2);\n/* */ }", "public void drawScale()\n\t{\n\tint sw=150;\n\tint sh=10;\n\tint x=width-sw-15;\n\tint y=(int)(END_Y+sh*0.5);\n\tscaleBox=new Rectangle2D.Float(x, y, sw, sh);\n\tstrokeWeight(1);\n\t\n\tCell hc=null;\n\tCell finalhc=null;\n\tfor(int i=0;i<hoveredCells.size();i++)\n\t\t{\n\t\thc=hoveredCells.get(i);\n\t\tif(hc.level==min(levelThreshold, minHoveredLevel))\n\t\t\tfinalhc=hc;\n\t\t}\n\thc=finalhc;\n\t\n\tboolean refDrawn=false;\n\tdouble jump0=(255-(0/(float)sw)*255);\n\tdouble jump1=(255-(0/(float)sw)*255);\n\tdouble jump=Math.ceil(jump1-jump0)+2;\n\t\n\tfor(int i=0;i<sw;i++)\n\t\t{\n\t\tint h=0;\n\t\tboolean drawReference=false;\n\t\tswitch(COLOR_MODE)\n\t\t\t{\n\t\t\tcase COLOR_EXPRESSION:\n\t\t\t\tif(i>sw*0.5)\n\t\t\t\t\t{\n\t\t\t\t\th=(int)Math.round(255-((i-sw*0.5)/(sw*0.5)*255));\n\t\t\t\t\tstroke(255,h,h);\n\t\t\t\t\tif(hc!=null && hc.color.get(selectedCol).getRed()==255 && Math.abs(hc.color.get(selectedCol).getBlue()-h)<=jump)\n\t\t\t\t\t\tdrawReference=true;\n\t\t\t\t\t}\n\t\t\t\telse\t\n\t\t\t\t\t{\n\t\t\t\t\th=(int)Math.round(255-(Math.abs(i-sw*0.5)/Math.abs(sw*0.5))*255);\n\t\t\t\t\tstroke(h,h,255);\n\t\t\t\t\tif(hc!=null && hc.color.get(selectedCol).getBlue()==255 && Math.abs(hc.color.get(selectedCol).getRed()-h)<=jump)\n\t\t\t\t\t\tdrawReference=true;\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase COLOR_DEVIATION:\n\t\t\t\th=(int)Math.round(255-(i/(float)sw)*255);\n\t\t\t\tstroke(h,255,h);\n\t\t\t\tif(hc!=null && Math.abs(hc.color.get(selectedCol).getBlue()-h)<=jump)\n\t\t\t\t\tdrawReference=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\tline(x+i,y,x+i,y+sh);\n\t\tif(drawReference && !refDrawn)\n\t\t\t{\n\t\t\tstroke(0);\n\t\t\tline(x+i, y-2, x+i, y+sh+2);\n\t\t\trefDrawn=true;\n\t\t\t}\n\t\t}\n\tstroke(200,200,200);\n\tnoFill();\n\trect(x-1,y-1,sw+1,sh+1);\n\t\n\t//Draw legend\n\ttextAlign(CENTER, TOP);\n\tfill(200);\n\tline(x,y+sh,x,y+sh+2);\n\tif(whiteValue==MEAN)\ttext(\"min\", x, y+sh+3);\n\telse if(whiteValue==MEDIAN)\ttext(\"0\", x, y+sh+3);\n\tline((int)(x+sw*0.5),y+sh,(int)(x+sw*0.5),y+sh+2);\n\tif(whiteValue==MEAN)\t\t\n\t\t{\n\t\ttext(\"avg\", (int)(x+sw*0.5), y+sh+3);\n\t\ttext(\"(\"+expData.average+\")\", (int)(x+sw*0.5), y+sh+6);\n\t\t\n\t\t}\n\telse if(whiteValue==MEDIAN)\ttext(\"50\", (int)(x+sw*0.5), y+sh+3);\n\t\n\tline(x+sw-1,y+sh,x+sw-1,y+sh+2);\n\tif(whiteValue==MEAN)\t\ttext(\"max\", x+sw-1, y+sh+3);\n\telse if(whiteValue==MEDIAN)\ttext(\"100\", x+sw-1, y+sh+3);\n\t\n\t//line((int)(x+sw*0.25),y+sh,(int)(x+sw*0.25),y+sh+1);\n\t//line((int)(x+sw*0.75),y+sh,(int)(x+sw*0.75),y+sh+1);\n\tline((int)(x+sw*0.1),y+sh,(int)(x+sw*0.1),y+sh+1);\n\tline((int)(x+sw*0.2),y+sh,(int)(x+sw*0.2),y+sh+1);\n\tline((int)(x+sw*0.3),y+sh,(int)(x+sw*0.3),y+sh+1);\n\tline((int)(x+sw*0.4),y+sh,(int)(x+sw*0.4),y+sh+1);\n\tline((int)(x+sw*0.6),y+sh,(int)(x+sw*0.6),y+sh+1);\n\tline((int)(x+sw*0.7),y+sh,(int)(x+sw*0.7),y+sh+1);\n\tline((int)(x+sw*0.8),y+sh,(int)(x+sw*0.8),y+sh+1);\n\tline((int)(x+sw*0.9),y+sh,(int)(x+sw*0.9),y+sh+1);\n\tnoStroke();\n\t}", "public MiniBossLevel() {\r\n super(\"background_final.png\");\r\n setStatDisplay();\r\n generateWorld(world);\r\n }", "@Override\n public void update(float tpf) {\n \n tempVec = this.player.getLocalTranslation();\n leftBound = tempVec.getX() - P.minLeftDistance;\n rightBound = tempVec.getX() + P.minRightDistance;\n lowerBound = tempVec.getY() - P.minDownDistance;\n \n \n for (Spatial spatial : getAllLevelObjects()) {\n if (isOutsideLevelBounds(spatial.getLocalTranslation())) {\n removeFromLevel(spatial);\n /* the background node (wall and window) acts as a checkpoint –\n * when it is removed, we know that we need more level\n */\n if (spatial.getName().equals(\"background\")) {\n generateNextChunk();\n //showLevelProgress();\n }\n }\n }\n int numLights = 0;\n for (Light light : this.gameNode.getLocalLightList()) {\n numLights++;\n if (light instanceof PointLight) {\n if (isOutsideLevelBounds(((PointLight)light).getPosition())) {\n this.gameNode.removeLight(light);\n }\n } else if (light instanceof SpotLight) {\n if (isOutsideLevelBounds(((SpotLight)light).getPosition())) {\n this.gameNode.removeLight(light);\n }\n }\n }\n for (Light light : this.gameNode.getLocalLightList()) {\n if (light instanceof PointLight) {\n if (isOutsideLevelBounds(((PointLight)light).getPosition())) {\n this.gameNode.removeLight(light);\n }\n } else if (light instanceof SpotLight) {\n if (isOutsideLevelBounds(((SpotLight)light).getPosition()) && !P.playerSpot.equals(light.getName())) {\n this.gameNode.removeLight(light);\n }\n }\n }\n if(numLights >= 2) {\n InGameState.totalLightSources += numLights-1;\n }\n InGameState.lightSamples++;\n //System.out.println(\"-------------------LIGHTS: \" + numLights);\n }", "public Vector330Class scale(double s){\n return new Vector330Class(this.x * s, this.y * s);\n }", "void dropHandler() {\n if (tickSpeed < 0) {\n if((int)random(1,6) == 1){ //every 6 medkits the handler drops a minigun\n Sprite mg = new Sprite(minigun);\n mg.moveToPoint(random(0,2048), random(0, 2048)); //moves drop to random point\n minigunDrop.add(mg);\n tickSpeed = (int)random(100,500);\n }else if((int)random(1,4) == 1){ //every 4 medkits the handler drops a coilgun\n Sprite cg = new Sprite(coilgun);\n cg.moveToPoint(random(0,2048), random(0,2048)); //moves drop to random point\n coilgunDrop.add(cg);\n tickSpeed = (int)random(100,500); //changes \n }\n else {\n \n \n Medkit hp = new Medkit();\n hp.med.moveToPoint(random(0, 2048), random(0, 2048));\n\n health.add(hp);\n\n tickSpeed = (int)random(100,500);\n }\n }\n tickSpeed--;\n for (Medkit hp: health) {\n hp.med.display();\n hp.timer--;\n\n }\n for (Sprite mg: minigunDrop){\n mg.display();\n }\n for (Sprite cg: coilgunDrop){\n cg.display();\n }\n // e.forward(5);\n}", "@Override\n public void levelUp(){\n //System.out.println(\"Level: \" + getLevel());\n if (getLevel() > 5) return;\n\n /* System.out.println(\"\\n-------\");\n System.out.println(\"Level: \" + getLevel());\n System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n*/\n double percentage = growth(getLevel()) + growthRate;\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (getLevel() % 2 != 0) range++;\n setLevel(getLevel() + 1);\n\n /* System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n System.out.println(\"-------\\n\");*/\n }", "private void Scale()\n {\n Song scale = new Song();\n scale.add(new Note(noteA1,WHOLE_NOTE/2));\n scale.add(new Note(noteBB1,WHOLE_NOTE/2));\n scale.add(new Note(noteB1,WHOLE_NOTE/2));\n scale.add(new Note(noteC1,WHOLE_NOTE/2));\n scale.add(new Note(noteCS1,WHOLE_NOTE/2));\n scale.add(new Note(noteD1,WHOLE_NOTE/2));\n scale.add(new Note(noteDS1,WHOLE_NOTE/2));\n scale.add(new Note(noteE1,WHOLE_NOTE/2));\n scale.add(new Note(noteF1,WHOLE_NOTE/2));\n scale.add(new Note(noteFS1,WHOLE_NOTE/2));\n scale.add(new Note(noteG1,WHOLE_NOTE/2));\n scale.add(new Note(noteGS1,WHOLE_NOTE/2));\n\n\n playSong(scale);\n }", "protected void preRenderCallback(EntityMegaZombie p_77041_1_, float p_77041_2_)\n {\n GL11.glScalef(2.0F, 2.0F, 2.0F);\n }", "float getScaler();", "public void calibrated() {\n weaponDamage = weaponDamage + 10;\r\n }", "private static int devilAttackScale(int devilAttack, int playerLevel){\r\n if(playerLevel > 4){\r\n devilAttack = devilAttack + ((2 * (playerLevel - 4)));\r\n \r\n }\r\n return devilAttack;\r\n }", "public void specialize()\n {\n\tdef -= 200;\n\tdmg += 0.5;\n\tcounter += 1;\n }", "private void initialize() {\n\n this.levelName = \"Green 3\";\n this.numberOfBalls = 2;\n int ballsRadius = 5;\n Color ballsColor = Color.white;\n this.paddleHeight = (screenHeight / 27);\n this.paddleWidth = (screenWidth / 8);\n this.paddleSpeed = 11;\n int surroundingBlocksWidth = 30;\n this.paddleColor = new Color(1.0f, 0.699f, 0.000f);\n this.paddleUpperLeft = new Point(screenWidth / 2.2, screenHeight - surroundingBlocksWidth\n - this.paddleHeight);\n Color backgroundColor = new Color(0.000f, 0.420f, 0.000f);\n this.background = new Block(new Rectangle(new Point(0, 0), screenWidth + 1\n , screenHeight + 2), backgroundColor);\n this.background.setNumber(-1);\n\n Color[] colors = {Color.darkGray, Color.red, Color.yellow, Color.blue, Color.white};\n int blocksRowsNum = 5;\n int blocksInFirstRow = 10;\n int blocksWidth = screenWidth / 16;\n int blockHeight = screenHeight / 20;\n int firstBlockYlocation = screenHeight / 4;\n int removableBlocks = 0;\n Block[][] stairs = new Block[blocksRowsNum][];\n //blocks initialize.\n for (int i = 0; i < blocksRowsNum; i++, blocksInFirstRow--) {\n int number;\n for (int j = 0; j < blocksInFirstRow; j++) {\n if (i == 0) {\n number = 2; //top row.\n } else {\n number = 1;\n }\n stairs[i] = new Block[blocksInFirstRow];\n Point upperLeft = new Point(screenWidth - (blocksWidth * (j + 1)) - surroundingBlocksWidth\n , firstBlockYlocation + (blockHeight * i));\n stairs[i][j] = new Block(new Rectangle(upperLeft, blocksWidth, blockHeight), colors[i % 5]);\n if (stairs[i][j].getHitPoints() != -2 && stairs[i][j].getHitPoints() != -3) { // not death or live block\n stairs[i][j].setNumber(number);\n removableBlocks++;\n }\n this.blocks.add(stairs[i][j]);\n }\n\n }\n this.numberOfBlocksToRemove = (int) (removableBlocks * 0.5); //must destroy half of them.\n this.ballsCenter.add(new Point(screenWidth / 1.93, screenHeight * 0.9));\n this.ballsCenter.add(new Point(screenWidth / 1.93, screenHeight * 0.9));\n List<Velocity> v = new ArrayList<>();\n v.add(Velocity.fromAngleAndSpeed(45, 9));\n v.add(Velocity.fromAngleAndSpeed(-45, 9));\n this.ballsFactory = new BallsFactory(this.ballsCenter, ballsRadius, ballsColor,\n screenWidth, screenHeight, v);\n\n //bodies.\n //tower.\n Block base = new Block(new Rectangle(new Point(surroundingBlocksWidth + screenWidth / 16, screenHeight * 0.7)\n , screenWidth / 6, screenHeight * 0.3), Color.darkGray);\n base.setNumber(-1);\n this.bodies.add(base);\n Block base2 = new Block(new Rectangle(new Point(base.getCollisionRectangle().getUpperLine()\n .middle().getX() - base.getWidth() / 6\n , base.getCollisionRectangle().getUpperLeft().getY() - base.getHeight() / 2.5), base.getWidth() / 3\n , base.getHeight() / 2.5), Color.gray);\n base2.setNumber(-1);\n this.bodies.add(base2);\n Block pole = new Block(new Rectangle(new Point(base2.getCollisionRectangle().getUpperLine().middle().getX()\n - base2.getWidth() / 6, base2.getCollisionRectangle().getUpperLeft().getY() - screenHeight / 3)\n , base2.getWidth() / 3, screenHeight / 3), Color.lightGray);\n pole.setNumber(-1);\n this.bodies.add(pole);\n\n double windowWidth = base.getWidth() / 10;\n double windowHeight = base.getHeight() / 7;\n double b = base.getWidth() / 12;\n double h = base.getHeight() / 20;\n for (int i = 0; i < 6; i++) { //windows of tower.\n for (int j = 0; j < 5; j++) {\n Block window = new Block(new Rectangle(new Point(base.getCollisionRectangle().getUpperLeft().getX() + b\n + (windowWidth + b) * j,\n base.getCollisionRectangle().getUpperLeft().getY() + h + (windowHeight + h) * i), windowWidth\n , windowHeight), Color.white);\n window.setNumber(-1);\n this.bodies.add(window);\n }\n }\n\n //circles on the top of the tower.\n Circle c1 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 17, Color.black, \"fill\");\n Circle c2 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 12, Color.darkGray, \"fill\");\n Circle c3 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 7, Color.red, \"fill\");\n this.bodies.add(c1);\n this.bodies.add(c2);\n this.bodies.add(c3);\n\n\n }", "private void percentageScaling() {\n switch (slot) {\n case Torso -> updateBonusStats(1);\n case Head -> updateBonusStats(0.8);\n case Legs -> updateBonusStats(0.6);\n }\n }", "public int scale(int original);", "@Override\n public final void draw(Batch batch, float parentAlpha) {\n\n Matrix4 originalTransform = ActorMixins.setBatchTransformMatrix(batch, this);\n batch.end();\n POLYGON_BATCH.begin();\n POLYGON_BATCH.setProjectionMatrix(batch.getProjectionMatrix());\n POLYGON_BATCH.setTransformMatrix(batch.getTransformMatrix());\n\n if (useSpineBoy && finalSkeleton != null) {\n stateFinal.update(Gdx.graphics.getDeltaTime());\n stateFinal.apply(finalSkeleton);\n\n finalSkeleton.updateWorldTransform();\n renderer.draw(POLYGON_BATCH, finalSkeleton, parentAlpha); // Draw the skeleton images.\n POLYGON_BATCH.setProjectionMatrix(batch.getProjectionMatrix());\n POLYGON_BATCH.setTransformMatrix(batch.getTransformMatrix());\n //draw debug tangent circles on running animation\n debug.draw(POLYGON_BATCH, finalSkeleton);\n } else {\n stateFinal.update(Gdx.graphics.getDeltaTime());\n stateFinal.apply(emptySkeleton);\n\n emptySkeleton.updateWorldTransform(); // Uses the bones' local SRT to compute their world SRT.\n for (Slot sl : emptySkeleton.getSlots()) {\n if (sl.getAttachment() instanceof RegionAttachment) {\n RegionAttachment r = ((RegionAttachment) sl.getAttachment());\n\n //calculate region attachment bounds here\n if (r instanceof PolygonRegionAttachment) {\n ((PolygonRegionAttachment) r).calculateBoundsAdj(sl, this);\n r.updateOffset();\n }\n\n //---------------------------------------------------------------------\n }\n }\n Skeleton temp = emptySkeleton;\n if ((useSpineBoy || temp == null) && finalSkeleton != null) {\n temp = finalSkeleton;\n }\n renderer.draw(POLYGON_BATCH, temp, 1);\n POLYGON_BATCH.setProjectionMatrix(batch.getProjectionMatrix());\n POLYGON_BATCH.setTransformMatrix(batch.getTransformMatrix());\n// if (isUseSpineBoy())\n debug.draw(POLYGON_BATCH, temp);\n }\n\n POLYGON_BATCH.end();\n batch.begin();\n Array<Slot> slots = null;\n float height = 0;\n float width = 0;\n\n if (finalSkeleton != null) {\n slots = finalSkeleton.getSlots();\n width = finalSkeleton.getData().getWidth();\n height = finalSkeleton.getData().getHeight();\n } else if (emptySkeleton != null) {\n slots = emptySkeleton.getSlots();\n width = emptySkeleton.getData().getWidth();\n height = emptySkeleton.getData().getHeight();\n }\n\n int anglePart = 360 / slots.size;\n int pos = 0;\n selectedAngle = -1;\n\n for (Slot sl : slots) {\n if (sl.getAttachment() instanceof PolygonRegionAttachment) {\n PolygonRegionAttachment attachment = ((PolygonRegionAttachment) sl.getAttachment());\n if (attachment.getRegion() != null) {\n int rotation = anglePart * pos + chosAngle;\n rotation = (rotation + 360) % 360;\n float off = 1f - Math.abs((180f - rotation) / 180f);\n Vector2 dd1 = new Vector2(0, Math.max(width, height) * distance);\n if (distance > 0.0f) {\n distance -= .01f;\n }\n// System.out.println(\"distance:\"+distance);\n\n// Vector2 dd2 = new Vector2(0, Math.max(width, height) / 1.0f);\n if (getSelectedBone() != null && sl.getBone().getData().getName().equals(getSelectedBone().getData().getName())) {\n batch.setColor(Color.WHITE);\n selectedAngle = pos;\n } else {\n batch.setColor(new Color(off, off, off, 0));\n }\n\n dd1.rotate(rotation);\n\n// Vector2 dd2=dd1.cpy();\n dd1.add(-width / 2, height / 3);\n// dd2.add(-width / 2, -height);\n pos++;\n TextureRegion cropRegion = attachment.getRotatedRegion();\n boolean atlas = false;\n if (cropRegion == null || !isUseSpineBoy()) {\n cropRegion = attachment.getAtlasRegion();\n atlas = true;\n }\n TextureRegion blankRegion = attachment.getBlankRegion();\n\n if (cropRegion != null && blankRegion != null) {\n Vector2 diff = new Vector2(cropRegion.getRegionWidth() - blankRegion.getRegionWidth(), cropRegion.getRegionHeight() - blankRegion.getRegionHeight());\n diff.scl(off);\n diff.scl(.5f);\n off *= 2f;\n if (!atlas) {\n// float rot = attachment.getFinalizedRotation();\n// batch.draw(cropRegion, dd1.x - diff.x, dd1.y - diff.y, cropRegion.getRegionWidth() * .5f, cropRegion.getRegionHeight() * .5f, cropRegion.getRegionWidth(), cropRegion.getRegionHeight(), off, off * flip, rot);\n TextureRegion tr = attachment.getRotatedRegion();\n if (tr != null) {\n batch.draw(tr, dd1.x, dd1.y, blankRegion.getRegionWidth() * .5f, blankRegion.getRegionHeight() * .5f, blankRegion.getRegionWidth(), blankRegion.getRegionHeight(), off, off, 0);\n }\n\n } else {\n TextureRegion tr = attachment.getAtlasRegion();\n if (tr != null) {\n batch.draw(tr, dd1.x, dd1.y, blankRegion.getRegionWidth() * .5f, blankRegion.getRegionHeight() * .5f, blankRegion.getRegionWidth(), blankRegion.getRegionHeight(), off, -off, 0);\n }\n }\n\n batch.draw(blankRegion, dd1.x, dd1.y, blankRegion.getRegionWidth() * .5f, blankRegion.getRegionHeight() * .5f, blankRegion.getRegionWidth(), blankRegion.getRegionHeight(), off, off, 0);\n\n\n }\n }\n }\n }\n if (selectedAngle != -1) {\n int dff = anglePart * selectedAngle + chosAngle;\n if (dff > 185) {\n chosAngle -= 5;\n }\n if (dff < 175) {\n chosAngle += 5;\n }\n// if (dff < 0) {\n// chosAngle += 180;\n// }\n }\n// chosAngle=(chosAngle+360)%360;\n batch.setTransformMatrix(originalTransform);\n }", "int getScale();", "public void lungs(Graphics bbg, int n, int length, int x, int y, double angle){\n double r1 = angle + Math.toRadians(-45);\n double r2 = angle + Math.toRadians(45);\n double r3 = angle + Math.toRadians(135);\n double r4 = angle + Math.toRadians(-135);\n\n //length modifications of the different branches\n double l1 = length/1.3 + (l1I*5);\n double l2 = length/1.3 + (l2I*5);\n double l3 = length/1.3 + (l3I*5);\n double l4 = length/1.3 + (l4I*5);\n\n //x and y points of the end of the different branches\n int ax = (int)(x - Math.sin(r1)*l1)+(int)(l1I);\n int ay = (int)(y - Math.cos(r1)*l1)+(int)(l1I);\n int bx = (int)(x - Math.sin(r2)*l2)+(int)(l2I);\n int by = (int)(y - Math.cos(r2)*l2)+(int)(l2I);\n int cx = (int)(x - Math.sin(r3)*l3)+(int)(l3I);\n int cy = (int)(y - Math.cos(r3)*l3)+(int)(l3I);\n int dx = (int)(x - Math.sin(r4)*l4)+(int)(l4I);\n int dy = (int)(y - Math.cos(r4)*l4)+(int)(l4I);\n\n if(n == 0){\n return;\n }\n\n\n increment();\n Color fluidC = new Color(colorR,colorG,colorB);\n //bbg.setColor(new Color((int) (Math.random() * 255), (int) (Math.random() * 255), (int) (Math.random()*255)));\n bbg.setColor(fluidC);\n\n\n //draw different branches\n bbg.drawLine(x,y,ax,ay);\n bbg.drawLine(x,y,bx,by);\n bbg.drawLine(x,y,cx,cy);\n bbg.drawLine(x,y,dx,dy);\n\n\n\n //call recursively to draw fractal\n lungs(bbg, n - 1, (int)l1, ax,ay,r1);\n lungs(bbg, n - 1, (int)l2, bx,by,r2);\n lungs(bbg, n - 1, (int)l3, cx,cy,r3);\n lungs(bbg, n - 1, (int)l4, dx,dy,r4);\n\n\n }", "protected void preRenderCallback(EntityBat p_77041_1_, float p_77041_2_)\n {\n GL11.glScalef(0.35F, 0.35F, 0.35F);\n }", "private void setScale() {\n this.particleScale = (1 - ((float) slowTime / 50)) * (1.5f * (float) offset);\n }", "private void decorateMountainsFloat(int xStart, int xLength, int floor, boolean enemyAddedBefore, 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 && enemyAddedBefore==false)\r\n\t {\r\n\t if (floor - 2 > 0){\r\n\t if ((xLength - e) - (xStart + s) > 0){\r\n\t for(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 }", "@Override\r\n\tpublic void hurt(int points) {\r\n\t\tif (!hasExoskeleton()) {\r\n\t\thitPoints -= points;\r\n\t\t}\r\n\t}", "private static int fireballMPScale(int fireballCost, int playerLevel){\r\n int MPCost = 0;\r\n MPCost = fireballCost + (1 * playerLevel);\r\n return MPCost;\r\n }", "public static ItemStack getSkeletonSkull () {\n \n return new ItemStack(Items.SKULL, 1, 0);\n }", "private void populateLevel() {\r\n\r\n\r\n\t\t// Setup Goal\r\n\t\tJsonValue goalVal = levelAssets.get(\"goal\");\r\n\t\tfloat gWidth = goalTile.getRegionWidth()/scale.x;\r\n\t\tfloat gHeight = goalTile.getRegionHeight()/scale.y;\r\n\t\tfloat gX = goalVal.get(\"pos\").getFloat(0) + gWidth / 2;\r\n\t\tfloat gY = goalVal.get(\"pos\").getFloat(1) + gHeight / 2;\r\n\t\tgoalDoor = new DoorModel(gX, gY, gWidth, gHeight);\r\n\t\tgoalDoor.setBodyType(BodyDef.BodyType.StaticBody);\r\n\t\tgoalDoor.setDensity(constants.get(\"goal\").getFloat(\"density\", 0));\r\n\t\tgoalDoor.setFriction(constants.get(\"goal\").getFloat(\"friction\", 0));\r\n\t\tgoalDoor.setRestitution(constants.get(\"goal\").getFloat(\"restitution\", 0));\r\n\t\tgoalDoor.setSensor(true);\r\n\t\tgoalDoor.setDrawScale(scale);\r\n\t\tgoalDoor.setTexture(goalTile);\r\n\t\tgoalDoor.setName(\"goal\");\r\n\t\taddObject(goalDoor);\r\n\t\taddObjectTo(goalDoor, LevelCreator.allTag);\r\n\r\n\t\t// Get default values\r\n\t\tJsonValue defaults = constants.get(\"defaults\");\r\n\t\tJsonValue objs = levelAssets.get(\"objects\");\r\n\r\n\t\t//group platform constants together for access in following for-loop\r\n\t\tTextureRegion[] xTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\tlightningLightTexture, lightningDarkTexture, lightningAllTexture,\r\n\t\t\trainLightTexture, rainDarkTexture, rainAllTexture,\r\n\t\t\t\tcrumbleLightTexture, crumbleDarkTexture, crumbleAllTexture};\r\n\r\n\t\tTextureRegion[] reducedXTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\t\tlightningLightTextureReduced, lightningDarkTextureReduced, lightningAllTextureReduced,\r\n\t\t\t\trainLightTextureReduced, rainDarkTextureReduced, rainAllTextureReduced,\r\n\t\t\t\tcrumbleLightTextureReduced, crumbleDarkTextureReduced, crumbleAllTextureReduced};\r\n\r\n\r\n\t\t// Setup platforms\r\n\t\tfor(int i=0; i < (objs != null ? objs.size : 0); i++)\r\n\t\t{\r\n\t\t\tJsonValue obj = objs.get(i);\r\n\r\n\t\t\t// Get platform attributes\r\n\t\t\tint platformType = obj.get(\"type\").asInt();\r\n\t\t\tint property = obj.get(\"property\") == null ? 0: obj.get(\"property\").asInt();\r\n\t\t\tJsonValue platformArgs = obj.get(\"positions\");\r\n\t\t\tJsonValue pathsArgs = obj.get(\"paths\");\r\n\r\n\t\t\tfor (int j = 0; j < platformArgs.size; j++) {\r\n\t\t\t\tfloat[] bounds = platformArgs.get(j).asFloatArray();\r\n\t\t\t\tfloat x = bounds[0], y = bounds[1], width = bounds[2], height = bounds[3];\r\n\t\t\t\tTextureRegion newXTexture;\r\n\t\t\t\tTextureRegion crumbleTexture = null;\r\n\t\t\t\tTexture originalTexture = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// temporary - need to refactor asset directory\r\n\t\t\t\t\tJsonValue assetName = obj.get(\"assetName\");\r\n\t\t\t\t\tint assetIndex = assetName.asInt();\r\n\t\t\t\t\tnewXTexture = new TextureRegion(tutorial_signs[assetIndex]);\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tint platIdx = platformType-1+(property - 1)*3;\r\n\t\t\t\t\tint crumbleIdx = platIdx + 3;\r\n\t\t\t\t\tnewXTexture = new TextureRegion(xTexture[platIdx]);\r\n\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t// For crumble animation\r\n\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\tcrumbleTexture = new TextureRegion(xTexture[crumbleIdx]);\r\n//\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the platform size is the same as the spritesheet size\r\n\t\t\t\t\tif (originalTexture.getWidth() > 32 && width%(originalTexture.getWidth()/32) == 0) {\r\n\t\t\t\t\t\tnewXTexture = new TextureRegion(reducedXTexture[platIdx]);\r\n\t\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\t\tcrumbleTexture = new TextureRegion(reducedXTexture[crumbleIdx]);\r\n//\t\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n//\t\t\t\t\tnewXTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t}\r\n\t\t\t\tPlatformModel platformModel = new PlatformModel(bounds, platformType, property, newXTexture, scale,\r\n\t\t\t\t\t\tdefaults.getFloat( \"density\", 0.0f ), defaults.getFloat( \"friction\", 0.0f ) ,\r\n\t\t\t\t\t\tdefaults.getFloat( \"restitution\", 0.0f ), originalTexture, crumbleTexture);\r\n\t\t\t\tplatformModel.setTag(platformType);\r\n\t\t\t\tplatformModel.setProperty(property);\r\n\t\t\t\taddObject(platformModel);\r\n\t\t\t\taddObjectTo(platformModel, platformType);\r\n\t\t\t\t//TODO: Moving platforms\r\n\r\n\r\n\t\t\t\tif (pathsArgs != null) {\r\n\t\t\t\t\tfloat[] paths = pathsArgs.get(j).asFloatArray();\r\n\r\n\t\t\t\t\t//** Moving platform if > 1 path or different path from starting position\r\n\t\t\t\t\tif (hasValidPath(x, y, paths)) {\r\n\t\t\t\t\t\tplatformModel.setBodyType(BodyDef.BodyType.KinematicBody);\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\r\n\t\t\t\t\t\tPooledList<Vector2> pathList = new PooledList<>();\r\n\t\t\t\t\t\tfor (int k = 0; k < paths.length; k+=2) {\r\n\t\t\t\t\t\t\tpathList.add(new Vector2(paths[k], paths[k+1]));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfloat velocity = 3;\r\n\r\n\t\t\t\t\t\tplatformModel.setGravityScale(0);\r\n\t\t\t\t\t\tplatformModel.setPaths(pathList);\r\n\t\t\t\t\t\tplatformModel.setVelocity(velocity);\r\n\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// This world is heavier\r\n\t\tworld.setGravity( new Vector2(0,defaults.getFloat(\"gravity\",0)) );\r\n\r\n\t\t// Set level background index\r\n\t\tint backgroundTextureIndex = levelAssets.get(\"background\").asInt();\r\n\t\tbackgroundLightTexture = backgrounds[backgroundTextureIndex - 1];\r\n\t\tbackgroundDarkTexture = backgrounds[backgroundTextureIndex];\r\n\t\tbackgroundTexture = backgroundLightTexture;\r\n\r\n\t\t// Initialize background animations\r\n\t\tactualBackgroundTexture = backgroundTexture.getTexture();\r\n\t\tbackgroundEntirePixelWidth = actualBackgroundTexture.getWidth();\r\n\t\tbackgroundNumAnimFrames = (int)(backgroundEntirePixelWidth/backgroundFramePixelWidth);\r\n\t\tbackgroundAnimator = new FilmStrip(backgroundTexture,1, backgroundNumAnimFrames, backgroundNumAnimFrames);\r\n\t\tbackgroundAnimator.setFrame(0);\r\n\t\tbackgroundAnimeframe = 0;\r\n\t\tbackgroundOrigin = new Vector2(backgroundAnimator.getRegionWidth()/2.0f, backgroundAnimator.getRegionHeight()/2.0f);\r\n\r\n\t\t// Set level bounds\r\n\t\twidthUpperBound = levelAssets.get(\"dimensions\").getInt(0);\r\n\t\theightUpperBound = levelAssets.get(\"dimensions\").getInt(1);\r\n\r\n\t\t// Setup Somni\r\n\r\n\t\tJsonValue somniVal = levelAssets.get(\"somni\");\r\n\t\tfloat sWidth = somniTexture.getRegionWidth()/scale.x;\r\n\t\tfloat sHeight = somniTexture.getRegionHeight()/scale.y;\r\n\t\tfloat sX = somniVal.get(\"pos\").getFloat(0) + sWidth / 2;\r\n\t\tfloat sY = somniVal.get(\"pos\").getFloat(1) + sHeight / 2;\r\n\t\tsomni = new CharacterModel(constants.get(\"somni\"), sX, sY, sWidth, sHeight, platformController.somnif, CharacterModel.LIGHT);\r\n\t\tsomni.setDrawScale(scale);\r\n\t\tsomni.setTexture(somniIdleTexture);\r\n\t\tsomni.setFilterData(platformController.somnif);\r\n\t\tsomni.setActive(true);\r\n\t\taddObject(somni);\r\n\t\taddObjectTo(somni, LevelCreator.allTag);\r\n\r\n\r\n\t\t// Setup Phobia\r\n\r\n\t\tJsonValue phobiaVal = levelAssets.get(\"phobia\");\r\n\t\tfloat pWidth = phobiaTexture.getRegionWidth()/scale.x;\r\n\t\tfloat pHeight = phobiaTexture.getRegionHeight()/scale.y;\r\n\t\tfloat pX = phobiaVal.get(\"pos\").getFloat(0) + pWidth / 2;\r\n\t\tfloat pY = phobiaVal.get(\"pos\").getFloat(1) + pHeight / 2;\r\n\t\tphobia = new CharacterModel(constants.get(\"phobia\"), pX, pY, pWidth, pHeight, platformController.phobiaf, CharacterModel.DARK);\r\n\t\tphobia.setDrawScale(scale);\r\n\t\tphobia.setTexture(phobiaIdleTexture);\r\n\t\tphobia.setFilterData(platformController.phobiaf);\r\n\t\taddObject(phobia);\r\n\t\taddObjectTo(phobia, LevelCreator.allTag);\r\n\t\tphobia.setActive(true);\r\n\r\n\t\t// Setup Combined\r\n\r\n\t\tfloat cWidth = combinedTexture.getRegionWidth()/scale.x;\r\n\t\tfloat cHeight = combinedTexture.getRegionHeight()/scale.y;\r\n\r\n\t\tcombined = new CharacterModel(constants.get(\"combined\"), 0, 0, cWidth, cHeight, platformController.combinedf, CharacterModel.DARK);\r\n\t\tcombined.setDrawScale(scale);\r\n\t\tcombined.setTexture(somniPhobiaTexture);\r\n\t\t//combined.setTag();\r\n\t\tcombined.setFilterData(platformController.combinedf);\r\n\t\taddObject(combined);\r\n\t\taddObjectTo(combined, LevelCreator.allTag);\r\n\t\tcombined.setActive(true);\r\n\r\n\t\t//Remove combined\r\n\t\tobjects.remove(combined);\r\n\t\tsharedObjects.remove(combined);\r\n\t\tcombined.setActive(false);\r\n\r\n\t\taction = 0;\r\n\r\n\t\tPreferences prefs = GDXRoot.getPreferences();\r\n\t\tvolume = prefs.contains(\"volume\") ? prefs.getFloat(\"volume\") : defaults.getFloat(\"volume\",\r\n\t\t\t\t1.0f);\r\n//\t\tSystem.out.println(volume);\r\n\r\n\t\tplatformController.applyFilters(objects);\r\n\t}", "public Glow(double level) {\n setLevel(level);\n }", "public void silverDropPoint()\r\n {\r\n System.out.println(\"silverDropPoint\");\r\n if (isCollectionPlane)\r\n {\r\n savePreviousPosition();\r\n setIsCollectionPlane(false);\r\n }\r\n if (motorJ1.getCurrentPosition() > SILVER_DROP_J1)\r\n {\r\n j1Power = -J1_POWER;\r\n }\r\n else if (motorJ1.getCurrentPosition() < SILVER_DROP_J1)\r\n {\r\n j1Power = J1_POWER;\r\n }\r\n\r\n if (motorJ2.getCurrentPosition() > SILVER_DROP_J2)\r\n {\r\n j2Power = -J2_POWER;\r\n }\r\n else if (motorJ2.getCurrentPosition() < SILVER_DROP_J2)\r\n {\r\n j2Power = J2_POWER;\r\n }\r\n\r\n if (motorJ3.getCurrentPosition() > SILVER_DROP_J3)\r\n {\r\n j3Power = -UP_POWER_J3;\r\n }\r\n else if (motorJ3.getCurrentPosition() < SILVER_DROP_J3)\r\n {\r\n j3Power = UP_POWER_J3;\r\n }\r\n toPosition(j1Power, j2Power, j3Power, SILVER_DROP_J1, SILVER_DROP_J2, SILVER_DROP_J3);\r\n j1Power = 0;\r\n j2Power = 0;\r\n j3Power = 0;\r\n }", "private void populateLevel() {\n\t\t// Make the ragdoll\n\t\tragdoll = new RagdollModel(DOLL_POS.x, DOLL_POS.y);\n\t\tragdoll.setDrawScale(scale.x,scale.y);\n\t\tragdoll.setPartTextures(bodyTextures);\n\t\tragdoll.getBubbleGenerator().setTexture(bubbleTexture);\n\t\taddObject(ragdoll);\n\n\t\t// Create ground pieces\n\t\tPolygonObstacle obj;\n\t\tobj = new PolygonObstacle(WALL1, 0, 0);\n\t\tobj.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tobj.setDensity(BASIC_DENSITY);\n\t\tobj.setFriction(BASIC_FRICTION);\n\t\tobj.setRestitution(BASIC_RESTITUTION);\n\t\tobj.setDrawScale(scale);\n\t\tobj.setTexture(earthTile);\n\t\tobj.setName(\"wall1\");\n\t\taddObject(obj);\n\n\t\tobj = new PolygonObstacle(WALL2, 0, 0);\n\t\tobj.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tobj.setDensity(BASIC_DENSITY);\n\t\tobj.setFriction(BASIC_FRICTION);\n\t\tobj.setRestitution(BASIC_RESTITUTION);\n\t\tobj.setDrawScale(scale);\n\t\tobj.setTexture(earthTile);\n\t\tobj.setName(\"wall2\");\n\t\taddObject(obj);\n\n\t\tselector = new ObstacleSelector(world);\n\t\tselector.setTexture(crosshairTexture);\n\t\tselector.setDrawScale(scale);\n\t\t\n\t\t/*\n\t\tBodyDef groundDef = new BodyDef();\n\t\tgroundDef.type = BodyDef.BodyType.StaticBody;\n\t\tEdgeShape groundShape = new EdgeShape();\n\t\tgroundShape.set(-500.0f, 0.0f, 500.0f, 0.0f);\n\t\tground = world.createBody(groundDef);\n\t\tground.createFixture(groundShape,0);\n\t\t*/\n\t}", "public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }", "public double calculateBmiDragon(){\n\t\treturn weight/(height*height);\n\t}", "public Skeleton( int wave ){\n\tName = \"Skeleton\";\n\tHP = maxHP = 20 + ( wave * 20);\n\tAttack = (wave * 7);\n\tDefense = (wave * 4);\n\tSPDefense = (wave *2);\n\tAccuracy = (wave * 4);\n\tSpeed = .65;\n }", "@ForgeSubscribe\r\n\tpublic void OnBonemealUse(net.minecraftforge.event.entity.player.BonemealEvent e)\r\n\t{\n\t\tif (!e.world.isRemote && e.entityPlayer.dimension == YC_Mod.d_astralDimID)\r\n\t\t{\r\n\t\t\tif (e.world.getBlockId(e.X, e.Y, e.Z) == YC_Mod.b_astralCrystals.blockID && e.world.getBlockId(e.X, e.Y-1, e.Z) == Block.grass.blockID)//crystal in center and grass beneath them\r\n\t\t\t\tif (e.world.getBlockId(e.X+1, e.Y, e.Z) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X-1, e.Y, e.Z) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X, e.Y, e.Z+1) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X, e.Y, e.Z-1) == Block.sapling.blockID)//4 sapplings on sides\r\n\t\t\t\t{\r\n\t\t\t\t\tint iron = 0, gold = 0;\r\n\t\t\t\t\tint id = 0;\r\n\t\t\t\t\t//============================================2 blocks of iron and gold each diagonally===================================================\r\n\t\t\t\t\tid = e.world.getBlockId(e.X+1, e.Y, e.Z+1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X+1, e.Y, e.Z-1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X-1, e.Y, e.Z-1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X-1, e.Y, e.Z+1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\tif (iron == 2 && gold == 2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (HasCoalCount(e.world, e.X, e.Y, e.Z, 64))//stack of coal for it\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tDecrCoalCount(e.world, e.X, e.Y, e.Z, 64);\r\n\t\t\t\t\t\t\tYC_WorldGenAstral.GenerateTree(e.world, new Random(), e.X, e.Y-1, e.Z);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z+1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X, e.Y, e.Z+1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z+1, 0, 0, 3);\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}\r\n\t\t//System.out.println(e.X+\" ; \" + e.Y + \" ; \" + e.Z + \" ; \" + FMLCommonHandler.instance().getEffectiveSide());\r\n\t}", "@Override\r\n\tprotected void preRenderCallback(EntityAngel entitylivingbaseIn, float partialTickTime)\r\n {\r\n GlStateManager.scale(0.8F, 0.8F, 0.8F);\r\n }", "public LevelButton(int y, String number, int stars){\n this.stars = stars;\n this.name = number;\n this.number = new Sprite(new Texture(Gdx.files.internal(\"huds/numbers/\"+number+\".png\")));\n\n slot = new Sprite(new Texture(Gdx.files.internal(\"huds/menu/level slot.png\")));\n star1 = new Sprite(new Texture(Gdx.files.internal(\"huds/menu/star.png\")));\n star2 = new Sprite(star1.getTexture());\n star3 = new Sprite(star1.getTexture());\n slot.setSize(slot.getWidth()*2,slot.getHeight()*2);\n slot.setPosition(Initial.HEIGHT/5, Initial.WIDTH*0.69f - (slot.getHeight()+ 10)*y);\n this.number.setPosition(slot.getX()+slot.getWidth()*0.35f,slot.getY()+slot.getHeight()*0.3f);\n this.number.setSize(this.number.getWidth()*3,this.number.getHeight()*3);\n if(stars == 2){\n star3.setColor(Color.BLACK);\n }\n if(stars == 1){\n star2.setColor(Color.BLACK);\n star3.setColor(Color.BLACK);\n }\n if(stars == 0){\n star1.setColor(Color.BLACK);\n star2.setColor(Color.BLACK);\n star3.setColor(Color.BLACK);\n }\n star1.setPosition(slot.getX() + 5 + slot.getWidth(),slot.getY()+slot.getHeight()/6);\n star2.setPosition(slot.getX() + slot.getWidth()*2 -5,slot.getY()+slot.getHeight()/6);\n star3.setPosition(slot.getX() + slot.getWidth()*3 -10,slot.getY()+slot.getHeight()/6);\n star1.setSize(slot.getWidth()*0.7f,slot.getHeight()*0.7f);\n star2.setSize(slot.getWidth()*0.7f,slot.getHeight()*0.7f);\n star3.setSize(slot.getWidth()*0.7f,slot.getHeight()*0.7f);\n\n rect = new Rectangle(slot.getX(),slot.getY(), Initial.WIDTH/2.7f,slot.getHeight());\n }", "public void incLevel(int lvl){this.Level=this.XP/(100);}", "void setMaxScale(int value);", "public static Level[] createTestLevel(){\n\t\tLevel[] testLevels = new Level[16];\n\t\tint[] squareNum = new int[144];\n\t\n\t\tColor[] cl = new Color[144];\n\t\t\n\t\t\n\n\t\t\n\t\tfor (int i=0;i<144;i++){\n\t\t\tsquareNum[i] =0;\n\t\t\tcl[i]=null;\n\t\t}\n\t\tint count18=0;\n\t\tfor (int i=1;i<4;i++){\n\t\t\tfor (int j=1;j<7;j++){\n\t\t\t\tsquareNum[count18] =j;\n\t\t\t\tif (i==1){\n\t\t\t\t\tcl[count18]=Color.RED;\n\t\t\t\t}\n\t\t\t\telse if (i==2){\n\t\t\t\t\tcl[count18]=Color.YELLOW;\n\t\t\t\t}\n\t\t\t\telse if (i==3){\n\t\t\t\t\tcl[count18]=Color.GREEN;\n\t\t\t\t}\n\t\t\t\tcount18=count18+5;\n\t\t\t}\n\t\t}\n\n\n\t\tSquare bullPenSquare1[] = new Square[6]; \n\t\tbullPenSquare1[0] = new Square(1,3);\n\t\tbullPenSquare1[1] = new Square(0,1);\n\t\tbullPenSquare1[2] = new Square(0,2);\n\t\tbullPenSquare1[3] = new Square(0,3);\n\t\tbullPenSquare1[4] = new Square(0,4);\n\t\tbullPenSquare1[5] = new Square(0,5);\t\t\n\t\t\n\t\tSquare bullPenSquare2[] = new Square[6]; \n\t\tbullPenSquare2[0] = new Square(0,0);\n\t\tbullPenSquare2[1] = new Square(1,0);\n\t\tbullPenSquare2[2] = new Square(2,0);\n\t\tbullPenSquare2[3] = new Square(2,1);\n\t\tbullPenSquare2[4] = new Square(2,2);\n\t\tbullPenSquare2[5] = new Square(1,2);\t\t\n\n\t\tSquare bullPenSquare3[] = new Square[6]; \n\t\tbullPenSquare3[0] = new Square(1,1);\n\t\tbullPenSquare3[1] = new Square(0,1);\n\t\tbullPenSquare3[2] = new Square(0,2);\n\t\tbullPenSquare3[3] = new Square(0,3);\n\t\tbullPenSquare3[4] = new Square(0,4);\n\t\tbullPenSquare3[5] = new Square(0,5);\t\t\n\t\t\n\t\tSquare bullPenSquare4[] = new Square[6]; \n\t\tbullPenSquare4[0] = new Square(1,1);\n\t\tbullPenSquare4[1] = new Square(2,1);\n\t\tbullPenSquare4[2] = new Square(3,1);\n\t\tbullPenSquare4[3] = new Square(3,2);\n\t\tbullPenSquare4[4] = new Square(3,3);\n\t\tbullPenSquare4[5] = new Square(3,4);\t\t\n\n\t\tSquare bullPenSquare5[] = new Square[6]; \n\t\tbullPenSquare5[0] = new Square(0,2);\n\t\tbullPenSquare5[1] = new Square(1,2);\n\t\tbullPenSquare5[2] = new Square(2,2);\n\t\tbullPenSquare5[3] = new Square(3,2);\n\t\tbullPenSquare5[4] = new Square(4,2);\n\t\tbullPenSquare5[5] = new Square(5,2);\t\n\t\t\n\t\tSquare bullPenSquare6[] = new Square[6]; \n\t\tbullPenSquare6[0] = new Square(0,0);\n\t\tbullPenSquare6[1] = new Square(0,1);\n\t\tbullPenSquare6[2] = new Square(0,2);\n\t\tbullPenSquare6[3] = new Square(0,3);\n\t\tbullPenSquare6[4] = new Square(0,4);\n\t\tbullPenSquare6[5] = new Square(0,5);\t\n\t\t\n\t\tPiece bullPenPiece= new Piece(0,0,bullPenSquare1,bullPenSquare1[0],2);\n\t\tbullPenPiece.setColor(new Color(0,0,0));\n\n\n\t\tArrayList<Piece> bullPenPieceArray=new ArrayList<Piece>();\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare1,bullPenSquare1[0],2));\n\t\tbullPenPieceArray.get(0).setColor(Color.BLUE);\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare2,bullPenSquare2[0],2));\n\t\tbullPenPieceArray.get(1).setColor(Color.GREEN);\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare3,bullPenSquare3[0],2));\n\t\tbullPenPieceArray.get(2).setColor(Color.YELLOW);\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare4,bullPenSquare4[0],2));\n\t\tbullPenPieceArray.get(3).setColor(Color.ORANGE);\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare5,bullPenSquare5[0],2));\n\t\tbullPenPieceArray.get(4).setColor(Color.RED);\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare6,bullPenSquare6[0],2));\n\t\tbullPenPieceArray.get(5).setColor(Color.PINK);\n\n\n\t\tBullpen bp = new Bullpen(bullPenPieceArray);\n\t\t//Bullpen bp = new Bullpen();\n\n\n\n\t\tSquare[] boardSquare = new Square[144]; \n\t\tfor (int i1=0;i1<12;i1++){\n\t\t\tfor (int j=0;j<12;j++){\n\n\t\t\t\tboardSquare[i1*12+j] = new Square(i1,j);\n\t\t\t}\n\t\t}\n\n\t\tSquare hitSquares[] = new Square[6]; \n\t\thitSquares[0] = new Square(6,4);\n\t\thitSquares[1] = new Square(5,2);\n\t\thitSquares[2] = new Square(5,3);\n\t\thitSquares[3] = new Square(5,4);\n\t\thitSquares[4] = new Square(5,5);\n\t\thitSquares[5] = new Square(5,6);\t\n\n\t\tHint hints = new Hint(hitSquares);\n\n\t\tBoard testBoard = new Board(boardSquare);\n\t\ttestBoard.sethint(hints);\n\t\t\n\t\t////// add remove test\n\t\t//bullPenPiece.setColor(Color.PINK);\n\t\t//bp.removepiece(bullPenPieceArray.get(5));\n\t\t//testBoard.addpiece(bullPenPiece);\n\t\t///test over\n\t\t\n\t\tfor (int i=0;i<15;i++){\n\t\t\tif (i%3==0){\n\t\t\t\ttestLevels[i] = new PuzzleLevel(i,GetLevelTpye(i%3),testBoard,bp,20);\n\t\t\t\ttestLevels[i].updateLevelStar(new Achievement(new Random().nextInt(3) + 1));\n\t\t\t}\n\t\t\telse if (i%3==1){\n\t\t\t\ttestLevels[i] = new LightningLevel(i,GetLevelTpye(i%3),testBoard,bp,30);\n\t\t\t\ttestLevels[i].updateLevelStar(new Achievement(new Random().nextInt(3) + 1));\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttestLevels[i] = new ReleaseLevel(i,GetLevelTpye(i%3),testBoard,bp,squareNum,cl);\n\t\t\t\ttestLevels[i].updateLevelStar(new Achievement(new Random().nextInt(3) + 1));\n\t\t\t}\n\n\t\t}\n\t\ttestLevels[13].updateLevelStar(new Achievement(0));\n\t\ttestLevels[14].updateLevelStar(new Achievement(-1));\n\n\t\t\n\t\t\n\t\t\n\t\t//---------------------------------------------- \n\t\tint[] sixNum = new int[36];\n\t\tColor[] sixcolor = new Color[36];\n\t\tfor (int i=0;i<36;i++){\n\t\t\tsixNum[i] =0;\n\t\t\tsixcolor[i]=null;\n\t\t}\n\t\tint count1=0;\n\t\tfor (int i=1;i<4;i++){\n\t\t\tfor (int j=1;j<7;j++){\n\t\t\t\tsquareNum[count1] =j;\n\t\t\t\tif (i==1){\n\t\t\t\t\tcl[count1]=Color.RED;\n\t\t\t\t}\n\t\t\t\telse if (i==2){\n\t\t\t\t\tcl[count1]=Color.YELLOW;\n\t\t\t\t}\n\t\t\t\telse if (i==3){\n\t\t\t\t\tcl[count1]=Color.GREEN;\n\t\t\t\t}\n\t\t\t\tcount1=count1+1;\n\t\t\t}\n\t\t}\n\t\tSquare[] sixBoardSquare = new Square[36]; \n\t\tfor (int i1=0;i1<6;i1++){\n\t\t\tfor (int j=0;j<6;j++){\n\n\t\t\t\tsixBoardSquare[i1*6+j] = new Square(i1,j);\n\t\t\t}\n\t\t}\n\t\tSquare sixhint[] = new Square[6]; \n\t\tsixhint[0] = new Square(0,0);\n\t\tsixhint[1] = new Square(0,1);\n\t\tsixhint[2] = new Square(0,2);\n\t\tsixhint[3] = new Square(0,3);\n\t\tsixhint[4] = new Square(0,4);\n\t\tsixhint[5] = new Square(0,5);\t\n\n\t\tHint sixhints = new Hint(sixhint);\n\n\t\tBoard sixBoard = new Board(sixBoardSquare);\n\t\tsixBoard.sethint(sixhints);\n\t\t\n\t\ttestLevels[15] = new ReleaseLevel(15,GetLevelTpye(14%3),sixBoard,bp,sixNum,sixcolor);\n\t\ttestLevels[15].updateLevelStar(new Achievement(1));\n\t\t//--------------------------------------------\n\t\t\n\t\treturn testLevels;\n\t\t/*\n\t\t\tpublic Level(int LevelNumber, String LevelType, Board b, Bullpen p){\n\t\t\t\tthis.LevelNumber = LevelNumber;\n\t\t\t\tthis.LevelType = LevelType;\n\t\t\t\tthis.b = b;\n\t\t\t\tthis.p = p;\n\t\t\t}\n\n\t\t */\n\t}", "public void drawSkewedScale()\n\t{\n\ttextFont(font, 12);\n\t\n\tDecimalFormat df=new DecimalFormat(\"#.##\");\n\ttextAlign(CENTER, TOP);\n\tint sw=150;\n\tint sh=10;\n\tint x=width-sw-15;\n\tint y=(int)(END_Y+sh*1.7);\n\tscaleBox=new Rectangle2D.Float(x, y, sw, sh);\n\tstrokeWeight(1);\n\t\n\tCell hc=null;\n\tCell finalhc=null;\n\tfor(int i=0;i<hoveredCells.size();i++)\n\t\t{\n\t\thc=hoveredCells.get(i);\n\t\tif(hc.level==min(levelThreshold, minHoveredLevel))\n\t\t\tfinalhc=hc;\n\t\t}\n\thc=finalhc;\n\t\n\tboolean refDrawn=false;\n\tdouble jump0=(255-(0/(float)sw)*255);\n\tdouble jump1=(255-(0/(float)sw)*255);\n\tdouble jump=Math.ceil(jump1-jump0)+2;\n\t\n\t\n\tdouble mid=sw*0.5;//for median\n\tif(whiteValue==MEAN)\t\n\t\tmid=sw*(expData.average-expData.min)/(expData.max-expData.min);\n\t\n\tdouble jumpBelow=Math.ceil(255/(255*mid/sw))+0;\n\tdouble jumpAbove=Math.ceil(255/Math.abs(255*mid/sw-255))+0;\n\t\n\t//Draw legend\n\tstroke(200,200,200);\n\tfill(200);\n\t\n\tline(x,y,x,y-3);\n\tif(whiteValue==MEAN)\t\n\t\t{\n\t\t//text(\"min\", x, y+sh+3);\n\t\ttext(df.format(expData.min), x, y-12);\n\t\t}\n\telse if(whiteValue==MEDIAN)\ttext(\"0\", x, y-12);\n\t\n\tline((int)(x+mid),y+sh,(int)(x+mid),y-3);\n\tif(whiteValue==MEAN)\t\t\n\t\t{\n\t\t//text(\"avg\", (int)(x+mid), y+sh+3);\n\t\ttext(df.format(expData.average), (int)(x+mid), y-12);\n\t\t}\n\telse if(whiteValue==MEDIAN)\ttext(\"50\", (int)(x+mid), y-12);\n\t\n\tline(x+sw-1,y+sh,x+sw-1,y-3);\n\tif(whiteValue==MEAN)\t\t\n\t\t{\n\t\t//text(\"max\", x+sw-1, y+sh+3);\n\t\ttext(df.format(expData.max), x+sw-1, y-12);\n\t\t}\n\telse if(whiteValue==MEDIAN)\ttext(\"100\", x+sw-1, y-12);\n\t\n\tline((int)(x+mid*0.5),y+sh,(int)(x+mid*0.5),y-2);\n\tline((int)(x+mid*2),y+sh,(int)(x+mid*2),y-2);\n\t\t\t\t\n\tfor(int i=0;i<sw;i++)\n\t\t{\n\t\tint h=0;\n\t\tboolean drawReference=false;\n\t\tswitch(COLOR_MODE)\n\t\t\t{\n\t\t\tcase COLOR_EXPRESSION:\n\t\t\t\tif(i>mid)\n\t\t\t\t\t{\n\t\t\t\t\th=(int)Math.round(255-((i-mid)/Math.abs(sw-mid)*255));\n\t\t\t\t\tstroke(255,h,h);\n\t\t\t\t\tif(hc!=null && hc.color.get(selectedCol).getRed()==255 && Math.abs(hc.color.get(selectedCol).getBlue()-h)<=jumpAbove)\n\t\t\t\t\t\tdrawReference=true;\n\t\t\t\t\t}\n\t\t\t\telse\t\n\t\t\t\t\t{\n\t\t\t\t\th=(int)Math.round(255-(Math.abs(i-mid)/Math.abs(sw-mid))*255);\n\t\t\t\t\tstroke(h,h,255);\n\t\t\t\t\tif(hc!=null && hc.color.get(selectedCol).getBlue()==255 && Math.abs(hc.color.get(selectedCol).getRed()-h)<=jumpBelow)\n\t\t\t\t\t\tdrawReference=true;\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase COLOR_DEVIATION:\n\t\t\t\th=(int)Math.round(255-(i/(float)sw)*255);\n\t\t\t\tstroke(h,255,h);\n\t\t\t\tif(hc!=null && Math.abs(hc.color.get(selectedCol).getBlue()-h)<=jump)\n\t\t\t\t\tdrawReference=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\tline(x+i,y,x+i,y+sh);\n\t\tif(drawReference && !refDrawn)\n\t\t\t{\n\t\t\tstroke(0);\n\t\t\tfill(0);\n\t\t\tline(x+i, y-2, x+i, y+sh+2);\n\t\t\tfill(255,200);\n\t\t\tnoStroke();\n\t\t\trect(x+i-10, y+sh, 20,15);\n\t\t\tfill(0);\n\t\t\tstroke(0);\n\t\t\tif(whiteValue==MEAN)\t\ttext(df.format(hc.expressionLevel.get(selectedCol)), x+i, y+sh+3);\n\t\t\telse if(whiteValue==MEDIAN)\ttext(df.format(expData.getQuantile(hc.expressionLevel.get(selectedCol), selectedCol)), x+i, y+sh+3);\n\t\t\trefDrawn=true;\n\t\t\t}\n\t\t}\n\tstroke(200,200,200);\n\tnoFill();\n\trect(x-1,y-1,sw+1,sh+1);\n\t\n\ttextFont(font, 14);\n\t\n\tnoStroke();\n\t}", "@Override public void update(float dt)\n\t{\n\t\tthis.setScale((this.getScale().getX() + 0.1f) * 0.99f, (this.getScale().getY() + 0.1f) * 0.99f);\n\n\n\t}", "private double scaleValue(double input) {\n if(type == SIMPLE_SIN2D_IN_X || type == SIMPLE_SIN2D_IN_Y || type == SIMPLE_MULT2D) {\n // SINE = -1 to 1\n // SCALE to 0 to 255\n // (SINE + 1) * 128\n return (input + 1) * (255.0 / 2.0);\n }\n if(type == SIMPLE_PLUS2D)\n {\n return (input + 2) * (255.0 / 4.0);\n }\n else\n return 0;\n }", "private void gunModifier()\n\t{\t\t\n\t\tif (_gunModifier == 0)\n\t\t{\n\t\t\t_gunModifier = (_gunModifierSwivel * GameState._density);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (_gunModifier == _gunModifierSwivel * GameState._density)\n\t\t\t{\n\t\t\t\t_gunModifier = -1 * (_gunModifierSwivel* GameState._density);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (_gunModifier == -1 * (_gunModifierSwivel* GameState._density))\n\t\t\t\t{\n\t\t\t\t\t_gunModifier = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }", "public static void main(String[] args) {\n String level = getLevel(\"./levels/original/lvl-1.txt\");\n MarioWorld setupWorld = new MarioWorld(null);\n setupWorld.visuals = false;\n setupWorld.initializeLevel(level, 1000 * 200);\n setupWorld.mario.isLarge = false;\n setupWorld.mario.isFire = false;\n setupWorld.update(new boolean[MarioActions.numberOfActions()]);\n\n // set level cutout width (0 means it will be set automatically)\n int levelCutoutTileWidth = 0;\n\n // create original OOP forward model\n MarioForwardModel originalModel = new MarioForwardModel(setupWorld.clone());\n\n // convert to slim OOP forward model\n MarioForwardModelSlim slimModel = Converter.originalToSlim(originalModel, levelCutoutTileWidth);\n\n // convert to bin model\n MarioForwardModelBin binModel = Converter.slimToBin(slimModel);\n }", "private void levelUp() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tif (a.getVisibility()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tresetInvaders();\n\t\taddRow();\n\t\t\n\t\tenemyShotList.add(new Shot(0, 0, SHOT_WIDTH, SHOT_HEIGHT, 15));\n\t\tlevel++;\n\t\t\n\t\tint powerupx = (int) (Math.random()*(WIDTH-PLAYER_WIDTH));\n\t\tdouble poweruprandom = Math.random();\n\t\t\n\t\tif (poweruprandom < 0.25) {\n\t\t\tarmorPiercing.reset(powerupx);\n\t\t}\n\t\t\n\t\tif (poweruprandom >= 0.25 && poweruprandom < 0.5) {\n\t\t\texplosive.reset(powerupx);\n\t\t}\n\t}", "private void sharpenEffect(int barra) {\n float val = barra / 100f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_SHARPEN);\n effect.setParameter(\"scale\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "private final void rubbingFramesEffects() {\n\t\tdx *= Utils.RUBBING;\n\t\tif (FastMath.abs(dx) < Utils.tol) dx=0;\n\t\tdy *= Utils.RUBBING;\n\t\tif (FastMath.abs(dy) < Utils.tol) dy = 0;\n\t\tdtheta *= Utils.RUBBING;\n\t\tif (FastMath.abs(dtheta) < Utils.tol) dtheta = 0;\n\t}", "public void disperse() {\t\t\n\t\tfor (int r = 0; r < rows; r++){\n\t\t\tfor (int c = 1; c < cols; c++){\n\t\t\t\tint sum = values[r+1][c-1] + values[r+1][c] + values[r+1][c+1];\n\t\t\t\tif(r < rows - fireLevel + 14){\n\t\t\t\t\tvalues[r][c] = (sum / 3) - 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tvalues[r][c] = (int)((sum / 3.0) - 0.0); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (values[r][c] < 0) values[r][c] = 0;\n\t\t\t\tg2.setColor(colors[values[r][c]]);\n\t\t\t\tif(values[r][c] > 5){\n\t\t\t\t\tg2.fillRect(c*res,r*res,res,res);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void scale(double s);", "private void vignetteEffect(int barra) {\n float val = barra / 200f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_VIGNETTE);\n effect.setParameter(\"scale\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "private boolean growSapling(World world, int x, int y, int z, Random rand)\r\n {\r\n \t// Total value of this crop\r\n \tfloat value = 0;\r\n \t\r\n \t// Not bright enough for the sapling to grow.\r\n \tif (world.getBlockLightValue(x, y + 1, z) < SaplingMinimumLight) \r\n \t\treturn true;\r\n \t\r\n \t// Radius to check nearby ground blocks.\r\n \tint r = 2;\r\n \tfor (int i = -r + x; i <= r + x; i++)\r\n \tfor (int k = -r + z; k <= r + z; k++)\r\n \tfor (int j = -2 + y; j <= 0 + y; j++)\r\n \t{\r\n \t\t// Ignore corners, sapling block and mounds next to sapling. Maintain surface gradient!\r\n \t\tif (Math.abs(i - x) <= 1 && j == y && Math.abs(k - z) <= 1) continue;\r\n \t\tif (i == x && j == (y - 1) && k == z) continue;\r\n \t\tif (Math.abs(i - x) == r && Math.abs(k - z) == r) continue;\r\n \t\t\r\n \t\tBlock block = world.getBlock(i, j, k);\r\n \t\tMaterial above = world.getBlock(i, j + 1, k).getMaterial();\r\n \t\tif (SaplingSoilBlocks.contains(block) && (above == Material.air || above == Material.vine || above == Material.plants || above == Material.snow || above == Material.leaves)) \r\n \t\t{\r\n \t\t\t// Light level above soil\r\n \t\t\tint light = world.getBlockLightValue(i, j + 1, k);\r\n\r\n \t\t\t// Light is \"natural\" if consistent over 4 y levels\r\n \t\t\tboolean natural = true;\r\n \t\t\tfor (int l = 2; l <= 4; l++)\r\n \t\t\t\tif (world.getBlockLightValue(i, j + 1, k) != light) \r\n \t\t\t\t\tnatural = false;\r\n \t\t\t\r\n \t\t\tvalue += (float)light * (natural ? 1.0f : 0.75f) * (above == Material.plants || above == Material.snow ? 0.75f : 1.0f) * (above == Material.vine || above == Material.leaves ? 0.5f : 1.0f);\r\n \t\t}\r\n \t}\r\n \t\r\n \tif (rand.nextDouble() < (GrowthMultiplierSapling * 0.25d / Math.pow(2.0d, (300.0d - value) / 75.0d)))\r\n \t\treturn !(new WorldGenKawaiiTree(this)).generate(world, rand, x, y, z);\r\n \t\r\n \treturn true;\r\n }", "public void onLivingUpdate()\n {\n if (this.worldObj.isDaytime() && !this.worldObj.isRemote && !this.isChild())\n {\n float var1 = this.getBrightness(100.0F);\n\n if (var1 > 0.5F && this.rand.nextFloat() * 30.0F < (var1 - 0.4F) * 2.0F && this.worldObj.canBlockSeeTheSky(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.posY), MathHelper.floor_double(this.posZ)))\n {\n boolean var2 = true;\n ItemStack var3 = this.getEquipmentInSlot(4);\n\n if (var3 != null)\n {\n if (var3.isItemStackDamageable())\n {\n var3.setItemDamage(var3.getItemDamageForDisplay() + this.rand.nextInt(2));\n\n if (var3.getItemDamageForDisplay() >= var3.getMaxDamage())\n {\n this.renderBrokenItemStack(var3);\n this.setCurrentItemOrArmor(4, (ItemStack)null);\n }\n }\n\n var2 = false;\n }\n\n if (var2)\n {\n this.setFire(-99);\n }\n }\n }\n\n super.onLivingUpdate();\n }", "public void\nsetShininessElt(float value )\n\n{\n this.coinstate.shininess = value;\n}", "public Skull() {\n\t\tsuper();\n\t\tsuper.setWidth(width);\n\t\tsuper.setheight(height);\n\t\tloadPattern();\n\t\tcurrentPattern = walkPattern;\n\t}", "public void apply(com.esotericsoftware.spine.Skeleton r27) {\n /*\n r26 = this;\n r0 = r26;\n r7 = r0.events;\n r0 = r26;\n r2 = r0.listeners;\n r0 = r2.size;\n r23 = r0;\n r20 = 0;\n L_0x000e:\n r0 = r26;\n r2 = r0.tracks;\n r2 = r2.size;\n r0 = r20;\n if (r0 < r2) goto L_0x0019;\n L_0x0018:\n return;\n L_0x0019:\n r0 = r26;\n r2 = r0.tracks;\n r0 = r20;\n r17 = r2.get(r0);\n r17 = (com.esotericsoftware.spine.AnimationStatePR.TrackEntry) r17;\n if (r17 != 0) goto L_0x002a;\n L_0x0027:\n r20 = r20 + 1;\n goto L_0x000e;\n L_0x002a:\n r2 = 0;\n r7.size = r2;\n r0 = r17;\n r5 = r0.time;\n r0 = r17;\n r4 = r0.lastTime;\n r0 = r17;\n r0 = r0.endTime;\n r18 = r0;\n r0 = r17;\n r6 = r0.loop;\n if (r6 != 0) goto L_0x0047;\n L_0x0041:\n r2 = (r5 > r18 ? 1 : (r5 == r18 ? 0 : -1));\n if (r2 <= 0) goto L_0x0047;\n L_0x0045:\n r5 = r18;\n L_0x0047:\n r0 = r17;\n r0 = r0.previous;\n r25 = r0;\n r0 = r17;\n r2 = r0.mixDuration;\n r3 = 0;\n r2 = (r2 > r3 ? 1 : (r2 == r3 ? 0 : -1));\n if (r2 <= 0) goto L_0x018b;\n L_0x0056:\n r0 = r17;\n r2 = r0.mixTime;\n r0 = r17;\n r3 = r0.mixDuration;\n r8 = r2 / r3;\n r2 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;\n r2 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1));\n if (r2 < 0) goto L_0x006d;\n L_0x0066:\n r8 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;\n r2 = 0;\n r0 = r17;\n r0.mixDuration = r2;\n L_0x006d:\n if (r25 != 0) goto L_0x00e0;\n L_0x006f:\n r0 = r17;\n r2 = r0.animation;\n r3 = r27;\n r2.mix(r3, r4, r5, r6, r7, r8);\n r2 = java.lang.System.out;\n r3 = new java.lang.StringBuilder;\n r9 = \"none -> \";\n r3.<init>(r9);\n r0 = r17;\n r9 = r0.animation;\n r3 = r3.append(r9);\n r9 = \": \";\n r3 = r3.append(r9);\n r3 = r3.append(r8);\n r3 = r3.toString();\n r2.println(r3);\n L_0x009a:\n r21 = 0;\n r0 = r7.size;\n r24 = r0;\n L_0x00a0:\n r0 = r21;\n r1 = r24;\n if (r0 < r1) goto L_0x0196;\n L_0x00a6:\n if (r6 == 0) goto L_0x01d1;\n L_0x00a8:\n r2 = r4 % r18;\n r3 = r5 % r18;\n r2 = (r2 > r3 ? 1 : (r2 == r3 ? 0 : -1));\n if (r2 <= 0) goto L_0x00d6;\n L_0x00b0:\n r2 = r5 / r18;\n r0 = (int) r2;\n r16 = r0;\n r0 = r17;\n r2 = r0.listener;\n if (r2 == 0) goto L_0x00c6;\n L_0x00bb:\n r0 = r17;\n r2 = r0.listener;\n r0 = r20;\n r1 = r16;\n r2.complete(r0, r1);\n L_0x00c6:\n r21 = 0;\n r0 = r26;\n r2 = r0.listeners;\n r0 = r2.size;\n r24 = r0;\n L_0x00d0:\n r0 = r21;\n r1 = r24;\n if (r0 < r1) goto L_0x01db;\n L_0x00d6:\n r0 = r17;\n r2 = r0.time;\n r0 = r17;\n r0.lastTime = r2;\n goto L_0x0027;\n L_0x00e0:\n r0 = r25;\n r11 = r0.time;\n r0 = r25;\n r2 = r0.loop;\n if (r2 != 0) goto L_0x00f6;\n L_0x00ea:\n r0 = r25;\n r2 = r0.endTime;\n r2 = (r11 > r2 ? 1 : (r11 == r2 ? 0 : -1));\n if (r2 <= 0) goto L_0x00f6;\n L_0x00f2:\n r0 = r25;\n r11 = r0.endTime;\n L_0x00f6:\n r0 = r17;\n r2 = r0.animation;\n if (r2 != 0) goto L_0x0144;\n L_0x00fc:\n r0 = r25;\n r9 = r0.animation;\n r0 = r25;\n r13 = r0.loop;\n r14 = 0;\n r2 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;\n r15 = r2 - r8;\n r10 = r27;\n r12 = r11;\n r9.mix(r10, r11, r12, r13, r14, r15);\n r2 = java.lang.System.out;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r0 = r25;\n r9 = r0.animation;\n r3 = r3.append(r9);\n r9 = \" -> none: \";\n r3 = r3.append(r9);\n r3 = r3.append(r8);\n r3 = r3.toString();\n r2.println(r3);\n L_0x012f:\n r2 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;\n r2 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1));\n if (r2 < 0) goto L_0x009a;\n L_0x0135:\n com.badlogic.gdx.utils.Pools.free(r25);\n r2 = 0;\n r0 = r17;\n r0.previous = r2;\n r2 = 0;\n r0 = r17;\n r0.mixDuration = r2;\n goto L_0x009a;\n L_0x0144:\n r0 = r25;\n r9 = r0.animation;\n r0 = r25;\n r13 = r0.loop;\n r14 = 0;\n r10 = r27;\n r12 = r11;\n r9.apply(r10, r11, r12, r13, r14);\n r0 = r17;\n r2 = r0.animation;\n r3 = r27;\n r2.mix(r3, r4, r5, r6, r7, r8);\n r2 = java.lang.System.out;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r0 = r25;\n r9 = r0.animation;\n r3 = r3.append(r9);\n r9 = \" -> \";\n r3 = r3.append(r9);\n r0 = r17;\n r9 = r0.animation;\n r3 = r3.append(r9);\n r9 = \": \";\n r3 = r3.append(r9);\n r3 = r3.append(r8);\n r3 = r3.toString();\n r2.println(r3);\n goto L_0x012f;\n L_0x018b:\n r0 = r17;\n r2 = r0.animation;\n r3 = r27;\n r2.apply(r3, r4, r5, r6, r7);\n goto L_0x009a;\n L_0x0196:\n r0 = r21;\n r19 = r7.get(r0);\n r19 = (com.esotericsoftware.spine.Event) r19;\n r0 = r17;\n r2 = r0.listener;\n if (r2 == 0) goto L_0x01af;\n L_0x01a4:\n r0 = r17;\n r2 = r0.listener;\n r0 = r20;\n r1 = r19;\n r2.event(r0, r1);\n L_0x01af:\n r22 = 0;\n L_0x01b1:\n r0 = r22;\n r1 = r23;\n if (r0 < r1) goto L_0x01bb;\n L_0x01b7:\n r21 = r21 + 1;\n goto L_0x00a0;\n L_0x01bb:\n r0 = r26;\n r2 = r0.listeners;\n r0 = r22;\n r2 = r2.get(r0);\n r2 = (com.esotericsoftware.spine.AnimationStatePR.AnimationStateListener) r2;\n r0 = r20;\n r1 = r19;\n r2.event(r0, r1);\n r22 = r22 + 1;\n goto L_0x01b1;\n L_0x01d1:\n r2 = (r4 > r18 ? 1 : (r4 == r18 ? 0 : -1));\n if (r2 >= 0) goto L_0x00d6;\n L_0x01d5:\n r2 = (r5 > r18 ? 1 : (r5 == r18 ? 0 : -1));\n if (r2 < 0) goto L_0x00d6;\n L_0x01d9:\n goto L_0x00b0;\n L_0x01db:\n r0 = r26;\n r2 = r0.listeners;\n r0 = r21;\n r2 = r2.get(r0);\n r2 = (com.esotericsoftware.spine.AnimationStatePR.AnimationStateListener) r2;\n r0 = r20;\n r1 = r16;\n r2.complete(r0, r1);\n r21 = r21 + 1;\n goto L_0x00d0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.esotericsoftware.spine.AnimationStatePR.apply(com.esotericsoftware.spine.Skeleton):void\");\n }", "public static final void initLevel()\n {\n current = new JARLevel();\n\n //assign blocks, enemies, the player and all items\n current.iWalls = new JARWall[]\n {\n new JARWall( 30 + 256, current.iLevelBoundY - 310 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 384, current.iLevelBoundY - 320 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 512, current.iLevelBoundY - 300 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 640, current.iLevelBoundY - 290 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 768, current.iLevelBoundY - 280 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 896, current.iLevelBoundY - 270 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1152, current.iLevelBoundY - 260 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1408, current.iLevelBoundY - 250 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 + 0, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 + 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 2 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 3 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 4 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 30 + 1920, current.iLevelBoundY - 230 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 2100, current.iLevelBoundY - 230 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 66, current.iLevelBoundY - 324, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n\n new JARWall( 0, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 128, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 256, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 384, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 512, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 640, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 768, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 896, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1024, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1152, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1280, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1408, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1536, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1664, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1792, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1920, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 2048, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 2176, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n };\n current.iEnemies = new JARPlayer[]\n {\n/*\n new JARPlayer( 500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 1000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 1500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 2000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 2500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 3000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 3500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 4000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 4500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG )\n*/\n };\n\n current.iPlayer = new JARPlayer( 0, GameObjectType.EPlayer, JARPlayerTemplate.USER );\n\n current.iItems = new JARItem[]\n {\n //new JARItem( 50, 700, JARItemType.ITEM_TYPE_COIN ),\n //new JARItem( 150, 700, JARItemType.ITEM_TYPE_COIN ),\n //new JARItem( 250, 700, JARItemType.ITEM_TYPE_COIN ),\n new JARItem( 550, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 650, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 750, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 1050, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1150, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1250, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1550, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 1650, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 1750, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 2050, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2150, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2250, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2550, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n new JARItem( 2650, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n new JARItem( 2750, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n };\n }", "public Level1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(560, 560, 1); \n prepare();\n gfs_level1 = new GreenfootSound(\"main.wav\");\n\n }", "private void normalize() {\r\n // GET MAX PRICE \r\n for (Alternative alt : alternatives) {\r\n if (alt.getPrice() > 0 && alt.getPrice() < minPrice) {\r\n minPrice = alt.getPrice();\r\n }\r\n }\r\n\r\n for (Alternative alt : alternatives) {\r\n // NORMALIZE PRICE - NON BENIFICIAL using max - min \r\n double price = alt.getPrice();\r\n double value = minPrice / price;\r\n alt.setPrice(value);\r\n // BENITIFICIAL v[i,j] = x[i,j] / x[max,j]\r\n double wood = alt.getWood();\r\n value = wood / maxWood;\r\n alt.setWood(value);\r\n\r\n double brand = alt.getBrand();\r\n value = wood / maxBrand;\r\n alt.setBrand(value);\r\n\r\n double origin = alt.getOrigin();\r\n value = origin / maxOrigin;\r\n alt.setOrigin(value);\r\n\r\n }\r\n }", "public void setScalePosition(int level) throws RemoteException, IllegalParamException {\n io.scaleRMI(number, level);\n }", "private static float getBonus(LivingEntity living, int level) {\n // 25% boost per level at max\n int effectLevel = TinkerModifiers.momentumEffect.get().getLevel(living) + 1;\n return level * effectLevel / 128f;\n }", "public void checkLevel(){\n if(score<50){\n level = 1;\n asteroidsMaxNumber = 5;\n }\n if(score>50 && level == 1){\n level = 2;\n asteroidsMaxNumber = 7;\n }\n if(score>100 && level == 2){\n level = 3;\n asteroidsMaxNumber = 10;\n }\n if(score>200 && level == 3){\n level = 4;\n asteroidsMaxNumber = 13;\n }\n if(score>350 && level == 4){\n level = 5;\n asteroidsMaxNumber = 15;\n }\n }", "private void initLevel(){\r\n\t\tBetterSprite doodleSprite = (BetterSprite)(getGroup(\"doodleSprite\").getSprites()[0]);\r\n\t\tinitControls(doodleSprite);\r\n\t\tinitEvents();\r\n\t}", "public float getScale();", "public void updateLavaTiles() {\n for (Tile tile : getTiles()) {\n Random random = new Random();\n if (tile.getType().matches(\"BurnTile\")) {\n tile.setTexture(\"Volcano_\" + (random.nextInt(4) + 5));\n }\n }\n }", "void initScale(){\n samplingScale = getScaleAdaptive(x);\n }", "public void takedmg(int dmg){\n curHp -= dmg;\n }", "private void initLevel () \n {\n score = 0;\n scoreVisual = score;\n level = new Level(Constants.LEVEL_01);\n cameraHelper.setTarget(level.bird);\n initPhysics();\n }", "protected void pickItem(int x ){\r\n this.level -=x;\r\n }", "private void normalize() {\n this.x = (this.x - RobocodeRunner.width / 2) / RobocodeRunner.width;\n this.y = (this.y - RobocodeRunner.height / 2) / RobocodeRunner.height;\n this.distance /= Math.sqrt(RobocodeRunner.width * RobocodeRunner.width + RobocodeRunner.height * RobocodeRunner.height);\n this.enemyHeading /= 90;\n this.enemyDx /= 8;\n this.enemyDy /= 8;\n this.gunToTurn /= 180;\n this.angle /= 180;\n }", "@Override\n public void update(float delta) {\n if (health>Boss.bossHealth * 0.75) phase = 1;\n if (health<=Boss.bossHealth * 0.75) phase = 2;\n if (health<=Boss.bossHealth * 0.5) phase = 3;\n if (health<=Boss.bossHealth * 0.25) phase = 4;\n updatePositions(delta);\n this.landmines.trimToSize();\n this.bulletArray.trimToSize();\n if (!this.isPositioned){\n this.positionSelf(delta);\n }else{\n if (phase == 1){\n moveSelf(delta);\n fireBullet(delta);\n shootLandmines(delta);\n }\n if (phase == 2){\n moveSelf(delta);\n fireBullet(delta);\n shootLandmines(delta);\n shootLaser(delta);\n }\n if (phase == 3){\n clearLaser();\n moveSelf(delta);\n shootLandmines(delta);\n spawnMinions(delta);\n }\n if (phase == 4){\n moveSelf(delta);\n fireBullet(delta);\n shootLandmines(delta);\n shootLaser(delta);\n spawnMinions(delta);\n }\n\n }\n\n }", "@Override\n public void update(int n, int n2) {\n void mouseY;\n void mouseX;\n super.update((int)mouseX, (int)mouseY);\n float[] hsb = Color.RGBtoHSB(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), null);\n double difference = Math.min(95, Math.max(0, (int)(mouseX - this.getX())));\n this.hueWidth = Float.intBitsToFloat(Float.floatToIntBits(0.012939732f) ^ 0x7EEB012B) * (hsb[0] * Float.intBitsToFloat(Float.floatToIntBits(0.22324012f) ^ 0x7DD0990F) / Float.intBitsToFloat(Float.floatToIntBits(0.07544195f) ^ 0x7E2E814F));\n this.satWidth = Float.intBitsToFloat(Float.floatToIntBits(0.009555363f) ^ 0x7EA18E19) * (hsb[1] * Float.intBitsToFloat(Float.floatToIntBits(0.021556562f) ^ 0x7F049763) / Float.intBitsToFloat(Float.floatToIntBits(0.026331188f) ^ 0x7F63B481));\n this.briWidth = Float.intBitsToFloat(Float.floatToIntBits(0.02392782f) ^ 0x7E790447) * (hsb[2] * Float.intBitsToFloat(Float.floatToIntBits(0.09763377f) ^ 0x7E73F437) / Float.intBitsToFloat(Float.floatToIntBits(0.019418718f) ^ 0x7F2B1401));\n this.alphaWidth = Float.intBitsToFloat(Float.floatToIntBits(0.010174015f) ^ 0x7E9BB0E9) * ((float)this.setting.getValue().getAlpha() / Float.intBitsToFloat(Float.floatToIntBits(0.0089911735f) ^ 0x7F6C4FB7));\n this.changeColor(difference, new Color(Color.HSBtoRGB((float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.15404371830294214) ^ 0x7F9477B45E21F7BFL) * Double.longBitsToDouble(Double.doubleToLongBits(0.050973544293479105) ^ 0x7FDC99345367453FL) / Double.longBitsToDouble(Double.doubleToLongBits(0.03014217321508198) ^ 0x7FE85D9700C1AF0AL)), hsb[1], hsb[2])), new Color(Color.HSBtoRGB(Float.intBitsToFloat(Float.floatToIntBits(1.8279414E38f) ^ 0x7F0984DF), hsb[1], hsb[2])), this.hueDragging);\n this.changeColor(difference, new Color(Color.HSBtoRGB(hsb[0], (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.1223112785883676) ^ 0x7FE88FCABD780F54L) * Double.longBitsToDouble(Double.doubleToLongBits(0.026943886254004668) ^ 0x7FED172D9927021DL) / Double.longBitsToDouble(Double.doubleToLongBits(0.05427001644334754) ^ 0x7FDD4947938E1C55L)), hsb[2])), new Color(Color.HSBtoRGB(hsb[0], Float.intBitsToFloat(Float.floatToIntBits(1.1082437E38f) ^ 0x7EA6BFFF), hsb[2])), this.saturationDragging);\n this.changeColor(difference, new Color(Color.HSBtoRGB(hsb[0], hsb[1], (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.12328622126775308) ^ 0x7FE84FAF90647595L) * Double.longBitsToDouble(Double.doubleToLongBits(0.09854681448488288) ^ 0x7FCFBA5D315669BFL) / Double.longBitsToDouble(Double.doubleToLongBits(0.029067112480345214) ^ 0x7FEB43C4E5F80CC0L)))), new Color(Color.HSBtoRGB(hsb[0], hsb[1], Float.intBitsToFloat(Float.floatToIntBits(3.3573391E38f) ^ 0x7F7C9400))), this.brightnessDragging);\n this.changeAlpha(difference, (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.014823398455503097) ^ 0x7FD99BBADCA7DC11L) * Double.longBitsToDouble(Double.doubleToLongBits(0.013271171619186513) ^ 0x7FE4CDEA80AC0D24L) / Double.longBitsToDouble(Double.doubleToLongBits(0.08218747250746601) ^ 0x7FDAEA3CFA8F7AADL)), this.alphaDragging);\n }", "public static void changeLevel(int Rs, int Cs, int level, int[][] original){\n cowGrid = new int[3][3];\n max = 0;\n\n //Finds the max number in the 3x3 grid.\n for (int i = 0; i < 3; i++){\n for (int j = 0; j < 3; j++){\n if (max < original[Rs + i][Cs + j]){\n max = original[Rs + i][Cs + j];\n }\n }\n }\n\n //Changes the depth of the grid.\n for (int i = 0; i < 3; i++){\n for (int j = 0; j < 3; j++){\n if (max - original[Rs + i][Cs + j] <= level){\n original[Rs + i][Cs + j] = max - level;\n }\n }\n }\n }", "double volume(){\n return width*height*depth;\n }", "public void resetLevel() {\n\t\tguiManager.getGameController().clearGrid();\n\t\tguiManager.getGameController().setSlider(new Slider(0, 0, COMP_WIDTH, COMP_HEIGHT));\n\t\tguiManager.getGameController().setGridSize(DEFAULT_GRID_SIZE, DEFAULT_GRID_SIZE);\n\t}", "private Float scale(Float datapoint){\n\n float range = (float)(20 * (max / Math.log(max)));\n range-=min;\n float scalar = DisplayImage.IMAGE_SIZE_SCALAR / range;\n\n if(nightMode){\n datapoint = (float) (100 * (datapoint / Math.log(datapoint)));\n datapoint *= scalar*5;\n }else {\n datapoint = (float) (20* (datapoint / Math.log(datapoint)));\n datapoint *= scalar;\n }\n\n return datapoint;\n }", "private void calcShadeLevel() {\n TexturedPolygon3D poly = (TexturedPolygon3D)sourcePolygon;\n float intensity = 0;\n if (lightSource != null) {\n\n\n // average all the vertices in the polygon\n directionToLight.setTo(0,0,0);\n for (int i=0; i<poly.getNumVertices(); i++) {\n directionToLight.add(poly.getVertex(i));\n }\n directionToLight.divide(poly.getNumVertices());\n\n // make the vector from the average vertex\n // to the light\n directionToLight.subtract(lightSource);\n directionToLight.multiply(-1);\n\n // get the distance to the light for falloff\n float distance = directionToLight.length();\n\n // compute the diffuse reflect\n directionToLight.normalize();\n Vector3D normal = poly.getNormal();\n intensity = lightSource.getIntensity(distance)\n * directionToLight.getDotProduct(normal);\n intensity = Math.min(intensity, 1);\n intensity = Math.max(intensity, 0);\n }\n\n intensity+=ambientLightIntensity;\n intensity = Math.min(intensity, 1);\n intensity = Math.max(intensity, 0);\n int level =\n Math.round(intensity*ShadedTexture.MAX_LEVEL);\n ((ShadedTexture)poly.getTexture()).\n setDefaultShadeLevel(level);\n }", "public void onLivingUpdate() {\n if (!this.onGround && this.motionY < 0.0D)\n this.motionY *= 0.6D;\n\n\n if (this.ticksExisted % 20 == 0 && this.getHealth() != this.getMaxHealth() && this.getHealth() >= 1)\n this.setHealth(this.getHealth() + 1);\n\n if (worldObj.isRemote) {\n if (this.isSitting())\n worldObj.spawnParticle(EnumParticleTypes.REDSTONE, posX, posY + 1.5, posZ, 0, 0, 0);\n }\n\n if (worldObj.isRemote) {\n MoWitchAndWizard.proxy.spawnParticles(\"air_normal\", this);\n }\n\n super.onLivingUpdate();\n }", "public double mageStrike()\r\n\t{\r\n\t\tdouble r = random.nextDouble();\r\n\t\tdmg2 = dmg + ((2*pRange)/100) * (r - 0.5) * dmg;\r\n\t\tif (r < (crit/100))\r\n\t\t{\r\n\t\t\tdmg2 = 2*dmg2;\r\n\t\t\taggro = aggro * 1.4;\r\n\t\t}\r\n\t\taggro = aggro * 1.2;\r\n\t\treturn dmg2;\r\n\t}", "void createNewLevel(int level);", "double getLevel();", "double getLevel();", "private void prepareLevel(){\n levelAnimation = true;\n\n // Reset the menace level\n menaceInterval = 1200;\n\n // Here we will initialize all the game objects\n // Make a new player space ship\n defender = new Defender(context, PlayableX, PlayableY, ExcessX);\n\n // Prepare the players bullet\n bullet = new Bullet(context, PlayableX, PlayableY, (float) 1.2);\n\n // Initialize the invadersBullets array\n for(int i = 0; i < invadersBullets.length; i++){\n invadersBullets[i] = new Bullet(context, PlayableX, PlayableY, (float) 0.80);\n }\n\n // Build an army of invaders\n numInvaders = 0;\n for(int column = 0; column < invadersColumn; column ++ ){\n for(int row = 0; row < invadersRow; row ++ ){\n invaders[numInvaders] = new Invader(context, row, column, PlayableX, PlayableY, ExcessX);\n numInvaders ++;\n }\n }\n invadersLeft = numInvaders;\n\n try {\n // Create objects of the 2 required classes\n AssetManager assetManager = context.getAssets();\n explosionEffect = new Bitmap[12];\n for (int i=0; i < 12; i++) {\n explosionEffect[i] = Bitmap.createScaledBitmap(BitmapFactory.decodeStream(assetManager.open(\"explosion/\" + (i + 1) + \".png\")), (int) (invaders[0].getLength()*1.75), (int) (invaders[0].getLength()*1.75), true);\n }\n } catch (IOException e) {\n e.printStackTrace();\n // Print an error message to the console\n Log.e(\"error\", \"failed to load explosion effect image files\");\n }\n\n }", "private double scaleHeatrate(double loadperc) {\n if (loadperc >= 0 && loadperc < 0.25 ) {\r\n return heatrate *= 1.3;\r\n }\r\n else if (loadperc >= 0.25 && loadperc < 0.5 ) {\r\n return heatrate *= 1.2;\r\n }\r\n else if (loadperc >= 0.5 && loadperc < 0.75 ) {\r\n return heatrate *= 1.1;\r\n }\r\n else {\r\n return heatrate;\r\n }\r\n }", "private void setLevel(){\n\t\tif(getD(y) <= T)\n\t\t\tlevel = \"lower\";\n\t\telse\n\t\t\tlevel = \"higher\";\n\t}", "public abstract float scaleIntensityData(float rawData, int mid, int gid,\n int sampleNbr);" ]
[ "0.74845237", "0.7287544", "0.63119113", "0.5913221", "0.5692109", "0.5678812", "0.5654054", "0.5614123", "0.5568752", "0.55649984", "0.5516595", "0.5505703", "0.54807043", "0.5450064", "0.54457045", "0.54323816", "0.5397845", "0.53879255", "0.5380691", "0.5375332", "0.5360668", "0.5333419", "0.53323525", "0.5332134", "0.53145623", "0.53059846", "0.52888155", "0.52650654", "0.5260367", "0.5258846", "0.5252834", "0.524073", "0.52261394", "0.52155477", "0.5204929", "0.5189046", "0.51793426", "0.51790214", "0.51780224", "0.51640964", "0.5162094", "0.5153716", "0.5146663", "0.51411396", "0.51301193", "0.5125038", "0.51182353", "0.5117667", "0.510372", "0.5098961", "0.50987977", "0.5096917", "0.5084356", "0.50693554", "0.50673026", "0.50582045", "0.50513303", "0.5044814", "0.50447285", "0.50389683", "0.5033082", "0.5028103", "0.5017329", "0.5014892", "0.50078124", "0.50060636", "0.50030726", "0.49882698", "0.49828625", "0.49749646", "0.49725923", "0.49694693", "0.4965067", "0.49612698", "0.4957366", "0.49302128", "0.49289638", "0.4928797", "0.49264187", "0.49249086", "0.49245626", "0.49232662", "0.492267", "0.49195746", "0.49180868", "0.49173397", "0.49040338", "0.49035576", "0.49001116", "0.48956513", "0.4892608", "0.4890386", "0.4872996", "0.48715445", "0.48625502", "0.48625502", "0.48597562", "0.48584265", "0.4857756", "0.48572737" ]
0.7669975
0
Function that scales the health of the devil
private static int devilHealthScale(int devilHealth, int playerLevel){ if(playerLevel > 4){ devilHealth = devilHealth + ((10 * (playerLevel - 4))); } return devilHealth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void scaleStats() {\n this.damage = BASE_DMG + (this.getLevel() * 3);\n }", "private static int devilAttackScale(int devilAttack, int playerLevel){\r\n if(playerLevel > 4){\r\n devilAttack = devilAttack + ((2 * (playerLevel - 4)));\r\n \r\n }\r\n return devilAttack;\r\n }", "public void reduceHealth() {\n\t}", "public int getHealthScaling()\r\n {\r\n return mHealthScaling;\r\n }", "public void setHealthScaling(int healthScaling)\r\n {\r\n this.mHealthScaling = healthScaling;\r\n }", "private void updateHealth() {\n float percentage = (float) game.getPlayerComponent().getHealth() / (float) game.getPlayerComponent().getMaxHealth(); //Possible placed in controller\n healthBar.setWidth(healthBarMaxWidth * percentage);\n }", "public double getHealthScale ( ) {\n\t\treturn extract ( handle -> handle.getHealthScale ( ) );\n\t}", "private static int fireballDamageScale(int fireballDamage, int playerLevel){\r\n int totalDamage = 0;\r\n totalDamage = fireballDamage + (2 * playerLevel);\r\n return totalDamage;\r\n }", "public void setHealth(double h){\n health = h;\n }", "public void setHealth(double Health){\r\n health = Health;\r\n }", "public void heal(float health) {\r\n \t\tthis.health += health;\r\n \t\tif(health > maxHealth) {\r\n \t\t\thealth = maxHealth;\r\n \t\t}\r\n \t}", "private double scaleHeatrate(double loadperc) {\n if (loadperc >= 0 && loadperc < 0.25 ) {\r\n return heatrate *= 1.3;\r\n }\r\n else if (loadperc >= 0.25 && loadperc < 0.5 ) {\r\n return heatrate *= 1.2;\r\n }\r\n else if (loadperc >= 0.5 && loadperc < 0.75 ) {\r\n return heatrate *= 1.1;\r\n }\r\n else {\r\n return heatrate;\r\n }\r\n }", "private static int devilGoldScale(int devilGold, int playerLevel){\r\n if(playerLevel > 4){\r\n devilGold = devilGold + ( 1* playerLevel);\r\n return devilGold;\r\n }else{\r\n return devilGold;\r\n }\r\n }", "public void changeHealth(int i) {\n \t\tif (health + i < getMaxHealth()) {\n \t\t\thealth += i;\n \t\t} else if (health + i > getMaxHealth()) {\n \t\t\thealth = getMaxHealth();\n \t\t} else if (health + i < 1) {\n \t\t\thealth = 0;\n \t\t\talive = false;\n \t\t}\n \t}", "@Override\n\tpublic void setHealth(double health) {\n\n\t}", "private Float scale(Float datapoint){\n\n float range = (float)(20 * (max / Math.log(max)));\n range-=min;\n float scalar = DisplayImage.IMAGE_SIZE_SCALAR / range;\n\n if(nightMode){\n datapoint = (float) (100 * (datapoint / Math.log(datapoint)));\n datapoint *= scalar*5;\n }else {\n datapoint = (float) (20* (datapoint / Math.log(datapoint)));\n datapoint *= scalar;\n }\n\n return datapoint;\n }", "public void meditate() {\n int currentSamuraiHealth = this.getHealth();\n this.setHealth(currentSamuraiHealth/2 + currentSamuraiHealth);\n System.out.println(\"Samurai's new health is : \" + this.getHealth());\n }", "private void percentageScaling() {\n switch (slot) {\n case Torso -> updateBonusStats(1);\n case Head -> updateBonusStats(0.8);\n case Legs -> updateBonusStats(0.6);\n }\n }", "public void SetHealth(int h)\n{\n\thealth=h;\n}", "public void reduceHealth(int damage){\n health -= damage;\n }", "public void heal(int healAmount){\r\n health+= healAmount;\r\n }", "private void takeDamage(int damage){ health -= damage;}", "public abstract void setHealth(int health);", "public void setHealth(float health) {\r\n \t\tthis.health = health;\r\n \t}", "public void decreaseHealth() {\n setHealth(getHealth()-1);\n }", "Float getHealth();", "@Override\r\n\tprotected void setHealth( double newHealth ) \r\n\t{\r\n\t\tthis._health = this._health - newHealth;\r\n\t}", "public void visitScale( DevCat devCat ) {}", "private static int skeletonHealthScale(int skeletonHealth, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonHealth = skeletonHealth + (5 * playerLevel);\r\n return skeletonHealth;\r\n }else{\r\n return skeletonHealth;\r\n }\r\n }", "public void scaleAnimetion(SpriteBatch batch){\n }", "public void reduceAnimalHealth() {\n\t\thealth -= 10;\n\t}", "public void setMaxHealth() {\n\t\tthis.maxHealth *= level / 10;\n\t}", "public void setHealth(int health)\r\n {\r\n this.health = health;\r\n }", "void decreaseHealth(Float damage);", "private void setHealth() {\n eliteMob.setHealth(maxHealth = (maxHealth > 2000) ? 2000 : maxHealth);\n }", "void scale(double factor);", "public void reduceHealth(int ammo_damage){\n this.health -= ammo_damage;\n }", "public double getHealth() { return health; }", "float getPercentHealth();", "public void update() {\n remHpWidth = healthbarWidth * ent.getCurrentHealth() / ent.getMaxHealth();\n lostHpWidth = healthbarWidth - remHpWidth;\n }", "public void normalize()\n {\n\tdef += 200*counter;\n\tdmg -= 0.5*counter;\n\tcounter = 0;\n }", "private static int fireballMPScale(int fireballCost, int playerLevel){\r\n int MPCost = 0;\r\n MPCost = fireballCost + (1 * playerLevel);\r\n return MPCost;\r\n }", "public void healthDelta(int health_delta)\n {\n this.health += health_delta;\n this.health = Math.min(this.health, DataBase.getSettings().tanksHealth);\n }", "public void changeMaxHealth(int i) {\n \t\tmaxHealthModifier += i;\n \t\tif (getMaxHealth() < 1 ){\n \t\t\thealth = 0;\n \t\t\talive = false;\n \t\t}\n \t\tif (getMaxHealth() < health) {\n \t\t\thealth = getMaxHealth();\n \t\t}\n \t}", "public void setHealth(double health) {\r\n\t\tthis.health = health;\r\n\t}", "void setMaxScale(int value);", "public void setHealth(float health)\n {\n if ( health > getMaxHealth() )\n {\n this.health = getMaxHealth();\n }\n else if (health < 0)\n {\n this.health = 0.0f;\n }\n else\n {\n this.health = health;\n }\n\n }", "public void scale(double s);", "public double getHealth(){\r\n return health;\r\n }", "public void heal2()\r\n {\r\n this.health = 900;\r\n Story.healText2();\r\n }", "protected void func_77041_b(EntityLivingBase par1EntityLiving, float par2)\n/* */ {\n/* 87 */ scaleSpider((EntityTaintSpider)par1EntityLiving, par2);\n/* */ }", "public void heal(){\n\t\thp += potion.getHpBoost();\n\t\tif(hp > max_hp)hp = max_hp;\n\t}", "public void heal1()\r\n {\r\n this.health = 700;\r\n Story.healText1();\r\n }", "private void setHealth(double healthPercentage) {\n eliteMob.setHealth(this.maxHealth * healthPercentage);\n }", "public void setHealth(int health) {\n this.health = health;\n }", "public float getHealth(){\n return health.getHealth();\n }", "int getHealth();", "public void scanningThumbScale() {\n stopAnimationHandler();\n scanningBlurValueBar.setProgress(100);\n ScaleAnimation scaleAnimation = new ScaleAnimation(0f, 1f, 0f, 1f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);\n scaleAnimation.setFillAfter(false);\n scaleAnimation.setInterpolator(new BounceInterpolator());\n scaleAnimation.setDuration(600);\n scanningThumb.setVisibility(VISIBLE);\n scanningThumb.startAnimation(scaleAnimation);\n }", "public abstract void incrementHealth(int hp);", "public void drawHealth(Graphics2D g2d) {\t\n\t\tg2d.setColor(new Color(0,0,0,200));\n\t\tint w = StagePanel.boardRectSize;\n\t\tint h = StagePanel.boardRectSize/6;\n\t\tint x = (int)getRectHitbox().getCenterX() - w/2;\n\t\tint y = (int)getRectHitbox().getCenterY() - parentGP.boardRect.getSize()/2;\n\t\t\n\t\tRectangle maxHealthShieldRect = new Rectangle(x, y, w, h);\n\t\tg2d.fill(maxHealthShieldRect);\n\t\tfloat unitHealthSize = (w*(1.0f/(maxHealth+maxShield)));\n\t\tRectangle maxHealthRect = new Rectangle(x,y, (int)(unitHealthSize * health), h);\n\t\tRectangle maxShieldRect = new Rectangle(x+(int)(unitHealthSize * health),y, (int)(unitHealthSize * shield), h);\n\t\tg2d.setColor(Commons.cHealth);\n\t\tg2d.fill(maxHealthRect);\n\t\tg2d.setColor(Commons.cShield);\n\t\tg2d.fill(maxShieldRect);\n\t\tg2d.setStroke(new BasicStroke(3)); \n\t\tg2d.setColor(Color.BLACK);\n\t\tg2d.draw(maxHealthShieldRect);\n\t\tif(parentGP.boardRect == StagePanel.curHoverBR || parentGP == StagePanel.curSelectedGP) {\n\t\t\tdrawHealthValues(g2d, x, y,StagePanel.boardRectSize/5);\n\t\t}\n\t}", "private void setScale() {\n this.particleScale = (1 - ((float) slowTime / 50)) * (1.5f * (float) offset);\n }", "public int getHealth() { return this.health; }", "public void calibrated() {\n weaponDamage = weaponDamage + 10;\r\n }", "public void setHungerDamage(float hunger);", "public void heal3()\r\n {\r\n this.health = 1200;\r\n Story.healText3();\r\n }", "@Override\n public int maxHealth() {\n return 25;\n }", "private static int maxHealth(int health){\r\n int mHealth = 0;\r\n mHealth = health + 5;\r\n return mHealth; \r\n }", "public void punch (int health)\n {\n\thealth -= 8;\n\thealth2 = health;\n }", "public int getHealth();", "public void rescale()\r\n\t{\n\t}", "public void scaleBy(float scale) {\n internalGroup.scaleBy(scale);\n dataTrait.scaleX = internalGroup.getScaleX();\n dataTrait.scaleY = internalGroup.getScaleY();\n resetSprite();\n\n }", "public float getHungerDamage();", "public static void heal(LivingEntity ent) {\n\t\tAttributeInstance maxHealth = ent.getAttribute(Attribute.GENERIC_MAX_HEALTH);\n\t\tif(maxHealth != null) {\n\t\t\tent.setHealth(maxHealth.getValue());\n\t\t}\n\t\tif(ent instanceof Player) {\n\t\t\tPlayer p = (Player) ent;\n\t\t\tp.setFoodLevel(20);\n\t\t\tp.setSaturation(20);\n\t\t}\n\t}", "int getScale();", "public void buyHealth() {\n this.healthMod++;\n heathMax += 70 * healthMod;\n }", "public void changeHealthCoefficient(double delta) {\n if (this.healthCoefficient + delta < MINIMUM_HEALTH_COEFFICIENT) {\n this.healthCoefficient = MINIMUM_HEALTH_COEFFICIENT;\n this.isAlive = false;\n } else {\n this.healthCoefficient = Math.min(this.healthCoefficient + delta, MAXIMUM_HEALTH_COEFFICIENT);\n }\n }", "public float spiderScaleAmount()\n {\nreturn 1F;\n }", "public void setHealth(int h) {\n setStat(h, health);\n }", "protected void takeDamage(int damage)\n {\n health = health - damage;\n \n }", "public RaiseToScale() {\n super(\"RaiseToScale\", kP, kI, kD);\n requires(this.elevator = Elevator.getInstance());\n requires(this.intake = Intake.getInstance());\n this.getPIDController().setOutputRange(-RobotMap.ELEVATOR_SPEED,\n RobotMap.ELEVATOR_SPEED);\n setInterruptible(true);\n }", "@Override\r\n\tprotected double getHealth() \r\n\t{\r\n\t\treturn this._health;\r\n\t}", "public int getHealthCost();", "@Override\n public void hp(){\n HP=50*nivel;\n }", "private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }", "public void setSiegeWeaponDamage(short siegeWeaponDamage);", "public float getHealth()\n {\n return health;\n }", "private void scaleBatteryMeterViews() {\n Resources res = getContext().getResources();\n TypedValue typedValue = new TypedValue();\n\n res.getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true);\n float iconScaleFactor = typedValue.getFloat();\n\n int batteryHeight = res.getDimensionPixelSize(R.dimen.status_bar_battery_icon_height);\n int batteryWidth = res.getDimensionPixelSize(R.dimen.status_bar_battery_icon_width);\n int marginBottom = res.getDimensionPixelSize(R.dimen.battery_margin_bottom);\n\n LinearLayout.LayoutParams scaledLayoutParams = new LinearLayout.LayoutParams(\n (int) (batteryWidth * iconScaleFactor), (int) (batteryHeight * iconScaleFactor));\n scaledLayoutParams.setMargins(0, 0, 0, marginBottom);\n\n mBatteryIconView.setLayoutParams(scaledLayoutParams);\n FontSizeUtils.updateFontSize(mBatteryPercentView, R.dimen.qs_time_expanded_size);\n }", "public void scale(float x, float y);", "protected void setHealth(EntityLivingBase target, int health)\n {\n if (Metamorph.proxy.config.disable_health)\n {\n return;\n }\n\n float ratio = target.getHealth() / target.getMaxHealth();\n float proportionalHealth = Math.round(health * ratio);\n\n this.setMaxHealth(target, health);\n target.setHealth(proportionalHealth <= 0 ? 1 : proportionalHealth);\n }", "public void makeHero()\r\n { \r\n maxHealth = 100;\r\n health = maxHealth;\r\n }", "public int getMaxHealth();", "public Integer getHealth();", "public short getSiegeWeaponDamage();", "int getHealth() {\n return health;\n }", "void gainHealth(int points) {\n this.health += points;\n }", "public float getScale();", "@Override\n protected int strengthViability(Creature c){\n int baseViability = super.strengthViability(c);\n if (Elements.elementDamageMultiplier(c,bossFormation.getFrontCreature().getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST * 3);\n }\n if (Elements.elementDamageMultiplier(bossFormation.getFrontCreature(),c.getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST / 3);\n }\n return baseViability;\n }", "public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }", "protected void renderHealth(Screen screen) {\n\t\tif (health >= 250) screen.renderMob((int) x, (int) y - 1, Sprite.health_10);\n\t\telse if (health >= 225) screen.renderMob((int) x, (int) y - 1, Sprite.health_9);\n\t\telse if (health >= 200) screen.renderMob((int) x, (int) y - 1, Sprite.health_8);\n\t\telse if (health >= 175) screen.renderMob((int) x, (int) y - 1, Sprite.health_7);\n\t\telse if (health >= 150) screen.renderMob((int) x, (int) y - 1, Sprite.health_6);\n\t\telse if (health >= 125) screen.renderMob((int) x, (int) y - 1, Sprite.health_5);\n\t\telse if (health >= 100) screen.renderMob((int) x, (int) y - 1, Sprite.health_4);\n\t\telse if (health >= 75) screen.renderMob((int) x, (int) y - 1, Sprite.health_3);\n\t\telse if (health >= 50) screen.renderMob((int) x, (int) y - 1, Sprite.health_2);\n\t\telse if (health >= 25) screen.renderMob((int) x, (int) y - 1, Sprite.health_1);\n\t}", "public void recieveDamage(){\n this.health--;\n }" ]
[ "0.7081267", "0.65996075", "0.65796065", "0.6578853", "0.656058", "0.65504503", "0.6544201", "0.64795107", "0.6419757", "0.6418423", "0.64159447", "0.64140815", "0.64136696", "0.6410391", "0.633347", "0.63159436", "0.63032496", "0.6266562", "0.6254338", "0.6248019", "0.618727", "0.61784315", "0.6176296", "0.61661756", "0.61623746", "0.6158621", "0.61475885", "0.614662", "0.6113092", "0.6099352", "0.6091371", "0.60830665", "0.6081254", "0.60691303", "0.6062198", "0.6059018", "0.605632", "0.60536885", "0.60511917", "0.60472596", "0.6037671", "0.60371834", "0.6022707", "0.6012401", "0.6002171", "0.5975948", "0.59747994", "0.59673744", "0.5949655", "0.5947258", "0.5935578", "0.59292775", "0.59210646", "0.59081006", "0.59029573", "0.5902938", "0.5898878", "0.58831817", "0.58784467", "0.58750486", "0.5869094", "0.5860682", "0.58556235", "0.58547235", "0.58520263", "0.5850655", "0.5841764", "0.58346784", "0.5830273", "0.5829718", "0.58270997", "0.5819069", "0.58160985", "0.5814668", "0.57921886", "0.57804334", "0.57685304", "0.5764565", "0.5763267", "0.57630205", "0.57524157", "0.5748876", "0.57321537", "0.5732153", "0.5720491", "0.5715598", "0.5706271", "0.57039076", "0.56955504", "0.569472", "0.5687198", "0.5673263", "0.5663014", "0.5649952", "0.5646123", "0.56352973", "0.56290513", "0.56279445", "0.5625282", "0.562176" ]
0.7652407
0
Function that scales the attack of the devil
private static int devilAttackScale(int devilAttack, int playerLevel){ if(playerLevel > 4){ devilAttack = devilAttack + ((2 * (playerLevel - 4))); } return devilAttack; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int devilHealthScale(int devilHealth, int playerLevel){\r\n if(playerLevel > 4){\r\n devilHealth = devilHealth + ((10 * (playerLevel - 4)));\r\n }\r\n return devilHealth;\r\n }", "private static int devilGoldScale(int devilGold, int playerLevel){\r\n if(playerLevel > 4){\r\n devilGold = devilGold + ( 1* playerLevel);\r\n return devilGold;\r\n }else{\r\n return devilGold;\r\n }\r\n }", "@Override\n public void scaleStats() {\n this.damage = BASE_DMG + (this.getLevel() * 3);\n }", "private static int fireballDamageScale(int fireballDamage, int playerLevel){\r\n int totalDamage = 0;\r\n totalDamage = fireballDamage + (2 * playerLevel);\r\n return totalDamage;\r\n }", "@Override\n public void attackedByShaman(double attack) {\n damageCounter += (2 * attack) / 3;\n this.attack = Math.max(this.attack - (2 * attack) / 3, 0);\n }", "public int scale(int original);", "@Override\n public void attackedByPaladin(double attack) {\n this.attack += (2 * attack) / 3;\n damageCounter = Math.max(damageCounter - (2 * attack) / 3, 0);\n }", "public void scaleAnimetion(SpriteBatch batch){\n }", "protected void func_77041_b(EntityLivingBase par1EntityLiving, float par2)\n/* */ {\n/* 87 */ scaleSpider((EntityTaintSpider)par1EntityLiving, par2);\n/* */ }", "Float attack();", "private static int skeletonAttackScale(int skeletonAttack, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonAttack = skeletonAttack + (1 * playerLevel);\r\n return skeletonAttack;\r\n }else{\r\n return skeletonAttack;\r\n }\r\n }", "private static int fireballMPScale(int fireballCost, int playerLevel){\r\n int MPCost = 0;\r\n MPCost = fireballCost + (1 * playerLevel);\r\n return MPCost;\r\n }", "public void calibrated() {\n weaponDamage = weaponDamage + 10;\r\n }", "private Float scale(Float datapoint){\n\n float range = (float)(20 * (max / Math.log(max)));\n range-=min;\n float scalar = DisplayImage.IMAGE_SIZE_SCALAR / range;\n\n if(nightMode){\n datapoint = (float) (100 * (datapoint / Math.log(datapoint)));\n datapoint *= scalar*5;\n }else {\n datapoint = (float) (20* (datapoint / Math.log(datapoint)));\n datapoint *= scalar;\n }\n\n return datapoint;\n }", "public void normalize(){\r\n \tif(!normal){\r\n\t attack/=2;\r\n\t defense*=2;\r\n\t normal=true;\r\n\t}\r\n }", "public void normalize(){\r\n \tif(!normal){\r\n\t attack/=2;\r\n\t defense*=2;\r\n\t normal=true;\r\n\t}\r\n }", "void scale(double factor);", "public void normalize()\n {\n\tdef += 200*counter;\n\tdmg -= 0.5*counter;\n\tcounter = 0;\n }", "@Override\n\tpublic double attack() {\n\t\treturn 12.5;\n\t}", "@Override\n\tpublic void setAttack(double attack) {\n\n\t}", "public void setAttack(double attack) {\n this.attack = attack;\n }", "public void scale(float x, float y);", "public void scale(double s);", "void setMaxScale(int value);", "@Override\r\n\tpublic int costOfShooting() {\r\n\t\treturn 50;\r\n\t}", "private void takeDamage(int damage){ health -= damage;}", "public float spiderScaleAmount()\n {\nreturn 1F;\n }", "public void rescale()\r\n\t{\n\t}", "float getScaler();", "public void func_180430_e(float distance, float damageMultiplier) {}", "double scaleInput(double dVal) {\n double[] scaleArray = { 0.0, 0.05, 0.09, 0.10, 0.12, 0.15, 0.18, 0.24,\n 0.30, 0.36, 0.43, 0.50, 0.60, 0.72, 0.85, 1.00, 1.00 };\n int index = (int) (dVal * 16.0);\n if (index < 0) {\n index = -index;\n }\n if (index > 16) {\n index = 16;\n }\n double dScale = 0.0;\n if (dVal < 0) {\n dScale = -scaleArray[index];\n } else {\n dScale = scaleArray[index];\n }\n return dScale;\n }", "private double scalex(double x) {\n return x/scalingFactor;\n }", "int getScale();", "public void takedmg(int dmg){\n curHp -= dmg;\n }", "public void setSiegeWeaponDamage(short siegeWeaponDamage);", "public void visitScale( DevCat devCat ) {}", "float getCostScale();", "public void attack() {\n energy = 2;\n redBull = 0;\n gun = 0;\n target = 1;\n // if Player is in range take off a life.\n if (CharacterTask.ghostLocation == GameWindow.playerLocation) {\n playerLives = playerLives - 1;\n System.out.println(\"Player Lives: \" + playerLives);\n }\n }", "public int attack()\n {\n int percent = Randomizer.nextInt(100) + 1;\n int baseDamage = super.attack();\n if(percent <= 5)\n {\n baseDamage *= 2;\n baseDamage += 50;\n }\n return baseDamage;\n }", "public float getUnmodifiedAttack(int numberofunits) {\n\t\tif (numberofunits <= cutoffnumber) {\n\t\t\treturn numberofunits*attackperunit;\n\t\t}\n\t\telse {\n\t\t\tint scalednumber = numberofunits-cutoffnumber;\n\t\t\tfloat attack = cutoffnumber*attackperunit;\n\t\t\tfloat scaleing = 1-\n\t\t\t\t\t((1-cuttoffscaleing)\n\t\t\t\t\t*(scalednumber/(cutoffgradient-cutoffnumber))\t);\n\t\t\tif (scaleing < cuttoffscaleing) {\n\t\t\t\tattack += cuttoffscaleing*scalednumber;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tattack += scaleing*scalednumber;\n\t\t\t}\n\t\t\treturn attack;\n\t\t}\n\t}", "@Override\n protected int strengthViability(Creature c){\n int baseViability = super.strengthViability(c);\n if (Elements.elementDamageMultiplier(c,bossFormation.getFrontCreature().getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST * 3);\n }\n if (Elements.elementDamageMultiplier(bossFormation.getFrontCreature(),c.getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST / 3);\n }\n return baseViability;\n }", "private void setScale() {\n this.particleScale = (1 - ((float) slowTime / 50)) * (1.5f * (float) offset);\n }", "public void scale(Point P, int scaleFactor) {\n\n\n }", "public void autoscale()\n\t\t{\n\t\tdouble maxFC=1;\n\t\tdouble minP=-1;\n\t\t\n\t\tfor(int i=0;i<de.getNumGenes();i++)\n\t\t\t{\n\t\t\tdouble f=Math.abs(de.fc[i]);\n\t\t\tdouble p=de.logP[i];\n\t\t\tif(f>maxFC)\n\t\t\t\tmaxFC=f;\n\t\t\tif(p<minP)\n\t\t\t\tminP=p;\n\t\t\t}\n\t\tmaxFC*=1.2;\n\t\tminP*=1.2;\n\t\tscaleFC=1/maxFC;\n\t\tscaleP=-1/minP;\n\t\t}", "double scaleInput(double dVal) {\n double[] scaleArray = { 0.0, 0.05, 0.09, 0.10, 0.12, 0.15, 0.18, 0.24,\n 0.30, 0.36, 0.43, 0.50, 0.60, 0.72, 0.85, 1.00, 1.00 };\n\n // get the corresponding index for the scaleInput array.\n int index = (int) (dVal * 16.0);\n if (index < 0) {\n index = -index;\n } else if (index > 16) {\n index = 16;\n }\n\n double dScale = 0.0;\n if (dVal < 0) {\n dScale = -scaleArray[index];\n } else {\n dScale = scaleArray[index];\n }\n\n return dScale;\n }", "public short getSiegeWeaponDamage();", "private double getScalingFactorX(Dimension victim, Dimension controller) {\r\n return victim.getHeight()/controller.getHeight();\r\n }", "static double scaleInput(double dVal)\n {\n double[] scaleArray = {0.0, 0.05, 0.09, 0.10, 0.12, 0.15, 0.18, 0.24,\n 0.30, 0.36, 0.43, 0.50, 0.60, 0.72, 0.85, 1.00, 1.00};\n\n // get the corresponding index for the scaleInput array.\n int index = (int) (dVal * 16.0);\n\n // index should be positive.\n if (index < 0)\n {\n index = -index;\n }\n\n // index cannot exceed size of array minus 1.\n if (index > 16)\n {\n index = 16;\n }\n\n // get value from the array.\n double dScale;\n if (dVal < 0)\n {\n dScale = -scaleArray[index];\n }\n else\n {\n dScale = scaleArray[index];\n }\n\n // return scaled value.\n return dScale;\n }", "private ScaleEntityDownAction(){\r\n\t\tscaleFactor = 0.1f;\r\n\t}", "private static int playerDamageDealt(int playerAttack, int monsterDefense){\r\n int playerDamageDealt;\r\n playerDamageDealt = (playerAttack - monsterDefense);\r\n return playerDamageDealt;\r\n }", "@Override\n\tpublic void reduceCurrentHp(final double damage, final L2Character attacker)\n\t{\n\t\treduceCurrentHp(damage, attacker, true);\n\t}", "public void attack(Player player) {\n this.damage = 18 - player.getfPoint(); // the higher the Fighter skill,\n // the lower the damage. change the math.\n int newHealth = player.getShip().getHealth() - damage;\n player.getShip().setHealth(newHealth);\n }", "private void calculateDamage() {\n this.baseDamage = this.actualBaseDamage;\n this.applyPowers();\n this.baseDamage = Math.max(this.baseDamage - ((this.baseDamage * this.otherCardsPlayed) / this.magicNumber), 0);\n }", "@Override\n\tfinal public void scale(double x, double y)\n\t{\n\t\twidth *= x;\n\t\theight *= y;\n\t}", "void takeDamage(int points) {\n this.health -= points;\n }", "public int attack(Character target){ //hw3E#0 //hw46#moreThinking\n lowerHP((int)(strength * attack / 10)); //hw3E#0 //hw46#moreThinking\n return super.attack(target); //hw3E#0 //hw44#3,4 //hw46#moreThinking\n }", "private float generateAttackValue(HashMap content) {\n\t\tObject[] firewall = (Object[])firewalls.get(name);\n float maxValue = (float)((int)(Integer)firewall[ATTACK_RANGE]);\n float valuePerBucket = maxValue / weights.length;\n int i = getWeightedBucket(); // get the actual bucket to fall into in our \"normal\" distribution\n float actualValue = i * valuePerBucket + (int)(Integer)firewall[MIN_ATTACK]; // multiply the bucket by the value of each bucket\n int value = Math.round(actualValue); // round the number to the nearest integer\n\t\tfloat price = (value-(int)(Integer)firewall[MIN_ATTACK])*(float)(Float)(((Object[])firewalls.get(name))[PRICE_DAMAGE_MULTIPLIER]);\n//System.out.println(\"Attack value: \" + value);\n content.put(\"attack_damage\", \"\" + value);\n\t\treturn price;\n }", "public void takeAttack(int damage) {\r\n if(this.evasion > 0)\r\n this.evasion--;\r\n else\r\n this.takeDamage(damage);\r\n }", "@Override\n public void attack(int damage)\n {\n EntityPirate target = this.world.getClosestTarget(this, EntityPirate.class, 50, true);\n //System.out.println(target.toString());\n \n float newtonForce = 1200F; //The amount of force applied to the projectile\n \n if(target != null)\n {\n Vector2 difference = target.getPos().cpy().sub(this.getPos()); //Get the difference vector\n difference.nor().scl(newtonForce); //Normalize it to a unit vector, and scale it\n new EntityWaterBomb(this.world, this.getPos().x, this.getPos().y, difference.x, difference.y, this, damage); \n } // target\n }", "public void setHungerDamage(float hunger);", "public void normalize(){\n\t_defense = originalDefense;\n\t_strength = originalStrength;\n }", "@Override\n\tpublic void damage(float f) {\n\t\t\n\t}", "public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }", "private float setAttackAbsorption(HashMap content) {\n\t\tfloat change = calculateAbsorption();\n this.attackDamageModifier = baseDamageModifier + change;\n//System.out.println(\"attack: \" + this.attackDamageModifier);\n content.put(\"attack_damage_modifier\", \"\" + this.attackDamageModifier);\n\t\treturn change*ABSORPTION_PRICE_MULTIPLIER;\n }", "void evadeAttack(IUnit attacker, int incomingDamage);", "private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }", "private double scaleValue(double input) {\n if(type == SIMPLE_SIN2D_IN_X || type == SIMPLE_SIN2D_IN_Y || type == SIMPLE_MULT2D) {\n // SINE = -1 to 1\n // SCALE to 0 to 255\n // (SINE + 1) * 128\n return (input + 1) * (255.0 / 2.0);\n }\n if(type == SIMPLE_PLUS2D)\n {\n return (input + 2) * (255.0 / 4.0);\n }\n else\n return 0;\n }", "public void reduceHealth(int damage){\n health -= damage;\n }", "private void percentageScaling() {\n switch (slot) {\n case Torso -> updateBonusStats(1);\n case Head -> updateBonusStats(0.8);\n case Legs -> updateBonusStats(0.6);\n }\n }", "public float getScale();", "private double getScalingFactorY(Dimension victim, Dimension controller) {\r\n return victim.getWidth()/controller.getWidth();\r\n }", "@Override public void update(float dt)\n\t{\n\t\tthis.setScale((this.getScale().getX() + 0.1f) * 0.99f, (this.getScale().getY() + 0.1f) * 0.99f);\n\n\n\t}", "public void injure(int a, PhysicsEntity attacker ){\n\t\ta *= getArmorPercentage();\n\t\tsuper.injure(a,attacker);\n\t}", "private float deskXToAbst(int x)\n {\n return ((float)x/width);\n }", "private static int skeletonGoldScale(int skeletonGold, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonGold = skeletonGold + ( 1* playerLevel);\r\n return skeletonGold;\r\n }else{\r\n return skeletonGold;\r\n }\r\n }", "public void scale( float x, float y )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.setScale( x );\n\t\tmat.mul( opMat );\n\t}", "public float getHungerDamage();", "private void normalize() {\n this.x = (this.x - RobocodeRunner.width / 2) / RobocodeRunner.width;\n this.y = (this.y - RobocodeRunner.height / 2) / RobocodeRunner.height;\n this.distance /= Math.sqrt(RobocodeRunner.width * RobocodeRunner.width + RobocodeRunner.height * RobocodeRunner.height);\n this.enemyHeading /= 90;\n this.enemyDx /= 8;\n this.enemyDy /= 8;\n this.gunToTurn /= 180;\n this.angle /= 180;\n }", "public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }", "@Override\r\n\tpublic void damage(float amount) {\n\t\t\r\n\t}", "private double scaleJoystick(double val, JoystickSens sens) {\n if(sens == JoystickSens.LINEAR) return val;\n else if(sens == JoystickSens.SQUARED) return Math.signum(val) * Math.pow(val, 2);\n else if(sens == JoystickSens.CUBED) return Math.pow(val, 3);\n else if(sens == JoystickSens.TESSERACTED) return Math.signum(val) * Math.pow(val, 4);\n else if(sens == JoystickSens.SINE) return Math.sin(val * (Math.PI / 2));\n else return val;\n }", "public void getDamaged(float dmg) {\n\t\tStagePanel.addValueLabel(parentGP,dmg,Commons.cAttack);\n\t\tif(shield - dmg >= 0) {\n\t\t\tshield-=dmg;\n\t\t\tdmg = 0;\n\t\t}else {\n\t\t\tdmg-=shield;\n\t\t\tshield = 0;\n\t\t}\n\t\tif(health-dmg > 0) {\n\t\t\thealth-=dmg;\n\t\t}else {\n\t\t\thealth = 0;\n\t\t}\n\t\tSoundEffect.play(\"Hurt.wav\");\n\t}", "public double calculateBmiDragon(){\n\t\treturn weight/(height*height);\n\t}", "private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}", "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "public void setAttack(int attack) {\n base.setAttack(attack);\n }", "public double mageStrike()\r\n\t{\r\n\t\tdouble r = random.nextDouble();\r\n\t\tdmg2 = dmg + ((2*pRange)/100) * (r - 0.5) * dmg;\r\n\t\tif (r < (crit/100))\r\n\t\t{\r\n\t\t\tdmg2 = 2*dmg2;\r\n\t\t\taggro = aggro * 1.4;\r\n\t\t}\r\n\t\taggro = aggro * 1.2;\r\n\t\treturn dmg2;\r\n\t}", "private static int monsterDamageDealt(int monsterAttack, int playerDefense){\r\n int monsterDamageDealt;\r\n monsterDamageDealt = (monsterAttack - playerDefense);\r\n if(monsterDamageDealt < 0){\r\n monsterDamageDealt = 0;\r\n return monsterDamageDealt;\r\n }else{\r\n return monsterDamageDealt;\r\n }\r\n }", "private int abstToDeskX(float x)\n {\n return (int)(width*x);\n }", "public static double valueOfStorm(int attack) {\n return attack * 0.8;\n }", "public static double evaluateSurvivability(Board b, int team) {\n Optional<Leader> ol = b.getPlayer(team).getLeader();\n if (ol.isEmpty()) {\n return 0;\n }\n Leader l = ol.get();\n if (l.health <= 0) { // if dead\n return -99999 + l.health; // u dont want to be dead\n }\n int shield = l.finalStats.get(Stat.SHIELD);\n Supplier<Stream<Minion>> attackingMinions = () -> b.getMinions(team * -1, true, true);\n // TODO add if can attack check\n // TODO factor in damage limiting effects like durandal\n int potentialDamage = attackingMinions.get()\n .filter(Minion::canAttack)\n .map(m -> m.finalStats.get(Stat.ATTACK) * (m.finalStats.get(Stat.ATTACKS_PER_TURN) - m.attacksThisTurn))\n .reduce(0, Integer::sum);\n int potentialLeaderDamage = attackingMinions.get()\n .filter(Minion::canAttack)\n .filter(Minion::attackLeaderConditions)\n .map(m -> m.finalStats.get(Stat.ATTACK) * (m.finalStats.get(Stat.ATTACKS_PER_TURN) - m.attacksThisTurn))\n .reduce(0, Integer::sum);\n int threatenDamage = attackingMinions.get()\n .filter(Minion::canAttackEventually)\n .map(m -> m.finalStats.get(Stat.ATTACK) * m.finalStats.get(Stat.ATTACKS_PER_TURN))\n .reduce(0, Integer::sum);\n int threatenLeaderDamage = attackingMinions.get()\n .filter(Minion::canAttackEventually)\n .filter(Minion::attackLeaderConditions)\n .map(m -> m.finalStats.get(Stat.ATTACK) * m.finalStats.get(Stat.ATTACKS_PER_TURN))\n .reduce(0, Integer::sum);\n int attackers = attackingMinions.get()\n .map(m -> m.finalStats.get(Stat.ATTACKS_PER_TURN))\n .reduce(0, Integer::sum);\n List<Minion> defendingMinons = b.getMinions(team, false, true)\n .filter(m -> m.finalStats.get(Stat.WARD) > 0)\n .collect(Collectors.toList());\n int leaderhp = l.health + shield;\n int ehp = defendingMinons.stream()\n .map(m -> m.health)\n .reduce(leaderhp, Integer::sum);\n long defenders = defendingMinons.size();\n if (shield > 0) {\n defenders++;\n }\n if (b.getCurrentPlayerTurn() != team) {\n threatenDamage = potentialDamage;\n threatenLeaderDamage = potentialLeaderDamage;\n }\n // if there are more defenders than attacks, then minions shouldn't be\n // able to touch face\n if (defenders >= attackers) {\n ehp = Math.max(ehp - threatenDamage, leaderhp);\n } else {\n ehp = Math.max(ehp - threatenDamage, leaderhp - threatenLeaderDamage);\n if (ehp <= 0) {\n if (team == b.getCurrentPlayerTurn()) {\n // they're threatening lethal if i dont do anything\n return -30 + ehp;\n } else {\n // they have lethal, i am ded\n return -60 + ehp;\n }\n }\n }\n return 6 * Math.log(ehp);\n }", "@Override\n\tpublic int attack( ){\n\t\treturn enemy.attack();\n\t}", "int getAttackRange();", "public Tower(String name, Image image, double minRange, double maxRange, double buildCost, double upgradeCost, double attack, int x, int y) {\n this.name = name;\n this.image = image;\n this.minRange = minRange;\n this.maxRange = maxRange;\n this.buildCost = buildCost;\n this.upgradeCost = upgradeCost;\n this.attack = attack;\n this.x = x;\n this.y = y;\n }", "public void takeDamage(int dmg){\r\n this.currHP -= dmg;\r\n }", "public void scale(float x, float y) {\n multiply(\n x, 0F, 0F, 0F,\n 0F, y, 0F, 0F,\n 0F, 0F, 1F, 0F,\n 0F, 0F, 0F, 1F\n );\n }", "@Override\n public Double scalingFactor() {\n return 1.55d;\n }", "@Override\n\tpublic void resize(int w, int h) {\n\t\tthis.leveys = w;\n\t\tthis.korkeus = h;\n\t\tthis.batch = new SpriteBatch();\n\t\tthis.ylaPalkinKorkeus = (int) (0.0931 * leveys);\n\n//\t\tskaala = Math.min((float) (w - 50) / 640,\n//\t\t\t\t(float) (h - 50 - ylaPalkinKorkeus) / 370f);\n\t\tskaala = Math.min((float) (w - 50) / 590,\n\t\t\t\t(float) (h - 50 - ylaPalkinKorkeus) / 354f);\n\n\t\t//System.out.println(\"(w - 50) / 640 = \" + w + \" - 50) / 640 = \" + (float) (w - 50) / 640);\n\t\t//System.out.println(\"(h - 50 - ylaPalkinKorkeus) / 370f) = \" + h + \"- 50 - \" + ylaPalkinKorkeus + \") / 370f = \" + (float) (h - 50 - ylaPalkinKorkeus) / 370f);\n\t\tSystem.out.println(\"Fontin skaala: \" + skaala);\n\t\tfont2.setScale(skaala);\n\t\t//font2.setScale(skaala*0.2f);\n\t\t// leveysSkaala = w / 640;\n\t\t// korkeusSkaala = h / 480;\n\n\t}", "public int xPixScale( double x ) { return (int)(width / xRange * x); }", "public static double valueOfRush(int attack) {\n return valueOfMinionDamage(attack) * 0.5;\n }" ]
[ "0.7239463", "0.6984436", "0.67494005", "0.6526246", "0.65147907", "0.6451037", "0.64287287", "0.64187074", "0.63945806", "0.6338646", "0.63271236", "0.6249943", "0.6244895", "0.6242263", "0.62340975", "0.62340975", "0.6168768", "0.6146833", "0.6082477", "0.59810525", "0.59473044", "0.5938545", "0.5938404", "0.592767", "0.5916132", "0.5889736", "0.58886665", "0.5871459", "0.5870796", "0.58702964", "0.5856899", "0.5845137", "0.58326447", "0.5825226", "0.582355", "0.5819801", "0.58162004", "0.57903785", "0.57782537", "0.57705414", "0.5769752", "0.57263047", "0.5725181", "0.5723013", "0.57152736", "0.5714956", "0.56996393", "0.5673343", "0.566261", "0.5661928", "0.5653809", "0.5624422", "0.55979276", "0.55907285", "0.5586138", "0.5563885", "0.5559248", "0.5547296", "0.5537373", "0.55343807", "0.5532367", "0.55313295", "0.55305415", "0.55272144", "0.55182004", "0.55080414", "0.550625", "0.5495752", "0.5492405", "0.5490578", "0.5488211", "0.5478292", "0.546373", "0.545832", "0.5451837", "0.5441839", "0.5440735", "0.54375917", "0.5421676", "0.5421132", "0.5413229", "0.5406115", "0.53990996", "0.5397026", "0.539388", "0.5393298", "0.53911525", "0.53887135", "0.53807676", "0.53791827", "0.5377119", "0.5370017", "0.53621554", "0.5358743", "0.5356937", "0.53568137", "0.53565073", "0.5356456", "0.5348412", "0.53465044" ]
0.806659
0
Function that scales devil gold dropped based on level
private static int devilGoldScale(int devilGold, int playerLevel){ if(playerLevel > 4){ devilGold = devilGold + ( 1* playerLevel); return devilGold; }else{ return devilGold; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int devilHealthScale(int devilHealth, int playerLevel){\r\n if(playerLevel > 4){\r\n devilHealth = devilHealth + ((10 * (playerLevel - 4)));\r\n }\r\n return devilHealth;\r\n }", "private static int devilAttackScale(int devilAttack, int playerLevel){\r\n if(playerLevel > 4){\r\n devilAttack = devilAttack + ((2 * (playerLevel - 4)));\r\n \r\n }\r\n return devilAttack;\r\n }", "@Override\n public void scaleStats() {\n this.damage = BASE_DMG + (this.getLevel() * 3);\n }", "private static int fireballDamageScale(int fireballDamage, int playerLevel){\r\n int totalDamage = 0;\r\n totalDamage = fireballDamage + (2 * playerLevel);\r\n return totalDamage;\r\n }", "private static int skeletonGoldScale(int skeletonGold, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonGold = skeletonGold + ( 1* playerLevel);\r\n return skeletonGold;\r\n }else{\r\n return skeletonGold;\r\n }\r\n }", "public void calibrated() {\n weaponDamage = weaponDamage + 10;\r\n }", "private static int fireballMPScale(int fireballCost, int playerLevel){\r\n int MPCost = 0;\r\n MPCost = fireballCost + (1 * playerLevel);\r\n return MPCost;\r\n }", "public void normalize()\n {\n\tdef += 200*counter;\n\tdmg -= 0.5*counter;\n\tcounter = 0;\n }", "float getScaler();", "public void disperse() {\t\t\n\t\tfor (int r = 0; r < rows; r++){\n\t\t\tfor (int c = 1; c < cols; c++){\n\t\t\t\tint sum = values[r+1][c-1] + values[r+1][c] + values[r+1][c+1];\n\t\t\t\tif(r < rows - fireLevel + 14){\n\t\t\t\t\tvalues[r][c] = (sum / 3) - 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tvalues[r][c] = (int)((sum / 3.0) - 0.0); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (values[r][c] < 0) values[r][c] = 0;\n\t\t\t\tg2.setColor(colors[values[r][c]]);\n\t\t\t\tif(values[r][c] > 5){\n\t\t\t\t\tg2.fillRect(c*res,r*res,res,res);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public float spiderScaleAmount()\n {\nreturn 1F;\n }", "public float getHungerDamage();", "public double mageStrike()\r\n\t{\r\n\t\tdouble r = random.nextDouble();\r\n\t\tdmg2 = dmg + ((2*pRange)/100) * (r - 0.5) * dmg;\r\n\t\tif (r < (crit/100))\r\n\t\t{\r\n\t\t\tdmg2 = 2*dmg2;\r\n\t\t\taggro = aggro * 1.4;\r\n\t\t}\r\n\t\taggro = aggro * 1.2;\r\n\t\treturn dmg2;\r\n\t}", "public void goldDropPoint()\r\n {\r\n System.out.println(\"goldDropPoint\");\r\n setManual(false);\r\n if (isCollectionPlane)\r\n {\r\n savePreviousPosition();\r\n setIsCollectionPlane(false);\r\n }\r\n if (motorJ1.getCurrentPosition() > GOLD_DROP_J1)\r\n {\r\n j1Power = -J1_POWER;\r\n }\r\n else if (motorJ1.getCurrentPosition() < GOLD_DROP_J1)\r\n {\r\n j1Power = J1_POWER;\r\n }\r\n\r\n if (motorJ2.getCurrentPosition() > GOLD_DROP_J2)\r\n {\r\n j2Power = -J2_POWER;\r\n }\r\n else if (motorJ2.getCurrentPosition() < GOLD_DROP_J2)\r\n {\r\n j2Power = J2_POWER;\r\n }\r\n\r\n if (motorJ3.getCurrentPosition() > GOLD_DROP_J3)\r\n {\r\n j3Power = -UP_POWER_J3;\r\n }\r\n else if (motorJ3.getCurrentPosition() < GOLD_DROP_J3)\r\n {\r\n j3Power = UP_POWER_J3;\r\n }\r\n toPosition(j1Power, j2Power, j3Power, GOLD_DROP_J1, GOLD_DROP_J2, GOLD_DROP_J3);\r\n j1Power = 0;\r\n j2Power = 0;\r\n j3Power = 0;\r\n }", "private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }", "private static int skeletonAttackScale(int skeletonAttack, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonAttack = skeletonAttack + (1 * playerLevel);\r\n return skeletonAttack;\r\n }else{\r\n return skeletonAttack;\r\n }\r\n }", "public void getDamaged(float dmg) {\n\t\tStagePanel.addValueLabel(parentGP,dmg,Commons.cAttack);\n\t\tif(shield - dmg >= 0) {\n\t\t\tshield-=dmg;\n\t\t\tdmg = 0;\n\t\t}else {\n\t\t\tdmg-=shield;\n\t\t\tshield = 0;\n\t\t}\n\t\tif(health-dmg > 0) {\n\t\t\thealth-=dmg;\n\t\t}else {\n\t\t\thealth = 0;\n\t\t}\n\t\tSoundEffect.play(\"Hurt.wav\");\n\t}", "public Glow(double level) {\n setLevel(level);\n }", "private void applyLvlUpCost() {\n }", "private static int skeletonHealthScale(int skeletonHealth, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonHealth = skeletonHealth + (5 * playerLevel);\r\n return skeletonHealth;\r\n }else{\r\n return skeletonHealth;\r\n }\r\n }", "private double scaleHeatrate(double loadperc) {\n if (loadperc >= 0 && loadperc < 0.25 ) {\r\n return heatrate *= 1.3;\r\n }\r\n else if (loadperc >= 0.25 && loadperc < 0.5 ) {\r\n return heatrate *= 1.2;\r\n }\r\n else if (loadperc >= 0.5 && loadperc < 0.75 ) {\r\n return heatrate *= 1.1;\r\n }\r\n else {\r\n return heatrate;\r\n }\r\n }", "private void calcDilution() {\n \t\t\tdouble dilutionFactor = dilVol.getValue() / postBoilVol.getValue();\n \t\t\tdilIbu = ibu / dilutionFactor;\n \t\t\tdilAlc = alcohol / dilutionFactor;\n \t\t\tdilOG = ((estOg - 1) / dilutionFactor) + 1;\n \t\t\tdilSrm = srm / dilutionFactor;\n \n \t\t}", "public int getScaledEnergyLevel(int i)\n\t{\n\t\treturn energyStored*i / currentMaxEnergy;\n\t}", "int getScale();", "public void incLevel(int lvl){this.Level=this.XP/(100);}", "public int scale(int original);", "public void silverDropPoint()\r\n {\r\n System.out.println(\"silverDropPoint\");\r\n if (isCollectionPlane)\r\n {\r\n savePreviousPosition();\r\n setIsCollectionPlane(false);\r\n }\r\n if (motorJ1.getCurrentPosition() > SILVER_DROP_J1)\r\n {\r\n j1Power = -J1_POWER;\r\n }\r\n else if (motorJ1.getCurrentPosition() < SILVER_DROP_J1)\r\n {\r\n j1Power = J1_POWER;\r\n }\r\n\r\n if (motorJ2.getCurrentPosition() > SILVER_DROP_J2)\r\n {\r\n j2Power = -J2_POWER;\r\n }\r\n else if (motorJ2.getCurrentPosition() < SILVER_DROP_J2)\r\n {\r\n j2Power = J2_POWER;\r\n }\r\n\r\n if (motorJ3.getCurrentPosition() > SILVER_DROP_J3)\r\n {\r\n j3Power = -UP_POWER_J3;\r\n }\r\n else if (motorJ3.getCurrentPosition() < SILVER_DROP_J3)\r\n {\r\n j3Power = UP_POWER_J3;\r\n }\r\n toPosition(j1Power, j2Power, j3Power, SILVER_DROP_J1, SILVER_DROP_J2, SILVER_DROP_J3);\r\n j1Power = 0;\r\n j2Power = 0;\r\n j3Power = 0;\r\n }", "public short getSiegeWeaponDamage();", "public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}", "public void setHungerDamage(float hunger);", "private void gunModifier()\n\t{\t\t\n\t\tif (_gunModifier == 0)\n\t\t{\n\t\t\t_gunModifier = (_gunModifierSwivel * GameState._density);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (_gunModifier == _gunModifierSwivel * GameState._density)\n\t\t\t{\n\t\t\t\t_gunModifier = -1 * (_gunModifierSwivel* GameState._density);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (_gunModifier == -1 * (_gunModifierSwivel* GameState._density))\n\t\t\t\t{\n\t\t\t\t\t_gunModifier = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private Float scale(Float datapoint){\n\n float range = (float)(20 * (max / Math.log(max)));\n range-=min;\n float scalar = DisplayImage.IMAGE_SIZE_SCALAR / range;\n\n if(nightMode){\n datapoint = (float) (100 * (datapoint / Math.log(datapoint)));\n datapoint *= scalar*5;\n }else {\n datapoint = (float) (20* (datapoint / Math.log(datapoint)));\n datapoint *= scalar;\n }\n\n return datapoint;\n }", "private int calculateLevelModifierForDrop(final L2PcInstance lastAttacker)\n\t{\n\t\tif (Config.DEEPBLUE_DROP_RULES)\n\t\t{\n\t\t\tint highestLevel = lastAttacker.getLevel();\n\t\t\t\n\t\t\t// Check to prevent very high level player to nearly kill mob and let low level player do the last hit.\n\t\t\tif (getAttackByList() != null && !getAttackByList().isEmpty())\n\t\t\t{\n\t\t\t\tfor (final L2Character atkChar : getAttackByList())\n\t\t\t\t{\n\t\t\t\t\tif (atkChar != null && atkChar.getLevel() > highestLevel)\n\t\t\t\t\t{\n\t\t\t\t\t\thighestLevel = atkChar.getLevel();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// According to official data (Prima), deep blue mobs are 9 or more levels below players\n\t\t\tif (highestLevel - 9 >= getLevel())\n\t\t\t{\n\t\t\t\treturn (highestLevel - (getLevel() + 8)) * 9;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "public void takedmg(int dmg){\n curHp -= dmg;\n }", "public void func_180430_e(float distance, float damageMultiplier) {}", "void setMaxScale(int value);", "float getBonusItemDrop();", "public void drawScale()\n\t{\n\tint sw=150;\n\tint sh=10;\n\tint x=width-sw-15;\n\tint y=(int)(END_Y+sh*0.5);\n\tscaleBox=new Rectangle2D.Float(x, y, sw, sh);\n\tstrokeWeight(1);\n\t\n\tCell hc=null;\n\tCell finalhc=null;\n\tfor(int i=0;i<hoveredCells.size();i++)\n\t\t{\n\t\thc=hoveredCells.get(i);\n\t\tif(hc.level==min(levelThreshold, minHoveredLevel))\n\t\t\tfinalhc=hc;\n\t\t}\n\thc=finalhc;\n\t\n\tboolean refDrawn=false;\n\tdouble jump0=(255-(0/(float)sw)*255);\n\tdouble jump1=(255-(0/(float)sw)*255);\n\tdouble jump=Math.ceil(jump1-jump0)+2;\n\t\n\tfor(int i=0;i<sw;i++)\n\t\t{\n\t\tint h=0;\n\t\tboolean drawReference=false;\n\t\tswitch(COLOR_MODE)\n\t\t\t{\n\t\t\tcase COLOR_EXPRESSION:\n\t\t\t\tif(i>sw*0.5)\n\t\t\t\t\t{\n\t\t\t\t\th=(int)Math.round(255-((i-sw*0.5)/(sw*0.5)*255));\n\t\t\t\t\tstroke(255,h,h);\n\t\t\t\t\tif(hc!=null && hc.color.get(selectedCol).getRed()==255 && Math.abs(hc.color.get(selectedCol).getBlue()-h)<=jump)\n\t\t\t\t\t\tdrawReference=true;\n\t\t\t\t\t}\n\t\t\t\telse\t\n\t\t\t\t\t{\n\t\t\t\t\th=(int)Math.round(255-(Math.abs(i-sw*0.5)/Math.abs(sw*0.5))*255);\n\t\t\t\t\tstroke(h,h,255);\n\t\t\t\t\tif(hc!=null && hc.color.get(selectedCol).getBlue()==255 && Math.abs(hc.color.get(selectedCol).getRed()-h)<=jump)\n\t\t\t\t\t\tdrawReference=true;\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase COLOR_DEVIATION:\n\t\t\t\th=(int)Math.round(255-(i/(float)sw)*255);\n\t\t\t\tstroke(h,255,h);\n\t\t\t\tif(hc!=null && Math.abs(hc.color.get(selectedCol).getBlue()-h)<=jump)\n\t\t\t\t\tdrawReference=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\tline(x+i,y,x+i,y+sh);\n\t\tif(drawReference && !refDrawn)\n\t\t\t{\n\t\t\tstroke(0);\n\t\t\tline(x+i, y-2, x+i, y+sh+2);\n\t\t\trefDrawn=true;\n\t\t\t}\n\t\t}\n\tstroke(200,200,200);\n\tnoFill();\n\trect(x-1,y-1,sw+1,sh+1);\n\t\n\t//Draw legend\n\ttextAlign(CENTER, TOP);\n\tfill(200);\n\tline(x,y+sh,x,y+sh+2);\n\tif(whiteValue==MEAN)\ttext(\"min\", x, y+sh+3);\n\telse if(whiteValue==MEDIAN)\ttext(\"0\", x, y+sh+3);\n\tline((int)(x+sw*0.5),y+sh,(int)(x+sw*0.5),y+sh+2);\n\tif(whiteValue==MEAN)\t\t\n\t\t{\n\t\ttext(\"avg\", (int)(x+sw*0.5), y+sh+3);\n\t\ttext(\"(\"+expData.average+\")\", (int)(x+sw*0.5), y+sh+6);\n\t\t\n\t\t}\n\telse if(whiteValue==MEDIAN)\ttext(\"50\", (int)(x+sw*0.5), y+sh+3);\n\t\n\tline(x+sw-1,y+sh,x+sw-1,y+sh+2);\n\tif(whiteValue==MEAN)\t\ttext(\"max\", x+sw-1, y+sh+3);\n\telse if(whiteValue==MEDIAN)\ttext(\"100\", x+sw-1, y+sh+3);\n\t\n\t//line((int)(x+sw*0.25),y+sh,(int)(x+sw*0.25),y+sh+1);\n\t//line((int)(x+sw*0.75),y+sh,(int)(x+sw*0.75),y+sh+1);\n\tline((int)(x+sw*0.1),y+sh,(int)(x+sw*0.1),y+sh+1);\n\tline((int)(x+sw*0.2),y+sh,(int)(x+sw*0.2),y+sh+1);\n\tline((int)(x+sw*0.3),y+sh,(int)(x+sw*0.3),y+sh+1);\n\tline((int)(x+sw*0.4),y+sh,(int)(x+sw*0.4),y+sh+1);\n\tline((int)(x+sw*0.6),y+sh,(int)(x+sw*0.6),y+sh+1);\n\tline((int)(x+sw*0.7),y+sh,(int)(x+sw*0.7),y+sh+1);\n\tline((int)(x+sw*0.8),y+sh,(int)(x+sw*0.8),y+sh+1);\n\tline((int)(x+sw*0.9),y+sh,(int)(x+sw*0.9),y+sh+1);\n\tnoStroke();\n\t}", "private void takeDamage(int damage){ health -= damage;}", "private void normalize() {\r\n // GET MAX PRICE \r\n for (Alternative alt : alternatives) {\r\n if (alt.getPrice() > 0 && alt.getPrice() < minPrice) {\r\n minPrice = alt.getPrice();\r\n }\r\n }\r\n\r\n for (Alternative alt : alternatives) {\r\n // NORMALIZE PRICE - NON BENIFICIAL using max - min \r\n double price = alt.getPrice();\r\n double value = minPrice / price;\r\n alt.setPrice(value);\r\n // BENITIFICIAL v[i,j] = x[i,j] / x[max,j]\r\n double wood = alt.getWood();\r\n value = wood / maxWood;\r\n alt.setWood(value);\r\n\r\n double brand = alt.getBrand();\r\n value = wood / maxBrand;\r\n alt.setBrand(value);\r\n\r\n double origin = alt.getOrigin();\r\n value = origin / maxOrigin;\r\n alt.setOrigin(value);\r\n\r\n }\r\n }", "@Override\n public void setLevel(int level) {\n if (level > 1) {\n this.level = level;\n scaleUp();\n percentageScaling();\n }\n }", "public void newlevel() {\n\t\tblack = new Background(COURT_WIDTH, COURT_HEIGHT); // reset background\n\t\tcannon = new Cannon(COURT_WIDTH, COURT_HEIGHT); // reset cannon\n\t\tdeadcannon = null;\n\t\tbullet = null;\n\t\tshot1 = null;\n\t\tshot2 = null;\n\t\t// reset top row\n\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\talien1[i] = new Alien(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien1[i].pos_x = alien1[i].pos_x + 30*i;\n\t\t\talien1[i].v_x = level + alien1[i].v_x;\n\t\t}\n\t\t// reset second row\n\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\talien2[i] = new Alien2(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien2[i].pos_x = alien2[i].pos_x + 30*i;\n\t\t\talien2[i].v_x = level + alien2[i].v_x;\n\t\t}\n\t\t// reset third row\n\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\talien3[i] = new Alien3(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien3[i].pos_x = alien3[i].pos_x + 30*i;\n\t\t\talien3[i].v_x = level + alien3[i].v_x;\n\t\t}\n\t}", "void dropHandler() {\n if (tickSpeed < 0) {\n if((int)random(1,6) == 1){ //every 6 medkits the handler drops a minigun\n Sprite mg = new Sprite(minigun);\n mg.moveToPoint(random(0,2048), random(0, 2048)); //moves drop to random point\n minigunDrop.add(mg);\n tickSpeed = (int)random(100,500);\n }else if((int)random(1,4) == 1){ //every 4 medkits the handler drops a coilgun\n Sprite cg = new Sprite(coilgun);\n cg.moveToPoint(random(0,2048), random(0,2048)); //moves drop to random point\n coilgunDrop.add(cg);\n tickSpeed = (int)random(100,500); //changes \n }\n else {\n \n \n Medkit hp = new Medkit();\n hp.med.moveToPoint(random(0, 2048), random(0, 2048));\n\n health.add(hp);\n\n tickSpeed = (int)random(100,500);\n }\n }\n tickSpeed--;\n for (Medkit hp: health) {\n hp.med.display();\n hp.timer--;\n\n }\n for (Sprite mg: minigunDrop){\n mg.display();\n }\n for (Sprite cg: coilgunDrop){\n cg.display();\n }\n // e.forward(5);\n}", "public double calculateBmiDragon(){\n\t\treturn weight/(height*height);\n\t}", "double getLevel();", "double getLevel();", "public void autoscale()\n\t\t{\n\t\tdouble maxFC=1;\n\t\tdouble minP=-1;\n\t\t\n\t\tfor(int i=0;i<de.getNumGenes();i++)\n\t\t\t{\n\t\t\tdouble f=Math.abs(de.fc[i]);\n\t\t\tdouble p=de.logP[i];\n\t\t\tif(f>maxFC)\n\t\t\t\tmaxFC=f;\n\t\t\tif(p<minP)\n\t\t\t\tminP=p;\n\t\t\t}\n\t\tmaxFC*=1.2;\n\t\tminP*=1.2;\n\t\tscaleFC=1/maxFC;\n\t\tscaleP=-1/minP;\n\t\t}", "@Override\n public void upgrade(int level){\n System.out.println(\"Level adfasdfasdf: \" + level);\n System.out.println(getLevel());\n\n if(level > 5) level = 5;\n\n if(level > 1){\n for (int i = 1; i < level; i++) levelUp();\n }\n\n /*\n //System.out.println(\"\\n-------\");\n //System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n\n double percentage = growth(level);\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (level % 2 != 0) range++;\n\n //System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n //System.out.println(\"-------\\n\");*/\n }", "int getWrongScale();", "public void setGeneralDamage(float value) {\n\t\tdamage = value;\n\t\trangedDamage = value;\n\t}", "public void reduceHealth(int damage){\n health -= damage;\n }", "public void visitScale( DevCat devCat ) {}", "public void takeDamage(double num) {\r\n \r\n int damage = (int)Math.round(num);\r\n this.health -= damage;\r\n this.state=this.color+16;\r\n if (damage <= 5) {\r\n if (this.playerNum == 1)\r\n this.positionX -= 40;\r\n else \r\n this.positionX += 40;\r\n }\r\n else if (this.playerNum == 1)\r\n this.positionX -= damage * 6;\r\n else\r\n this.positionX += damage * 6;\r\n \r\n }", "double scaleInput(double dVal) {\n double[] scaleArray = { 0.0, 0.05, 0.09, 0.10, 0.12, 0.15, 0.18, 0.24,\n 0.30, 0.36, 0.43, 0.50, 0.60, 0.72, 0.85, 1.00, 1.00 };\n int index = (int) (dVal * 16.0);\n if (index < 0) {\n index = -index;\n }\n if (index > 16) {\n index = 16;\n }\n double dScale = 0.0;\n if (dVal < 0) {\n dScale = -scaleArray[index];\n } else {\n dScale = scaleArray[index];\n }\n return dScale;\n }", "private double scaleValue(double input) {\n if(type == SIMPLE_SIN2D_IN_X || type == SIMPLE_SIN2D_IN_Y || type == SIMPLE_MULT2D) {\n // SINE = -1 to 1\n // SCALE to 0 to 255\n // (SINE + 1) * 128\n return (input + 1) * (255.0 / 2.0);\n }\n if(type == SIMPLE_PLUS2D)\n {\n return (input + 2) * (255.0 / 4.0);\n }\n else\n return 0;\n }", "private void calculateDamage() {\n this.baseDamage = this.actualBaseDamage;\n this.applyPowers();\n this.baseDamage = Math.max(this.baseDamage - ((this.baseDamage * this.otherCardsPlayed) / this.magicNumber), 0);\n }", "double volume(){\n\n return widgh*height*depth;\n\n }", "public void reduceHealth(int ammo_damage){\n this.health -= ammo_damage;\n }", "double volume(){\n return width*height*depth;\n }", "public float getScale();", "void scale(double factor);", "private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}", "@Override\r\n\tpublic float Cooldown(int skilLevel, int augID) {\n\t\treturn 20;\r\n\t}", "void decreaseHealth(Float damage);", "@Override\n public Double scalingFactor() {\n return 1.55d;\n }", "private static float getBonus(LivingEntity living, int level) {\n // 25% boost per level at max\n int effectLevel = TinkerModifiers.momentumEffect.get().getLevel(living) + 1;\n return level * effectLevel / 128f;\n }", "@Override\n protected int strengthViability(Creature c){\n int baseViability = super.strengthViability(c);\n if (Elements.elementDamageMultiplier(c,bossFormation.getFrontCreature().getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST * 3);\n }\n if (Elements.elementDamageMultiplier(bossFormation.getFrontCreature(),c.getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST / 3);\n }\n return baseViability;\n }", "private void setLevel(){\n\t\tif(getD(y) <= T)\n\t\t\tlevel = \"lower\";\n\t\telse\n\t\t\tlevel = \"higher\";\n\t}", "protected void func_77041_b(EntityLivingBase par1EntityLiving, float par2)\n/* */ {\n/* 87 */ scaleSpider((EntityTaintSpider)par1EntityLiving, par2);\n/* */ }", "public void specialEffect() {\n if (getDefense() > 0) {\n setDefense(0);\n setCurrentHealth(currentHealth + 50);\n }\n\n }", "int getMaxScale();", "public void setOldLoyaltyScale(int value) {\n this.oldLoyaltyScale = value;\n }", "public void setSiegeWeaponDamage(short siegeWeaponDamage);", "public void maximizeIntensity()\r\n {\r\n\tint rows = getHeight();\r\n\tint cols = getWidth();\r\n\tdouble dbL = (double)(L-1);\r\n\tfor (int row = 0; row < rows; row++)\r\n\t{\r\n\t for (int col = 0; col < cols; col++)\r\n\t {\r\n\t\tintensity[row][col] = (short)Math.min(L-1, \r\n\t\t Math.round((L-1) * maxIntensity(hue[row][col]/dbL,\r\n\t\t saturation[row][col]/dbL)));\r\n\t }\r\n\t}\r\n }", "public double getHealthScale ( ) {\n\t\treturn extract ( handle -> handle.getHealthScale ( ) );\n\t}", "public float getGlobalScale() {\n // per convenzione se la scala deve essere su tutti e tre gli assi\n // allora si considera scale.x() per tutti gli assi\n return (float) scale.x();\n }", "private void grainEffect(int barra) {\n float val = barra / 200f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_GRAIN);\n effect.setParameter(\"strength\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "public int computeHeatValue(final long deltaMs, final int level, int curTemp) {\n\t\theatWaveMs += deltaMs;\n\t\t\n\t\tif (heatWaveMs > 2000) {\n\t\t\theatWaveMs = 0;\n\t\t\tcurTemp += level;\n\t\t}\n\t\t\n\t if (curTemp > 170) curTemp = 170;\n\t \n\t\treturn curTemp;\n\t}", "private static float volumeToGain(int volume) {\n return (float) ((86.0206/100)*volume-80);\n }", "public abstract float scaleIntensityData(float rawIntensity, float rawBkgrd,\n int mid, int gid, int sampleIdx);", "public void normalize(){\n\t_defense = originalDefense;\n\t_strength = originalStrength;\n }", "public abstract float scaleIntensityData(float rawData);", "private void vignetteEffect(int barra) {\n float val = barra / 200f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_VIGNETTE);\n effect.setParameter(\"scale\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "public int getWeaponDamage() {\n return Math.round(type.getWeaponDamage()*type.getItemLevelMultipliers()\n\t\t\t\t[level - 1]);\n }", "int getLum(){\n return getPercentageValue(\"lum\");\n }", "public void adjustIntensity()\r\n {\r\n\tint rows = getHeight();\r\n\tint cols = getWidth();\r\n\tdouble dbL = (double)(L-1);\r\n\tshort maxI;\r\n\tfor (int row = 0; row < rows; row++)\r\n\t{\r\n\t for (int col = 0; col < cols; col++)\r\n\t {\r\n\t\tmaxI = (short)Math.min(L-1, \r\n\t\t Math.round((L-1) * maxIntensity(hue[row][col]/dbL,\r\n\t\t saturation[row][col]/dbL)));\r\n\t\tintensity[row][col] =\r\n\t\t (short)Math.min(intensity[row][col], maxI);\r\n\t }\r\n\t}\r\n }", "int getSoilMoistureLevel(int soilMoistureMM);", "void TruncPopulationAvgSizeGen(double scale){\n\t\t\tint i;\n\t\t\tnode[] _nm;\n\t\t \tdouble sumSize,sizeThreshold; \t\n\t\t \t \t\t \n\t\t \tsumSize = oldpop[0].size;\n\t\t\t\n\t\t\tfor(i = 1; i < poplen; i++) {\t\t\t\t\n\t\t\t\tsumSize += oldpop[i].size;//\t\t\t\t\n\t\t\t}\n\t\t\t\n//\t\t\tSystem.out.println(\"Tong:\"+sumSize);\n\t\t\tsumSize=sumSize /poplen;\n//\t\t\tSystem.out.println(\"Avg:\"+sumSize);\n\t\t\t\n\t\t\tsizeThreshold=sumSize+(1.0-(double)gen/NUMGEN)*sumSize*scale;\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(((1.0-(double)gen/NUMGEN)*sumSize*scale) +\"-\"+((1.0-gen/NUMGEN)*sumSize*scale));\n\t\t \t\n//\t\t \tSystem.out.println(numIndiviadual);\n\t\t \t\n\t\t\tfor(i = 0; i < poplen; i++){\n\t\t\t\tif(oldpop[i].size>sizeThreshold){\n//\t\t\t\t\tSystem.out.println(\"Vi tri:\"+i);\n\t\t\t\t\tindividual[] m_individual=new individual[1];\n\t\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t\t_nm=new node[1];\n\t//\t\t\t\tSystem.out.println(\"Trước+\"+oldpop[i].size);\n\t\t\t\t\tif(this.TruncateTreeGrow(oldpop[i], m_individual,_mt,_nm)==TRUE){\t\n\t\t\t\t\t\t\n\t\t\t\t\toldpop[i]=new individual();\n\t\t\t\t\toldpop[i].CopyIndividual(m_individual[0], TRUE);\t\t\t\n\t\t\t\t\toldpop[i].evaluated=FALSE;\n\t//\t\t\t\tSystem.out.println(\"Sau+\"+oldpop[i].size);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "public void scale(double s);", "public void damage(int damage, int penetration) {\n int def = defense;\n if (shield != null ) def += shield.getDefense();\n def = defense - penetration;\n if (def < 0) def = 0;\n if (def >= damage) return;\n health -= (damage - def);\n if (health < 0) health = 0;\n decreaseMoral((damage-def)/30);\n if (leader)\n color = new Color(color.getRed(), color.getGreen() + (damage-def)/2, color.getBlue() + (damage-def)/2);\n else\n color = new Color(color.getRed(), color.getGreen() + (damage-def)*2 , color.getBlue() + (damage-def)*2);\n }", "public void takeDamage(int dmg){\r\n this.currHP -= dmg;\r\n }", "float getCostScale();", "double scaleInput(double dVal) {\n double[] scaleArray = { 0.0, 0.05, 0.09, 0.10, 0.12, 0.15, 0.18, 0.24,\n 0.30, 0.36, 0.43, 0.50, 0.60, 0.72, 0.85, 1.00, 1.00 };\n\n // get the corresponding index for the scaleInput array.\n int index = (int) (dVal * 16.0);\n if (index < 0) {\n index = -index;\n } else if (index > 16) {\n index = 16;\n }\n\n double dScale = 0.0;\n if (dVal < 0) {\n dScale = -scaleArray[index];\n } else {\n dScale = scaleArray[index];\n }\n\n return dScale;\n }", "int range(){\n return fuelcap*mpg;\n }", "public void setNewLoyaltyScale(int value) {\n this.newLoyaltyScale = value;\n }", "public float getVolumeMultiplier();", "public int capLevel() {\n\t\treturn 500 * this.niveau;\n\t}", "@Override\n public void levelUp(){\n //System.out.println(\"Level: \" + getLevel());\n if (getLevel() > 5) return;\n\n /* System.out.println(\"\\n-------\");\n System.out.println(\"Level: \" + getLevel());\n System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n*/\n double percentage = growth(getLevel()) + growthRate;\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (getLevel() % 2 != 0) range++;\n setLevel(getLevel() + 1);\n\n /* System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n System.out.println(\"-------\\n\");*/\n }", "float getBackgroundPower();", "public void takeDamage(int damage) {\n Random rand = new Random();\n int game = rand.nextInt(51) + 75;\n double game2 = (double) game;\n double percDamage = game2/100.0;\n double realSomething = (double) damage;\n double actualDamageNotReal = realSomething * percDamage;\n int actualDamage = (int) actualDamageNotReal;\n int actualDmg = actualDamage - this.armour;\n if (actualDmg <= 0){\n actualDmg = 0;\n }\n this.health -= actualDmg;\n slowDisplay(String.format(\"%s takes %s damage, now at %s\\n\",this.name,actualDmg,this.health));\n\n }" ]
[ "0.7198827", "0.7078786", "0.6874677", "0.66458035", "0.6463456", "0.61903113", "0.61212194", "0.6087963", "0.59906334", "0.5976691", "0.59691936", "0.59157336", "0.5870401", "0.58007926", "0.5789473", "0.57881325", "0.57855785", "0.57811964", "0.57731223", "0.57445", "0.5738993", "0.5734823", "0.5714303", "0.5683376", "0.5675519", "0.56518304", "0.5625359", "0.56246465", "0.561266", "0.5602615", "0.5597359", "0.5591011", "0.5579233", "0.5571085", "0.5570346", "0.55622214", "0.5555838", "0.5535384", "0.5534793", "0.55127156", "0.5511446", "0.5465452", "0.54574805", "0.5417055", "0.54147005", "0.54147005", "0.5406073", "0.53833264", "0.5377835", "0.53735024", "0.5372292", "0.53713864", "0.5360768", "0.5353726", "0.5345663", "0.53410864", "0.5336364", "0.53347737", "0.53319263", "0.5330753", "0.5330065", "0.5327698", "0.53237295", "0.5323632", "0.53166634", "0.5316435", "0.5313354", "0.5311439", "0.530753", "0.5307218", "0.5306593", "0.5298746", "0.52970517", "0.52942216", "0.52891207", "0.52851534", "0.5281548", "0.5281466", "0.5280593", "0.5265993", "0.52633345", "0.5261204", "0.52502364", "0.5244115", "0.5239157", "0.5232797", "0.5226573", "0.5224175", "0.5217204", "0.5217077", "0.5214454", "0.52111983", "0.52103496", "0.52017385", "0.51967955", "0.5192895", "0.51907665", "0.5188988", "0.51868755", "0.5174509" ]
0.7602165
0
Function that scales the fireball damage based on player level
private static int fireballDamageScale(int fireballDamage, int playerLevel){ int totalDamage = 0; totalDamage = fireballDamage + (2 * playerLevel); return totalDamage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int fireballMPScale(int fireballCost, int playerLevel){\r\n int MPCost = 0;\r\n MPCost = fireballCost + (1 * playerLevel);\r\n return MPCost;\r\n }", "private static int devilHealthScale(int devilHealth, int playerLevel){\r\n if(playerLevel > 4){\r\n devilHealth = devilHealth + ((10 * (playerLevel - 4)));\r\n }\r\n return devilHealth;\r\n }", "@Override\n public void scaleStats() {\n this.damage = BASE_DMG + (this.getLevel() * 3);\n }", "private static int devilAttackScale(int devilAttack, int playerLevel){\r\n if(playerLevel > 4){\r\n devilAttack = devilAttack + ((2 * (playerLevel - 4)));\r\n \r\n }\r\n return devilAttack;\r\n }", "private static int devilGoldScale(int devilGold, int playerLevel){\r\n if(playerLevel > 4){\r\n devilGold = devilGold + ( 1* playerLevel);\r\n return devilGold;\r\n }else{\r\n return devilGold;\r\n }\r\n }", "private static int skeletonHealthScale(int skeletonHealth, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonHealth = skeletonHealth + (5 * playerLevel);\r\n return skeletonHealth;\r\n }else{\r\n return skeletonHealth;\r\n }\r\n }", "private static int skeletonAttackScale(int skeletonAttack, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonAttack = skeletonAttack + (1 * playerLevel);\r\n return skeletonAttack;\r\n }else{\r\n return skeletonAttack;\r\n }\r\n }", "private static int skeletonGoldScale(int skeletonGold, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonGold = skeletonGold + ( 1* playerLevel);\r\n return skeletonGold;\r\n }else{\r\n return skeletonGold;\r\n }\r\n }", "@Override\n\tpublic void damage(float f) {\n\t\t\n\t}", "public void calibrated() {\n weaponDamage = weaponDamage + 10;\r\n }", "private int getEnemyGunFireRate()\n\t{\n\t\tfloat rate = 115 - (GameState._playerScore * .2f);\n\t\tif (rate < 20)\n\t\t{\n\t\t\trate = 20;\n\t\t}\n\t\treturn (int)rate;\n\t}", "public void damagePlayer(int damage){\n hero.decreaseHp(damage);\n }", "void decreaseHealth(Float damage);", "public void heal(int healAmount){\r\n health+= healAmount;\r\n }", "public float getHungerDamage();", "public void setHungerDamage(float hunger);", "private void takeDamage(int damage){ health -= damage;}", "public void reduceHealth(int damage, int player) {\n\t\tif (player == OPPONENT) {\n\t\t\tint currentHealth = Integer.parseInt(opponentHealth.getText());\n\t\t\tint newHealth = currentHealth - damage;\n\t\t\topponentHealth.setText(Integer.toString(newHealth));\n\t\t\tdouble reduction = opponentHealthBar.getWidth()*(((double)newHealth)/((double) currentHealth));\n\t\t\thealthBarDamageAnimation(0,reduction);\n\t\t} else if (player == LOCAL) {\n\t\t\tint currentHealth = Integer.parseInt(localHealth.getText());\n\t\t\tint newHealth = currentHealth - damage;\n\t\t\tlocalHealth.setText(Integer.toString(newHealth));\n\t\t\tdouble reduction = localHealthBar.getWidth()*(((double)newHealth)/((double) currentHealth));\n\t\t\thealthBarDamageAnimation(1,reduction);\n\t\t}\n\t}", "private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }", "private void subtractPlayerHealth(int damage) {\n this.playerShipHealth -= damage;\n }", "private void calculateDamage() {\n this.baseDamage = this.actualBaseDamage;\n this.applyPowers();\n this.baseDamage = Math.max(this.baseDamage - ((this.baseDamage * this.otherCardsPlayed) / this.magicNumber), 0);\n }", "public void setPlayerMaxHealth(Player player) {\n int health=16+(player.getLevel()/2);\n if(health>40) health=40;\n // player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, Integer.MAX_VALUE, player.getLevel(), true));\n player.setMaxHealth(health);\n }", "public void func_180430_e(float distance, float damageMultiplier) {}", "public void heal(){\n\t\thp += potion.getHpBoost();\n\t\tif(hp > max_hp)hp = max_hp;\n\t}", "@Override\n\tprotected void onPlayerDamage(EntityDamageEvent evt, Player p) {\n\t\tsuper.onPlayerDamage(evt, p);\n\t\tif(evt.getCause() == DamageCause.WITHER){\n\t\t\tGUtils.healDamageable(getOwnerPlayer(), evt.getDamage() * 1.5);\n\t\t\tVector v = Utils.CrearVector(getOwnerPlayer().getLocation(), getPlayer().getLocation()).multiply(0.5D);\n\t\t\tdouble max = 7;\n\t\t\tfor (int i = 0; i < max; i++) {\n//\t\t\t\tgetWorld().playEffect(getPlayer().getEyeLocation().add(0, -0.8, 0).add(v.clone().multiply(i/max)),\n//\t\t\t\t\t\tEffect.HEART, 0);\n\t\t\t}\n\t\t}\n\t}", "public void takeDamage(double num) {\r\n \r\n int damage = (int)Math.round(num);\r\n this.health -= damage;\r\n this.state=this.color+16;\r\n if (damage <= 5) {\r\n if (this.playerNum == 1)\r\n this.positionX -= 40;\r\n else \r\n this.positionX += 40;\r\n }\r\n else if (this.playerNum == 1)\r\n this.positionX -= damage * 6;\r\n else\r\n this.positionX += damage * 6;\r\n \r\n }", "public void reduceHealth(int damage){\n health -= damage;\n }", "public void attack(Player player) {\n this.damage = 18 - player.getfPoint(); // the higher the Fighter skill,\n // the lower the damage. change the math.\n int newHealth = player.getShip().getHealth() - damage;\n player.getShip().setHealth(newHealth);\n }", "@Override\n public void attackedByPaladin(double attack) {\n this.attack += (2 * attack) / 3;\n damageCounter = Math.max(damageCounter - (2 * attack) / 3, 0);\n }", "public short getSiegeWeaponDamage();", "public void heal(float health) {\r\n \t\tthis.health += health;\r\n \t\tif(health > maxHealth) {\r\n \t\t\thealth = maxHealth;\r\n \t\t}\r\n \t}", "public void setGeneralDamage(float value) {\n\t\tdamage = value;\n\t\trangedDamage = value;\n\t}", "@Override\r\n\tpublic void damage(float amount) {\n\t\t\r\n\t}", "PlayingSquare giveDamage(int damage);", "public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}", "public void update(double delta) {\r\n \tVector3f playerDistance = transform.getPosition().sub(Level.getPlayer().getCamera().getPos());\r\n Vector3f orientation = playerDistance.normalized();\r\n\t\tfloat distance = playerDistance.length();\r\n\t\tsetDistance(distance + (int) (POP_IN/PARTICLES_POP_IN));\r\n\t\t\r\n if (state == STATE_FIRE) {\r\n float angle = (float) Math.toDegrees(Math.atan(orientation.getZ() / orientation.getX()));\r\n\r\n if (orientation.getX() > 0)\r\n angle = 180 + angle;\r\n\r\n transform.setRotation(0, angle + 90, 0);\r\n temp = delta;\r\n light.setPosition(transform.getPosition());\r\n light.setPosition(new Vector3f(light.getPosition().getX(), 0.05f * (float)(Math.sin(temp*2.5)+1.0/2.0) + 0.45f, light.getPosition().getZ()));\r\n \r\n double time = Time.getTime();\r\n double timeDecimals = (time - (double) ((int) time));\r\n timeDecimals *= 12.1f;\r\n \r\n if (timeDecimals <= 0.25f) {\r\n material.setDiffuse(animation.get(0));\r\n if(transform.getPosition().sub(Level.getPlayer().getCamera().getPos()).length() < 1.0f && !Level.getPlayer().isShooting) {\r\n \t\t\tif(Level.getPlayer().isArmor() == false)\r\n \t\t\t\tLevel.getPlayer().addHealth((int) -DAMAGE/2, \"FIRE\");\r\n \telse\r\n \t\tLevel.getPlayer().addArmor((int) -DAMAGE/2);\r\n \t\t}\r\n if(Auschwitz.getLevel().getShootingObjective() != null)\r\n \t if(getTransform().getPosition().sub(Auschwitz.getLevel().getShootingObjective().getTransform().getPosition()).length() < 1.0f)\r\n \t \tAuschwitz.getLevel().getShootingObjective().damage(DAMAGE);\r\n } else if (timeDecimals <= 0.5f) {\r\n material.setDiffuse(animation.get(1));\r\n } else if (timeDecimals <= 0.75f) {\r\n material.setDiffuse(animation.get(2));\r\n } else if (timeDecimals <= 1f) {\r\n material.setDiffuse(animation.get(3));\r\n } else if (timeDecimals <= 1.25f) {\r\n material.setDiffuse(animation.get(4));\r\n } else if (timeDecimals <= 1.5f) {\r\n material.setDiffuse(animation.get(5));\r\n } else if (timeDecimals <= 1.75f) {\r\n material.setDiffuse(animation.get(6));\r\n } else if (timeDecimals <= 2f) {\r\n material.setDiffuse(animation.get(7));\r\n } else if (timeDecimals <= 2.25f) {\r\n material.setDiffuse(animation.get(6));\r\n if(transform.getPosition().sub(Level.getPlayer().getCamera().getPos()).length() < 1.0f && !Level.getPlayer().isShooting) {\r\n \t\t\tif(Level.getPlayer().isArmor() == false)\r\n \t\t\t\tLevel.getPlayer().addHealth((int) -DAMAGE/2, \"FIRE\");\r\n \telse\r\n \t\tLevel.getPlayer().addArmor((int) -DAMAGE/2);\r\n \t\t}\r\n if(Auschwitz.getLevel().getShootingObjective() != null)\r\n \t if(getTransform().getPosition().sub(Auschwitz.getLevel().getShootingObjective().getTransform().getPosition()).length() < 1.0f)\r\n \t \tAuschwitz.getLevel().getShootingObjective().damage(DAMAGE);\r\n } else if (timeDecimals <= 2.5f) {\r\n material.setDiffuse(animation.get(5));\r\n } else if (timeDecimals <= 2.75f) {\r\n material.setDiffuse(animation.get(4));\r\n } else if (timeDecimals <= 3f) {\r\n material.setDiffuse(animation.get(3));\r\n } else if (timeDecimals <= 3.25f) {\r\n material.setDiffuse(animation.get(2));\r\n } else if (timeDecimals <= 3.5f) {\r\n material.setDiffuse(animation.get(1));\r\n } else if (timeDecimals <= 3.75f) {\r\n material.setDiffuse(animation.get(0));\r\n } else if (timeDecimals <= 4f) {\r\n material.setDiffuse(animation.get(1));\r\n } else if (timeDecimals <= 4.25f) {\r\n material.setDiffuse(animation.get(2));\r\n if(transform.getPosition().sub(Level.getPlayer().getCamera().getPos()).length() < 1.0f && !Level.getPlayer().isShooting) {\r\n \t\t\tif(Level.getPlayer().isArmor() == false)\r\n \t\t\t\tLevel.getPlayer().addHealth((int) -DAMAGE/2, \"FIRE\");\r\n \telse\r\n \t\tLevel.getPlayer().addArmor((int) -DAMAGE/2);\r\n \t\t}\r\n if(Auschwitz.getLevel().getShootingObjective() != null)\r\n \t if(getTransform().getPosition().sub(Auschwitz.getLevel().getShootingObjective().getTransform().getPosition()).length() < 1.0f)\r\n \t \tAuschwitz.getLevel().getShootingObjective().damage(DAMAGE);\r\n } else if (timeDecimals <= 4.5f) {\r\n material.setDiffuse(animation.get(3));\r\n } else if (timeDecimals <= 4.75f) {\r\n material.setDiffuse(animation.get(4));\r\n } else if (timeDecimals <= 5f) {\r\n material.setDiffuse(animation.get(5));\r\n } else if (timeDecimals <= 5.25f) {\r\n material.setDiffuse(animation.get(6));\r\n } else if (timeDecimals <= 5.5f) {\r\n material.setDiffuse(animation.get(7));\r\n } else if (timeDecimals <= 5.75f) {\r\n material.setDiffuse(animation.get(0));\r\n } else if (timeDecimals <= 6f) {\r\n material.setDiffuse(animation.get(1));\r\n } else if (timeDecimals <= 6.25f) {\r\n material.setDiffuse(animation.get(2));\r\n if(transform.getPosition().sub(Level.getPlayer().getCamera().getPos()).length() < 1.0f && !Level.getPlayer().isShooting) {\r\n \t\t\tif(Level.getPlayer().isArmor() == false)\r\n \t\t\t\tLevel.getPlayer().addHealth((int) -DAMAGE/2, \"FIRE\");\r\n \telse\r\n \t\tLevel.getPlayer().addArmor((int) -DAMAGE/2);\r\n \t\t}\r\n if(Auschwitz.getLevel().getShootingObjective() != null)\r\n \t if(getTransform().getPosition().sub(Auschwitz.getLevel().getShootingObjective().getTransform().getPosition()).length() < 1.0f)\r\n \t \tAuschwitz.getLevel().getShootingObjective().damage(DAMAGE);\r\n } else if (timeDecimals <= 6.5f) {\r\n material.setDiffuse(animation.get(3));\r\n } else if (timeDecimals <= 6.75f) {\r\n material.setDiffuse(animation.get(4));\r\n } else if (timeDecimals <= 7f) {\r\n material.setDiffuse(animation.get(5));\r\n } else if (timeDecimals <= 7.25f) {\r\n material.setDiffuse(animation.get(6));\r\n } else if (timeDecimals <= 7.5f) {\r\n material.setDiffuse(animation.get(7));\r\n } else if (timeDecimals <= 7.75f) {\r\n material.setDiffuse(animation.get(6));\r\n } else if (timeDecimals <= 8f) {\r\n material.setDiffuse(animation.get(5));\r\n } else if (timeDecimals <= 8.25f) {\r\n material.setDiffuse(animation.get(4));\r\n if(transform.getPosition().sub(Level.getPlayer().getCamera().getPos()).length() < 1.0f && !Level.getPlayer().isShooting) {\r\n \t\t\tif(Level.getPlayer().isArmor() == false)\r\n \t\t\t\tLevel.getPlayer().addHealth((int) -DAMAGE/2, \"FIRE\");\r\n \telse\r\n \t\tLevel.getPlayer().addArmor((int) -DAMAGE/2);\r\n \t\t}\r\n if(Auschwitz.getLevel().getShootingObjective() != null)\r\n \t if(getTransform().getPosition().sub(Auschwitz.getLevel().getShootingObjective().getTransform().getPosition()).length() < 1.0f)\r\n \t \tAuschwitz.getLevel().getShootingObjective().damage(DAMAGE);\r\n } else if (timeDecimals <= 8.5f) {\r\n material.setDiffuse(animation.get(3));\r\n } else if (timeDecimals <= 8.75f) {\r\n material.setDiffuse(animation.get(2));\r\n } else if (timeDecimals <= 9f) {\r\n material.setDiffuse(animation.get(1));\r\n } else if (timeDecimals <= 9.25f) {\r\n material.setDiffuse(animation.get(0));\r\n } else if (timeDecimals <= 9.5f) {\r\n material.setDiffuse(animation.get(1));\r\n } else if (timeDecimals <= 9.75f) {\r\n material.setDiffuse(animation.get(2));\r\n } else if (timeDecimals <= 10f) {\r\n material.setDiffuse(animation.get(3));\r\n } else if (timeDecimals <= 10.25f) {\r\n material.setDiffuse(animation.get(4));\r\n if(transform.getPosition().sub(Level.getPlayer().getCamera().getPos()).length() < 1.0f && !Level.getPlayer().isShooting) {\r\n \t\t\tif(Level.getPlayer().isArmor() == false)\r\n \t\t\t\tLevel.getPlayer().addHealth((int) -DAMAGE/2, \"FIRE\");\r\n \telse\r\n \t\tLevel.getPlayer().addArmor((int) -DAMAGE/2);\r\n \t\t}\r\n if(Auschwitz.getLevel().getShootingObjective() != null)\r\n \t if(getTransform().getPosition().sub(Auschwitz.getLevel().getShootingObjective().getTransform().getPosition()).length() < 1.0f)\r\n \t \tAuschwitz.getLevel().getShootingObjective().damage(DAMAGE);\r\n } else if (timeDecimals <= 10.5f) {\r\n material.setDiffuse(animation.get(5));\r\n } else if (timeDecimals <= 10.75f) {\r\n material.setDiffuse(animation.get(6));\r\n } else if (timeDecimals <= 11f) {\r\n material.setDiffuse(animation.get(7));\r\n } else if (timeDecimals <= 11.25f) {\r\n material.setDiffuse(animation.get(0));\r\n } else if (timeDecimals <= 11.5f) {\r\n material.setDiffuse(animation.get(1));\r\n } else if (timeDecimals <= 11.75f) {\r\n material.setDiffuse(animation.get(2));\r\n } else if (timeDecimals <= 12f) {\r\n material.setDiffuse(animation.get(3));\r\n } else {\r\n state = STATE_DONE;\r\n }\r\n }\r\n \r\n if(state == STATE_DONE) {\r\n \tlight.removeToEngine();\r\n \tfireSound.stop();\r\n \tLevel.removeFire(this);\r\n }\r\n\r\n }", "public void takeDamage(int damage) {\n Random rand = new Random();\n int game = rand.nextInt(51) + 75;\n double game2 = (double) game;\n double percDamage = game2/100.0;\n double realSomething = (double) damage;\n double actualDamageNotReal = realSomething * percDamage;\n int actualDamage = (int) actualDamageNotReal;\n int actualDmg = actualDamage - this.armour;\n if (actualDmg <= 0){\n actualDmg = 0;\n }\n this.health -= actualDmg;\n slowDisplay(String.format(\"%s takes %s damage, now at %s\\n\",this.name,actualDmg,this.health));\n\n }", "public void reduceHealth(int ammo_damage){\n this.health -= ammo_damage;\n }", "public void getDamaged(float dmg) {\n\t\tStagePanel.addValueLabel(parentGP,dmg,Commons.cAttack);\n\t\tif(shield - dmg >= 0) {\n\t\t\tshield-=dmg;\n\t\t\tdmg = 0;\n\t\t}else {\n\t\t\tdmg-=shield;\n\t\t\tshield = 0;\n\t\t}\n\t\tif(health-dmg > 0) {\n\t\t\thealth-=dmg;\n\t\t}else {\n\t\t\thealth = 0;\n\t\t}\n\t\tSoundEffect.play(\"Hurt.wav\");\n\t}", "public void setMaxHealth() {\n\t\tthis.maxHealth *= level / 10;\n\t}", "@Override\r\n\tpublic void heal() {\n\t\tSystem.out.println(\"Paladin \" + super.getName() + \" heals for 50 points.\");\r\n\t\tsuper.setHitPoints(super.getHitPoints() + 50);\r\n\t}", "void takeDamage(int points) {\n this.health -= points;\n }", "protected void func_77041_b(EntityLivingBase par1EntityLiving, float par2)\n/* */ {\n/* 87 */ scaleSpider((EntityTaintSpider)par1EntityLiving, par2);\n/* */ }", "private void healthBarDamageAnimation(int player, double reduction) {\n\t\tTimeline timeline = new Timeline();\n\t\ttimeline.setCycleCount(1);\n\t\ttimeline.setAutoReverse(false);\n\t\tKeyValue kv = null;\n\t\tif (player == OPPONENT) {\n\t\t\tkv = new KeyValue(opponentHealthBar.widthProperty(),reduction);\n\t\t} else if (player == LOCAL) {\n\t\t\tkv = new KeyValue(localHealthBar.widthProperty(),reduction);\n\t\t}\n\t\tKeyFrame kf = new KeyFrame(Duration.millis(500), kv);\n\t\ttimeline.getKeyFrames().add(kf);\n\t\ttimeline.play();\n\t}", "public void onPlayerCollision(Player player){\n\t\tif(player.weapon instanceof RailGun)\n\t\tplayer.weapon=new TripleGun(player,(short) (PLAYER_FIRE_RATE*1.5f),(short) (PLAYER_BULLET_SPEED*1.5),projectileTextures[1],(short)50);\n\t\telse if(player.weapon instanceof TripleGun)\n\t\t\tplayer.weapon=new PentaGun(player,(short) (PLAYER_FIRE_RATE),PLAYER_BULLET_SPEED,projectileTextures[2],(short)250);\n\t\t\t\n\t}", "public double castFireball(){\n this.mana -= fireball.manaCost;\n return fireball.hit();\n }", "public void scaleAnimetion(SpriteBatch batch){\n }", "public void setSiegeWeaponDamage(short siegeWeaponDamage);", "@Override\n public int doDamage() {\n if (difficulty <5)\n return damage;\n else \n return damage*2;\n }", "protected void takeDamage(int damage)\n {\n health = health - damage;\n \n }", "public void takedmg(int dmg){\n curHp -= dmg;\n }", "public void updateHealth(String target, Integer amount, boolean isAttack){\n\n if(target == \"player\"){\n if(isAttack){\n //To make defence/armour a bit weaker, round up on the damage.\n playerShipHealth+= (int) (amount - Math.ceil(amount*playerShipDefence));\n } else{\n playerShipHealth+=amount;\n\n }\n if (playerShipHealth > playerShipHealthMax){\n playerShipHealth = playerShipHealthMax;}\n else if (playerShipHealth <= 0){\n //PlayerDied\n\n playerShipDead = true;\n playerShip.setIsDead();\n }\n\n } else if (target == \"enemy\"){\n if(isAttack){\n enemyShipHealth+= (int) (amount - Math.ceil(amount*enemyShipDefence));\n } else{\n enemyShipHealth+=amount;\n }\n if (enemyShipHealth > enemyShipHealthMax){\n enemyShipHealth = enemyShipHealthMax;}\n else if (enemyShipHealth <= 0){\n //Enemy Died\n enemyShipDead = true;\n enemyShip.setIsDead();\n }\n }\n }", "@Override\n\tpublic void reduceCurrentHp(final double damage, final L2Character attacker)\n\t{\n\t\treduceCurrentHp(damage, attacker, true);\n\t}", "private void subtractEnemyHealth(int damage) {\n this.enemyShipHealth -= damage;\n }", "protected void preRenderCallback(EntityMegaZombie p_77041_1_, float p_77041_2_)\n {\n GL11.glScalef(2.0F, 2.0F, 2.0F);\n }", "Float getHealth();", "private float getScale(Entity entity) {\n \tif (entity instanceof EntityPlayer) {\n \t\t//return ???\n \t}\n \treturn isChild ? 2 : 1;\n }", "@Override\n public void upgrade(int level){\n System.out.println(\"Level adfasdfasdf: \" + level);\n System.out.println(getLevel());\n\n if(level > 5) level = 5;\n\n if(level > 1){\n for (int i = 1; i < level; i++) levelUp();\n }\n\n /*\n //System.out.println(\"\\n-------\");\n //System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n\n double percentage = growth(level);\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (level % 2 != 0) range++;\n\n //System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n //System.out.println(\"-------\\n\");*/\n }", "public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }", "@Override\n public void attackedByShaman(double attack) {\n damageCounter += (2 * attack) / 3;\n this.attack = Math.max(this.attack - (2 * attack) / 3, 0);\n }", "public void incLevel(int lvl){this.Level=this.XP/(100);}", "public void heal2()\r\n {\r\n this.health = 900;\r\n Story.healText2();\r\n }", "public void update() {\n remHpWidth = healthbarWidth * ent.getCurrentHealth() / ent.getMaxHealth();\n lostHpWidth = healthbarWidth - remHpWidth;\n }", "private void setScale() {\n this.particleScale = (1 - ((float) slowTime / 50)) * (1.5f * (float) offset);\n }", "public void upgradeStats()\n {\n reload-=1;\n damage*=2;\n range+=50;\n }", "public void apply(MutableShipStatsAPI stats, String id, State state, float effectLevel) {\n stats.getShieldDamageTakenMult().modifyMult(id, 1 - (SHIELD_DAMAGE_REDUCTION_MULT * effectLevel));\n stats.getShieldUpkeepMult().modifyMult(id, 0f);\n\n //Don't run the rest of the code when paused\n if (Global.getCombatEngine().isPaused()) {\n return;\n }\n\n //Ensures we have a ship\n ShipAPI ship = null;\n if (stats.getEntity() instanceof ShipAPI) {\n ship = (ShipAPI) stats.getEntity();\n id = id + \"_\" + ship.getId();\n } else {\n return;\n }\n\n //Stores our original hard flux level upon activating the system\n if (runOnce) {\n runOnce = false;\n hardFluxSinceLast = ship.getFluxTracker().getHardFlux();\n }\n\n //Tracks how much damage our shield has taken since the last frame\n if (ship.getFluxTracker().getHardFlux() < hardFluxSinceLast) {\n hardFluxSinceLast = ship.getFluxTracker().getHardFlux();\n } else {\n //Note: the 100 flux per second is due to the ship system's native Hard Flux Cost\n float newHardFlux = ship.getFluxTracker().getHardFlux() - hardFluxSinceLast - (100f * Global.getCombatEngine().getElapsedInLastFrame());\n damageStored += DAMAGE_REFLECT_MULT * (newHardFlux / (1 - (SHIELD_DAMAGE_REDUCTION_MULT * effectLevel))) * SHIELD_DAMAGE_REDUCTION_MULT;\n hardFluxSinceLast = ship.getFluxTracker().getHardFlux();\n\n //If damage is below 1, it should just be removed: it's from botched math, and not taken damage\n if (damageStored < 1f) {\n damageStored = 0f;\n }\n }\n\n //If we have enough damage stored up, fire a lightning-bolt\n if (damageStored > DAMAGE_LIGHTNING_THRESHHOLD) {\n List<CombatEntityAPI> validTargets = new ArrayList<CombatEntityAPI>();\n for (CombatEntityAPI potentialTarget : CombatUtils.getEntitiesWithinRange(ship.getShield().getLocation(), LIGHTNING_RANGE + ship.getShield().getRadius())) {\n if (potentialTarget instanceof MissileAPI || potentialTarget instanceof ShipAPI) {\n //Ignore our own ship and anything within our shield radius\n if (potentialTarget == ship || MathUtils.getDistance(potentialTarget.getLocation(), ship.getShield().getLocation()) < ship.getShield().getRadius()) {\n continue;\n }\n\n //Phased targets, and targets with no collision, are ignored\n if (potentialTarget instanceof ShipAPI) {\n if (((ShipAPI)potentialTarget).isPhased()) {\n continue;\n }\n }\n if (potentialTarget.getCollisionClass().equals(CollisionClass.NONE)) {\n continue;\n }\n\n //Checks whether the target is in the correct arc\n float angleToTarget = VectorUtils.getAngle(ship.getShield().getLocation(), potentialTarget.getLocation());\n if (angleToTarget <= ship.getFacing() + LIGHTNING_HALF_ARC && angleToTarget >= ship.getFacing() - LIGHTNING_HALF_ARC) {\n validTargets.add(potentialTarget);\n }\n }\n }\n\n //If there are no valid targets in range, fire lightning randomly in the area\n if (validTargets.isEmpty()) {\n //Finds a random point\n Vector2f targetPoint = MathUtils.getRandomPointInCone(ship.getShield().getLocation(), LIGHTNING_RANGE + ship.getShield().getRadius(),ship.getFacing() - LIGHTNING_HALF_ARC, ship.getFacing() + LIGHTNING_HALF_ARC);\n\n //Gets a point on our shield directly pointing to the target\n float angleToTarget = VectorUtils.getAngle(ship.getShield().getLocation(), targetPoint);\n Vector2f sourcePoint = new Vector2f(0f, 0f);\n sourcePoint.x = (float)FastTrig.cos(Math.toRadians(angleToTarget)) * ship.getShield().getRadius() + ship.getShield().getLocation().x;\n sourcePoint.y = (float)FastTrig.sin(Math.toRadians(angleToTarget)) * ship.getShield().getRadius() + ship.getShield().getLocation().y;\n Global.getCombatEngine().spawnEmpArc(ship, sourcePoint, ship, new SimpleEntity(targetPoint),\n DamageType.ENERGY, //Damage type\n damageStored, //Damage\n damageStored, //Emp\n 100000f, //Max range\n \"SRD_nullspace_lightning_impact\", //Impact sound\n LIGHTNING_BASE_SIZE * (damageStored / DAMAGE_LIGHTNING_THRESHHOLD), // thickness of the lightning bolt\n LIGHTNING_CORE_COLOR, //Central color\n LIGHTNING_FRINGE_COLOR //Fringe Color\n );\n } else {\n //Otherwise, we fire at a the closest valid target\n CombatEntityAPI target = validTargets.get(0);\n for (CombatEntityAPI potentialTarget : validTargets) {\n if (MathUtils.getDistance(potentialTarget, ship.getShield().getLocation()) < MathUtils.getDistance(target, ship.getShield().getLocation())) {\n target = potentialTarget;\n }\n }\n\n //Gets a point on our shield directly pointing to the target\n float angleToTarget = VectorUtils.getAngle(ship.getShield().getLocation(), target.getLocation());\n Vector2f sourcePoint = new Vector2f(0f, 0f);\n sourcePoint.x = (float)FastTrig.cos(Math.toRadians(angleToTarget)) * ship.getShield().getRadius() + ship.getShield().getLocation().x;\n sourcePoint.y = (float)FastTrig.sin(Math.toRadians(angleToTarget)) * ship.getShield().getRadius() + ship.getShield().getLocation().y;\n Global.getCombatEngine().spawnEmpArc(ship, sourcePoint, ship, target,\n DamageType.ENERGY, //Damage type\n damageStored * (target instanceof ShipAPI ? ((ShipAPI)target).getMutableStats().getDynamic().getStat(\"SRD_NULLSPACE_DAMAGE_MULT\").getModifiedValue() : 1f), //Damage\n damageStored * (target instanceof ShipAPI ? ((ShipAPI)target).getMutableStats().getDynamic().getStat(\"SRD_NULLSPACE_DAMAGE_MULT\").getModifiedValue() : 1f), //Emp\n 100000f, //Max range\n \"SRD_nullspace_lightning_impact\", //Impact sound\n LIGHTNING_BASE_SIZE * (damageStored / DAMAGE_LIGHTNING_THRESHHOLD), // thickness of the lightning bolt\n LIGHTNING_CORE_COLOR, //Central color\n LIGHTNING_FRINGE_COLOR //Fringe Color\n );\n }\n\n //And reset our damage, since we have fired it all at something\n damageStored = 0f;\n }\n\n //Render particles on our shield, if it's active\n if (ship.getShield().isOn()) {\n for (int i = 0; i < (400 * Global.getCombatEngine().getElapsedInLastFrame()); i++) {\n Vector2f targetPoint = MathUtils.getPointOnCircumference(ship.getShield().getLocation(), ship.getShield().getRadius(),MathUtils.getRandomNumberInRange(ship.getShield().getFacing() - (ship.getShield().getActiveArc() / 2f), ship.getShield().getFacing() + (ship.getShield().getActiveArc() / 2f)));\n\n //Only draw particles on-screen\n if (!Global.getCombatEngine().getViewport().isNearViewport(targetPoint, 100f)) {\n continue;\n }\n Global.getCombatEngine().addSmoothParticle(targetPoint,\n Vector2f.add(MathUtils.getRandomPointInCircle(null, 15f), ship.getVelocity(), null), MathUtils.getRandomNumberInRange(14f, 37f), 0.3f,\n MathUtils.getRandomNumberInRange(0.22f, 0.47f), LIGHTNING_FRINGE_COLOR);\n }\n }\n }", "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "private static float getBonus(LivingEntity living, int level) {\n // 25% boost per level at max\n int effectLevel = TinkerModifiers.momentumEffect.get().getLevel(living) + 1;\n return level * effectLevel / 128f;\n }", "private void gunModifier()\n\t{\t\t\n\t\tif (_gunModifier == 0)\n\t\t{\n\t\t\t_gunModifier = (_gunModifierSwivel * GameState._density);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (_gunModifier == _gunModifierSwivel * GameState._density)\n\t\t\t{\n\t\t\t\t_gunModifier = -1 * (_gunModifierSwivel* GameState._density);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (_gunModifier == -1 * (_gunModifierSwivel* GameState._density))\n\t\t\t\t{\n\t\t\t\t\t_gunModifier = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void heal(LivingEntity ent) {\n\t\tAttributeInstance maxHealth = ent.getAttribute(Attribute.GENERIC_MAX_HEALTH);\n\t\tif(maxHealth != null) {\n\t\t\tent.setHealth(maxHealth.getValue());\n\t\t}\n\t\tif(ent instanceof Player) {\n\t\t\tPlayer p = (Player) ent;\n\t\t\tp.setFoodLevel(20);\n\t\t\tp.setSaturation(20);\n\t\t}\n\t}", "protected void setMaxHealthPerLevel(double maxHealthPerLevel) \r\n\t{\tthis.maxHealthPerLevel = maxHealthPerLevel;\t}", "@Override\n public void applyOnHit(LivingEntity user, LivingEntity target, int level, EntityDamageByEntityEvent event) {\n if (Math.random() * 100 > settings.get(CHANCE, level)) return;\n\n final double range = settings.get(RANGE, level);\n final double damage = settings.get(DAMAGE, level);\n final double speed = settings.get(SPEED, level);\n for (Entity entity : user.getNearbyEntities(range, range, range)) {\n if (!(entity instanceof LivingEntity) || Protection.isAlly(user, (LivingEntity)entity)) continue;\n\n ((LivingEntity) entity).damage(damage, user);\n entity.setVelocity(user.getLocation().subtract(entity.getLocation()).toVector().multiply(speed));\n }\n }", "public void heal3()\r\n {\r\n this.health = 1200;\r\n Story.healText3();\r\n }", "public void normalize()\n {\n\tdef += 200*counter;\n\tdmg -= 0.5*counter;\n\tcounter = 0;\n }", "private void percentageScaling() {\n switch (slot) {\n case Torso -> updateBonusStats(1);\n case Head -> updateBonusStats(0.8);\n case Legs -> updateBonusStats(0.6);\n }\n }", "public double getHealthScale ( ) {\n\t\treturn extract ( handle -> handle.getHealthScale ( ) );\n\t}", "public void getDamage(int damagePoint){\n hp-=damagePoint;\n if(hp==0){\n alive=false;\n }\n }", "private void subtractPlayerSheild(int damage) {\n this.playerShield -= damage;\n }", "public void OnDamage(AI ai, int aTK, float f) {\n\tif(DamagedTimer < 0.8f)\n\t\treturn;\n\tvel.x = f;\n\tvel.y = 3;\n\tDamagedTimer = 0;\n\tgrounded = false;\n\taTK -= (getDEF()*0.8f);\n\tif(aTK <= 0)\n\t\taTK = 1;\n\tHP -= aTK;\n\tInventory.CurrentInventory.dmgTxts.add(new dmgText(pos.x, pos.y+1, aTK));\n\t\n\tSoundManager.PlaySound(\"playerHurt\",3);\n\t\n\t\n}", "public void takeDamage(int damage);", "public void takeDamage(int dmg){\r\n this.currHP -= dmg;\r\n }", "private void UpdateAdds() {\n Adds = (Level + CurrentHealth)/10;\n }", "public int getWeaponDamage() {\n return Math.round(type.getWeaponDamage()*type.getItemLevelMultipliers()\n\t\t\t\t[level - 1]);\n }", "public double mageStrike()\r\n\t{\r\n\t\tdouble r = random.nextDouble();\r\n\t\tdmg2 = dmg + ((2*pRange)/100) * (r - 0.5) * dmg;\r\n\t\tif (r < (crit/100))\r\n\t\t{\r\n\t\t\tdmg2 = 2*dmg2;\r\n\t\t\taggro = aggro * 1.4;\r\n\t\t}\r\n\t\taggro = aggro * 1.2;\r\n\t\treturn dmg2;\r\n\t}", "public float spiderScaleAmount()\n {\nreturn 1F;\n }", "void fire(WarParticipant target, WarParticipant attacker, int noOfShooters);", "@Override\n public void onEntityUpdate() {\n if (!(world.provider instanceof WorldProviderLimbo || world.provider instanceof WorldProviderDungeonPocket)) {\n setDead();\n super.onEntityUpdate();\n return;\n }\n\n super.onEntityUpdate();\n\n // Check for players and update aggro levels even if there are no players in range\n EntityPlayer player = world.getClosestPlayerToEntity(this, MAX_AGGRO_RANGE);\n boolean visibility = player != null && player.canEntityBeSeen(this);\n updateAggroLevel(player, visibility);\n\n // Change orientation and face a player if one is in range\n if (player != null) {\n facePlayer(player);\n if (!world.isRemote && isDangerous()) {\n // Play sounds on the server side, if the player isn't in Limbo.\n // Limbo is excluded to avoid drowning out its background music.\n // Also, since it's a large open area with many Monoliths, some\n // of the sounds that would usually play for a moment would\n // keep playing constantly and would get very annoying.\n playSounds(player.getPosition());\n }\n\n if (visibility) {\n // Only spawn particles on the client side and outside Limbo\n if (world.isRemote && isDangerous()) {\n spawnParticles(player);\n }\n\n // Teleport the target player if various conditions are met\n if (aggro >= MAX_AGGRO && !world.isRemote && ModConfig.monoliths.monolithTeleportation && !player.isCreative() && isDangerous()) {\n aggro = 0;\n Location destination = WorldProviderLimbo.getLimboSkySpawn(player);\n TeleportUtils.teleport(player, destination, 0, 0);\n player.world.playSound(null, player.getPosition(), ModSounds.CRACK, SoundCategory.HOSTILE, 13, 1);\n }\n }\n }\n }", "public void updateHp(double amount);", "@Override\r\n\tpublic void onPlayerHit(Player p) {\n\t\tParUtils.createParticle(Particles.EXPLOSION, loc, 0, 0, 0, 1, 0);\r\n\t\tplaySound(Sound.ENTITY_DRAGON_FIREBALL_EXPLODE,loc,1,1);\r\n\t\t//p.setVelocity(dir.multiply(speed/2));\r\n\t\tdoKnockback(p, caster.getLocation(), 1 );\r\n\t\tdamage(p, 2, caster);\r\n\t}", "public void heal1()\r\n {\r\n this.health = 700;\r\n Story.healText1();\r\n }", "public static double getWeaponDamage(Item weapon, Skill attStrength) {\n/* 2348 */ if (weapon.isBodyPart() && weapon.getAuxData() != 100) {\n/* */ \n/* */ try {\n/* */ \n/* 2352 */ float f = Server.getInstance().getCreature(weapon.getOwnerId()).getCombatDamage(weapon);\n/* */ \n/* 2354 */ return (f + Server.rand.nextFloat() * f * 2.0F);\n/* */ }\n/* 2356 */ catch (NoSuchCreatureException nsc) {\n/* */ \n/* 2358 */ logger.log(Level.WARNING, \"Could not find Creature owner of weapon: \" + weapon + \" due to \" + nsc.getMessage(), (Throwable)nsc);\n/* */ \n/* */ }\n/* 2361 */ catch (NoSuchPlayerException nsp) {\n/* */ \n/* 2363 */ logger.log(Level.WARNING, \"Could not find Player owner of weapon: \" + weapon + \" due to \" + nsp.getMessage(), (Throwable)nsp);\n/* */ } \n/* */ }\n/* */ \n/* */ \n/* 2368 */ float base = 6.0F;\n/* 2369 */ if (weapon.isWeaponSword()) {\n/* */ \n/* 2371 */ base = 24.0F;\n/* */ }\n/* 2373 */ else if (weapon.isWeaponAxe()) {\n/* 2374 */ base = 30.0F;\n/* 2375 */ } else if (weapon.isWeaponPierce()) {\n/* 2376 */ base = 12.0F;\n/* 2377 */ } else if (weapon.isWeaponSlash()) {\n/* 2378 */ base = 18.0F;\n/* 2379 */ } else if (weapon.isWeaponCrush()) {\n/* 2380 */ base = 36.0F;\n/* 2381 */ } else if (weapon.isBodyPart() && weapon.getAuxData() == 100) {\n/* */ \n/* 2383 */ base = 6.0F;\n/* */ } \n/* 2385 */ if (weapon.isWood()) {\n/* 2386 */ base *= 0.1F;\n/* 2387 */ } else if (weapon.isTool()) {\n/* 2388 */ base *= 0.3F;\n/* */ } \n/* 2390 */ base = (float)(base * (1.0D + attStrength.getKnowledge(0.0D) / 100.0D));\n/* */ \n/* 2392 */ float randomizer = (50.0F + Server.rand.nextFloat() * 50.0F) / 100.0F;\n/* */ \n/* 2394 */ return base + (randomizer * base * 4.0F * weapon.getQualityLevel() * weapon.getDamagePercent()) / 10000.0D;\n/* */ }", "@Override\n public void onTargetDamaged(LivingEntity user, Entity target, int level) {\n if(target instanceof LivingEntity) {\n\n //target.damage(DamageSource.LAVA, 3F);\n knockUp((PlayerEntity) user, (LivingEntity) target, 3F);\n }\n }", "public int giveDamage();", "public StarAbilityHeal() {\n\t\t\n\t\tthis.setMaxLevel(4);\n\t\tthis.setEffectable(Effectable.Heal);\n\t\t\n\t}", "public float getScale();", "public static void Beriberi(EntityPlayer player){\n HealthEffect.effectSlowness(player, 1);\n }", "public void healPlayer(int hp) {\n if (hero.getHp() < LabyrinthFactory.HP_PLAYER) {\n hero.increaseHP(hp);\n }\n }", "Float attack();", "private void raiseFoodLevel(int x) {\n if (this.foodLevel + x <= 100) {\n this.foodLevel += x;\n } else {\n this.foodLevel = 100;\n }\n }", "public void checkFirePlayer() {\n if (up > 0) {\r\n if (up == 1) {\r\n\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX(), fire.getY() - 50, 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n if (up == 2) {\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX(), fire.getY() - 50, 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX(), fire.getY() - 100, 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (down > 0) {\r\n if (down == 1) {\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX(), fire.getY() + 50, 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n }\r\n if (down == 2) {\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX(), fire.getY() + 50, 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX(), fire.getY() + 100, 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (left > 0) {\r\n if (left == 1) {\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX() - 50, fire.getY(), 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n }\r\n if (left == 2) {\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX() - 50, fire.getY(), 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX() - 100, fire.getY(), 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (right > 0) {\r\n if (right == 1) {\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX() + 50, fire.getY(), 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n }\r\n if (right == 2) {\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX() + 50, fire.getY(), 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX() + 100, fire.getY(), 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n //Controllo per il blocco di fuoco centrale\r\n if (CollisionsManager.checkPlayerSingleCollision(player, fire.getX(), fire.getY(), 50, 50)) {\r\n player.setLife(player.getLife() - 1);\r\n SoundManager.musicClipStart(SoundManager.lifeLostMusic());\r\n\r\n if (player.getLife() <= 0) {\r\n GameManager.GAME_OVER = true;\r\n }\r\n }\r\n\r\n }\r\n\r\n }" ]
[ "0.7956964", "0.76779723", "0.76129365", "0.73720104", "0.7118984", "0.6767948", "0.6710095", "0.65217775", "0.6384438", "0.63007134", "0.62919885", "0.6280613", "0.62716997", "0.62173367", "0.6190935", "0.6185546", "0.6165497", "0.6149648", "0.61465967", "0.6125874", "0.608965", "0.6080698", "0.6061895", "0.6055902", "0.604175", "0.6034263", "0.59849864", "0.59778374", "0.5975481", "0.59655654", "0.59552705", "0.59539646", "0.5953644", "0.5945209", "0.59441113", "0.593028", "0.5929827", "0.590411", "0.59019655", "0.5899861", "0.588611", "0.5872064", "0.58030385", "0.57842463", "0.578116", "0.5780143", "0.57686573", "0.576579", "0.5760069", "0.57586086", "0.57523096", "0.5746276", "0.57439435", "0.5741488", "0.57310957", "0.57301563", "0.5724078", "0.57226485", "0.5701782", "0.5698149", "0.5695824", "0.5685576", "0.56759685", "0.567286", "0.5649206", "0.5640957", "0.5640267", "0.5634369", "0.5630787", "0.5622609", "0.56148", "0.5613471", "0.56003386", "0.5599421", "0.5596512", "0.5583626", "0.5580253", "0.5570835", "0.5570574", "0.5559953", "0.5549844", "0.5548326", "0.554427", "0.5543671", "0.55385756", "0.5531972", "0.55301684", "0.55298775", "0.5521498", "0.55159074", "0.5514372", "0.55079013", "0.5497191", "0.5496477", "0.54942715", "0.5493229", "0.5488897", "0.54858375", "0.5485667", "0.5483897" ]
0.8633152
0
Function that scales the fireball mp cost based on player level
private static int fireballMPScale(int fireballCost, int playerLevel){ int MPCost = 0; MPCost = fireballCost + (1 * playerLevel); return MPCost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int fireballDamageScale(int fireballDamage, int playerLevel){\r\n int totalDamage = 0;\r\n totalDamage = fireballDamage + (2 * playerLevel);\r\n return totalDamage;\r\n }", "private static int devilHealthScale(int devilHealth, int playerLevel){\r\n if(playerLevel > 4){\r\n devilHealth = devilHealth + ((10 * (playerLevel - 4)));\r\n }\r\n return devilHealth;\r\n }", "private static int devilGoldScale(int devilGold, int playerLevel){\r\n if(playerLevel > 4){\r\n devilGold = devilGold + ( 1* playerLevel);\r\n return devilGold;\r\n }else{\r\n return devilGold;\r\n }\r\n }", "private static int devilAttackScale(int devilAttack, int playerLevel){\r\n if(playerLevel > 4){\r\n devilAttack = devilAttack + ((2 * (playerLevel - 4)));\r\n \r\n }\r\n return devilAttack;\r\n }", "@Override\n public void scaleStats() {\n this.damage = BASE_DMG + (this.getLevel() * 3);\n }", "float getCostScale();", "private static int skeletonGoldScale(int skeletonGold, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonGold = skeletonGold + ( 1* playerLevel);\r\n return skeletonGold;\r\n }else{\r\n return skeletonGold;\r\n }\r\n }", "private static int skeletonAttackScale(int skeletonAttack, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonAttack = skeletonAttack + (1 * playerLevel);\r\n return skeletonAttack;\r\n }else{\r\n return skeletonAttack;\r\n }\r\n }", "private void percentageScaling() {\n switch (slot) {\n case Torso -> updateBonusStats(1);\n case Head -> updateBonusStats(0.8);\n case Legs -> updateBonusStats(0.6);\n }\n }", "private static int skeletonHealthScale(int skeletonHealth, int playerLevel){\r\n if(playerLevel > 1){\r\n skeletonHealth = skeletonHealth + (5 * playerLevel);\r\n return skeletonHealth;\r\n }else{\r\n return skeletonHealth;\r\n }\r\n }", "private void applyLvlUpCost() {\n }", "protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }", "private double scaleHeatrate(double loadperc) {\n if (loadperc >= 0 && loadperc < 0.25 ) {\r\n return heatrate *= 1.3;\r\n }\r\n else if (loadperc >= 0.25 && loadperc < 0.5 ) {\r\n return heatrate *= 1.2;\r\n }\r\n else if (loadperc >= 0.5 && loadperc < 0.75 ) {\r\n return heatrate *= 1.1;\r\n }\r\n else {\r\n return heatrate;\r\n }\r\n }", "private int getEnemyGunFireRate()\n\t{\n\t\tfloat rate = 115 - (GameState._playerScore * .2f);\n\t\tif (rate < 20)\n\t\t{\n\t\t\trate = 20;\n\t\t}\n\t\treturn (int)rate;\n\t}", "public void calibrated() {\n weaponDamage = weaponDamage + 10;\r\n }", "public static double calcMpRegen(L2Character cha)\n\t{\n\t\tdouble init = cha.getTemplate().getBaseMpReg(cha.getLevel());\n\t\tdouble mpRegenMultiplier = cha.isRaid() ? Config.RAID_MP_REGEN_MULTIPLIER : Config.MP_REGEN_MULTIPLIER;\n\t\tdouble mpRegenBonus = 0;\n\n\t\tif (cha instanceof L2PcInstance)\n\t\t{\n\t\t\tL2PcInstance player = (L2PcInstance) cha;\n\n\t\t\t// Calculate correct baseMpReg value for certain level of PC\n\t\t\tinit += 0.3 * ((player.getLevel() - 1) / 10.0);\n\n\t\t\t// Mother Tree effect is calculated at last'\n\t\t\tif (player.isInsideZone(L2Character.ZONE_MOTHERTREE))\n\t\t\t{\n\t\t\t\tL2MotherTreeZone zone = ZoneManager.getInstance().getZone(player, L2MotherTreeZone.class);\n\t\t\t\tint mpBonus = zone == null ? 0 : zone.getMpRegenBonus();\n\t\t\t\tmpRegenBonus += mpBonus;\n\t\t\t}\n\n\t\t\tif (player.isInsideZone(L2Character.ZONE_CLANHALL) && player.getClan() != null &&\n\t\t\t\t\tplayer.getClan().getHasHideout() > 0)\n\t\t\t{\n\t\t\t\tL2ClanHallZone zone = ZoneManager.getInstance().getZone(player, L2ClanHallZone.class);\n\t\t\t\tint posChIndex = zone == null ? -1 : zone.getClanHallId();\n\t\t\t\tint clanHallIndex = player.getClan().getHasHideout();\n\t\t\t\tif (clanHallIndex > 0 && clanHallIndex == posChIndex)\n\t\t\t\t{\n\t\t\t\t\tClanHall clansHall = ClanHallManager.getInstance().getClanHallById(clanHallIndex);\n\t\t\t\t\tif (clansHall != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (clansHall.getFunction(ClanHall.FUNC_RESTORE_MP) != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmpRegenMultiplier *=\n\t\t\t\t\t\t\t\t\t1 + (double) clansHall.getFunction(ClanHall.FUNC_RESTORE_MP).getLvl() / 100;\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\tif (player.isInsideZone(L2Character.ZONE_CASTLE) && player.getClan() != null &&\n\t\t\t\t\tplayer.getClan().getHasCastle() > 0)\n\t\t\t{\n\t\t\t\tL2CastleZone zone = ZoneManager.getInstance().getZone(player, L2CastleZone.class);\n\t\t\t\tint posCastleIndex = zone == null ? -1 : zone.getCastleId();\n\t\t\t\tint castleIndex = player.getClan().getHasCastle();\n\t\t\t\tif (castleIndex > 0 && castleIndex == posCastleIndex)\n\t\t\t\t{\n\t\t\t\t\tCastle castle = CastleManager.getInstance().getCastleById(castleIndex);\n\t\t\t\t\tif (castle != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (castle.getFunction(Castle.FUNC_RESTORE_MP) != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmpRegenMultiplier *= 1 + (double) castle.getFunction(Castle.FUNC_RESTORE_MP).getLvl() / 100;\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\tif (player.isInsideZone(L2Character.ZONE_FORT) && player.getClan() != null &&\n\t\t\t\t\tplayer.getClan().getHasFort() > 0)\n\t\t\t{\n\t\t\t\tL2FortZone zone = ZoneManager.getInstance().getZone(player, L2FortZone.class);\n\t\t\t\tint posFortIndex = zone == null ? -1 : zone.getFortId();\n\t\t\t\tint fortIndex = player.getClan().getHasFort();\n\t\t\t\tif (fortIndex > 0 && fortIndex == posFortIndex)\n\t\t\t\t{\n\t\t\t\t\tFort fort = FortManager.getInstance().getFortById(fortIndex);\n\t\t\t\t\tif (fort != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (fort.getFunction(Fort.FUNC_RESTORE_MP) != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmpRegenMultiplier *= 1 + (double) fort.getFunction(Fort.FUNC_RESTORE_MP).getLvl() / 100;\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\t// Calculate Movement bonus\n\t\t\tif (player.isSitting())\n\t\t\t{\n\t\t\t\tmpRegenMultiplier *= 1.5; // Sitting\n\t\t\t}\n\t\t\telse if (!player.isMoving())\n\t\t\t{\n\t\t\t\tmpRegenMultiplier *= 1.1; // Staying\n\t\t\t}\n\t\t\telse if (player.isRunning())\n\t\t\t{\n\t\t\t\tmpRegenMultiplier *= 0.7; // Running\n\t\t\t}\n\n\t\t\tif (Config.isServer(Config.TENKAI) && player.getPvpFlag() == 0 && !player.isInCombat() &&\n\t\t\t\t\t!player.isMoving() && !player.isPlayingEvent() && !player.isInOlympiadMode())\n\t\t\t{\n\t\t\t\tinit *= 100;\n\t\t\t}\n\t\t}\n\t\telse if (cha instanceof L2PetInstance)\n\t\t{\n\t\t\tinit = ((L2PetInstance) cha).getPetLevelData().getPetRegenMP() * Config.PET_MP_REGEN_MULTIPLIER;\n\t\t}\n\n\t\tif (init < 1)\n\t\t{\n\t\t\tinit = 1;\n\t\t}\n\n\t\treturn cha.calcStat(Stats.REGENERATE_MP_RATE, init, null, null) * mpRegenMultiplier + mpRegenBonus;\n\t}", "public float spiderScaleAmount()\n {\nreturn 1F;\n }", "public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }", "@Override\n public void updateEnergy(int p, Racer player) {\n\n super.updateEnergy(p, player);\n player.setEnergy(player.getEnergy() * 2);\n }", "void scale(double factor);", "public void incLevel(int lvl){this.Level=this.XP/(100);}", "public void updateSpeed() {\n\t\t// should work b/c of integer arithmetic\n\t\tif(isTwoPlayer)\n\t\t\treturn;\n\t\t//System.out.println(\"speed up factor: \" + speedUpFactor);\n\t\t//System.out.println(\"numlinescleared/6: \" + numLinesCleared/6);\n\t\tif (speedUpFactor != numLinesCleared/6) {\n\t\t\t// speed by 10% every lines cleared, needs to be checked\n\t\t\tspeedUpFactor = numLinesCleared/6;\n\t\t\tif(!(defaultSpeed - 30*speedUpFactor <= 0))\n\t\t\t\tdefaultSpeed = defaultSpeed - 30*speedUpFactor;\n\t\t\tlevel = speedUpFactor;\n\t\t}\n\t\t//System.out.println(\"default speed: \" + defaultSpeed);\n\t}", "float getCostReduction();", "@DefaultFloat(1.497f / 60.0f * 3.6f * 1.33f * 34.0f / 19.0f)\n float crankSpeedRatio();", "public void func_180430_e(float distance, float damageMultiplier) {}", "public void scale(Point P, int scaleFactor) {\n\n\n }", "void setMaxScale(int value);", "@Override\n\tpublic int calculateCost() \n\t{\n\t\treturn (this.modernCenterpieceCost*this.centerpieceCount);\n\t}", "public static void resetMana(Player player) {\n\t\tif (mode!=Mode.BOSSBAR) return;\n\t\tProfile profile = Profile.loadOrCreate(player);\n\t\tif (!manaBar.containsKey(player.getUniqueId())) {\n\t\t\tServerBossBar bar = ServerBossBar.builder().from(baseBar).percent(1f).build();\n\t\t\tbar.addPlayer(player);\n\t\t\tmanaBar.put(player.getUniqueId(), bar);\n\t\t}\n\t\tif (profile.getRaceData().isPresent()) {\n\t\t\ttry {\n\t\t\t\tvirtualMax.put(player.getUniqueId(), \n\t\t\t\t\t\t(int)engine.evaluate(\n\t\t\t\t\t\t\t\tspawnMana.replace(\"level\", String.valueOf(profile.getRaceData().get().getLevel()))\n\t\t\t\t\t\t\t\t) );\n\t\t\t} catch (Exception e) {\n\t\t\t\tvirtualMax.put(player.getUniqueId(), 10);\n\t\t\t\tWarCraft.w(\"Could not compute mana level!\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tvirtualMana.put(player.getUniqueId(), (double)virtualMax.get(player.getUniqueId()));\n\t\t}\n\t}", "private void setScale() {\n this.particleScale = (1 - ((float) slowTime / 50)) * (1.5f * (float) offset);\n }", "private void greedyEnemySpawner(float enemyCap, IEnemyService spawner, World world, GameData gameData) {\r\n while (enemyCap >= MEDIUM_ENEMY_COST) {\r\n\r\n if (enemyCap >= MEDIUM_ENEMY_COST + BIG_ENEMY_COST) {\r\n spawnBigAndMediumEnemy(spawner, world, gameData);\r\n enemyCap -= MEDIUM_ENEMY_COST + BIG_ENEMY_COST;\r\n\r\n } else if (enemyCap >= BIG_ENEMY_COST) {\r\n spawnBigEnemy(spawner, world, gameData);\r\n enemyCap -= BIG_ENEMY_COST;\r\n\r\n } else {\r\n spawnMediumEnemy(spawner, world, gameData);\r\n enemyCap -= MEDIUM_ENEMY_COST;\r\n }\r\n }\r\n }", "public void setMyIncomeMultiplier(float factor) throws CallbackAIException;", "protected void setMaxManaPerLevel(double maxManaPerLevel) \r\n\t{\tthis.maxManaPerLevel = maxManaPerLevel;\t}", "public double getExpandScale(Entity e)\n {\n double expandScale = 1.0;\n if(e instanceof Player) //if e is player, it will make the icon bigger\n {\n expandScale *= playerIconScale;\n }\n\n double entityMapWidth = scale * expandScale * e.getEntityWidth();\n double entityMapHeight = scale * expandScale * e.getEntityHeight();\n double area = 0.5 * entityMapWidth * entityMapHeight;\n\n return Math.pow(MIN_PLAYER_AREA / area, 0.5);\n }", "@Override\r\n\tpublic int costOfShooting() {\r\n\t\treturn 50;\r\n\t}", "public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}", "public void autoscale()\n\t\t{\n\t\tdouble maxFC=1;\n\t\tdouble minP=-1;\n\t\t\n\t\tfor(int i=0;i<de.getNumGenes();i++)\n\t\t\t{\n\t\t\tdouble f=Math.abs(de.fc[i]);\n\t\t\tdouble p=de.logP[i];\n\t\t\tif(f>maxFC)\n\t\t\t\tmaxFC=f;\n\t\t\tif(p<minP)\n\t\t\t\tminP=p;\n\t\t\t}\n\t\tmaxFC*=1.2;\n\t\tminP*=1.2;\n\t\tscaleFC=1/maxFC;\n\t\tscaleP=-1/minP;\n\t\t}", "int getScale();", "private void calculateDamage() {\n this.baseDamage = this.actualBaseDamage;\n this.applyPowers();\n this.baseDamage = Math.max(this.baseDamage - ((this.baseDamage * this.otherCardsPlayed) / this.magicNumber), 0);\n }", "public double mageStrike()\r\n\t{\r\n\t\tdouble r = random.nextDouble();\r\n\t\tdmg2 = dmg + ((2*pRange)/100) * (r - 0.5) * dmg;\r\n\t\tif (r < (crit/100))\r\n\t\t{\r\n\t\t\tdmg2 = 2*dmg2;\r\n\t\t\taggro = aggro * 1.4;\r\n\t\t}\r\n\t\taggro = aggro * 1.2;\r\n\t\treturn dmg2;\r\n\t}", "private static float getBonus(LivingEntity living, int level) {\n // 25% boost per level at max\n int effectLevel = TinkerModifiers.momentumEffect.get().getLevel(living) + 1;\n return level * effectLevel / 128f;\n }", "private double genMultiplier() {\n return (random.nextInt(81) + 60)/100.0;\n }", "public static float pu2mvar(float pwr) {return pwr*100F;}", "public static double calcHpRegen(L2Character cha)\n\t{\n\t\tdouble init = cha.getTemplate().getBaseHpReg(cha.getLevel());\n\t\tdouble hpRegenMultiplier = cha.isRaid() ? Config.RAID_HP_REGEN_MULTIPLIER : Config.HP_REGEN_MULTIPLIER;\n\t\tdouble hpRegenBonus = 0;\n\n\t\tif (Config.L2JMOD_CHAMPION_ENABLE && cha.isChampion())\n\t\t{\n\t\t\thpRegenMultiplier *= Config.L2JMOD_CHAMPION_HP_REGEN;\n\t\t}\n\n\t\tif (cha instanceof L2PcInstance)\n\t\t{\n\t\t\tL2PcInstance player = (L2PcInstance) cha;\n\n\t\t\t// Calculate correct baseHpReg value for certain level of PC\n\t\t\tinit += player.getLevel() > 10 ? (player.getLevel() - 1) / 10.0 : 0.5;\n\n\t\t\tdouble siegeModifier = calcSiegeRegenModifer(player);\n\t\t\tif (siegeModifier > 0)\n\t\t\t{\n\t\t\t\thpRegenMultiplier *= siegeModifier;\n\t\t\t}\n\n\t\t\tif (player.isInsideZone(L2Character.ZONE_CLANHALL) && player.getClan() != null &&\n\t\t\t\t\tplayer.getClan().getHasHideout() > 0)\n\t\t\t{\n\t\t\t\tL2ClanHallZone zone = ZoneManager.getInstance().getZone(player, L2ClanHallZone.class);\n\t\t\t\tint posChIndex = zone == null ? -1 : zone.getClanHallId();\n\t\t\t\tint clanHallIndex = player.getClan().getHasHideout();\n\t\t\t\tif (clanHallIndex > 0 && clanHallIndex == posChIndex)\n\t\t\t\t{\n\t\t\t\t\tClanHall clansHall = ClanHallManager.getInstance().getClanHallById(clanHallIndex);\n\t\t\t\t\tif (clansHall != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (clansHall.getFunction(ClanHall.FUNC_RESTORE_HP) != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thpRegenMultiplier *=\n\t\t\t\t\t\t\t\t\t1 + (double) clansHall.getFunction(ClanHall.FUNC_RESTORE_HP).getLvl() / 100;\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\tif (player.isInsideZone(L2Character.ZONE_CASTLE) && player.getClan() != null &&\n\t\t\t\t\tplayer.getClan().getHasCastle() > 0)\n\t\t\t{\n\t\t\t\tL2CastleZone zone = ZoneManager.getInstance().getZone(player, L2CastleZone.class);\n\t\t\t\tint posCastleIndex = zone == null ? -1 : zone.getCastleId();\n\t\t\t\tint castleIndex = player.getClan().getHasCastle();\n\t\t\t\tif (castleIndex > 0 && castleIndex == posCastleIndex)\n\t\t\t\t{\n\t\t\t\t\tCastle castle = CastleManager.getInstance().getCastleById(castleIndex);\n\t\t\t\t\tif (castle != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (castle.getFunction(Castle.FUNC_RESTORE_HP) != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thpRegenMultiplier *= 1 + (double) castle.getFunction(Castle.FUNC_RESTORE_HP).getLvl() / 100;\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\tif (player.isInsideZone(L2Character.ZONE_FORT) && player.getClan() != null &&\n\t\t\t\t\tplayer.getClan().getHasFort() > 0)\n\t\t\t{\n\t\t\t\tL2FortZone zone = ZoneManager.getInstance().getZone(player, L2FortZone.class);\n\t\t\t\tint posFortIndex = zone == null ? -1 : zone.getFortId();\n\t\t\t\tint fortIndex = player.getClan().getHasFort();\n\t\t\t\tif (fortIndex > 0 && fortIndex == posFortIndex)\n\t\t\t\t{\n\t\t\t\t\tFort fort = FortManager.getInstance().getFortById(fortIndex);\n\t\t\t\t\tif (fort != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (fort.getFunction(Fort.FUNC_RESTORE_HP) != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thpRegenMultiplier *= 1 + (double) fort.getFunction(Fort.FUNC_RESTORE_HP).getLvl() / 100;\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\t// Mother Tree effect is calculated at last\n\t\t\tif (player.isInsideZone(L2Character.ZONE_MOTHERTREE))\n\t\t\t{\n\t\t\t\tL2MotherTreeZone zone = ZoneManager.getInstance().getZone(player, L2MotherTreeZone.class);\n\t\t\t\tint hpBonus = zone == null ? 0 : zone.getHpRegenBonus();\n\t\t\t\thpRegenBonus += hpBonus;\n\t\t\t}\n\n\t\t\t// Calculate Movement bonus\n\t\t\tif (player.isSitting())\n\t\t\t{\n\t\t\t\thpRegenMultiplier *= 1.5; // Sitting\n\t\t\t}\n\t\t\telse if (!player.isMoving())\n\t\t\t{\n\t\t\t\thpRegenMultiplier *= 1.1; // Staying\n\t\t\t}\n\t\t\telse if (player.isRunning())\n\t\t\t{\n\t\t\t\thpRegenMultiplier *= 0.7; // Running\n\t\t\t}\n\n\t\t\t// Add CON bonus\n\t\t\tinit *= cha.getLevelMod() * BaseStats.CON.calcBonus(cha);\n\t\t}\n\t\telse if (cha instanceof L2PetInstance)\n\t\t{\n\t\t\tinit = ((L2PetInstance) cha).getPetLevelData().getPetRegenHP() * Config.PET_HP_REGEN_MULTIPLIER;\n\t\t}\n\n\t\tif (init < 1)\n\t\t{\n\t\t\tinit = 1;\n\t\t}\n\n\t\treturn cha.calcStat(Stats.REGENERATE_HP_RATE, init, null, null) * hpRegenMultiplier + hpRegenBonus;\n\t}", "private void strengthenPlayer(int player, double value) {\n\t\tif (player == LOCAL) {\n\t\t\tif (locStatBonus + value < 2) {\n\t\t\t\tlocStatBonus += value;\n\t\t\t}\n\t\t} else if (player == OPPONENT) {\n\t\t\tif (oppStatBonus + value < 2) {\n\t\t\t\toppStatBonus += value;\n\t\t\t}\n\t\t}\n\t\tstrengthenPlayerAnimation(player);\n\t}", "Double getMultiplier();", "public void scaleAnimetion(SpriteBatch batch){\n }", "@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}", "public void updateHp(double amount);", "public void adjust_FineFuelMoisture(){\r\n\t// If FFM is one or less we set it to one\t\t\r\n\tif ((FFM-1)<=0){\r\n\t\tFFM=1;\r\n\t}else{\r\n\t\t//add 5 percent FFM for each Herb stage greater than one\r\n\t\tFFM=FFM+(iherb-1)*5;\r\n\t}\r\n}", "public int calculate_maximum_HP(int level, int mod_from_race) {\n return (level * die_type) + class_hp_mod + mod_from_race;\n }", "public float getGlobalScale() {\n // per convenzione se la scala deve essere su tutti e tre gli assi\n // allora si considera scale.x() per tutti gli assi\n return (float) scale.x();\n }", "public static float pu2mw(float pwr) {return pwr*100F;}", "public double calcPrice()\n {\n double price = getWidth() * getLength() * getHeight() + this.getMyLoc().getBasePrice();\n if (tempLvl <= 49 || tempLvl >=65) { \n price += 30;\n }\n return price;\n }", "float getWinLossRatio();", "@Override\n\tpublic double getCost() {\n\t\tcost = roll.getCost();\n\t\tif(roll.getType().equals(\"egg\")) {\n\t\t\tcost+=0.40;\n\t\t}else if(roll.getType().equals(\"jelly\")) {\n\t\t\tcost+=0.20;\n\t\t}else if(roll.getType().equals(\"pastry\")) {\n\t\t\tcost+=1.20;\n\t\t}else if(roll.getType().equals(\"sausage\")) {\n\t\t\tcost+=0.75;\n\t\t}else {\n\t\t\tcost+=0.10;\n\t\t}\n\t\t\n\t\t\t\n\t\treturn cost;\n\t\t\n\t}", "public void cal_FireLoadRating(){\r\n\tFLOAD=1.75*Math.log10(TIMBER)+0.32*Math.log10(BUO)-1.640;\r\n\t//ensure that FLOAD is greater than 0, otherwise set it to 0;\r\n\tif (FLOAD<0){FLOAD=0;\r\n\t\t}else{FLOAD=Math.pow(10, FLOAD);\r\n\t}\r\n}", "public void changeSpeed(double multiplier, String theBase) {\r\n\t\tif (theBase.equals(\"zombie\")) {\r\n\t\t\tgetEnemyAnimation().getTranslation().setRate(multiplier);\r\n\t\t\tgetEnemyAnimation().getAnimation().setRate(multiplier);\r\n\t\t}else if (theBase.equals(\"tower\")) {\r\n\t\t\tgetAnimation().getAnimation().setRate(multiplier);\r\n\t\t\tProjectile pjtile = getAnimation().getProjectile();\r\n\t\t\tif (pjtile != null) {\r\n\t\t\t\tList<Projectile> listOfPjtile = getAnimation().getPjList();\r\n\t\t\t\tfor (Projectile pjt: listOfPjtile) {\r\n\t\t\t\t\tpjt.getAnimation().setRate(multiplier);\r\n\t\t\t\t\tpjt.getTranslation().setRate(multiplier);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public abstract void onContribution(int amount, Player player);", "abstract void applyItem(JuggernautPlayer player, int level);", "protected void func_77041_b(EntityLivingBase par1EntityLiving, float par2)\n/* */ {\n/* 87 */ scaleSpider((EntityTaintSpider)par1EntityLiving, par2);\n/* */ }", "public void setSpeed(double multiplier);", "public void setPlayerMaxHealth(Player player) {\n int health=16+(player.getLevel()/2);\n if(health>40) health=40;\n // player.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, Integer.MAX_VALUE, player.getLevel(), true));\n player.setMaxHealth(health);\n }", "public int getScaledEnergyLevel(int i)\n\t{\n\t\treturn energyStored*i / currentMaxEnergy;\n\t}", "public float getScale();", "private double calculateMoneyToSpend() {\n\t\tdouble moneyToSpend = getMoney();\n\t\tif(moneyToSpend < 300) {\n\t\t\tmoneyToSpend = 0;//We do not want the player to go below 200E\n\t\t}\n\t\telse if(moneyToSpend < 500) {\n\t\t\tmoneyToSpend *= 0.34;\n\t\t}\n\t\telse if(moneyToSpend < 1000) {\n\t\t\tmoneyToSpend*= 0.4;\n\t\t}\n\t\telse if(moneyToSpend < 1500) {\n\t\t\tmoneyToSpend*= 0.5;\n\t\t}\n\t\telse if(moneyToSpend < 2000) {\n\t\t\tmoneyToSpend*= 0.6;\n\t\t}\n\t\telse {\n\t\t\tmoneyToSpend*= 0.7;\n\t\t}\n\t\treturn moneyToSpend;\n\t}", "double scale_motor_power(double p_power) //Scales joystick value to output appropriate motor power\n {Scales joystick value to output appropriate motor power\n { //Use like \"scale_motor_power(gamepad1.left_stick_x)\"\n //\n // Assume no scaling.\n //\n double l_scale = 0.0;\n\n //\n // Ensure the values are legal.\n //\n double l_power = Range.clip(p_power, -1, 1);\n\n double[] l_array =\n {0.00, 0.05, 0.09, 0.10, 0.12\n , 0.15, 0.18, 0.24, 0.30, 0.36\n , 0.43, 0.50, 0.60, 0.72, 0.85\n , 1.00, 1.00\n };\n\n //\n // Get the corresponding index for the specified argument/parameter.\n //\n int l_index = (int) (l_power * 16.0);\n if (l_index < 0) {\n l_index = -l_index;\n } else if (l_index > 16) {\n l_index = 16;\n }\n\n if (l_power < 0) {\n l_scale = -l_array[l_index];\n } else {\n l_scale = l_array[l_index];\n }\n\n return l_scale;\n\n }", "@Override\n public boolean use(Player p) {\n // Increase energy cap.\n p.setEnergyCap(p.getEnergyCap() + ENERGY_CAP_INCREASE);\n \n if (p.getEnergyCap() > ENERGY_RESTORE + p.getEnergy()) {\n // Replenish energy.\n p.setEnergy(ENERGY_RESTORE + p.getEnergy());\n\n // Otherwise set energy to max of capacity.\n } else {\n p.setEnergy(p.getEnergyCap());\n }\n return true;\n }", "public double castFireball(){\n this.mana -= fireball.manaCost;\n return fireball.hit();\n }", "public void givePlayerLevelBonus() {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\t\tp.addScore(5 * (currentLevel-1));\n\t\t\t}\n\t\t}\n\t\tserver.updateHighscoreList();\n\t\tserver.addTextToLoggingWindow(\"Server gives all players level bonus\");\n\t}", "protected abstract float _getGrowthChance();", "public int getCraftingLevel()\n\t{\n\t\tif((int) Math.pow(m_skillCraftExp, 0.3333) <= 100)\n\t\t\treturn (int) Math.pow(m_skillCraftExp, 0.333333333333333333333333333);\n\t\telse\n\t\t\treturn 100;\n\t}", "public abstract double costPerMin (CallZone zone);", "public float getPowerMultiplier() { return 0.5F; }", "public int scale(int original);", "float calFuelConsumption(float distance, float numLiters);", "@Override\n protected double speedFactor() {\n return getEnginePower() * 0.003;\n }", "public void heal(){\n\t\thp += potion.getHpBoost();\n\t\tif(hp > max_hp)hp = max_hp;\n\t}", "void calculateSpawnAmount();", "private float getScale(Entity entity) {\n \tif (entity instanceof EntityPlayer) {\n \t\t//return ???\n \t}\n \treturn isChild ? 2 : 1;\n }", "public double getCost() {\n return quantity*ppu;\n\n }", "@Override\n public void modifyPlayer(PlayerGameObject p) {\n if (d.getDeltaTime() > 1000) {\n p.modifyLives(-1);\n p.modifyScore(-ScoringHelper.getBaseValue() / 5);\n d.reset();\n }\n }", "private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }", "public void scale(float x, float y);", "public void calcSpeed(){\r\n Random rand = new Random();\r\n tire = rand.nextInt(10)+1;\r\n engine = rand.nextInt(10)+1;\r\n weight = rand.nextInt(10)+1;\r\n speed = ((double)(tire+engine+weight))/3;\r\n\r\n //round speed to 2 decimal places\r\n speed = speed*100;\r\n speed = Math.round(speed);\r\n speed = speed/100;\r\n }", "public void setCost(int maxTemp) {\n\t\tthis.cost = 900 + (200 * (Math.pow( 0.7, ((double)maxTemp/5.0) )));\n\t}", "public void scaleModel(float f){\n\t\tfor(int i = 0; i < point.length; i++)\n\t\t\tpoint[i].mul(f);\n\t\tmodSize.mul(f);\n\t}", "public void updateMana(String target, Integer amount){\n if(target == \"player\"){\n playerMana+=amount;\n if (playerMana > playerManaMax){playerMana = playerManaMax;}\n } else if (target == \"enemy\"){\n enemyMana+=amount;\n if (enemyMana > enemyManaMax){enemyMana = enemyManaMax;}\n }\n }", "@Override\r\n\tpublic float MPCost(int skillLevel, int augID) {\n\t\treturn 5;\r\n\t}", "public void scale(double s);", "@Override\n\tpublic float calculateRunRate() {\n\t\tint remaingrun=Math.abs((super.getTarget()-super.getCurrentscore()));\n\t\tfloat remaingOver=50-super.getCurrentover();\n\t\treturn remaingrun/remaingOver;\n\t}", "double setCost(double cost);", "private Float scale(Float datapoint){\n\n float range = (float)(20 * (max / Math.log(max)));\n range-=min;\n float scalar = DisplayImage.IMAGE_SIZE_SCALAR / range;\n\n if(nightMode){\n datapoint = (float) (100 * (datapoint / Math.log(datapoint)));\n datapoint *= scalar*5;\n }else {\n datapoint = (float) (20* (datapoint / Math.log(datapoint)));\n datapoint *= scalar;\n }\n\n return datapoint;\n }", "private void setMultipliers(double healthMultiplier, double dmgMultiplier, double speedMultiplier, double jmpHeightMultiplier) {\n\n // Health multiplier : set to 1 if input is below 1.\n if (healthMultiplier < 1) {\n this.healthMultiplier = 1;\n } else {\n this.healthMultiplier = healthMultiplier;\n }\n\n // Attack damage multiplier : set to 1 if input is below 1.\n if (dmgMultiplier < 1) {\n this.dmgMultiplier = 1;\n } else {\n this.dmgMultiplier = dmgMultiplier;\n }\n\n // Move speed multiplier : set to 1 if input is below 1.\n if (speedMultiplier < 1) {\n this.speedMultiplier = 1;\n } else {\n this.speedMultiplier = speedMultiplier;\n }\n\n // Jump height multiplier : set to 1 if input is below 1.\n if (jmpHeightMultiplier < 1) {\n this.jmpHeightMultiplier = 1;\n } else {\n this.jmpHeightMultiplier = jmpHeightMultiplier;\n }\n }", "@Override\r\n\tpublic void heal() {\n\t\tSystem.out.println(\"Paladin \" + super.getName() + \" heals for 50 points.\");\r\n\t\tsuper.setHitPoints(super.getHitPoints() + 50);\r\n\t}", "public int getHealthCost();", "public void ApplyMovement() {\n long currTime = SystemClock.uptimeMillis();\n if(currTime - lastUpdateTime < 16){\n return;\n }\n lastUpdateTime = currTime;\n\n\n double tl_power_raw = movement_y-movement_turn+movement_x*1.5;\n double bl_power_raw = movement_y-movement_turn- movement_x*1.5;\n double br_power_raw = -movement_y-movement_turn-movement_x*1.5;\n double tr_power_raw = -movement_y-movement_turn+movement_x*1.5;\n\n\n\n\n //find the maximum of the powers\n double maxRawPower = Math.abs(tl_power_raw);\n if(Math.abs(bl_power_raw) > maxRawPower){ maxRawPower = Math.abs(bl_power_raw);}\n if(Math.abs(br_power_raw) > maxRawPower){ maxRawPower = Math.abs(br_power_raw);}\n if(Math.abs(tr_power_raw) > maxRawPower){ maxRawPower = Math.abs(tr_power_raw);}\n\n //if the maximum is greater than 1, scale all the powers down to preserve the shape\n double scaleDownAmount = 1.0;\n if(maxRawPower > 1.0){\n //when max power is multiplied by this ratio, it will be 1.0, and others less\n scaleDownAmount = 1.0/maxRawPower;\n }\n tl_power_raw *= scaleDownAmount;\n bl_power_raw *= scaleDownAmount;\n br_power_raw *= scaleDownAmount;\n tr_power_raw *= scaleDownAmount;\n\n\n //now we can set the powers ONLY IF THEY HAVE CHANGED TO AVOID SPAMMING USB COMMUNICATIONS\n topLeft.setPower(tl_power_raw);\n bottomLeft.setPower(bl_power_raw);\n bottomRight.setPower(br_power_raw);\n topRight.setPower(tr_power_raw);\n }", "public int getManaIncreasePerLevel() {\r\n if (_index == 3 || _index == 11 || _index == 6 || _index == 14) {\r\n // Acolytes, High Priests, Druids, or High Druids\r\n return 1;\r\n } else if (isSpellCaster()) {\r\n return 2;\r\n }\r\n return 0;\r\n }", "protected void setMaxHealthPerLevel(double maxHealthPerLevel) \r\n\t{\tthis.maxHealthPerLevel = maxHealthPerLevel;\t}", "int getMaxScale();" ]
[ "0.7784099", "0.71440196", "0.6962562", "0.6958059", "0.6842572", "0.6604361", "0.6523179", "0.6377815", "0.6357778", "0.6235336", "0.6195535", "0.6104242", "0.60967016", "0.58405554", "0.58348686", "0.5803635", "0.57918525", "0.57698053", "0.5750412", "0.5736", "0.5721597", "0.5713563", "0.5705369", "0.568406", "0.5680301", "0.5657819", "0.5654687", "0.5644771", "0.5643436", "0.5639791", "0.56265813", "0.5609567", "0.5595319", "0.55910814", "0.5574546", "0.55731213", "0.55535245", "0.5552269", "0.5544083", "0.5532679", "0.55321836", "0.55001193", "0.5493714", "0.54900336", "0.54881847", "0.5485597", "0.5479835", "0.5475643", "0.5470026", "0.54693574", "0.5465888", "0.5463849", "0.5460098", "0.5451182", "0.5446423", "0.5440405", "0.5438835", "0.54363376", "0.54349154", "0.54330397", "0.5423091", "0.5420052", "0.5403164", "0.54006803", "0.54004043", "0.5398514", "0.5392728", "0.5373011", "0.53716606", "0.5361456", "0.535518", "0.53513324", "0.5342009", "0.5338897", "0.53335935", "0.53328806", "0.5327985", "0.5327884", "0.5315172", "0.5314658", "0.5314372", "0.5311059", "0.5308959", "0.5308431", "0.53072643", "0.5307113", "0.5304281", "0.53016514", "0.5300478", "0.5297291", "0.5287903", "0.5283091", "0.52813154", "0.5276453", "0.52764344", "0.5275111", "0.5263695", "0.5258035", "0.5256389", "0.5255648" ]
0.87841046
0
Function that gets the rarity of the item
private static String getItemRarity(String[] itemSlot){ String rarity = ""; if(itemSlot[0].equals("Leather Helmet")){ leatherHelmet LeatherHelmet = new leatherHelmet(); rarity = LeatherHelmet.getRarity(); return rarity; }else if(itemSlot[0].equals("Leather Chest Plate")){ leatherChestPlate LeatherChestPlate = new leatherChestPlate(); rarity = LeatherChestPlate.getRarity(); return rarity; }else if(itemSlot[0].equals("Leather Boots")){ leatherBoots LeatherBoots = new leatherBoots(); rarity = LeatherBoots.getRarity(); return rarity; }else if(itemSlot[0].equals("Leather Gloves")){ leatherGloves LeatherGloves = new leatherGloves(); rarity = LeatherGloves.getRarity(); return rarity; }else if(itemSlot[0].equals("Iron Boots")){ ironBoots IronBoots = new ironBoots(); rarity = IronBoots.getRarity(); return rarity; }else if(itemSlot[0].equals("Iron Helmet")){ ironHelmet IronHelmet = new ironHelmet(); rarity = IronHelmet.getRarity(); return rarity; }else if(itemSlot[0].equals("Iron Chest Plate")){ ironChestPlate IronChestPlate = new ironChestPlate(); rarity = IronChestPlate.getRarity(); return rarity; }else if(itemSlot[0].equals("Iron Gloves")){ ironGloves IronGloves = new ironGloves(); rarity = IronGloves.getRarity(); return rarity; }else if(itemSlot[0].equals("Short Sword")){ shortSword ShortSword = new shortSword(); rarity = ShortSword.getRarity(); return rarity; }else if(itemSlot[0].equals("Long Sword")){ longSword LongSword = new longSword(); rarity = LongSword.getRarity(); return rarity; }else if(itemSlot[0].equals("Great Sword")){ greatSword GreatSword = new greatSword(); rarity = GreatSword.getRarity(); return rarity; }else if(itemSlot[0].equals("Heaven Smiting Devil Slayer Sword")){ heavenSmitingDevilSlayerSword Honger = new heavenSmitingDevilSlayerSword(); rarity = Honger.getRarity(); return rarity; } return rarity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EnumRarity getRarity(ItemStack itemStack) {\n/* 222 */ return EnumRarity.epic;\n/* */ }", "public float getRarity() {\n \t\treturn rarity;\n \t}", "public EnumRarity getRarity(ItemStack stack) {\n/* 30 */ return (stack.getMetadata() == 0) ? EnumRarity.RARE : EnumRarity.EPIC;\n/* */ }", "public EnumRarity func_77613_e(ItemStack itemstack) { return EnumRarity.RARE; }", "public EnumRarity getRarity(ItemStack is){\n\t\treturn EnumRarity.epic;\n\t}", "@Override\n\tpublic int rarity() {\n\t\treturn level-1;\n\t}", "public Rarity getRarity()\r\n {\r\n\treturn rare;\r\n }", "public char getRarity(){\n return rarity;\n }", "int getArmor();", "public int getRating();", "EDataType getResistance();", "public float getPower() {\n \t\treturn 1/rarity;\n \t}", "int getRatioQuantity();", "public int getFishingSkill();", "public int getFoodLevel ( ) {\n\t\treturn extract ( handle -> handle.getFoodLevel ( ) );\n\t}", "double getRating();", "public static ItemQuality getItemValue(ItemStack stack){\n\t\tswitch(stack.getType()){\n\t\t\tcase LEATHER_HELMET :\n\t\t\tcase LEATHER_CHESTPLATE :\n\t\t\tcase LEATHER_LEGGINGS :\n\t\t\tcase LEATHER_BOOTS : return ItemQuality.Leather;\n\t\t\t\n\t\t\tcase CHAINMAIL_HELMET :\n\t\t\tcase CHAINMAIL_CHESTPLATE :\n\t\t\tcase CHAINMAIL_LEGGINGS :\n\t\t\tcase CHAINMAIL_BOOTS : return ItemQuality.Chain;\n\t\t\t\n\t\t\tcase IRON_HELMET :\n\t\t\tcase IRON_CHESTPLATE :\n\t\t\tcase IRON_LEGGINGS :\n\t\t\tcase IRON_BOOTS : return ItemQuality.Iron;\n\t\t\t\n\t\t\tcase DIAMOND_HELMET :\n\t\t\tcase DIAMOND_CHESTPLATE :\n\t\t\tcase DIAMOND_LEGGINGS :\n\t\t\tcase DIAMOND_BOOTS : return ItemQuality.Diamond;\n\t\t\t\n\t\t\tcase GOLD_HELMET :\n\t\t\tcase GOLD_CHESTPLATE :\n\t\t\tcase GOLD_LEGGINGS :\n\t\t\tcase GOLD_BOOTS : return ItemQuality.Gold;\n\t\t\n\t\t\tdefault: return ItemQuality.None;\n\t\t}\n\t}", "public int getItemsRadius();", "int getStars();", "public abstract double getPriority();", "public int getArmorPrice() {\r\n\t\treturn super.getItemPrice();\r\n\t}", "public static int getArmorValueOfItem(ItemStack stack){\n\t\tif(stack == null || stack.getType() == Material.AIR) return 0;\n\t\t\n\t\tswitch(stack.getType()){\n\t\t\t//LeatherArmor stuff\n\t\t\tcase LEATHER_BOOTS: return 1;\n\t\t\tcase LEATHER_HELMET: return 1;\n\t\t\tcase LEATHER_LEGGINGS: return 2;\n\t\t\tcase LEATHER_CHESTPLATE: return 3;\n\t\t\t\n\t\t\t//GoldArmor stuff\n\t\t\tcase GOLD_BOOTS: return 1;\n\t\t\tcase GOLD_HELMET: return 2;\n\t\t\tcase GOLD_LEGGINGS: return 3;\n\t\t\tcase GOLD_CHESTPLATE: return 5;\n\t\t\t\n\t\t\t//ChainArmor stuff\n\t\t\tcase CHAINMAIL_BOOTS: return 1;\n\t\t\tcase CHAINMAIL_HELMET: return 2;\n\t\t\tcase CHAINMAIL_LEGGINGS: return 4;\n\t\t\tcase CHAINMAIL_CHESTPLATE: return 5;\n\t\t\t\n\t\t\t//IronArmor stuff\n\t\t\tcase IRON_BOOTS: return 2;\n\t\t\tcase IRON_HELMET: return 2;\n\t\t\tcase IRON_LEGGINGS: return 5;\n\t\t\tcase IRON_CHESTPLATE: return 6;\n\t\t\t\n\t\t\t//DiamondArmor stuff\n\t\t\tcase DIAMOND_BOOTS: return 3;\n\t\t\tcase DIAMOND_HELMET: return 3;\n\t\t\tcase DIAMOND_LEGGINGS: return 6;\n\t\t\tcase DIAMOND_CHESTPLATE: return 8;\n\t\t\t\n\t\t\tdefault: return 0;\n\t\t}\n\t}", "public double getResistance() \n {\n //dummy return value.\n return 0;\n }", "public String getMaterial () {\r\n return getItemStack().getTypeId()+ \":\" + getItemStack().getDurability(); \r\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 int getItemEnchantability()\n {\n return this.field_77878_bZ.func_78045_a();\n }", "public double getResistance() {\n\t\treturn this.resistance;\n\t}", "java.lang.String getQuality();", "public String getRating() {\r\n\t\tswitch (rating) {\r\n\t\tcase \"high\":\r\n\t\t\treturn \"high\";\r\n\t\tcase \"medium\":\r\n\t\t\treturn \"medium\";\r\n\t\tcase \"low\":\r\n\t\t\treturn \"low\";\r\n\t\tdefault: return \"none\";\r\n\t\t}\r\n\t}", "protected int get_food_level()\n {\n return food_level;\n }", "MeasureType getQuantity();", "public int getQuantity();", "public int getArity(String R) {\n if (R.equals(\"E\")) return 2;\n if (arity.containsKey(R)) return arity.get(R);\n return -1;\n }", "void getRadiationlevel();", "public int getToughness();", "int getQuantity();", "public float getQuality();", "public int getArmor() {\n return armor_;\n }", "public Integer getRating() {\n return this.rating;\n }", "protected int getAbsorptionRatio() {\n\n switch (armorType) {\n case 0:\n return 15;\n case 1:\n return 40;\n case 2:\n return 30;\n case 3:\n return 15;\n }\n return 0;\n }", "public int getRating()\n {\n return this.rating;\n }", "public static int getEfficiency(String name) {\n\n EnumMoreSwords swordType = getType(name);\n\n if (swordType != null) {\n\n return swordType.swordEfficiency;\n }\n\n return -1;\n }", "public double getRating(){\n\t\treturn this.rating;\n\t}", "public int getWorth() { return 1; }", "public Integer getQuantity();", "public short getStars()\r\n {\r\n return this.stars;\r\n }", "public double getRating() {\n\t\treturn rating;\n\t}", "public int getQualite() {\n return qualite;\n }", "@Override\n\tpublic String getRating(int target) {\n\t\tdouble d = toBound(target);\n\t\tif (d < 0 && d + height > 0){\n\t\t\treturn \"explosion\";\n\t\t} else {\n\t\t\treturn \"defused\";\n\t\t}\n\t}", "public int getArmor() {\n return armor_;\n }", "float getBonusItemDrop();", "public int getRating() {\n\t\treturn this.rating;\n\t}", "public Integer getGivenRating() {\n\t\treturn givenRating;\n\t}", "public abstract int arity();", "public ArmorType getArmorType() {\n return type;\n }", "private String getItemCost(ItemType item, int level) {\n\t\t// gets item cost\n\t\tint[] baseCosts = item.getCost();\n\t\tfloat[] costs = new float[3];\n\t\tif (item instanceof WeaponType) {\n\t\t\tfloat multiplier = ((WeaponType) item)\n\t\t\t\t\t.getItemLevelMultipliers()[level - 1];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tcosts[i] = baseCosts[i] * multiplier;\n\t\t\t}\n\t\t} else if (item instanceof ArmourType) {\n\t\t\tfloat multiplier = ((ArmourType) item)\n\t\t\t\t\t.getItemLevelMultipliers()[level - 1];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tcosts[i] = baseCosts[i] * multiplier;\n\t\t\t}\n\t\t} else if (item instanceof SpecialType) {\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tcosts[i] = baseCosts[i] * 1.0f;\n\t\t\t}\n\t\t}\n\t\t// creates cost string\n\t\tString costString = \"\";\n\t\tif (baseCosts[0] > 0) {\n\t\t\tcostString += \"Rock: \" + (int) costs[0] + \"\\n\";\n\t\t}\n\t\tif (baseCosts[1] > 0) {\n\t\t\tcostString += \"Crystal: \" + (int) costs[1] + \"\\n\";\n\t\t}\n\t\tif (baseCosts[2] > 0) {\n\t\t\tcostString += \"Biomass: \" + (int) costs[2] + \"\\n\";\n\t\t}\n\t\treturn costString;\n\t}", "public float getRating() {\n return this.rating;\n }", "public static double difficultyRating()\r\n {\r\n double howhard = 4.0;\r\n return howhard;\r\n }", "public int getSeekerRating() {\n return getIntegerProperty(\"Rating\");\n }", "public float getRating() {\n\t\treturn rating;\n\t}", "public double getQuality() {\n return quality;\n }", "public void setRarity(char newrareity)\n {\n rarity = newrareity;\n }", "String getReviewrate();", "public int getArmorPoint ()\r\n {\r\n return armorPoint;\r\n }", "public abstract int getBonus();", "public int getCarriedWeight() {\n\t\tint weight = 0;\n\t\tfor (Item item : this) {\n\t\t\tweight += item.getWeight();\n\t\t}\n\n\t\treturn weight;\n\t}", "@Test\n\tpublic void testQuality1SellInUnder0() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Sulfuras, Hand of Ragnaros\", -11, 1));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality remains the same\n\t\tassertEquals(\"Quality with quality 0 Sulfuras\", 1, quality);\n\t}", "@Override\n\tpublic float desireability() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tMap<String,FoodEntry> map = agentSpace.getScentMemories().getFirst();\n\t\tif (map == null || map.size() == 0) { \n\t\t\t// we don't smell anything\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tAgentSpace space = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tBoundedEntry bounded = space.getBounded(Variable.energy);\n\t\tfloat pct = bounded.getValue() / bounded.getMax();\n\t\treturn 1 - (pct*pct);\n\t}", "@Override\n\tpublic double getCost() {\n\t\tcost = roll.getCost();\n\t\tif(roll.getType().equals(\"egg\")) {\n\t\t\tcost+=0.40;\n\t\t}else if(roll.getType().equals(\"jelly\")) {\n\t\t\tcost+=0.20;\n\t\t}else if(roll.getType().equals(\"pastry\")) {\n\t\t\tcost+=1.20;\n\t\t}else if(roll.getType().equals(\"sausage\")) {\n\t\t\tcost+=0.75;\n\t\t}else {\n\t\t\tcost+=0.10;\n\t\t}\n\t\t\n\t\t\t\n\t\treturn cost;\n\t\t\n\t}", "public int getQuality() {\n return quality;\n }", "public int getQuality() {\n return quality;\n }", "public int getQuality() {\n return quality;\n }", "public static float getBaseArmor(Material material) {\n\t\t// Yes - we have to hard code these values. Cannot use\n\t\t// Operation.ADD_PERCENTAGE either.\n\t\tswitch (material) {\n\t\t// Leather Armor\n\t\tcase LEATHER_HELMET:\n\t\t\treturn 1F;\n\t\tcase LEATHER_CHESTPLATE:\n\t\t\treturn 3F;\n\t\tcase LEATHER_LEGGINGS:\n\t\t\treturn 2F;\n\t\tcase LEATHER_BOOTS:\n\t\t\treturn 1F;\n\t\t// Chainmail Armor\n\t\tcase CHAINMAIL_HELMET:\n\t\t\treturn 2F;\n\t\tcase CHAINMAIL_CHESTPLATE:\n\t\t\treturn 5F;\n\t\tcase CHAINMAIL_LEGGINGS:\n\t\t\treturn 4F;\n\t\tcase CHAINMAIL_BOOTS:\n\t\t\treturn 1F;\n\t\t// Iron Armor\n\t\tcase IRON_HELMET:\n\t\t\treturn 2F;\n\t\tcase IRON_CHESTPLATE:\n\t\t\treturn 6F;\n\t\tcase IRON_LEGGINGS:\n\t\t\treturn 5F;\n\t\tcase IRON_BOOTS:\n\t\t\treturn 2F;\n\t\t// Golden Armor\n\t\tcase GOLD_HELMET:\n\t\t\treturn 2F;\n\t\tcase GOLD_CHESTPLATE:\n\t\t\treturn 5F;\n\t\tcase GOLD_LEGGINGS:\n\t\t\treturn 4F;\n\t\tcase GOLD_BOOTS:\n\t\t\treturn 1F;\n\t\t// Diamond Armor\n\t\tcase DIAMOND_HELMET:\n\t\t\treturn 3F;\n\t\tcase DIAMOND_CHESTPLATE:\n\t\t\treturn 8F;\n\t\tcase DIAMOND_LEGGINGS:\n\t\t\treturn 6F;\n\t\tcase DIAMOND_BOOTS:\n\t\t\treturn 3F;\n\t\tdefault:\n\t\t\treturn 0F;\n\n\t\t}\n\t}", "int getQuantite();", "int getQuantite();", "public double rating() {\r\n double value = BASE_RATING * specialization * (1 / (1 + era)) \r\n * ((wins - losses + saves) / 30.0);\r\n return value;\r\n }", "protected int getNuggetValue(ItemStack food) {\n if (food == null) {\n return 0;\n } else if (food.getType() == Material.GOLDEN_CARROT) {\n return 8;\n } else if (food.getType() == Material.GOLDEN_APPLE) {\n return 8 * 9;\n } else if (food.getType() == Material.ENCHANTED_GOLDEN_APPLE) {\n return 8 * 9 * 9;\n } else {\n return 0;\n }\n }", "public float getRating() {\n return rating;\n }", "public float getRating() {\n return rating;\n }", "public int getItemEnchantability()\r\n {\r\n return this.toolMaterial.getEnchantability();\r\n }", "public double getFoodQuantity() {\r\n\t\treturn fruitQuantity + meatQuantity;\r\n\t}", "@Override\n\tpublic int getArmor() {\n\t\treturn 0;\n\t}", "int getRType();", "public int getBreedingExp()\n\t{\n\t\treturn m_skillBreedExp;\n\t}", "public int getDamage() {\n //TODO\n return 1;\n }", "@Override\n public int getArmor(int loc, boolean rear) {\n if (rear && hasRearArmor(loc)) {\n return rearArmor[loc];\n }\n return super.getArmor(loc, rear);\n }", "public Integer getRating()\n\t{\n\t\treturn null;\n\t}", "public int getR();", "int getNumberOfArtillery();", "public double getRating() {\n return rating_;\n }", "Quantity getQuantity();", "public String getCheese() {\n return this.hold.getType();\n }", "public int getWeight();", "long getQuantity();", "long getQuantity();", "public short getHandThrowDamage();", "public int getWeight() {\n\t\treturn quantity*weight; \n\t}", "public int getArity(String attr) {\r\n return ((Integer) valueCache.get(attr)).intValue();\r\n }", "public String getLBR_ICMS_TaxReliefType();", "public int getArity(int i) {\r\n return attrs[i].getArity();\r\n }" ]
[ "0.7962134", "0.781915", "0.75095356", "0.7416733", "0.7384472", "0.73030305", "0.728466", "0.69687283", "0.61752236", "0.6144484", "0.61149526", "0.607265", "0.5935332", "0.58944345", "0.586579", "0.58036894", "0.5786772", "0.57173824", "0.5681371", "0.56747943", "0.5671255", "0.5651732", "0.5647161", "0.56437594", "0.5623102", "0.5621913", "0.56207275", "0.56135815", "0.5612692", "0.56079495", "0.5604923", "0.5587908", "0.55809885", "0.5575035", "0.5573649", "0.5570988", "0.5570299", "0.5568668", "0.55500954", "0.554695", "0.554603", "0.5539513", "0.55320543", "0.5528053", "0.55275744", "0.5526148", "0.55065536", "0.5505389", "0.54948026", "0.5490423", "0.54775393", "0.54739434", "0.54694724", "0.54606116", "0.5459193", "0.5441569", "0.54408306", "0.5434077", "0.5419639", "0.5416772", "0.5411306", "0.5407982", "0.54024947", "0.5401863", "0.5399328", "0.5399216", "0.53898734", "0.53875005", "0.53847176", "0.53797716", "0.53797716", "0.53797716", "0.53778064", "0.5365209", "0.5365209", "0.53651756", "0.53648865", "0.53605384", "0.53605384", "0.5350009", "0.5349885", "0.53496754", "0.5335115", "0.53327495", "0.5332193", "0.53278923", "0.53183585", "0.5317891", "0.5314942", "0.5310496", "0.530652", "0.53051066", "0.5300657", "0.5299614", "0.5299614", "0.529632", "0.5290067", "0.5276037", "0.5273104", "0.52693206" ]
0.7181642
7
CONSTRUCTOR It's private so no one can get at it!
private View() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private Rekenhulp()\n\t{\n\t}", "public Constructor(){\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n\t\tpublic void init() {\n\t\t}", "private TMCourse() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n void init() {\n }", "@Override\n public void init() {\n }", "@Override public void init()\n\t\t{\n\t\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "public void init() {\r\n\t\t// to override\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void init() {\n\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}", "public void init() {\n \n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private void init() {\n }", "private void init() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private MApi() {}", "@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 PSRelation()\n {\n }", "protected void init() {\n // to override and use this method\n }", "public Pitonyak_09_02() {\r\n }", "public CSSTidier() {\n\t}", "public void init() {\n\t\t}", "private Instantiation(){}", "protected void initialize() {}", "protected void initialize() {}", "protected void _init(){}", "@Override\n public void init() {\n\n super.init();\n\n }", "public void init() { }", "public void init() { }", "public void init() {}", "public void init() {}", "public void init() {\n\t\t\n\t}", "public void init() {\r\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\r\n\t}", "private SingleObject()\r\n {\r\n }", "private void init() {\n\n\n\n }", "public CyanSus() {\n\n }", "public void init(){}", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "private Marinator() {\n }", "private Marinator() {\n }", "public Curso() {\r\n }", "private OMUtil() { }", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "public void init() {\n\t\t \r\n\t\t }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "private Aliyun() {\n\t\tsuper();\n\t}", "private JsonUtils() {\n\t\tsuper();\n\t}", "public JSFOla() {\n }", "protected void init() {\n }", "private IndexBitmapObject() {\n\t}", "public Coche() {\n super();\n }", "protected Problem() {/* intentionally empty block */}", "private Utils() {\n\t}", "private Utils() {\n\t}", "private stendhal() {\n\t}", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "public void init(){\n \n }", "@Override\n protected void initialize() \n {\n \n }", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "@Override\n\tpublic synchronized void init() {\n\t}", "@Override\r\n public void initialize()\r\n {\n }" ]
[ "0.80478257", "0.7648508", "0.7619643", "0.76046604", "0.7542034", "0.7501828", "0.74983275", "0.74107975", "0.7405492", "0.7396196", "0.7384763", "0.73659354", "0.7339131", "0.7337455", "0.7337455", "0.7337455", "0.728128", "0.72731185", "0.72700465", "0.72474927", "0.72453994", "0.7228237", "0.7228237", "0.7228237", "0.7228237", "0.7228237", "0.72012454", "0.71912366", "0.71912366", "0.7182748", "0.71696746", "0.7134104", "0.71159124", "0.71054685", "0.71054685", "0.71054685", "0.71054685", "0.71019095", "0.71019095", "0.71019095", "0.71017915", "0.7101045", "0.7101045", "0.7101045", "0.7101045", "0.7101045", "0.7101045", "0.70866865", "0.70786315", "0.7077113", "0.7057943", "0.7055834", "0.7036353", "0.7033119", "0.7033119", "0.70180243", "0.70173126", "0.7009253", "0.7009253", "0.70080423", "0.70080423", "0.7001321", "0.70013165", "0.69973373", "0.69973373", "0.69973373", "0.6995803", "0.6994469", "0.69919866", "0.6976483", "0.69760203", "0.6975985", "0.6975985", "0.6957063", "0.6956737", "0.6943603", "0.6943603", "0.6943603", "0.69410276", "0.693986", "0.69340265", "0.69340265", "0.6929235", "0.6929235", "0.6929235", "0.6924972", "0.6918261", "0.6907285", "0.69054383", "0.6905433", "0.68996996", "0.6898335", "0.6896957", "0.6896957", "0.6891899", "0.6883863", "0.6880553", "0.687971", "0.6872659", "0.6871482", "0.6864927" ]
0.0
-1
Only used to get userInput in the MagicStoreAdventure Class
public String getUserDecision(){ return input.nextLine(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void takeUserInput() {\n\t\t\r\n\t}", "private void takeInUserInput(){\n\t\t// only take in input when it is in the ANSWERING phase\n\t\tif(spellList.status == QuizState.Answering){\n\t\t\tspellList.setAnswer(getAndClrInput());\n\t\t\tspellList.status = QuizState.Answered;\n\t\t\tansChecker=spellList.getAnswerChecker();\n\t\t\tansChecker.execute();\n\t\t}\t\n\n\t}", "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 }", "String userInput(String question);", "String getUserInput();", "private void checkUserInput() {\n }", "public static int getUserChoice(){\r\n return Input.getInt(\"Enter 1 to add a song, 2 to display all songs, or 3 to quit the program: \");\r\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}", "String getInput();", "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}", "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 }", "public static void main(String[] args) {\n char option;\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Welcome to MG's adventure world. Now your journey begins. Good luck!\");\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n String input = getInput(scan, \"Cc\");\n System.out.println(\"You are in a dead valley.\");\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n input = getInput(scan, \"Cc\");\n System.out.println(\"You walked and walked and walked and you saw a cave!\");\n cave();\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n input = getInput(scan, \"Cc\");\n System.out.println(\"You entered a cave!\");\n System.out.println(\"Please hit 'C' or 'c' to continue, anything else to quit-\");\n input = getInput(scan, \"Cc\");\n System.out.println(\"Unfortunately, you ran into a GIANT!\");\n giant();\n System.out.println(\"Enter 'A' or 'a' to Attack, 'E' or 'E' to Escape, ANYTHING else is to YIELD\");\n input = getInput(scan, \"AaEe\", 10);\n System.out.println(\"Congratulations! You SURVIVED! Get your REWARD!\");\n System.out.println(\"There are three 3 tressure box in front of you! Enter the box number you want to open!\");\n box();\n input = getInput(scan);\n System.out.println(\"Hero! Have a good day!\");\n }", "public void getInput() {\r\n System.out.print(\"Is the car silent when you turn the key? \");\r\n setAnswer1(in.nextLine());\r\n if(getAnswer1().equals(YES)) {\r\n System.out.print(\"Are the battery terminals corroded? \");\r\n setAnswer2(in.nextLine());\r\n if(getAnswer2().equals(YES)){\r\n printString(\"Clean the terminals and try again\");\r\n }\r\n else {\r\n printString(\"The battery may be damaged.\\nReplace the cables and try again\");\r\n }\r\n\r\n }\r\n else {\r\n System.out.print(\"Does the car make a slicking noise? \");\r\n setAnswer3(in.nextLine());\r\n if(getAnswer3().equals(YES)) {\r\n printString(\"Replace the battery\");\r\n }\r\n else {\r\n System.out.print(\"Does the car crank up but fail to start? \");\r\n setAnswer4(in.nextLine());\r\n if(getAnswer4().equals(YES)) {\r\n printString(\"Check spark plug connections.\");\r\n }\r\n else{\r\n System.out.print(\"Does the engine start and then die? \");\r\n setAnswer5(in.nextLine());\r\n if(getAnswer5().equals(YES)){\r\n System.out.print(\"Does your care have fuel injection? \");\r\n setAnswer6(in.nextLine());\r\n if(getAnswer6().equals(YES)){\r\n printString(\"Get it in for service\");\r\n }\r\n else{\r\n printString(\"Check to insure the chock is opening and closing\");\r\n }\r\n }\r\n else {\r\n printString(\"This should be impossible\");\r\n }\r\n }\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n }", "public void getPlayerInput() {\n System.out.println(\"Enter a Command: \");\n playerInput = inputScanner.nextLine();\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 }", "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 }", "@Override\r\n public void getInput() { \r\n \r\n String command;\r\n Scanner inFile = new Scanner(System.in);\r\n \r\n do {\r\n \r\n this.display();\r\n \r\n command = inFile.nextLine();\r\n command = command.trim().toUpperCase();\r\n \r\n switch (command) {\r\n case \"B\":\r\n this.helpMenuControl.displayBoardHelp();\r\n break;\r\n case \"C\":\r\n this.helpMenuControl.displayComputerPlayerHelp();\r\n break;\r\n case \"G\":\r\n this.helpMenuControl.displayGameHelp();\r\n break; \r\n case \"Q\": \r\n break;\r\n default: \r\n new Connect4Error().displayError(\"Invalid command. Please enter a valid command.\");\r\n }\r\n } while (!command.equals(\"Q\")); \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}", "public void setInput(String input) { this.input = input; }", "public void input(){\n\t\tboolean[] inputKeyArray = inputHandler.processKeys();\n\t\tint[] inputMouseArray = inputHandler.processMouse();\n\t\tcurrentLevel.userInput(inputKeyArray, inputMouseArray);\n\t}", "private static String inputString() {\n Scanner userInput = new Scanner(System.in);\n System.out.print(\"Insert text: \");\n String inputText = userInput.nextLine();\n return inputText;\n }", "protected void handleInput(String input) {}", "protected abstract void getInput();", "static public void woundedSurvivor() {\n System.out.println(\"Maybe you could bring me some food and something to defend myself now that i cant move\");\n System.out.println(\"Do you want to accept his mission: Yes or no\");\n Scanner scan = new Scanner(System.in); //Creates a new scanner\n String input = scan.nextLine(); //Waits for input\n if (input.equalsIgnoreCase(\"yes\")) {\n System.out.println(\"You got a mission, please use the show command for more information\");\n allMissions.addMission(jungle, \"Helping the injured survivor\");\n } else if (input.equalsIgnoreCase(\"no\")) {\n System.out.println(\"Come back again if you change your mind\");\n } else {\n System.out.println(\"Come back again if you change your mind\");\n }\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 String getUserInput(String question) {\r\n System.out.print(question);\r\n return scanner.next();\r\n }", "@FXML\n private void handleUserInput() {\n String input = inputTextField.getText();\n storeUserInputHistory(input);\n try {\n Command command = ParserFactory.parse(input);\n command.execute(tasks, storage, history);\n } catch (ChronologerException e) {\n e.printStackTrace();\n }\n printUserMessage(\" \" + input);\n printChronologerMessage(UiMessageHandler.getOutputForGui());\n inputTextField.clear();\n }", "private void promptForSomething() {\n userInputValue = prompt(\"Please enter something: \", true);\n System.out.println(\"Thank you. You can see your input by choosing the Display Something menu\");\n }", "public void setInput(String input){\n this.input = input;\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n\n // 1\n// System.out.print(\"Please enter your favorite number: \");\n// int userNumber = input.nextInt();\n// System.out.printf(\"Your favorite number is %d%n\", userNumber);\n// //Q.1: Error thrown = InputMismatchException - something to do with casting\n//\n// // 2\n System.out.println(\"Please enter 3 random words.\");\n String firstWord = input.next();\n String middleWord = input.next();\n String lastWord = input.next();\n System.out.printf(\"%s, %s, and %s are your 3 words.%n\", firstWord, middleWord, lastWord);\n// // Q.1: Cannot enter less than 3 words - have to enter something to move to next command\n// // Q.2: It doesn't pick up the 4th word - does it store it somewhere? Looks like it's wiped entirely\n\n//\n// // 3\n System.out.println(\"Please enter your favorite quote.\");\n input.nextLine();\n String userQuote = input.nextLine();\n System.out.printf(\"Your quote: %s\", userQuote);\n// // Q.1: Only picks up a single word. Discovery - whatever input is submitted, the .next method will pick up (ex: I entered dog 4 times in E.2, and my quote filled with 1 dog)\n\n\n\n // Calculate perimeter and area of Codeup's classroom\n\n // 1\n// System.out.println(\"Please enter the length of Codeup's classroom in feet\");\n// int length = Integer.parseInt(input.nextLine());\n//\n// System.out.println(\"Pleae enter the width of Codeup's classroom\");\n// int width = Integer.parseInt(input.nextLine());\n//\n// int area = length*width;\n// int perimeter = length*2 + width*2;\n//\n// System.out.printf(\"Length: %dft%nWidth: %dft%nArea: %dft%nPerimeter: %dft%n\", length, width, area, perimeter);\n\n }", "private void printSearchToolNameMenu(Shop shop) {\n System.out.println(\"What is the name of the tool you would like to look up?\");\n String toolName = this.userInput.nextLine();\n if (shop.searchInventory(toolName.toLowerCase())) {\n System.out.println(toolName + \" is in the shop.\");\n } else {\n System.out.println(\"Tool does not exist or invalid input, please check spelling and try again.\");\n }\n }", "private void askUser()\n { \n System.out.println(\"What is your command?\");\n\n String command = scanner.nextLine();\n commandPrompt(command);\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 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}", "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 String onInputMessage(String userInput) throws QuitException{\n if (!userInput.equals(\"\"))\n System.out.println(userInput);\n\n //Enter data using BufferReader \n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); \n \n // Reading data using readLine\n String input; \n try {\n input = reader.readLine();\n } catch (IOException e) {\n return null;\n }\n if (input.equals(\"sortir\"))\n throw new QuitException();\n\n // Printing the read line \n return input;\n }", "public UserInput()\n {\n try\n {\n scanner = new Scanner(System.in);\n input = new InputMethods();\n citiesTotal = new CityContainer();\n\n if(scanner != null)\n {\n askUser();\n }\n } catch(Exception ex)\n {\n }\n }", "public abstract void input();", "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 }", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n CommandResult dukeResponse;\n try {\n dukeResponse = duke.getResponse(input);\n runDialogContainer(input, dukeResponse);\n if (dukeResponse.isExit()) {\n runExitDialogContainer();\n }\n } catch (DukeException e) {\n runDialogContainer(input, e.getMessage());\n }\n userInput.clear();\n }", "Input createInput();", "public char userChoice ()\n {\n\tString c = IBIO.inputString (\"Stag, Doe, Phoenix, Horse, or Wolf? \");\n\tboolean Check = isValid (c);\n\twhile (!isValid (c))\n\t{\n\t printSlow (\"Error, invalid input.\");\n\t c = IBIO.inputString (\"Stag, Doe, Phoenix, Horse, or Wolf? \");\n\t}\n\n\n\tif (c.equalsIgnoreCase (\"Stag\") || c.equalsIgnoreCase (\"s\"))\n\t return 's';\n\telse if (c.equalsIgnoreCase (\"Doe\") || c.equalsIgnoreCase (\"d\"))\n\t return 'd';\n\telse if (c.equalsIgnoreCase (\"Phoenix\") || c.equalsIgnoreCase (\"p\"))\n\t return 'p';\n\telse if (c.equalsIgnoreCase (\"Horse\") || c.equalsIgnoreCase (\"h\"))\n\t return 'h';\n\telse\n\t return 'w';\n\n }", "public abstract Object getInput ();", "private static int getUserChoice() {\n System.out.println(\"Please choose your operation: \");\n return intScanner.nextInt();\n }", "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 }", "public static String readUserInput() {\n return in.nextLine();\n }", "public String readCommand() {\n sc = new Scanner(System.in);\n userInput = new TextField();\n return userInput.getText();\n }", "@Override\n public StatusType getInput(Object object) {\n StatusType status = StatusType.PLAYING;\n do {\n try {\n this.display(); //displays the display method from this class\n\n //get the input command entered by user\n String input = this.getCommand();\n switch (input) {\n case \"D\":\n this.gamePreferencesControl.setGameDifficulty();\n break;\n case \"R\":\n return StatusType.RETURN;\n }\n }\n catch (MenuException ex) {\n //Prints out proper error message from Menu class...\n //error text is in Error enum class\n System.out.println(\"\\n\" + ex.getMessage());\n } \n } while (status != StatusType.RETURN);\n return status;\n }", "private void processInputUntilRoomChange() {\n while (true) {\n // Get the user input\n System.out.print(\"> \");\n String input = scan.nextLine();\n\n // Determine which command they used and act accordingly\n if (input.startsWith(\"help\")) {\n this.displayCommands();\n } else if (input.startsWith(\"look\")) {\n this.displayDescription(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"get\")) {\n this.acquireItem(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"go\")) {\n if (this.movePlayer(input.substring(input.indexOf(\" \") + 1))) {\n break;\n }\n } else if (input.startsWith(\"use\")) {\n this.useItem(input.substring(input.indexOf(\" \") + 1));\n } else if (input.startsWith(\"inventory\")) {\n System.out.print(player.listInventory());\n } // The player did not enter a valid command.\n else {\n System.out.println(\"I don't know how to \" + input);\n }\n }\n }", "private String getPlayerChoice() {\n Scanner userInput = new Scanner(System.in); // Create a Scanner object\n System.out.println(\"Enter choice:\\nr = rock\\np = paper\\ns = scissors\\nq = quit\");\n return userInput.nextLine().toUpperCase(); \n }", "@java.lang.Override\r\n public String askName() {\r\n Hello.display(\"Welcome! What is your name?\");\r\n Scanner in = new Scanner(System.in);\r\n String name = in.next();\r\n return name;\r\n }", "public void AskName(String input){\r\n\t\tplayerName = input;\r\n\t}", "public void askForUserType() {\n System.out.println(\"What type of User would you like to make? (Type Attendee, Speaker, VIP, or Organizer)\");\n }", "public void processCommand(String userInput){\n if (userInput.contains(\" \")){ \n processSingleToken(userInput.split(\" \")); //Splits strings based on \" \" \n }\n \n else{\n List<String> tempStore = new ArrayList<String>();\n tempStore.add(userInput);\n String[] token = tempStore.toArray(new String[tempStore.size()]);\n processSingleToken(token);\n }\n }", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = mug.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getMugDialog(response, mugImage)\n );\n userInput.clear();\n if (input.toUpperCase().equals(\"BYE\")) {\n PauseTransition delay = new PauseTransition(Duration.seconds(1));\n delay.setOnFinished(event -> {\n Platform.exit();\n System.exit(0);\n });\n delay.play();\n }\n }", "void requestInput();", "@Override\n\tpublic void handleInput() {\n\t\t\n\t}", "private void processInput() \n\t{\n\t\tif (keys.get(Keys.RIGHT))\n\t\t{\n\t\t\tworld.getHunter().move_right();\n\t\t}\n\t\t\n\t\tif (keys.get(Keys.UP))\n\t\t{\n\t\t\tworld.getHunter().move_up();\n\t\t}\n\t\t\n\t\tif (keys.get(Keys.LEFT))\n\t\t{\n\t\t\tworld.getHunter().move_left();\n\t\t}\n\t\t\n\t\tif (keys.get(Keys.DOWN))\n\t\t{\n\t\t\tworld.getHunter().move_down();\n\t\t}\n\t\t\n\t\tif (keys.get(Keys.STEALTH))\n\t\t{\n\t\t\tworld.getHunter().setNoisiness(false);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tworld.getHunter().setNoisiness(true);\n\t\t}\n\t\t\n\t\tif (keys.get(Keys.RELOAD))\n\t\t{\n\t\t\tworld.getHunter().do_reload();\n\t\t}\n\t\t\n\t\tif (keys.get(Keys.FIRE))\n\t\t{\n\t\t\tworld.getHunter().do_fire();\n\t\t}\n\t}", "public synchronized void doStuff(String input) {\n\n\t\tif (input.equalsIgnoreCase(\"refresh\") || input.equalsIgnoreCase(\"\")) {\n\t\t\tgetSquare().refresh();\n\t\t} else if (input.equalsIgnoreCase(\"exit\")) {\n\t\t\tSystem.exit(0);\n\t\t} else if (input.equalsIgnoreCase(\"delete restaurants\")) {\n\t\t\tgetSquare().deleteAllPlaceblesOfType(Restaurant.class);\n\t\t\tSystem.out.println(\"All Restaurants deleted\");\n\t\t} else if (input.equalsIgnoreCase(\"delete hotels\")) {\n\t\t\tgetSquare().deleteAllPlaceblesOfType(Hotel.class);\n\t\t\tSystem.out.println(\"All Hotels deleted\");\n\t\t} else if (input.equalsIgnoreCase(\"delete fences\")) {\n\t\t\tgetSquare().deleteAllPlaceblesOfType(Fence.class);\n\t\t\tSystem.out.println(\"All Fences deleted\");\n\t\t} else if (input.equalsIgnoreCase(\"delete people\")) {\n\t\t\tgetSquare().deleteAllPlaceblesOfType(Person.class);\n\t\t\tSystem.out.println(\"All People deleted\");\n\t\t} else if (input.equalsIgnoreCase(\"clear\")) {\n\t\t\tgetSquare().clear();\n\t\t\tSystem.out.println(\"Square cleared\");\n\t\t} else if (input.startsWith(\"set sleep time to \")) {\n\t\t\ttry {\n\t\t\t\tchar[] sleepTimeStr = new char[input.length() - 18];\n\t\t\t\tinput.getChars(18, input.length(), sleepTimeStr, 0);\n\t\t\t\t\n\t\t\t\tint newSleepTime = Integer.parseInt(String.valueOf(sleepTimeStr));\n\t\t\t\tsetSleepTime(newSleepTime);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tSystem.out.println(\"Invalid input\");\n\t\t\t}\n\t\t}\n\n\t\tdrawer.setPlacebles(square.getPlacebles());\n\t\tdrawer.repaint();\n\n\t}", "private static String getMainMenuChoice()\r\n {\r\n System.out.println(\"------Main Menu------\\n\"\r\n + \"Please choose:\\n\\t'A' to add a date to the database\"\r\n + \"\\n\\t'C' to calculate the balance\"\r\n + \"\\n\\t'E' to end Prgram\");\t\t\r\n\r\n String choice = scanner.nextLine();\r\n\r\n //validate a correction response\r\n choice = validateMainMenuChoice(choice);\r\n\r\n //return cleared entry\r\n return choice;\r\n }", "public void parseInput(String userInput) {\n this.userIn = userInput;\n\n this.identifier = userIn.split(\" \")[0];\n\n switch (identifier) {\n case \"done\":\n completeTask();\n return;\n\n case \"list\":\n listAllTasks();\n return;\n\n case \"todo\":\n addToDo();\n return;\n\n case \"event\":\n addEvent();\n return;\n\n case \"deadline\":\n addDeadline();\n return;\n\n case \"delete\":\n deleteTask();\n return;\n\n case \"find\":\n findTask();\n return;\n\n default:\n ui.showListOfCommands();\n }\n }", "public String userCommand(){\n return scanner.nextLine();\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}", "private static void requestInput() {\n Scanner in = new Scanner(System.in);\n System.out.println(\"Enter Item ID\");\n int usedId = 0;\n int usedWithId = 0;\n int level = 0;\n int productId = 0;\n int xp = 0;\n int low = 0;\n int high = 0;\n Scanner scanner = new Scanner(System.in);\n while (true) {\n try {\n usedId = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Secondary Item ID\");\n usedWithId = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Level Requirement\");\n level = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Product Item ID\");\n productId = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Action XP\");\n xp = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Low Roll\");\n low = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter High Roll\");\n high = Integer.parseInt(in.nextLine());\n\n createPotionAction(usedId, usedWithId, level, productId, xp, low, high);\n } catch (NumberFormatException e) {\n System.out.println(\"Please input an integer.\");\n }\n }\n }", "public boolean specialCommand(String userinput){\n return (userinput.equals(\"get\")) || (userinput.equals(\"dir\"));\n }", "public static void actName() {\n System.out.println(\"Who is your favorite actor or actress? \");\n String actorName = sc.nextLine();\n }", "public static void handleInput(String input, String player) {\n\t\tint choice = 0;\n\t\tswitch(input.toLowerCase())\n\t\t{\n\t\t\tcase \"1\":\n\t\t\tcase \"rock\":\n\t\t\t\tchoice = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\tcase \"paper\":\n\t\t\t\tchoice = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\tcase \"scissors\":\n\t\t\t\tchoice = 3;\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t// random number from 1 to 3, if the input is none of the above.\n\t\tif (choice == 0) {\n\t\t\tchoice = random.nextInt(3) + 1;\n\t\t}\n\t\t\n\t\t// check which player sent the input.\n\t\tif(player.equals(\"playerOne\")) {\n\t\t\tPlayerBean.PLAYERONE = choice;\n\t\t} else {\n\t\t\tPlayerBean.PLAYERTWO = choice;\n\t\t}\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n Database db = new Database();\n \n while (true) {\n String input = scanner.nextLine();\n if (input.equals(\"Quit\")) {\n break;\n } else if (input.equals(\"Add\")) {\n System.out.print(\"Name: \");\n String name = scanner.nextLine();\n System.out.print(\"Latin Name: \");\n String lname = scanner.nextLine();\n db.add(name, lname);\n } else if (input.equals(\"Observation\")) {\n System.out.print(\"What was observed:? \");\n String name = scanner.nextLine();\n db.addObservant(name);\n } else if (input.equals(\"Show\")) {\n System.out.print(\"What? \");\n String name = scanner.nextLine();\n db.printBird(name);\n } else if (input.equals(\"Statistics\")) {\n db.show();\n }\n \n }\n }", "public void userTurn(Scanner userInput)\r\n\t{\r\n\t\tSystem.out.println(\"----------Your Turn!----------\\n\");\r\n\t\tSystem.out.println(\"Lv.\" + enemy.getLevel() + \" \" + enemyName + \r\n\t\t\"\\nHP: \" + enemy.getHealth() + \"/\" + enemyHP +\r\n\t\t\"\\nDMG:\" + enemyDMG + \"\\n\");\r\n\t\tString attackOption = \"1. Attack: \".substring(0, 36) + user.getDamage() + \" dmg\";\r\n\t\tString skillOption = (\"2. \" + user.getSpell() +\": \").substring(0, 36) + user.getSkillDMG() + \" dmg\\n\";\r\n\t\tSystem.out.println(\"Lv.\" + user.getLevel() + \" \" +user.getName());\r\n\t\tSystem.out.println(attackOption);\r\n\t\tSystem.out.println(skillOption);\r\n\t\tString cmd = userInput.nextLine();\r\n\t\t\r\n\t\tif(cmd.equalsIgnoreCase(\"attack\"))\r\n\t\t{\r\n\t\t\tSystem.out.println(cmd);\r\n\t\t\tenemy.setHealth(userDMG);\r\n\t\t\tSystem.out.println(\"\\nYou attacked with \" + userDMG + \" dmg\");\r\n\t\t\tisEnemyDefeated(userInput);\r\n\t\t}\r\n\t\telse if(cmd.equalsIgnoreCase(user.getSpell()))\r\n\t\t{\r\n\t\t\tenemy.setHealth(user.getSkillDMG());\r\n\t\t\tSystem.out.println(\"\\nYou used \\\"\"+user.getSpell()+\"\\\" and made \" + user.getSkillDMG() + \" dmg to \" + enemyName);\r\n\t\t\tisEnemyDefeated(userInput);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"\\nOops Sadly you missed your attack...\");\r\n\t\t\tSystem.out.println(\"Make sure you spell the option correctly\");\r\n\t\t\tSystem.out.println(\"After all, spelling is important!\\n\");\r\n\t\t}\r\n\t}", "public void parseInput(Map gameMap, Player player) {\n String[] splitInput = playerInput.split(\" \", 0); // Splits the input into an action and an object.\n String action; // Stores the action that the user input\n String predic; // Stores the predicate of the input\n String object; // Stores the object to do action on of the input\n String object2; // Stores extra words from the input\n String ANSI_RED = \"\\u001B[31m\"; // Red text color\n String ANSI_BLUE = \"\\u001B[34m\"; // Blue text color\n prevInputs.add(splitInput);\n\n // Parses single word inputs\n // Stores the action of the input\n if (splitInput.length == 1) {\n action = splitInput[0];\n switch (action.toLowerCase()) {\n case \"cheat\":\n System.out.println(player.getHint());\n break;\n case \"superbrief\":\n System.out.println(\"Dialogue length set to superbrief.\");\n player.changeDialogueState(\"superbrief\");\n break;\n case \"brief\":\n System.out.println(\"Dialogue length set to brief.\");\n player.changeDialogueState(\"brief\");\n break;\n case \"verbose\":\n System.out.println(\"Dialogue length set to verbose.\");\n player.changeDialogueState(\"verbose\");\n break;\n case \"autoplay\":\n case \"auto\":\n System.out.println(\"Turning on autoplay.\");\n player.changeDialogueState(\"autoplay\");\n break;\n case \"again\":\n case \"g\":\n prevInputs.remove(splitInput);\n playerInput = \"\";\n for (int i = 0; i < prevInputs.get(prevInputs.size() - 1).length; i++) {\n playerInput = playerInput.concat(prevInputs.get(prevInputs.size() - 1)[i]);\n playerInput = playerInput.concat(\" \");\n }\n parseInput(gameMap, player);\n return;\n case \"i\":\n case \"inventory\":\n case \"inv\":\n player.getInventory();\n break;\n case \"look\":\n case \"l\":\n player.checkArea();\n player.incrementTurn();\n break;\n case \"equipment\":\n player.getEquipment();\n break;\n case \"diagnose\":\n player.diagnose();\n player.incrementTurn();\n break;\n case \"hi\":\n case \"hello\":\n System.out.println(\"You said 'Hello'\");\n player.incrementTurn();\n break;\n case \"jump\":\n System.out.println(\"For whatever reason, you jumped in place.\");\n player.incrementTurn();\n break;\n case \"walk\":\n System.out.println(\"You walked around the area but you've already seen everything.\");\n player.incrementTurn();\n break;\n case \"save\":\n System.out.println(\"Saving Game...\");\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n player.save();\n break;\n case \"restore\":\n System.out.println(\"Loading Game...\");\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n player.load(gameMap);\n player.checkArea();\n break;\n case \"restart\":\n player.setHealth(0);\n break;\n case \"status\":\n player.getStatus();\n break;\n case \"score\":\n System.out.println(\"SCORE: \" + player.getScore());\n break;\n case \"quit\":\n case \"q\":\n System.out.print(\"Thank you for playing!\");\n System.exit(0);\n case \"wait\":\n case \"z\":\n case \"stay\":\n System.out.println(\"You stood in place.\");\n player.incrementTurn();\n break;\n case \"north\":\n case \"south\":\n case \"east\":\n case \"west\":\n case \"northeast\":\n case \"northwest\":\n case \"southeast\":\n case \"southwest\":\n case \"n\":\n case \"s\":\n case \"e\":\n case \"w\":\n case \"ne\":\n case \"nw\":\n case \"se\":\n case \"sw\":\n if (player.getLocation().getConnectedRoom(action.toLowerCase()) != null)\n player.enterDoor(player.getLocation().getConnectedRoom(action.toLowerCase()));\n player.incrementTurn();\n break;\n case \"version\":\n System.out.println(\"Version: \" + VERSION);\n return;\n default:\n System.out.println(\"Invalid Command\");\n return;\n }\n }\n\n // Parses two word inputs\n if (splitInput.length == 2) {\n action = splitInput[0]; // Stores the action that the user inputs\n object = splitInput[1]; // Stores the object that the user inputs\n switch (action.toLowerCase()) {\n case \"attack\":\n if (player.getLocation().isCharaInRoom(object.toUpperCase())) {\n player.attack(player.getLocation().getChara(object.toUpperCase()));\n }\n else {\n System.out.println(\"There is no \" + ANSI_RED + object.toLowerCase() + ANSI_RESET + \" here.\");\n }\n player.incrementTurn();\n break;\n case \"go\":\n if (player.getLocation().getConnectedRoom(object.toLowerCase()) != null)\n player.enterDoor(player.getLocation().getConnectedRoom(object.toLowerCase()));\n else\n System.out.println(\"There is nothing in that direction.\");\n player.incrementTurn();\n break;\n case \"enter\":\n case \"exit\":\n if (player.getLocation().getConnectedRoom(action.toLowerCase(), object.toLowerCase()) != null)\n player.enterDoor(player.getLocation().getConnectedRoom(action.toLowerCase(), object.toLowerCase()));\n player.incrementTurn();\n break;\n case \"break\":\n if (player.getLocation().getConnectedRoom(object.toLowerCase()) != null) {\n if (player.getLocation().getConnectedRoom(object.toLowerCase()).getLocked()) {\n player.getLocation().getConnectedRoom(object.toLowerCase()).unlock();\n System.out.println(\"You broke down the door.\");\n } else\n System.out.println(\"There is nothing to break down.\");\n }\n else\n System.out.println(\"There is nothing to break down.\");\n player.incrementTurn();\n break;\n case \"equip\":\n player.equipFromInv(object.toUpperCase());\n player.incrementTurn();\n break;\n case \"unequip\":\n player.equipToInv(object.toUpperCase());\n player.incrementTurn();\n break;\n case \"examine\":\n if (player.inInventory(object.toUpperCase()))\n player.examineInv(player.getItem(object.toUpperCase()));\n else if (player.inEquip(object.toUpperCase()))\n player.examineInv(player.getEquip(object.toUpperCase()));\n else\n System.out.println(\"You do not have: \" + ANSI_BLUE + object.toUpperCase() + ANSI_RESET);\n break;\n case \"read\":\n if (player.inInventory(object.toUpperCase()))\n player.examineInv(player.getItem(object.toUpperCase()));\n else\n System.out.println(\"You do not have: \" + ANSI_BLUE + object.toUpperCase() + ANSI_RESET);\n break;\n case \"get\":\n case \"take\":\n if (player.getLocation().isObjInRoom(object.toUpperCase())) {\n ZorkObj zorkObj = player.getLocation().getObj(object.toUpperCase());\n if (player.checkWeight(zorkObj))\n player.addItemToInventory(zorkObj);\n else {\n System.out.println(ANSI_BLUE + zorkObj.getName() + ANSI_RESET + \" is too heavy to pick up.\");\n player.getLocation().addObject(zorkObj);\n }\n }\n else if (object.toLowerCase().equals(\"all\")) {\n int objectsInRoom = player.getLocation().getObjLength();\n\n if (objectsInRoom == 0)\n System.out.println(\"There are no items in this room.\");\n\n for (int i = 0; i < objectsInRoom; i++) {\n ZorkObj zorkObj = player.getLocation().getObj();\n if (player.checkWeight(zorkObj) && player.checkInvSize()){\n player.addItemToInventory(zorkObj);\n }\n else if (!player.checkInvSize()) {\n System.out.println(\"Your inventory is too full.\");\n player.getLocation().addObject(zorkObj);\n }\n else {\n System.out.println(ANSI_BLUE + zorkObj.getName() + ANSI_RESET + \" is too heavy to pick up.\");\n player.getLocation().addObject(zorkObj);\n }\n }\n }\n else\n System.out.println(\"There is no item named \" + ANSI_BLUE + object + ANSI_RESET + \" in this area.\");\n player.incrementTurn();\n break;\n case \"drop\":\n player.removeItemFromChara(object.toUpperCase());\n player.incrementTurn();\n break;\n default:\n System.out.println(\"Invalid Command\");\n return;\n }\n }\n\n else if (splitInput.length == 3) {\n action = splitInput[0]; // Stores the action that the user inputs\n predic = splitInput[1]; // Stores the predicate of the input\n object = splitInput[2]; // Stores the object that the user inputs\n switch (action.toLowerCase()) {\n case \"attack\":\n if (player.getLocation().isCharaInRoom((predic + \" \" + object).toUpperCase())) {\n player.attack(player.getLocation().getChara((predic + \" \" + object).toUpperCase()));\n }\n else {\n System.out.println(\"There is no \" + ANSI_RED + (predic + \" \" + object).toLowerCase() + ANSI_RESET + \" here.\");\n }\n player.incrementTurn();\n break;\n case \"go\":\n switch (predic.toLowerCase()) {\n case \"down\":\n case \"up\":\n case \"in\":\n case \"out\":\n if (player.getLocation().getConnectedRoom(predic.toLowerCase(), object.toLowerCase()) != null)\n player.enterDoor(player.getLocation().getConnectedRoom(predic.toLowerCase(), object.toLowerCase()));\n player.incrementTurn();\n break;\n default:\n System.out.println(\"Invalid Command.\");\n break;\n }\n break;\n case \"look\":\n switch (predic.toLowerCase()) {\n case \"inside\":\n if (player.getLocation().isObjInRoom(object.toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel(object.toUpperCase()).getInsideDesc());\n else if(player.getLocation().isCharaInRoom((object).toUpperCase()))\n System.out.println(player.getLocation().getChara((object).toUpperCase()).getInsideDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"under\":\n case \"below\":\n if (player.getLocation().isObjInRoom(object.toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel(object.toUpperCase()).getUnderDesc());\n else if(player.getLocation().isCharaInRoom((object).toUpperCase()))\n System.out.println(player.getLocation().getChara((object).toUpperCase()).getUnderDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"behind\":\n if (player.getLocation().isObjInRoom(object.toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel(object.toUpperCase()).getBehindDesc());\n else if(player.getLocation().isCharaInRoom((object).toUpperCase()))\n System.out.println(player.getLocation().getChara((object).toUpperCase()).getBehindDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"through\":\n if (player.getLocation().isObjInRoom(object.toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel(object.toUpperCase()).getThroughDesc());\n else if(player.getLocation().isCharaInRoom((object).toUpperCase()))\n System.out.println(player.getLocation().getChara((object).toUpperCase()).getThroughDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"at\":\n if (player.getLocation().isObjInRoom(object.toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel(object.toUpperCase()).getDescription());\n else if (player.getLocation().isCharaInRoom(object.toUpperCase()))\n player.examineChara(player.getLocation().getChara(object.toUpperCase()));\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n default:\n System.out.println(\"Invalid Command.\");\n return;\n }\n break;\n case \"talk\":\n case \"speak\":\n if (\"to\".equals(predic)) {\n if (player.getLocation().isObjInRoom(object.toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel(object.toUpperCase()).getDialogue());\n else if (player.getLocation().isCharaInRoom(object.toUpperCase()))\n System.out.println(player.getLocation().getChara(object.toUpperCase()).getDialogue());\n else\n System.out.println(\"There is nothing to talk to.\");\n player.incrementTurn();\n } else {\n System.out.println(\"Invalid Command.\");\n }\n break;\n case \"in\":\n case \"enter\":\n if (player.getLocation().getConnectedRoom(action.toLowerCase(), object.toLowerCase()) != null)\n player.enterDoor(player.getLocation().getConnectedRoom(action.toLowerCase(), object.toLowerCase()));\n else\n System.out.println(\"There is nothing to enter.\");\n player.incrementTurn();\n break;\n case \"out\":\n case \"exit\":\n if (player.getLocation().getConnectedRoom(action.toLowerCase(), object.toLowerCase()) != null)\n player.enterDoor(player.getLocation().getConnectedRoom(action.toLowerCase(), object.toLowerCase()));\n else\n System.out.println(\"There is nothing to exit.\");\n player.incrementTurn();\n break;\n case \"get\":\n case \"take\":\n if (predic.toLowerCase().equals(\"off\")) {\n player.equipToInv(object.toUpperCase());\n player.incrementTurn();\n break;\n }\n else if (player.getLocation().getObj((predic + object).toUpperCase()) != null) {\n player.addItemToInventory(player.getLocation().getObj((predic + object).toUpperCase()));\n System.out.println(\"You have picked up: \" + predic + \" \" + object);\n }\n else\n System.out.println(\"There is no item named \" + predic + \" \" + object + \" in this area.\");\n player.incrementTurn();\n break;\n default:\n System.out.println(\"Invalid Command\");\n return;\n }\n }\n\n else if (splitInput.length == 4) {\n action = splitInput[0]; // Stores the action that the user inputs\n predic = splitInput[1]; // Stores the predicate of the input\n object = splitInput[2]; // Stores the object that the user inputs\n object2 = splitInput[3]; // Stores extra words that the user inputs\n switch (action.toLowerCase()) {\n case \"attack\":\n if (player.getLocation().isCharaInRoom((predic + \" \" + object + \" \" + object2).toUpperCase())) {\n player.attack(player.getLocation().getChara((predic + \" \" + object + \" \" + object2).toUpperCase()));\n }\n else {\n System.out.println(\"There is no \" + ANSI_RED + (predic + \" \" + object + \" \" + object2).toLowerCase() + ANSI_RESET + \" here.\");\n }\n player.incrementTurn();\n break;\n case \"look\":\n switch (predic.toLowerCase()) {\n case \"inside\":\n if (player.getLocation().isObjInRoom((object + \" \" + object2).toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel((object + \" \" + object2).toUpperCase()).getInsideDesc());\n else if(player.getLocation().isCharaInRoom(((object + \" \" + object2)).toUpperCase()))\n System.out.println(player.getLocation().getChara(((object + \" \" + object2)).toUpperCase()).getInsideDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"under\":\n case \"below\":\n if (player.getLocation().isObjInRoom((object + \" \" + object2).toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel((object + \" \" + object2).toUpperCase()).getUnderDesc());\n else if(player.getLocation().isCharaInRoom(((object + \" \" + object2)).toUpperCase()))\n System.out.println(player.getLocation().getChara(((object + \" \" + object2)).toUpperCase()).getUnderDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"behind\":\n if (player.getLocation().isObjInRoom((object + \" \" + object2).toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel((object + \" \" + object2).toUpperCase()).getBehindDesc());\n else if(player.getLocation().isCharaInRoom(((object + \" \" + object2)).toUpperCase()))\n System.out.println(player.getLocation().getChara(((object + \" \" + object2)).toUpperCase()).getBehindDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"through\":\n if (player.getLocation().isObjInRoom((object + \" \" + object2).toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel((object + \" \" + object2).toUpperCase()).getThroughDesc());\n else if(player.getLocation().isCharaInRoom(((object + \" \" + object2)).toUpperCase()))\n System.out.println(player.getLocation().getChara(((object + \" \" + object2)).toUpperCase()).getThroughDesc());\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n case \"at\":\n if (player.getLocation().isObjInRoom((object + \" \" + object2).toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel((object + \" \" + object2).toUpperCase()).getDescription());\n else if (player.getLocation().isCharaInRoom((object + \" \" + object2).toUpperCase()))\n player.examineChara(player.getLocation().getChara((object + \" \" + object2).toUpperCase()));\n else\n System.out.println(\"Object is not found in this area.\");\n player.incrementTurn();\n break;\n default:\n System.out.println(\"Invalid Command.\");\n break;\n }\n break;\n case \"talk\":\n case \"speak\":\n if (\"to\".equals(predic)) {\n if (player.getLocation().isObjInRoom((object + \" \" + object2).toUpperCase()))\n System.out.println(player.getLocation().getObjNoDel((object + \" \" + object2).toUpperCase()).getDialogue());\n else if (player.getLocation().isCharaInRoom((object + \" \" + object2).toUpperCase()))\n System.out.println(player.getLocation().getChara((object + \" \" + object2).toUpperCase()).getDialogue());\n else\n System.out.println(\"There is nothing to talk to.\");\n player.incrementTurn();\n } else {\n System.out.println(\"Invalid Command.\");\n }\n break;\n case \"use\":\n if (predic.toUpperCase().equals(\"KEY\")) {\n if (object.toUpperCase().equals(\"ON\")) {\n if (player.getLocation().getConnectedRoom(action.toLowerCase(), object2.toLowerCase()) != null) {\n if (player.getLocation().getConnectedRoom(action.toLowerCase(), object2.toLowerCase()).getLocked()) {\n player.getLocation().getConnectedRoom(action.toLowerCase(), object2.toLowerCase()).unlock();\n System.out.println(\"You unlocked the door.\");\n } else\n System.out.println(\"You do not have a key.\");\n } else {\n if (player.inInventory(\"KEY\"))\n System.out.println(\"There is nothing to use a key on.\");\n else\n System.out.println(\"You do not have a key.\");\n }\n }\n }\n player.incrementTurn();\n break;\n default:\n System.out.println(\"Invalid Command\");\n return;\n }\n }\n else if (splitInput.length > 4) {\n System.out.println(\"Invalid Command\");\n return;\n }\n\n // Makes the enemies that are in the 'aggressive' state in the same room as the player attack the player.\n ArrayList<Character> NPCsInRoom = player.getLocation().getCharacters();\n if (NPCsInRoom.size() > 0) {\n for (Character character : NPCsInRoom) {\n if (character.getHealth() > 0 && character.getState().getStateName().equals(\"agg\")) {\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n System.out.println(ANSI_RED + character.getName() + ANSI_RESET + \" is attacking!\");\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n character.attack(player);\n }\n }\n }\n }", "public static void main(String[] args) {\n Scanner myObj = new Scanner(System.in);\n Scanner aGame = new Scanner(System.in);\n String userName;\n String spiel;\n\n System.out.println(\"Wie heißt du?\");\n userName = myObj.nextLine();\n\n System.out.println(\"Guten Tag \" + userName + \". Möchtest du ein Spiel spielen (Y/N)\");\n spiel = aGame.nextLine();\n\n if (spiel.equals(\"Y\") || spiel.equals(\"y\")) {\n System.out.println(\"Super! Auf gehts!\");\n } else if (spiel.equals(\"N\") || spiel.equals(\"n\")) {\n System.out.println(\"Schade.\");\n } else {\n System.out.println(\"Bitte antworte mit Y oder N\");\n }\n\n\n }", "public void userForm(){\n\t\tSystem.out.print(menu);\n\t\tScanner input = new Scanner(System.in);\n\t\tselection = input.nextInt();\n\t\tmenuActions(selection);\n\t\t}", "private String printMainMenu() {\n System.out.println(\"Please make a selection:\");\n System.out.println(\"1: List all tools\");\n System.out.println(\"2: Search for tool by toolName\");\n System.out.println(\"3: Search for tool by toolID\");\n System.out.println(\"4: Check item quantity\");\n System.out.println(\"5: Decrease item quantity\");\n System.out.println(\"6: Make New Order/Append Today's Order\");\n System.out.println(\"7: View Current Orders\");\n System.out.println(\"8: View Supplier List\");\n System.out.println(\"9: Quit\");\n String selection = this.userInput.nextLine();\n return selection;\n }", "public void userNameInput()\n {\n if(forgotPasswordModel.userExists(textBox1.getText())) {\n\n user = forgotPasswordModel.getUser(textBox1.getText());\n userName = false;\n secQuestion = true;\n String txt = \"Your secret question is: \" + user.getSecretQ();\n labelHeader.setText(txt);\n textBox1Label.setText(\"Answer\");\n textBox1.promptTextProperty().set(\"Security Question Answer\");\n textBox1.setText(\"\");\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setContentText(\"Username does not exist!\");\n alert.show();\n }\n }", "public void processUserInput(String input) {\n\t\tString[] request = this.getArguments(input); \n\t\tString command = request[0]; \n\n\t\ttry {\n\t\t\tswitch (command) {\n\t\t\t\tcase TUICommands.START_SESSION:\n\t\t\t\t\tif (!this.sessionActive) {\n\t\t\t\t\t\tthis.showNamedMessage(\"Initiating session with server...\");\n\t\t\t\t\t\twhile (!this.requestSession()) {\n\t\t\t\t\t\t\ttextUI.getBoolean(\"Try again?\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.showNamedMessage(\"Session is already active\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\n\n\t\t\t\tcase TUICommands.LIST_FILES: \n\t\t\t\t\tthis.showNamedMessage(\"Requesting list of files...\");\n\t\t\t\t\tif (!this.requestListFiles()) { \n\t\t\t\t\t\tthis.showNamedError(\"Retrieving list of files failed\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TUICommands.LIST_FILES_LOCAL: \n\t\t\t\t\tthis.showNamedMessage(\"Making list of local files...\");\n\t\t\t\t\tthis.printArrayOfFile(this.getLocalFiles()); \n\t\t\t\t\tbreak;\n\n\t\t\t\tcase TUICommands.DOWNLOAD_SINGLE:\n\t\t\t\t\tFile fileToDownload = this.selectServerFile();\n\t\t\t\t\tif (!this.downloadSingleFile(fileToDownload)) {\n\t\t\t\t\t\tthis.showNamedError(\"Downloading file failed\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TUICommands.UPLOAD_SINGLE:\n\t\t\t\t\tFile fileToUpload = this.selectLocalFile();\n\t\t\t\t\tif (!this.uploadSingleFile(fileToUpload)) { \n\t\t\t\t\t\tthis.showNamedError(\"Uploading file failed\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TUICommands.DELETE_SINGLE:\n\t\t\t\t\tFile fileToDelete = this.selectServerFile();\n\t\t\t\t\tif (!this.deleteSingleFile(fileToDelete)) { \n\t\t\t\t\t\tthis.showNamedError(\"Deleting file failed\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase TUICommands.CHECK_INTEGRITY:\n\t\t\t\t\tFile fileToCheck = this.selectLocalFile();\n\t\t\t\t\tif (!this.checkFile(fileToCheck)) { \n\t\t\t\t\t\tthis.showNamedError(\"Checking file failed\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TUICommands.UPLOAD_MANAGER:\n\t\t\t\t\tif (!this.helperManager(this.uploads)) { \n\t\t\t\t\t\tthis.showNamedError(\"Upload manager failed!\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase TUICommands.DOWNLOAD_MANAGER:\n\t\t\t\t\tif (!this.helperManager(this.downloads)) {\n\t\t\t\t\t\tthis.showNamedError(\"Download manager failed!\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TUICommands.HELP:\n\t\t\t\t\tthis.textUI.printHelpMenu();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase TUICommands.EXIT:\n\t\t\t\t\tthis.shutdown();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tthis.showNamedError(\"Unknow command received (and ignoring it)\"); \n\t\t\t}\n\t\t\tthis.showNamedMessage(\"... done!\");\n\t\t} catch (IOException | PacketException | UtilDatagramException e) {\n\t\t\tthis.showNamedError(\"Something went wrong: \" + e.getLocalizedMessage());\n\t\t}\n\t}", "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 }", "public Game()\n {\n Scanner userInput = new Scanner(System.in); // Create a Scanner object\n System.out.println(\"Get player name\"); \n playerName = userInput.nextLine(); \n }", "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}", "public static void checkFromUser() {\n\t\tif (askUser(\"Please type y to execute program and any other key to stop\").contentEquals(\"y\")) {\n\t\t\tSystem.out.println(\"Continuing\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Terminating program\");\n\t\t\tSystem.exit(0); \n\t\t}\n\t\tSystem.out.println(\"Calculating the greatest house income, the greatest income after expenditure and greatest savings from the given 3 families\");\n\t}", "@Override\r\n public boolean doAction(String[] inputs) {\n String playersName = inputs[0];\r\n //player = savePlayer(playersName)\r\n Player player = GameControl.savePlayer(playersName);\r\n //IF player == null\r\n if (player == null) {\r\n System.out.println(\"Could not create the player.\"\r\n + \"Enter a different name.\");\r\n //RETURN false // Repeats the StartProgramView\r\n return false;\r\n } else {\r\n System.out.println(\"****************************************\"\r\n + \" Hello\" + playersName + \",\"\r\n + \" Welcome to Delirium. Good luck!\"\r\n + \"****************************************\");\r\n }\r\n //mainMenuView = Create a new MainMenuView object\r\n MainMenuView mainMenuView = new MainMenuView();\r\n mainMenuView.display();\r\n return true;\r\n }", "public static void getCommand(int inputCommand){\n\t\t\n\t\t//Inputs for main menu\n\t\t//Note: I'm not exactly sure why there is a repeated boolean statement, but when it is removed, the program\n\t\t//fails to perform properly\n\t\tif (screenNumber == ID_MAIN_MENU){\n\t\t\tif (screenNumber == ID_MAIN_MENU){\n\t\t\t\tif (inputCommand == 0){\n\t\t\t\t\n\t\t\t\t\t//Prompting the user to create a new save\n\t\t\t\t\t/*\n\t\t\t\t\tSystem.out.println(\"Create new save? (Type 'y' to overwrite save)\");\n\t\t\t\t\t\n\t\t\t\t\tScanner sc = new Scanner(System.in);\n\t\t\t\t\tString input = sc.nextLine();\n\t\t\t\t\tif(input.length() > 0){\n\n\t\t\t\t\t\t\tchar inputChar = input.charAt(0);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (inputChar == 'y'){\n\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\tplayer = new Player();\n\t\t\t\t\t\tMainMenu.createSave(player);\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t*/\n\t\t\t\t\t\n\t\t\t\t\t//If the player created a new save, then initialize the game\n\t\t\t\t\tif (player != null){\n\t\t\t\t\t\tshop = new Shop();\n\t\t\t\t\t\tshop.setCurLevelMemory(-1);\n\t\t\t\t\t\tscreenNumber = ID_PRE_BATTLE_CUTSCENE;\n\t\t\t\t\t\tCutscene.loadCutscene(player.getCurLevel(), true);\n\t\t\t\t\t\tgui.initializeCutscene();\n\t\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}else if (inputCommand == 1){\n\t\t\t\t\tplayer = MainMenu.loadSave();\n\t\t\t\t\topenMenu(ID_SUB_MENU);\n\t\t\t\t\t\n\t\t\t\t}else if (inputCommand == 2){\n\t\t\t\t\tMainMenu.exitGame();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (player != null){\n\t\t\t\t\tshop = new Shop();\n\t\t\t\t\tscreenNumber = ID_PRE_BATTLE_CUTSCENE;\n\t\t\t\t\tCutscene.loadCutscene(player.getCurLevel(), true);\n\t\t\t\t\tgui.initializeCutscene();\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else if (inputCommand == 1){\n\t\t\t\tplayer = MainMenu.loadSave();\n\t\t\t\topenMenu(ID_SUB_MENU);\n\t\t\t\t\n\t\t\t}else if (inputCommand == 2){\n\t\t\t\tMainMenu.exitGame();\n\t\t\t}\n\t\n\t\t//Inputs for sub menu\n\t\t}else if (screenNumber == ID_SUB_MENU){\n\t\t\t\n\t\t\tif (inputCommand == 0){\n\t\t\t\t\n\t\t\t\tscreenNumber = ID_BATTLE;\n\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t\n\t\t\t\tgui.setUnits(player.getCharacters(), map.getEnemies());\n\t\t\t\t\n\t\t\t\tgui.setBoard(board, mapWidth, mapHeight, map);\n\t\t\t\tplayer.resetAllHeroesForNewLevel();\n\t\t\t\t\n\t\t\t}else if (inputCommand == 1){\n\t\t\t\topenMenu(ID_INVENTORY_MENU);\n\t\t\t\tprevScreen = ID_SUB_MENU;\n\t\t\t}else if (inputCommand == 2){\n\t\t\t\t\n\t\t\t\t//Open character menu\n\t\t\t\topenMenu(ID_CHARACTER_MENU);\n\t\t\t}else if (inputCommand == 3){\n\t\t\t\t\n\t\t\t\t//Opening shop\n\t\t\t\topenMenu(ID_SHOP_MENU);\n\t\t\t}else if(inputCommand == 4){\n\t\t\t\tMainMenu.createSave(player);\n\t\t\t}\n\t\t\n\t\t//Inputs for intermediate menu\n\t\t}else if (screenNumber == ID_INTERMEDIATE_MENU){\n\t\t\n\t\t\tif(inputCommand == 0){\n\t\t\t\t\n\t\t\t\tif (player.getCurLevel() < NUM_LEVELS){\n\t\t\t\t\tscreenNumber = ID_PRE_BATTLE_CUTSCENE;\n\t\t\t\t\tCutscene.loadCutscene(player.getCurLevel(), true);\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t\tgui.initializeCutscene();\n\t\t\t\t}else{\n\t\t\t\t\topenMenu(ID_MAIN_MENU);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t//Inputs for cutscenes\n\t\t}else if (screenNumber == ID_PRE_BATTLE_CUTSCENE){\n\t\t\t\n\t\t\tif (inputCommand == 0){\n\t\t\t\topenMenu(ID_SUB_MENU);\n\t\t\t}\n\t\t\n\t\t//Inputs for the post battle cutscene\n\t\t}else if (screenNumber == ID_POST_BATTLE_CUTSCENE){\n\t\t\t\n\t\t\tif (inputCommand == 0 && !inBattle){\n\t\t\t\topenMenu(ID_INTERMEDIATE_MENU);\n\t\t\t}else{\n\t\t\t\t\n\t\t\t\tif (inBattle && !isEnemyAttacking){\n\t\t\t\t\tinBattle = false;\n\t\t\t\t\tscreenNumber = ID_BATTLE;\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t}else{\n\t\t\t\t\tboolean found = false;\n\t\t\t\t\tfor (int i = curEnemyAttacker + 1; i < enemyList.length && !found; i++){\n\t\t\t\t\t\tif (ai.getAttackCommands(i) != null){\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t\t\tcurEnemyAttacker = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (curEnemyAttack <= totalEnemyAttacks){\n\t\t\t\t\t\tString message = ((Enemy)enemyList[curEnemyAttacker]).getEnemyType() + \" did \" + ai.getAttackCommandsDamage(curEnemyAttacker) + \" damage to \" + ((Hero)ai.getAttackCommands(curEnemyAttacker)).getName() + \"!\";\n\t\t\t\t\t\tCutscene.loadAttackCutscene(((Enemy)enemyList[curEnemyAttacker]).getEnemyID() * -1 - 1, ai.getAttackCommands(curEnemyAttacker).getUnitID(), message, map.getTileNumber(enemyList[curEnemyAttacker].getCoordinate()));\n\t\t\t\t\t\tgui.initializeCutscene();\n\t\t\t\t\t}\n\t\t\t\t\tcurEnemyAttack++;\n\t\t\t\t\t\n\t\t\t\t\tif (curEnemyAttack > totalEnemyAttacks){\n\t\t\t\t\t\tisEnemyAttacking = false;\n\t\t\t\t\t\tif (!checkDefeat()){\n\t\t\t\t\t\t\tinBattle = false;\n\t\t\t\t\t\t\topenMenu (ID_MAIN_MENU);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i = 0; i < player.getCharacters().length; i++){\n\t\t\t\t\t\t\t\tif (heroList[i].isAlive()){\n\t\t\t\t\t\t\t\t\tunitPositions[i] = heroList[i].getCoordinate();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tunitPositions[i] = null;\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\tAlgorithm.setUnitPositions(unitPositions);\n\t\t\t\t\t\t\tscreenNumber = ID_BATTLE;\n\t\t\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t\t\t\tplayer.resetAllHeroes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t//Inputs for the inventory\n\t\t}else if (screenNumber == ID_INVENTORY_MENU){\n\t\t\t\n\t\t\tif (inputCommand == -1){\n\t\t\t\t\n\t\t\t\tif (!recentlySearched){\n\t\t\t\t\t\n\t\t\t\t\tif (!inBattle){\n\t\t\t\t\t\t//Return to previous menu\n\t\t\t\t\t\topenMenu(ID_SUB_MENU);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tscreenNumber = ID_ACTION_MENU;\n\t\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t\t\tinBattle = false;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\trecentlySearched = false;\n\t\t\t\t\tgui.setItemSelected(0);\n\t\t\t\t\tgui.setItemsToDisplay(player.getBag().getAllItems());\n\t\t\t\t}\n\t\t\t}else if(inputCommand == -2){\n\t\t\t\tSystem.out.println(\"Enter keyword to search (by name): \");\n\t\t\t\tString searchKeyword = sc.nextLine();\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\tsearchedItemList = Algorithm.searchItemName(searchKeyword, player.getBag().getAllItems());\n\t\t\t\tgui.setItemsToDisplay(searchedItemList);\n\t\t\t\tgui.setItemSelected(0);\n\t\t\t\trecentlySearched = true;\n\t\t\t}else if (inputCommand == -4){\n\t\t\t\tSystem.out.println(\"Enter keyword to search (by price): \");\n\t\t\t\ttry{\n\t\t\t\t\tint searchKeyword = sc.nextInt();\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tsearchedItemList = Algorithm.searchItemSalePrice(searchKeyword, player.getBag().getAllItems());\n\t\t\t\t\tgui.setItemsToDisplay(searchedItemList);\n\t\t\t\t\tgui.setItemSelected(0);\n\t\t\t\t\trecentlySearched = true;\n\t\t\t\t}catch(InputMismatchException im){\n\t\t\t\t\tSystem.out.println(\"Invalid input\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else if (inputCommand == -3){\n\t\t\t\t\n\t\t\t\tItem[] items = player.getBag().getAllItems();\n\t\t\t\tgui.setItemSelected(0);\n\t\t\t\t\n\t\t\t\tif (menuSortType == 0){\n\t\t\t\t\tmenuSortType = 1;\n\t\t\t\t\t\n\t\t\t\t\tAlgorithm.sortItemsAlphabet(items);\n\t\t\t\t\t\n\t\t\t\t}else if (menuSortType == 1){\n\t\t\t\t\tmenuSortType = 2;\n\t\t\t\t\t\n\t\t\t\t\tAlgorithm.sortItemsPriceMinToMax(items);\n\t\t\t\t\t\n\t\t\t\t}else if (menuSortType == 2){\n\t\t\t\t\tmenuSortType = 0;\n\t\t\t\t\tAlgorithm.sortItemsPriceMaxToMin(items);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tgui.setItemsToDisplay(items);\n\t\t\t}else{\n\t\t\t\tif (recentlySearched){\n\t\t\t\t\titemSelected = searchedItemList[inputCommand];\n\t\t\t\t\topenMenu(ID_INVENTORY_ACTION_MENU);\n\t\t\t\t}else{\n\t\t\t\t\tif (player.getBag().getAllItems().length > 0){\n\t\t\t\t\t\titemSelected = player.getBag().getAllItems()[inputCommand];\n\t\t\t\t\t\topenMenu(ID_INVENTORY_ACTION_MENU);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t//Inputs for the inventory action menu\n\t\t}else if (screenNumber == ID_INVENTORY_ACTION_MENU){\n\t\t\t\n\t\t\tif (inputCommand == -1){\n\t\t\t\t//Return to inventory menu\n\t\t\t\topenMenu(ID_INVENTORY_MENU);\n\t\t\t\t\n\t\t\t\tif(recentlySearched){\n\t\t\t\t\tgui.setItemsToDisplay(searchedItemList);\n\t\t\t\t\trecentlySearched = false;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif (inputCommand == 0){\n\t\t\t\t//System.out.println(\"char menu open\");\n\t\t\t\t\tif (!inBattle){\n\t\t\t\t\t\topenMenu(ID_CHARACTER_MENU);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (player.getCharacters()[recentUnitSelected].getOtherAction()){\t\n\t\t\t\t\t\t\tplayer.useItem(itemSelected, player.getCharacters()[recentUnitSelected]);\n\t\t\t\t\t\t\tgui.setItemsToDisplay(player.getBag().getAllItems());\n\t\t\t\t\t\t\tgui.setCharactersToDisplay(player.getCharacters());\n\t\t\t\t\t\t\tif (!player.getCharacters()[recentUnitSelected].getOtherAction()) {\n\t\t\t\t\t\t\t\tscreenNumber = ID_BATTLE;\n\t\t\t\t\t\t\t\tgui.setScreenID(screenNumber);\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}else if (inputCommand == 1){\n\t\t\t\t\tplayer.setMoney(itemSelected.getSalePrice() + player.getMoney());\n\t\t\t\t\tplayer.getBag().removeItem(itemSelected);\n\t\t\t\t\t\n\t\t\t\t\topenMenu(ID_INVENTORY_MENU);\n\t\t\t\t\tgui.setMoney(player.getMoney());\n\t\t\t\t\tgui.setItemsToDisplay(player.getBag().getAllItems());\n\t\t\t\t\t\n\t\t\t\t\tif (player.getBag().getAllItems().length > 0){\n\t\t\t\t\t\tgui.setItemSelected(0);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(!inBattle){\n\t\t\t\t\t\t\topenMenu(ID_SUB_MENU);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tscreenNumber = ID_BATTLE;\n\t\t\t\t\t\t\tgui.setScreenID(screenNumber);\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//Inputs for the battle screen\n\t\t}else if (screenNumber == ID_BATTLE){\n\t\t\tinBattle = true;\n\t\t\tcheckTurnEnd();\n\t\t\t//System.out.println(inBattle + \" \" + player.getCharacters()[recentUnitSelected].getOtherAction());\n\t\t\trecentUnitSelected = inputCommand;\n\t\t\t//Open action menu and set possible moves\n\t\t\t\n\t\t\tif (inBattle && player.getCharacters()[recentUnitSelected].getOtherAction()) {\n\t\t\t\topenMenu(ID_ACTION_MENU);\n\t\t\t}\n\t\t\t\t\t//Inputs for the action menu\n\t\t}else if (screenNumber == ID_ACTION_MENU){\n\t\t\t\n\t\t\tif (inputCommand == -1){\n\t\t\t\t//Return to battle screen\n\t\t\t\tscreenNumber = ID_BATTLE;\n\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t}else if(inputCommand == 0){\n\t\t\t\t\tscreenNumber = ID_ACTION_ATTACK_MENU;\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t}else if(inputCommand == 1){\n\t\t\t\tif (player.getCharacters()[recentUnitSelected].getMoveAction()) {\n\t\t\t\t\tgui.setPossibleMoves(player.getCharacters()[recentUnitSelected].getMovementArea(map, unitPositions));\n\t\t\t\t\tscreenNumber = ID_ACTION_MOVE_MENU;\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t}\n\t\t\t}else if (inputCommand == 2) {\n\t\t\t\t\tplayer.getCharacters()[recentUnitSelected].defend();\n\t\t\t\t\tscreenNumber = ID_BATTLE;\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t}else if (inputCommand == 3){\n\t\t\t\t\t//Open inventory menu\n\t\t\t\t\topenMenu(ID_INVENTORY_MENU);\n\t\t\t}\n\t\t\t\n\t\t//Inputs for the Action Move menu\n\t\t}else if (screenNumber == ID_ACTION_MOVE_MENU){\n\t\t\tif(inputCommand == -1){\n\t\t\t\tscreenNumber = ID_ACTION_MENU;\n\t\t\t\topenMenu(screenNumber);\n\t\t\t}else if (inputCommand == 0){\n\t\t\t\t\n\t\t\t\t//Moving the unit to the desired location using the designate path, if possible\n\t\t\t\tCoordinate[] path = player.getCharacters()[recentUnitSelected].move(gui.getCursorPosition());\n\t\t\t\tif (path != null){\n\t\t\t\t\tscreenNumber = ID_ACTION_MENU;\n\t\t\t\t\tgui.setPath(path);\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t//Inputs for the Action Attack menu\n\t\t}else if (screenNumber == ID_ACTION_ATTACK_MENU){\n\t\t\tif (inputCommand == -1){\n\t\t\t\tscreenNumber = ID_ACTION_MENU;\n\t\t\t\topenMenu(screenNumber);\n\t\t\t}else{\n\t\t\t\tUnit target;\n\t\t\t\tif ((target = getUnitOn(gui.getCursorPosition())) != null && Algorithm.showAttackRange(player.getCharacters()[recentUnitSelected])[gui.getCursorPosition().getX()][gui.getCursorPosition().getY()]) {\n\t\t\t\t\t\n\t\t\t\t\t//the message is displayed by Cutscene\n\t\t\t\t\tint damage = player.getCharacters()[recentUnitSelected].calculateDamage(target);\n\t\t\t\t\tString message = ((Hero)player.getCharacters()[recentUnitSelected]).getName() + \" did \" + damage + \" damage to \" + ((Enemy)target).getEnemyType() + \"!\";\n\t\t\t\t\t\n\t\t\t\t\tif (player.getCharacters()[recentUnitSelected].attack(target)) {\n\t\t\t\t\t\ttarget.kill();\n\t\t\t\t\t\tplayer.collectReward(((Enemy)target).getGold());\n\t\t\t\t\t\t\n\t\t\t\t\t\tmessage += \"\\n\" + ((Enemy)target).getGold() + \" gold was collected!\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tunitPositions = new Coordinate[heroList.length + enemyList.length];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Initializing the unit positions\n\t\t\t\t\t\tfor (int i = 0; i < heroList.length; i++){\n\t\t\t\t\t\t\tif (heroList[i].isAlive()){\n\t\t\t\t\t\t\t\tunitPositions[i] = heroList[i].getCoordinate();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tunitPositions[i] = null;\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\t\tfor (int i = 0; i < enemyList.length; i++){\n\t\t\t\t\t\t\tif (enemyList[i].isAlive()){\n\t\t\t\t\t\t\t\tunitPositions[i + heroList.length] = enemyList[i].getCoordinate();\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tunitPositions[i + heroList.length] = null;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tAlgorithm.setUnitPositions(unitPositions);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tscreenNumber = ID_POST_BATTLE_CUTSCENE;\n\t\t\t\t\t//Playing attacking cutscene\n\t\t\t\t\tCutscene.loadAttackCutscene(player.getCharacters()[recentUnitSelected].getUnitID(), ((Enemy)target).getEnemyID() * -1 - 1, message, map.getTileNumber(player.getCharacters()[recentUnitSelected].getCoordinate()));\n\t\t\t\t\tgui.initializeCutscene();\n\t\t\t\t\tgui.setScreenID(screenNumber);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t//Inputs for the Shop menu\n\t\t}else if (screenNumber == ID_SHOP_MENU){\n\t\t\tif (inputCommand == -1){\n\t\t\t\tif (!recentlySearched){\n\t\t\t\t\t//Return to previous menu\n\t\t\t\t\topenMenu(ID_SUB_MENU);\n\t\t\t\t}else{\n\t\t\t\t\trecentlySearched = false;\n\t\t\t\t\tgui.setItemSelected(0);\n\t\t\t\t\tgui.setItemsToDisplay(shopItems);\n\t\t\t\t}\n\t\t\t}else if (inputCommand == -2){\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Enter keyword to search: \");\n\t\t\t\tString searchKeyword = sc.nextLine();\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\tsearchedItemList = Algorithm.searchItemName(searchKeyword, shopItems);\n\t\t\t\tgui.setItemsToDisplay(searchedItemList);\n\t\t\t\tgui.setItemSelected(0);\n\t\t\t\trecentlySearched = true;\n\t\t\t\t\n\t\t\t}else if (inputCommand == -4){\n\t\t\t\tSystem.out.println(\"Enter keyword to search (by price): \");\n\t\t\t\t\n\t\t\t\t//try catch structure here to ensure that the user's input is valid\n\t\t\t\ttry{\n\t\t\t\t\tint searchKeyword = sc.nextInt();\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tsearchedItemList = Algorithm.searchItemShopPrice(searchKeyword, shopItems);\n\t\t\t\t\tgui.setItemsToDisplay(searchedItemList);\n\t\t\t\t\tgui.setItemSelected(0);\n\t\t\t\t\trecentlySearched = true;\n\t\t\t\t}catch(InputMismatchException im){\n\t\t\t\t\tSystem.out.println(\"Invalid input\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else if (inputCommand == -3){\n\t\t\t\t\n\t\t\t\tgui.setItemSelected(0);\n\t\t\t\t\n\t\t\t\tif (menuSortType == 0){\n\t\t\t\t\tmenuSortType = 1;\n\t\t\t\t\t\n\t\t\t\t\tAlgorithm.sortItemsAlphabet(shopItems);\n\t\t\t\t\t\n\t\t\t\t}else if (menuSortType == 1){\n\t\t\t\t\tmenuSortType = 2;\n\t\t\t\t\t\n\t\t\t\t\tAlgorithm.sortItemsPriceMinToMax(shopItems);\n\t\t\t\t\t\n\t\t\t\t}else if (menuSortType == 2){\n\t\t\t\t\tmenuSortType = 0;\n\t\t\t\t\t\n\t\t\t\t\tAlgorithm.sortItemsPriceMaxToMin(shopItems);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tgui.setItemsToDisplay(shopItems);\n\t\t\t}else{\n\t\t\t\t\n\t\t\t\tif (player.getMoney() >= shopItems[inputCommand].getPrice()){\n\t\t\t\t\tplayer.setMoney(player.getMoney() - shopItems[inputCommand].getPrice());\n\t\t\t\t\tplayer.getBag().addItem(shopItems[inputCommand]);\n\t\t\t\t\tshop.purchaseItem(shopItems[inputCommand]);\n\t\t\t\t\tshopItems = shop.getItemsInShop();\n\t\t\t\t\tgui.setItemsToDisplay(shopItems);\n\t\t\t\t\tgui.setMoney(player.getMoney());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t//Inputs for the Character menu\n\t\t}else if (screenNumber == ID_CHARACTER_MENU){\t\t\n\t\t\tif (inputCommand == -1){\n\t\t\t\t\tif (prevScreen == ID_SUB_MENU){\n\t\t\t\t\t\topenMenu(prevScreen);\n\t\t\t\t\t}else if (prevScreen == ID_INVENTORY_ACTION_MENU){\n\t\t\t\t\t\topenMenu(ID_INVENTORY_MENU);\n\t\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (prevScreen == ID_INVENTORY_ACTION_MENU) {\n\t\t\t\t\tplayer.useItem(itemSelected, player.getCharacters()[inputCommand]);\n\t\t\t\t\tgui.setItemsToDisplay(player.getBag().getAllItems());\n\t\t\t\t\tgui.setCharactersToDisplay(player.getCharacters());\n\t\t\t\t\topenMenu (ID_INVENTORY_MENU);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void askForType() {\n System.out.println(\"What type of event will this be?\");\n System.out.println(\"1) Normal 2) Multi-Speaker 3) VIP\");\n }", "private int ManagerChoose() {\n\t\tint input = 0;\n\t\tSystem.out.println(\"1: View All Animals\");\n\t\tSystem.out.println(\"2: View All Zoo Keeper\");\n\t\tSystem.out.println(\"3: Add Zoo Keeper\");\n\t\tSystem.out.println(\"4: Delete Zoo Keeper\");\n\t\tSystem.out.println(\"5: Allocate Zoo Keepers to Ainimals\");\n\t\tSystem.out.println(\"9: Back to Start\");\n\t\tSystem.out.println(\"0: Exit\");\n\t\tinput = intKeyboardInput();\n\t\treturn input;\n\t}", "public void setInput(String input);", "static void setCurrentPlayer()\n {\n System.out.println(\"Name yourself, primary player of this humble game (or type \\\"I suck in life\\\") to quit: \");\n\n String text = input.nextLine();\n\n if (text.equalsIgnoreCase(\"I suck in life\"))\n quit();\n else\n Player.current.name = text;\n }", "@Override\n\tpublic void input() {\n\t\t\n\t}", "@FXML\n private void handleUserInput() {\n String input = userInput.getText().strip();\n String response = \" \";\n\n DialogBox userDb = null;\n DialogBox dukeDb = null;\n\n try {\n response = this.getResponse(input);\n userDb = DialogBox.getUserDialog(input, userImage);\n dukeDb = DialogBox.getDukeDialog(response, dukeImage);\n } catch (DukeException e) {\n userDb = DialogBox.getUserDialog(input, userImage);\n dukeDb = DialogBox.getDukeDialog(GUI.sendErrorMessage(e), dukeImage);\n dukeDb.modifyColorForError();\n }\n\n dialogContainer.getChildren().addAll(\n userDb,\n dukeDb\n );\n\n userInput.clear();\n\n // Exit window once duke chatbot is closed\n if (isClosed(response)) {\n System.exit(0);\n }\n }", "public static void main(String[] args) \n {\n Scanner sc = new Scanner(System.in); \n \n // String input\n System.out.print(\"What's your name? \"); \n String name = sc.nextLine(); \n \n // Print the values to check if input was correctly obtained. \n System.out.println(\"Name: \" + name); \n\n // Close the Scanner\n sc.close();\n }", "@Override\n\tprotected void processInput() {\n\t}", "public void callHelp() {\n System.out.println(\"Enter emergency number: \");\n String emergencyNeed = input.nextLine();\n this.emergencyNeed = emergencyNeed;\n if (emergencyNeed.equals(police)) {\n System.out.println(\"Calling for police!\");\n }\n else if (emergencyNeed.equals(fire)) {\n System.out.println(\"Calling for fire department!\");\n }\n else if (emergencyNeed.equals(emt)) {\n System.out.println(\"Calling for emt!\");\n }\n else {\n System.out.println(\"Invalid emergency number.\");\n }\n }", "private static void printDescription(String inputFromUser) throws IllegalArgumentException{\n for(int index = 0; index < GeneralInfo.PREFIX_COMMAND_DESCRIPTION.length(); index++){\n if(inputFromUser.charAt(index) != GeneralInfo.PREFIX_COMMAND_DESCRIPTION.charAt(index)){\n throw new IllegalArgumentException(\"The input is not a correct description request. \" +\n \"This method should not have been called\");\n }\n }\n String nameCard = inputFromUser.substring(GeneralInfo.PREFIX_COMMAND_DESCRIPTION.length());\n printDescriptionCard(nameCard);\n }", "void hellsKitchen() {\n location = \"hellsKitchen\";\n System.out.print(\"______________________________________________________________\\n\");\n System.out.println(\"\\n////// HELLS KITCHEN //////\");\n System.out.println(\"\\nYou have entered Hells Kitchen!\");\n System.out.println(\"Hells Kitchen looks dark and gloomy. Dark allys everywhere.\");\n\n System.out.println(\"Please enter [1] if you would like explore | Enter [2] if you would like to go back to base: \");\n userSwings = input.nextInt();\n\n if (userSwings == 1) {\n System.out.print(\"______________________________________________________________\\n\");\n System.out.println(\"\\nYour spider-sense goes off!!\");\n System.out.println(\"You hear sirens, it sounds like a crime!\");\n\n System.out.println(\"Do you wish to help? Enter 'yes' or 'no\");\n String userChoice = input.nextLine();\n userChoice = input.nextLine();\n\n //If user wishes to fight crime, run a crime method within the crime class\n if (userChoice.equals(\"yes\")) {\n c.carHijack();\n avengersTower();\n } else if (userChoice.equals(\"no\")) {\n avengersTower();\n }\n } else if (userSwings == 2) {\n avengersTower();\n } else {\n System.out.println(\"Please enter either 1 or 2!!\");\n hellsKitchen();\n }\n }", "public boolean handleUserInput(String userInput) {\n return this.duke.processOneCommand(userInput);\n }", "public static void main(String[] args) {\n Scanner userInput = new Scanner(System.in);\n\n //Program waiting for an input.\n System.out.println(\"Type a word and lets see if it's an abecedarian: \");\n String word = userInput.next();\n\n //Invokes method.\n if (isAbecedarian(word)) {\n System.out.println(\"The word is abecedarian!\");\n }else {\n System.out.println(\"The word is not abecedarian!\");\n }\n\n }", "public static int askUser(Scanner in)\n {\n System.out.println(\"What do you want, respectable human being?\");\n System.out.println(\"1. Add Reminder\");\n System.out.println(\"2. View Reminder\");\n System.out.println(\"3. Edit Reminder\");\n System.out.println(\"4. Delete Reminder\");\n System.out.println(\"5. Exit\");\n System.out.print(\"User Input : \");\n return in.nextInt();\n }", "protected abstract void registerInput();", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = getResponse(input);\n if (response.equals(ExitCommand.COMMAND_WORD)) {\n handleExit();\n }\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getDukeDialog(response, dukeImage)\n );\n userInput.clear();\n }", "protected static int easyIn() {\n // ADDITIONAL CHECKS?\n int a;\n debug(\"Please enter your selection: \");\n scanner = new Scanner(System.in);\n\t\ta = scanner.nextInt();\n return a;\n }", "String consoleInput();" ]
[ "0.7063478", "0.676341", "0.67306244", "0.6628697", "0.63548857", "0.63309944", "0.6247919", "0.6167359", "0.613939", "0.61361086", "0.6115435", "0.60843354", "0.60680944", "0.599572", "0.5995468", "0.59703726", "0.5957647", "0.5956577", "0.5945536", "0.5938347", "0.5933536", "0.59045076", "0.5898485", "0.5862503", "0.58345497", "0.58319104", "0.5827471", "0.5825783", "0.58256936", "0.5815418", "0.58132994", "0.5811538", "0.579627", "0.57869995", "0.5783412", "0.5778888", "0.57728344", "0.5766257", "0.5753613", "0.5751646", "0.57501346", "0.57446426", "0.5722852", "0.57225364", "0.57212156", "0.5709818", "0.57008404", "0.56987154", "0.5685677", "0.5677072", "0.5676889", "0.5670051", "0.56462383", "0.5645376", "0.56405574", "0.5633246", "0.56327075", "0.5625909", "0.5624663", "0.5624243", "0.5621621", "0.5612595", "0.5611047", "0.5610298", "0.55985224", "0.55944306", "0.5592314", "0.5591781", "0.55883", "0.55862457", "0.5585863", "0.5585208", "0.5584259", "0.5580882", "0.55796295", "0.55777305", "0.557506", "0.5573322", "0.5567807", "0.5567176", "0.5565836", "0.5561952", "0.5554461", "0.5546596", "0.5545765", "0.5543545", "0.5542244", "0.55396795", "0.5538441", "0.55339134", "0.55326694", "0.5527515", "0.5526988", "0.55266255", "0.5526342", "0.5521126", "0.5519638", "0.55173427", "0.5516017", "0.551451" ]
0.5790636
33
Disable analysis within FindBugs. Turns off loading of bug detectors.
public static void setNoAnalysis() { noAnalysis = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void hideWarnings() {\n\t\tenableWarn = false;\n\t}", "public static void disableWarning() {\n try {\n Field theUnsafe = Unsafe.class.getDeclaredField(\"theUnsafe\");\n theUnsafe.setAccessible(true);\n Unsafe u = (Unsafe) theUnsafe.get(null);\n\n Class<?> c = Class.forName(\"jdk.internal.module.IllegalAccessLogger\");\n Field logger = c.getDeclaredField(\"logger\");\n u.putObjectVolatile(c, u.staticFieldOffset(logger), null);\n } catch (ClassNotFoundException e) {\n // do nothing\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void removeBugReportProgressListener() {\n mBugReportProgressListener = null;\n }", "public static void disableDebugging(){\n DEBUG = false;\n }", "public void disableDebug() {\n this.debug = false;\n }", "protected void thoroughInspection() {}", "@Override\n\tpublic boolean isWarnEnabled() {\n\t\treturn false;\n\t}", "void unsetComplianceCheckResult();", "@Override\n\tpublic boolean isFatalEnabled() {\n\t\treturn false;\n\t}", "public void suppress() {\r\n\t\tsuppressed = true;\r\n\t}", "public void suppress() {\r\n\t\tsuppressed = true;\r\n\t}", "public void disableImplementationUpdates()\n {\n disableUpdates = true;\n }", "@Override\n public void stop() {\n if(detector != null) detector.disable(); //Make sure to run this on stop!\n }", "public void disable() {\n\t\tm_runner.disable();\n\t}", "public void setBugs(double bugs) {\r\n this.bugs = bugs;\r\n }", "public abstract void disableErrors();", "private void collectBugReport() {\n connectToCarServiceSync();\n\n if (Build.IS_USERDEBUG || Build.IS_ENG) {\n mSingleThreadExecutor.schedule(\n this::grabBtSnoopLog, ACTIVITY_FINISH_DELAY_MILLIS, TimeUnit.MILLISECONDS);\n }\n mSingleThreadExecutor.schedule(\n this::saveBugReport, ACTIVITY_FINISH_DELAY_MILLIS, TimeUnit.MILLISECONDS);\n }", "public void setIgnoreWarnings(boolean ignoreWarnings) {\n\t\tthis.ignoreWarnings = ignoreWarnings;\n\t}", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "public static void showWarnings() {\n\t\tenableWarn = true;\n\t}", "public void disableBuildHotel(){\r\n\t\tbuildHotel = false;\r\n\t}", "void disableStatistics();", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "private static void runTestCWE2() {\n}", "private static void runTestCWE2() {\n}", "public static void normalDebug(){\n enableVerbos = false;\n }", "private static void runTestCWE1() {\n}", "private static void runTestCWE1() {\n}", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "protected void stopCoreModule() {\n stopAllReporter();\n metricManager.stop();\n metricManager = new DoNothingMetricManager();\n compositeReporter = new CompositeReporter();\n }", "static void ignore() {\n }", "@Override\n public void stop() {\n detector.disable();\n }", "@Override\n\tpublic void suppress() {\n\t\tsuppressed = true;\n\t}", "@Override\n\tpublic void suppress() {\n\t\tsuppressed = true;\n\t}", "@Override\n\tpublic void suppress() {\n\t\tsuppressed = true;\n\t}", "public void skipVerify() {\n\tskipVerify = true;\n }", "public static void preventIllegalAccessWarnings()\n {\n // Example \"annoying\" trace:\n // WARNING: An illegal reflective access operation has occurred\n // WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:...)\n // WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil\n // WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations\n // WARNING: All illegal access operations will be denied in a future release\n try\n {\n Class<?> c = Class.forName(\"jdk.internal.module.IllegalAccessLogger\");\n Field f = c.getDeclaredField(\"logger\");\n f.setAccessible(true);\n f.set(null, null);\n }\n catch (Exception e)\n {\n // ignore\n }\n }", "void disable() {\n }", "@Disabled\n void ignoredTestMethod() {\n }", "private void enableDisable() {\n fixDisplayName.setEnabled(automaticFix.isSelected());\n }", "public void onDisable() {\n \n PluginDescriptionFile pdfFile = this.getDescription();\n System.out.println( pdfFile.getName() + \" version \" + pdfFile.getVersion() + \" is disabled!\" );\n }", "@Override\n protected boolean isDebugEnable() {\n return false;\n }", "@Test\n public void trackingDisabled_triggerUpdateIfNeededNotAllowed() {\n configureTrackingDisabled();\n\n // Initialize the tracker.\n assertFalse(mPackageTracker.start());\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n\n try {\n // This call should also not be allowed and will throw an exception if tracking is\n // disabled.\n mPackageTracker.triggerUpdateIfNeeded(true);\n fail();\n } catch (IllegalStateException expected) {}\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n }", "public static void checkBugginess(Ticket ticket){\n\t\tfor (String path: ticket.getBugFiles()) {\n\t\t\t\n\t\t\tfor (Release rel: ticket.getAv()) {\n\t\t\t\t\n\t\t\t\t\tfor (ReleaseFile rf: rel.getReleaseFiles()) {\n\t\t\t\t\t\t//if a file is called *path* or was called *path* set bugginess true\t\t\n\t\t\t\t\t\tif (rf.getChange().getPaths().contains(path)) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\trf.setBugginess(true);\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}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t}\n\t}", "public void disable()\r\n\t{\r\n\t\tenabled = false;\r\n\t}", "private static void removeBreakPoint() {\n for (int i=1;i<=dvm.getSourceCodeLength();i++) {\n dvm.setBreakPoint(i-1, false);\n }\n }", "void disable();", "void disable();", "public void disable();", "public void warningPermit();", "@Override\n public InputStreamSource getBugreportz() {\n return null;\n }", "@Override\r\n public void onDisable() {\r\n log.info(\"[SeattleSummer] plugin disabled.\");\r\n }", "@Override\n\tpublic boolean isFatalEnabled(Marker marker) {\n\t\treturn false;\n\t}", "public void engineOff(){\n engine = false;\n }", "public void collectWithoutErrors() {\r\n\t\ttry {\r\n\t\t\t// reevaluate each time to disable or reenable at runtime\r\n\t\t\tif (isNodesMonitoringDisabled()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tcollectWithoutErrorsNow();\r\n\t\t} catch (final Throwable t) { // NOPMD\r\n\t\t\tLOG.warn(\"exception while collecting data\", t);\r\n\t\t}\r\n\t}", "@Override\n public boolean canFix(Annotation annotation) {\n return false;\n }", "public static void performanceCountDisable() { }", "public void onDisable() {\n PluginDescriptionFile pdfFile = this.getDescription();\n System.out.println(pdfFile.getName() + \" version \" + pdfFile.getVersion() + \" disabled!\");\n }", "public void setAntiConvergence(boolean b){\n antiConvergence = b;\n }", "public static void traceOff() {\r\n\t\ttraceOn = false;\r\n\r\n\t}", "@SuppressWarnings(\"DM_EXIT\")\n public static void runMain(IFindBugsEngine findBugs, TextUICommandLine commandLine) throws IOException {\n boolean verbose = !commandLine.quiet() || commandLine.setExitCode();\n \n FutureValue<Collection<UpdateChecker.PluginUpdate>> \n updateHolder = null;\n if (verbose)\n updateHolder = DetectorFactoryCollection.instance().getUpdates();\n try {\n findBugs.execute();\n } catch (InterruptedException e) {\n assert false; // should not occur\n checkExitCodeFail(commandLine, e);\n throw new RuntimeException(e);\n } catch (RuntimeException e) {\n checkExitCodeFail(commandLine, e);\n throw e;\n } catch (IOException e) {\n checkExitCodeFail(commandLine, e);\n throw e;\n }\n\n int bugCount = findBugs.getBugCount();\n int missingClassCount = findBugs.getMissingClassCount();\n int errorCount = findBugs.getErrorCount();\n\n if (verbose) {\n if (bugCount > 0)\n System.err.println(\"Warnings generated: \" + bugCount);\n if (missingClassCount > 0)\n System.err.println(\"Missing classes: \" + missingClassCount);\n if (errorCount > 0)\n System.err.println(\"Analysis errors: \" + errorCount);\n if (updateHolder.isDone()) {\n try {\n Collection<PluginUpdate> updates = updateHolder.get();\n if (!DetectorFactoryCollection.instance().getUpdateChecker().updatesHaveBeenSeenBefore(updates))\n for(UpdateChecker.PluginUpdate u : updates) {\n System.err.println(u);\n }\n } catch (InterruptedException e) {\n assert true;\n }\n \n }\n }\n\n if (commandLine.setExitCode()) {\n int exitCode = 0;\n System.err.println(\"Calculating exit code...\");\n if (errorCount > 0) {\n exitCode |= ExitCodes.ERROR_FLAG;\n System.err.println(\"Setting 'errors encountered' flag (\" + ExitCodes.ERROR_FLAG + \")\");\n }\n if (missingClassCount > 0) {\n exitCode |= ExitCodes.MISSING_CLASS_FLAG;\n System.err.println(\"Setting 'missing class' flag (\" + ExitCodes.MISSING_CLASS_FLAG + \")\");\n }\n if (bugCount > 0) {\n exitCode |= ExitCodes.BUGS_FOUND_FLAG;\n System.err.println(\"Setting 'bugs found' flag (\" + ExitCodes.BUGS_FOUND_FLAG + \")\");\n }\n System.err.println(\"Exit code set to: \" + exitCode);\n\n System.exit(exitCode);\n }\n }", "public void disableLogging();", "public void nonTestCase(boolean isTestAll, boolean didCompileFail) { }", "@Override\r\n protected String internalAutomaticFix(PageAnalysis analysis) {\r\n return fix(globalFixes[0], analysis, null);\r\n }", "protected boolean bugfixesIncluded() {\n\t\treturn this.bugfixesIncluded;\n\t}", "public void test427834() throws Exception\n {\n // no warnings\n executeTidyTest(\"427834.html\");\n assertNoWarnings();\n }", "public TidyWarningBugsTest(String name)\n {\n super(name);\n }", "public void securityOff()\n {\n m_bSecurity = false;\n }", "public void disableDomainBasedUnfixing() { this.exec = this.exec.withProperty(\"sm.domainUnfix\", false); }", "void warningsForUnresolvedFragRefs()\n { \n FragRefs[] unresolved = (FragRefs[])fragRefs.values().toArray(new FragRefs[fragRefs.size()]);\n for (int i=0; i<unresolved.length; ++i)\n { \n FragRefs r = unresolved[i];\n for (int j=0; j < r.uris.size(); ++j)\n {\n Uri uri = (Uri)r.uris.get(j);\n XElem elem = (XElem)r.elems.get(j);\n warning(\"Unresolved fragment reference '\" + uri + \"'\", elem);\n }\n } \n }", "public void reportNotWorking() {\n reportNotWorking(null);\n }", "private void clearDisableComment() {\n \n disableComment_ = 0;\n }", "@Test\n public void trackingDisabled_intentHelperNotUsed() {\n configureTrackingDisabled();\n\n // Initialize the tracker.\n assertFalse(mPackageTracker.start());\n\n // Check the IntentHelper was not initialized.\n mFakeIntentHelper.assertNotInitialized();\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n }", "@Test\n public void trackingDisabled_unsolicitedResultsIgnored_withoutToken() {\n configureTrackingDisabled();\n\n // Initialize the tracker.\n assertFalse(mPackageTracker.start());\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n\n // Receiving a check result when tracking is disabled should cause the storage to be\n // reset.\n mPackageTracker.recordCheckResult(null /* checkToken */, true /* success */);\n\n // Check reliability triggering state.\n mFakeIntentHelper.assertReliabilityTriggerNotScheduled();\n\n // Assert the storage was reset.\n checkPackageStorageStatusIsInitialOrReset();\n }", "public Set<String> collectTestIssues() {\n return new HashSet<>();\n }", "public void disable ( ) {\r\n\t\tenabled = false;\r\n\t}", "void setIgnoreForRecovery(boolean value) {\n ignoreForRecovery = value;\n }", "public boolean isCollectingBugReport() {\n return mIsCollectingBugReport.get();\n }", "protected void cancelReports() {\n ACRA.getErrorReporter().deletePendingNonApprovedReports(false);\n }", "public static void disablePackageNamePermissionCache() {\n sPackageNamePermissionCache.disableLocal();\n }", "public boolean isFatalEnabled()\n/* */ {\n/* 266 */ return getLogger().isFatalErrorEnabled();\n/* */ }", "public static void disable() {\n if (lock.compareAndSet(false, true)) {\n\n RxJavaPlugins.setOnCompletableAssembly(null);\n RxJavaPlugins.setOnSingleAssembly(null);\n RxJavaPlugins.setOnMaybeAssembly(null);\n\n RxJavaPlugins.setOnObservableAssembly(null);\n RxJavaPlugins.setOnFlowableAssembly(null);\n RxJavaPlugins.setOnConnectableObservableAssembly(null);\n RxJavaPlugins.setOnConnectableFlowableAssembly(null);\n\n RxJavaPlugins.setOnParallelAssembly(null);\n\n lock.set(false);\n }\n }", "public static void forceStopExtractionCheck() {\r\n if (extractionChecker != null) {\r\n extractionChecker.stop();\r\n }\r\n }", "@Override\r\n protected String internalAutomaticFix(PageAnalysis analysis) {\r\n return fixUsingAutomaticReplacement(analysis);\r\n }", "private void unsetOneAllChecks() {\r\n\r\n checkIman.setEnabled(false);\r\n checkBonferroni.setEnabled(false);\r\n checkHolm.setEnabled(false);\r\n checkHochberg.setEnabled(false);\r\n checkHommel.setEnabled(false);\r\n checkHolland.setEnabled(false);\r\n checkRom.setEnabled(false);\r\n checkFinner.setEnabled(false);\r\n checkLi.setEnabled(false);\r\n\r\n }", "@Test\n public void disabledStdLibTest() {\n this.gui.getPreferencesManager().setStandardLibEnabled(false);\n this.destroyGUI();\n \n this.buildGUI();\n }", "protected void setIncompatibleWithSkymeld() {\n addOptions(\"--noexperimental_merged_skyframe_analysis_execution\");\n }", "void unsetScoreAnalysis();", "@Override\n\tpublic void suppress() {\n\n\t}", "public void execute() throws IOException, InterruptedException {\n\n if (FindBugs.noAnalysis)\n throw new UnsupportedOperationException(\"This FindBugs invocation was started without analysis capabilities\");\n\n Profiler profiler = bugReporter.getProjectStats().getProfiler();\n\n try {\n // Get the class factory for creating classpath/codebase/etc.\n classFactory = ClassFactory.instance();\n\n // The class path object\n createClassPath();\n\n progress.reportNumberOfArchives(project.getFileCount() + project.getNumAuxClasspathEntries());\n profiler.start(this.getClass());\n\n // The analysis cache object\n createAnalysisCache();\n\n // Create BCEL compatibility layer\n createAnalysisContext(project, appClassList, analysisOptions.sourceInfoFileName);\n\n // Discover all codebases in classpath and\n // enumerate all classes (application and non-application)\n buildClassPath();\n\n\n // Build set of classes referenced by application classes\n buildReferencedClassSet();\n\n // Create BCEL compatibility layer\n setAppClassList(appClassList);\n\n // Configure the BugCollection (if we are generating one)\n FindBugs.configureBugCollection(this);\n\n // Enable/disabled relaxed reporting mode\n FindBugsAnalysisFeatures.setRelaxedMode(analysisOptions.relaxedReportingMode);\n FindBugsDisplayFeatures.setAbridgedMessages(analysisOptions.abridgedMessages);\n\n // Configure training databases\n FindBugs.configureTrainingDatabases(this);\n\n // Configure analysis features\n configureAnalysisFeatures();\n\n // Create the execution plan (which passes/detectors to execute)\n createExecutionPlan();\n\n for (Plugin p : detectorFactoryCollection.plugins()) {\n for (ComponentPlugin<BugReporterDecorator> brp\n : p.getComponentPlugins(BugReporterDecorator.class)) {\n if (brp.isEnabledByDefault() && !brp.isNamed(explicitlyDisabledBugReporterDecorators)\n || brp.isNamed(explicitlyEnabledBugReporterDecorators))\n bugReporter = BugReporterDecorator.construct(brp, bugReporter);\n }\n }\n if (!classScreener.vacuous()) {\n bugReporter = new DelegatingBugReporter(bugReporter) {\n\n @Override\n public void reportBug(@Nonnull BugInstance bugInstance) {\n String className = bugInstance.getPrimaryClass().getClassName();\n String resourceName = className.replace('.', '/') + \".class\";\n if (classScreener.matches(resourceName)) {\n this.getDelegate().reportBug(bugInstance);\n }\n }\n };\n }\n\n if (executionPlan.isActive(NoteSuppressedWarnings.class)) {\n SuppressionMatcher m = AnalysisContext.currentAnalysisContext().getSuppressionMatcher();\n bugReporter = new FilterBugReporter(bugReporter, m, false);\n }\n\n if (appClassList.size() == 0) {\n if (analysisOptions.noClassOk) {\n System.err.println(\"No classfiles specified; output will have no warnings\");\n } else {\n throw new NoClassesFoundToAnalyzeException(classPath);\n }\n }\n\n // Analyze the application\n analyzeApplication();\n } catch (CheckedAnalysisException e) {\n IOException ioe = new IOException(\"IOException while scanning codebases\");\n ioe.initCause(e);\n throw ioe;\n } catch (OutOfMemoryError e) {\n System.err.println(\"Out of memory\");\n System.err.println(\"Total memory: \" + Runtime.getRuntime().maxMemory() / 1000000 + \"M\");\n System.err.println(\" free memory: \" + Runtime.getRuntime().freeMemory() / 1000000 + \"M\");\n\n for (String s : project.getFileList()) {\n System.err.println(\"Analyzed: \" + s);\n }\n for (String s : project.getAuxClasspathEntryList()) {\n System.err.println(\" Aux: \" + s);\n }\n throw e;\n } finally {\n clearCaches();\n profiler.end(this.getClass());\n profiler.report();\n }\n }", "@Before\n public void setUp() {\n Log.getFindings().clear();\n Log.enableFailQuick(false);\n }" ]
[ "0.61868054", "0.5770329", "0.57190186", "0.56315386", "0.5591625", "0.55770296", "0.54071873", "0.5390725", "0.5313027", "0.5261841", "0.5261841", "0.52478725", "0.5235419", "0.5223719", "0.5214988", "0.51637846", "0.5145781", "0.513929", "0.513895", "0.513895", "0.5116209", "0.5116209", "0.5100058", "0.5100058", "0.5089487", "0.5069581", "0.5058345", "0.5057259", "0.5057259", "0.5055979", "0.5055979", "0.504944", "0.504809", "0.504809", "0.5024562", "0.5024562", "0.5023433", "0.5023433", "0.502308", "0.5018205", "0.49921837", "0.49887097", "0.49887097", "0.49887097", "0.49749848", "0.49619722", "0.4939527", "0.4937475", "0.4930292", "0.49204156", "0.4919123", "0.49027324", "0.48941278", "0.48939243", "0.48888072", "0.4887034", "0.4887034", "0.48791498", "0.48788306", "0.48626313", "0.48599333", "0.4846393", "0.4837558", "0.48367506", "0.48319054", "0.48286107", "0.4813962", "0.48083186", "0.479628", "0.4795703", "0.47934866", "0.47842318", "0.47820923", "0.47783327", "0.47698098", "0.4760196", "0.47589338", "0.47587013", "0.47371408", "0.47349364", "0.47329116", "0.4727569", "0.47063076", "0.47021222", "0.47019166", "0.46870077", "0.4672021", "0.46717104", "0.4669002", "0.46614206", "0.46611533", "0.46550512", "0.46408492", "0.46294594", "0.4623618", "0.4618142", "0.461688", "0.46037027", "0.4603406", "0.4603304" ]
0.56766933
3
Set the FindBugs home directory.
public static void setHome(String home) { FindBugs.home = home; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setCarbonHome() {\n Path carbonHome = Paths.get(\"\");\n carbonHome = Paths.get(carbonHome.toString(), \"src\", \"test\");\n System.setProperty(CARBON_HOME, carbonHome.toString());\n logger.info(\"Carbon Home Absolute path set to: \" + carbonHome.toAbsolutePath());\n\n }", "private void setWorkDiretory() {\n\t\tthis.workDiretory = System.getProperty(\"user.dir\");\n\t}", "private File getHomeDirectory() {\n String brunelDir = System.getProperty(\"brunel.home\");\n File home = brunelDir != null ? new File(brunelDir) :\n new File(System.getProperty(\"user.home\"), \"brunel\");\n return ensureWritable(home);\n }", "public void setPlatformHome(final File platformHome)\n {\n this.platformHome = platformHome;\n }", "public static String getHomeDirectory() {\n\t\treturn System.getProperty(\"user.home\");\n\t}", "public File getHomeDir() {\n\t\tFile f = new File(System.getProperty(\"user.home\"),MuViChatConstants.muviHomeDir);\t\t\n if (!f.isDirectory()) {\n\t f.mkdir();\t \n\t }\n return f;\n\t}", "public static String home() {\n\n String treefsHome = stringValue(\"treefs.home\");\n if(isNullOrEmpty(treefsHome)) {\n // default home location\n treefsHome = System.getProperty(\"user.dir\");\n }\n\n return treefsHome;\n }", "public File getHome() {\r\n\t\treturn homeDir;\r\n\t}", "public void setHome(Location home) {\n this.home = home;\n }", "private static String\n\tgetDefaultPrefsDir()\n\t{\n\t\tString homeDir\t= System.getProperty( \"user.home\" );\n\t\tif ( homeDir == null )\n\t\t{\n\t\t\thomeDir\t= \".\";\n\t\t}\n\t\t\n\t\treturn( homeDir );\n\t}", "protected File getDefaultHomeDir()\n throws AntException\n {\n if( null != m_userDir )\n {\n try \n {\n checkDirectory( m_userDir, null );\n return m_userDir;\n }\n catch( final AntException ae ) {}\n }\n\n final String os = System.getProperty( \"os.name\" );\n final File candidate = \n (new File( getSystemLocationFor( os ) )).getAbsoluteFile();\n checkDirectory( candidate, \"ant-home\" );\n return candidate;\n }", "private void checkJavaHome()\n\t{\n\t\tString javaHome = System.getProperty(\"java.home\");\n \tif(!javaHome.matches(\".*jdk.*\"))\n \t{\n \t\tFile jHome = new File(javaHome);\n \t\tString[] possibleFolders = jHome.getParentFile().list();\n \t\tString match = \".*jdk\" + System.getProperty(\"java.version\");\n \t\tfor( String possibleFolder : possibleFolders)\n \t\t{\n \t\t\tif(possibleFolder.matches(match))\n \t\t\t{\n \t\t\t\tSystem.setProperty(\"java.home\", jHome.getParent() + \"\\\\\" + possibleFolder);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\tif(!javaHome.matches(\".*jdk.*\"))\n \t\t{\n \t\t\tfor( String possibleFolder : possibleFolders)\n \t\t{\n \t\t\tif(possibleFolder.matches(\".*jdk.*\"))\n \t\t\t{\n \t\t\t\tSystem.setProperty(\"java.home\", jHome.getParent() + \"\\\\\" + possibleFolder);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t} \t\t\t\n \t\t}\n \t}\n\t}", "public File getHomeDir() {\n return physicalHomeDir;\n }", "HomeDir getHome(BaseUser u);", "public static File getPlatformDir () {\n return new File (System.getProperty (\"netbeans.home\")); // NOI18N\n }", "public static void setRootDir() {\n for(int i = 0; i < rootDir.length; i++){\n Character temp = (char) (65 + i);\n Search.rootDir[i] = temp.toString() + \":\\\\\\\\\";\n }\n }", "void setKarafInstallDir(String installDir);", "public static String testHome()\n {\n if (testHome == null)\n {\n //See if we set it as a property using TestLauncher\n testHome = System.getProperty (\"jacorb.test.home\");\n\n //Try to find it from the run directory\n if (testHome == null)\n {\n URL url = TestUtils.class.getResource(\"/.\");\n\n String result = url.toString();\n if (result.matches(\"file:/.*?\"))\n {\n result = result.substring (5, result.length() - 9);\n }\n String relativePath=\"/classes/\";\n if (!pathExists(result, relativePath))\n {\n throw new RuntimeException (\"cannot find test home\");\n }\n testHome = osDependentPath(result);\n }\n }\n return testHome;\n }", "public File getJavaHome()\n {\n return javaHomeDir;\n }", "public Path getInstallationHome() {\n return home;\n }", "private static File setYdfDirectory()\r\n/* 27: */ throws IOException\r\n/* 28: */ {\r\n/* 29: 32 */ log.finest(\"OSHandler.setYdfDirectory\");\r\n/* 30: 33 */ ydfDirectory = new File(USER_HOME + \"/\" + \".yourdigitalfile\");\r\n/* 31: 34 */ ydfDirectory.mkdir();\r\n/* 32: 35 */ return ydfDirectory;\r\n/* 33: */ }", "public void setHomeworkfilepath(String homeworkfilepath) {\n this.homeworkfilepath = homeworkfilepath;\n }", "void setAppRootDirectory(String rootDir);", "private void setPwdByOS() {\n\t\t\n\t\tString home = System.getProperty(\"user.home\");\n\t\t\n\t\tif (OSUtils.isWindows()) {\n\t\t\tpwd = home + \"\\\\client\\\\\";\n\t\t\t\n\t\t} else if (OSUtils.isMac() || OSUtils.isUnix()) {\n\t\t\tpwd = home + \"/client/\";\n\t\t\t\n\t\t}\n\t\t\n\t\tboolean exists = FileUtils.createDirectory(pwd);\n\t\tif (!exists) {\n\t\t\tSystem.err.println(\"Failed to create PWD: \" + pwd);\n\t\t}\n\t\n\t}", "public static String getUserHome() {\n return System.getProperty(\"user.home\");\n }", "void doPWD()\n {\n out(System.getProperty(\"user.dir\")); //$NON-NLS-1$\n }", "private void init() {\r\n\t\t// check system property\r\n\t\tif (System.getProperty(TACOS_HOME) != null) {\r\n\t\t\tFile customHome = new File(System.getProperty(TACOS_HOME));\r\n\t\t\tif (initHome(customHome)) {\r\n\t\t\t\thomeDir = customHome;\r\n\t\t\t\tlogger.info(\"Using custom home directory ('\" + homeDir + \"')\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// custom home directory not available (or failed to initialize)\r\n\t\tFile defaultHome = new File(System.getProperty(DEFAULT_HOME), \".tacos\");\r\n\t\tif (initHome(defaultHome)) {\r\n\t\t\thomeDir = defaultHome;\r\n\t\t\tlogger.info(\"Using default home directory ('\" + homeDir + \"')\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// fallback if everything goes wrong\r\n\t\tlogger.warn(\"Using temporary directory to store files\");\r\n\t\thomeDir = new File(System.getProperty(\"java.io.tmpdir\"), \".tacos\");\r\n\t\tinitHome(homeDir);\r\n\t}", "public File getInstHomeDir() {\n \treturn this.getHomeDir(\"octHome\");\n }", "public static String setupJMeterHome() {\n if (JMeterUtils.getJMeterProperties() == null) {\n String file = \"jmeter.properties\";\n File f = new File(file);\n if (!f.canRead()) {\n System.out.println(\"Can't find \" + file + \" - trying bin/ and ../bin\");\n if (!new File(\"bin/\" + file).canRead()) {\n // When running tests inside IntelliJ\n filePrefix = \"../bin/\"; // JMeterUtils assumes Unix-style separators\n } else {\n filePrefix = \"bin/\"; // JMeterUtils assumes Unix-style separators\n }\n file = filePrefix + file;\n } else {\n filePrefix = \"\";\n }\n // Used to be done in initializeProperties\n String home=new File(System.getProperty(\"user.dir\"),filePrefix).getParent();\n System.out.println(\"Setting JMeterHome: \"+home);\n JMeterUtils.setJMeterHome(home);\n }\n return filePrefix;\n }", "@Override\n public Home defaultHome() {\n Home h = null;\n for (String ver : VER_CURRENT) {\n for (String path : WKIP) {\n if (Utilities.isWindows() && path.contains(\"AppData\")) { //NOI18N\n // issue #251710 - Gluon SceneBuilder by default installs to C:\\Users\\<username>\\AppData\\Local\\SceneBuilder\n final String appDataPath = System.getenv(\"AppData\"); //NOI18N\n if (appDataPath != null) {\n final FileObject appDataFo = FileUtil.toFileObject(new File(appDataPath)).getParent();\n h = loadHome(path.replace(VER_DELIMITER, ver).replace(APPDATA_DELIMITER, appDataFo.getPath()));\n }\n } else {\n h = loadHome(path.replace(VER_DELIMITER, ver), ver);\n }\n if (h != null) {\n return h;\n }\n }\n }\n return h;\n }", "public static void setPreferenceDirectory(String dir) {\n\t\tPREF_DIR = dir;\n\t}", "public void setHomeworkfilename(String homeworkfilename) {\n this.homeworkfilename = homeworkfilename;\n }", "protected File getFlexHomeDirectory()\n\t{\n\t\tif (!m_initializedFlexHomeDirectory)\n\t\t{\n\t\t\tm_initializedFlexHomeDirectory = true;\n\t\t\tm_flexHomeDirectory = new File(\".\"); // default in case the following logic fails //$NON-NLS-1$\n\t\t\tString flexHome = System.getProperty(\"application.home\"); //$NON-NLS-1$\n\t\t\tif (flexHome != null && flexHome.length() > 0)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tm_flexHomeDirectory = new File(flexHome).getCanonicalFile();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\t// ignore\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn m_flexHomeDirectory;\n\t}", "public static void set_RootDir(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaRootdirCmd, v);\n UmlCom.check();\n \n _root = v;\n }", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "public void setRootDir(String rootDir);", "private String getHome()\n {\n return this.bufferHome.getAbsolutePath() + \"/\";\n }", "public void setCurrentDirectory(File dir) {\r\n\tif (dir == null) dir = new File(System.getProperty(\"user.home\"));\r\n\r\n\tdir = makeAbsolute(dir);\r\n\r\n\t/**\r\n\t * Note that we compare literal paths, not canonical\r\n\t * paths. If they want the chooser to represent the\r\n\t * files at the end of a different route to the same\r\n\t * place, that's perfectly legitimate. See NextStep\r\n\t * for e.g.\r\n\t */\r\n\tif (curDir == null || !curDir.equals(dir)) {\r\n\t invalidateCache();\r\n\t File oldDir = curDir;\r\n\t curDir = dir;\r\n\t firePropertyChange(\"currentDirectory\", oldDir, dir);\r\n\t fireContentsChanged();\r\n\t}\r\n }", "private void setDefaultPath(){\n\t\tdownloadPath = System.getProperty(\"user.home\") + File.separator + \"Downloads\" + File.separator;\n\t\tif(!downloadPath.endsWith(File.separator)){\n\t\t\tdownloadPath += File.separator;\n\t\t}\n\t\tcurrentPath.setText(downloadPath);\n\t\tcurrentPath.setToolTipText(downloadPath);\n\t}", "public void setApplicationDir( String path ) {\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n Editor editor = preferences.edit();\r\n editor.putString(LibraryConstants.PREFS_KEY_BASEFOLDER, path);\r\n editor.commit();\r\n resetManager();\r\n }", "@Test\n public void testSetLastHomePath() {\n System.out.println(\"setLastHomePath\");\n Path aLastHomePath = null;\n Setting.setLastHomePath(aLastHomePath);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "void doHome()\n\t{\n\t\ttry\n\t\t{\n\t\t\tLocation l = getCurrentLocation();\n\t\t\tSourceFile file = l.getFile();\n\t\t\tint module = file.getId();\n\t\t\tint line = l.getLine();\n\n\t\t\t// now set it\n setListingPosition(module, line);\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"currentLocationUnknown\")); //$NON-NLS-1$\n\t\t}\n\t}", "Preferences systemRoot();", "@Override\r\n\tpublic String getUserHome() throws FileSystemUtilException\r\n\t{\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":test()\");\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tconnect(); \r\n\t\t\tString command = \"pwd\";\t\t\t\r\n\t\t\tint signal = executeSimpleCommand(command);\r\n\t\r\n\t\t\tif(signal != 0)\r\n\t\t\t{\t\t\t \r\n\t\t\t\tthrow new FileSystemUtilException(\"ET0030\");\r\n\t\t\t}\r\n\t\t\tdisconnect();\t\t\r\n\t\t\tString[] dirName = getFileNamesArray(output);\r\n\t\t\tlogger.debug(\"UserHome is : \"+dirName[0]);\r\n\t\t\tlogger.debug(\"End: \"+getClass().getName()+\":test()\");\r\n\t\t\treturn dirName[0];\r\n\t\t}\r\n\t\t\r\n\t\tcatch(FileSystemUtilException ee)\r\n\t\t{\r\n\t\t disconnect();\t\r\n\t\t\tthrow new FileSystemUtilException(ee.getErrorCode(),ee.getException());\r\n\t\t}\r\n\t}", "private boolean initHome(File file) {\r\n\t\ttry {\r\n\t\t\tFileUtils.forceMkdir(file);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tlogger.error(\"Failed to initialize home directory '\" + file + \"'\", ex);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private void setupWorkingDir(Execute exe) {\r\n if (dir == null) {\r\n dir = getProject().getBaseDir();\r\n }\r\n else if (!dir.exists() || !dir.isDirectory()) {\r\n throw new BuildException(dir.getAbsolutePath() + \" is not a valid directory\", getLocation());\r\n }\r\n exe.setWorkingDirectory(dir);\r\n }", "private void setupDirectoryChooser(DirectoryChooser directoryChooser) \n {\n directoryChooser.setTitle(\"Select Directory to save Report\");\n\n // Set Initial Directory\n directoryChooser.setInitialDirectory(new File(System.getProperty(\"user.home\")));\n }", "void setOssHomepage(String ossHomepage);", "public String getProgramHomeDirName() {\n return pathsProvider.getProgramDirName();\n }", "public void setHome(int home) {\n m_home = home;\n }", "private static void findPath()\r\n {\r\n String temp_path = System.getProperty(\"user.dir\");\r\n char last = temp_path.charAt(temp_path.length() - 1);\r\n if(last == 'g')\r\n {\r\n path = \".\";\r\n }\r\n else\r\n {\r\n path = \"./bag\";\r\n }\r\n \r\n }", "public synchronized static void setCurrentDirectory(File newDirectory) {\n if (newDirectory == null) // this can actually happen\n currentDirectory = canon(System.getProperty(\"user.home\"));\n else\n currentDirectory = canon(newDirectory.getAbsolutePath());\n }", "public String getNabtoHomeDirectory() {\n return nabtoHomeDirectory.getAbsolutePath();\n }", "@Override\n\tpublic String getForumHomePath() throws Exception {\n\t\treturn null;\n\t}", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "void setDirectory(File dir);", "public static assesment.persistence.question.QuestionReportHome getHome() throws javax.naming.NamingException\n {\n return (assesment.persistence.question.QuestionReportHome) lookupHome(null, assesment.persistence.question.QuestionReportHome.COMP_NAME, assesment.persistence.question.QuestionReportHome.class);\n }", "public void setCacheHome(boolean cacheHome)\r\n/* 29: */ {\r\n/* 30: 83 */ this.cacheHome = cacheHome;\r\n/* 31: */ }", "protected String getSahiFolder() {\n String packageName = \"/sahi\";\n Path sahHomeFolder = resolveResource(AbstractSakuliTest.class, packageName);\n if (Files.exists(sahHomeFolder)) {\n return sahHomeFolder.normalize().toAbsolutePath().toString();\n }\n throw new SakuliRuntimeException(\"Cannot load SAHI_HOME folder! Should be normally under 'target/classes/\" + packageName + \"'\");\n }", "private static void initGameFolder() {\n\t\tString defaultFolder = System.getProperty(\"user.home\") + STENDHAL_FOLDER;\n\t\t/*\n\t\t * Add any previously unrecognized unix like systems here. These will\n\t\t * try to use ~/.config/stendhal if the user does not have saved data\n\t\t * in ~/stendhal.\n\t\t *\n\t\t * OS X is counted in here too, but should it?\n\t\t *\n\t\t * List taken from:\n\t\t * \thttp://mindprod.com/jgloss/properties.html#OSNAME\n\t\t */\n\t\tString unixLikes = \"AIX|Digital Unix|FreeBSD|HP UX|Irix|Linux|Mac OS X|Solaris\";\n\t\tString system = System.getProperty(\"os.name\");\n\t\tif (system.matches(unixLikes)) {\n\t\t\t// Check first if the user has important data in the default folder.\n\t\t\tFile f = new File(defaultFolder + \"user.dat\");\n\t\t\tif (!f.exists()) {\n\t\t\t\tgameFolder = System.getProperty(\"user.home\") + separator\n\t\t\t\t+ \".config\" + separator + STENDHAL_FOLDER;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// Everyone else should use the default top level directory in $HOME\n\t\tgameFolder = defaultFolder;\n\t}", "public static String getUserFolder() {\n\n String sPath;\n String sConfDir;\n\n \n // default is to use system's home folder setting\n sPath = System.getProperty(\"user.home\") + File.separator + \"sextante\"; \n \n // check if SEXTANTE.confDir has been set\n sConfDir = System.getProperty(\"SEXTANTE.confDir\"); \t\n if ( sConfDir != null ) {\n \t sConfDir = sConfDir.trim();\n \t \tif ( sConfDir.length() > 0 ) {\n \t \t\t// check if we have to append a separator char\n \t \t\tif ( sConfDir.endsWith(File.separator) ) {\n \t \t\t\tsPath = sConfDir;\n \t \t\t} else {\n \t \t\t\tsPath = sConfDir + File.separator;\n\t\t\t\t}\n\t\t\t}\n }\n\n final File sextanteFolder = new File(sPath);\n if (!sextanteFolder.exists()) {\n \t sextanteFolder.mkdir();\n }\n return sPath;\n\n }", "void setWorkingDirectory( String workingDirectory );", "public void setLookupHomeOnStartup(boolean lookupHomeOnStartup)\r\n/* 24: */ {\r\n/* 25: 72 */ this.lookupHomeOnStartup = lookupHomeOnStartup;\r\n/* 26: */ }", "private String getArcGISHomeDir() throws IOException {\n String arcgisHome = null;\n /* Not found in env, check system property */\n if (System.getProperty(ARCGISHOME_ENV) != null) {\n arcgisHome = System.getProperty(ARCGISHOME_ENV);\n }\n if(arcgisHome == null) {\n /* To make env lookup case insensitive */\n Map<String, String> envs = System.getenv();\n for (String envName : envs.keySet()) {\n if (envName.equalsIgnoreCase(ARCGISHOME_ENV)) {\n arcgisHome = envs.get(envName);\n }\n }\n }\n if(arcgisHome != null && !arcgisHome.endsWith(File.separator)) {\n arcgisHome += File.separator;\n }\n return arcgisHome;\n }", "public void setBasedir( File basedir )\n {\n this.basedir = basedir;\n }", "public static assesment.persistence.question.QuestionReportHome getHome( java.util.Hashtable environment ) throws javax.naming.NamingException\n {\n return (assesment.persistence.question.QuestionReportHome) lookupHome(environment, assesment.persistence.question.QuestionReportHome.COMP_NAME, assesment.persistence.question.QuestionReportHome.class);\n }", "public void setAsinstalldir(File asinstalldir) {\n\t\tthis.asinstalldir = asinstalldir;\n\t}", "public void updateLabtainersPath(){\n labsPath = new File(labtainerPath + File.separator + \"labs\");\n labChooser.setCurrentDirectory(labsPath); \n }", "public DirectoryFileLocator() {\r\n this(System.getProperty(\"user.dir\"));\r\n }", "private static Home getHomeForPath(String path, String launcherPath, String propertiesPath, String defaultVersion) throws PathDoesNotExist {\n Parameters.notNull(\"path\", path); //NOI18N\n Parameters.notNull(\"launcherPath\", launcherPath); //NOI18N\n Parameters.notNull(\"propertiesPath\", propertiesPath); //NOI18N\n String homePath = path;\n if(path.startsWith(\"~\")) { // NOI18N\n String userHome = System.getProperty(\"user.home\"); // NOI18N\n homePath = userHome + path.substring(1);\n }\n File installDir = new File(homePath);\n if (installDir != null && installDir.exists() && installDir.isDirectory()) {\n FileObject installDirFO = FileUtil.toFileObject(installDir);\n\n File launcher = new File(homePath + File.separator + launcherPath);\n if(launcher != null && launcher.exists() && launcher.isFile()) {\n \n FileObject propertiesFO = installDirFO.getFileObject(propertiesPath); // NOI18N\n if (propertiesFO != null && propertiesFO.isValid() && propertiesFO.isData()) {\n try {\n Properties props = new Properties();\n FileReader reader = new FileReader(FileUtil.toFile(propertiesFO));\n try {\n props.load(reader);\n } finally {\n reader.close();\n }\n String version = props.getProperty(\"version\"); //NOI18N\n if (version == null) {\n version = props.getProperty(\"app.version\"); //NOI18N\n }\n return new Home(homePath, launcherPath, propertiesPath, version == null ? defaultVersion : version);\n } catch (IOException e) {\n }\n } else if (Utilities.isMac() && path.equals(NbBundle.getMessage(SBHomeFactory.class, \"MAC_GLUON_HOME\"))) { //NOI18N\n // Gluon SceneBuilder 8.0.0 does not have scenebuilder.properties file\n return new Home(homePath, launcherPath, propertiesPath, defaultVersion);\n }\n }\n } else {\n throw new PathDoesNotExist();\n }\n return null;\n }", "public static void setCLOUDTEST_HOME(String CLOUDTEST_HOME) {\n\n ConfigurationProxy.CLOUDTEST_HOME = CLOUDTEST_HOME;\n }", "public File getHome() {\n return home;\n }", "public void setHomeGroup(HomeGroup group) {\n\t\tthis.homeGroup = group;\n\t}", "public void setDir() throws FileNotFoundException, IOException{\r\n final JFileChooser jfc = new JFileChooser();\r\n jfc.setDialogTitle(\"Choose Workplace Dirtory\");\r\n FileSystemView fsv = FileSystemView.getFileSystemView();\r\n //wppath stores workplace location\r\n wppath = fsv.getDefaultDirectory();\r\n File rd = new File(wppath.getAbsolutePath() + \"/USQ_Reporter.txt\");\r\n int ext = 0;\r\n if(rd.exists())ext=1;\r\n if(!rd.exists())ext=2;\r\n FileReader fr; \r\n if(rd.exists()){\r\n fr= new FileReader(rd);\r\n if(fr.read()==-1)\r\n ext=2;\r\n }\r\n //System.out.println(ext);\r\n //workplace path\r\n if(ext==1) {\r\n BufferedReader br = new BufferedReader(new FileReader(rd));\r\n workplace = br.readLine();\r\n }else if (ext==2) {\r\n jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n int returnVal = jfc.showOpenDialog(this);\r\n \r\n if(returnVal == JFileChooser.APPROVE_OPTION) {\r\n File file = jfc.getSelectedFile();\r\n if(!file.exists()) {\r\n JOptionPane.showMessageDialog(null, \"file doesn't exist.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n } else if(file.isDirectory()) {\r\n workplace = file.getAbsolutePath();\r\n }\r\n }\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(rd));\r\n bw.write(workplace);\r\n bw.flush();\r\n bw.close();\r\n }\r\n }", "public void setHarvestedDataDir(String val) {\n\n\t\tthis.harvestedDataDir = val;\n\n\t}", "void setWorkingDirectory(String workingDirectory);", "public void setShHarvestedDataDir(String val) {\n\n\t\tthis.shHarvestedDataDir = val;\n\n\t}", "public void setDialogPath(File path) {\n if (path.exists() && path.isDirectory()) {\n setCurrentDirectory(path);\n }\n }", "public void setWorkingDir(File workingDir) {\n this.workingDir = workingDir;\n }", "public void setWorkingDir(File workingDir) {\n this.workingDir = workingDir;\n }", "public static assesment.persistence.question.QuestionReportLocalHome getLocalHome() throws javax.naming.NamingException\n {\n return (assesment.persistence.question.QuestionReportLocalHome) lookupHome(null, assesment.persistence.question.QuestionReportLocalHome.COMP_NAME, assesment.persistence.question.QuestionReportLocalHome.class);\n }", "private void preferences() {\n final Preferences prefs = Preferences.userNodeForPackage(DesktopPane.class);\n final JFileChooser chooser = new JFileChooser(prefs.get(SCREENSHOT_DIRECTORY_PREFS, null));\n chooser.setDialogTitle(\"Output directory for screenshots\");\n chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n switch (chooser.showOpenDialog(this)) {\n case JFileChooser.APPROVE_OPTION: {\n final File directory = chooser.getSelectedFile();\n if (directory != null) {\n prefs.put(SCREENSHOT_DIRECTORY_PREFS, directory.getPath());\n }\n break;\n }\n }\n }", "public void setShHarvestDir(String val) {\n\n\t\tshHarvestDir = val;\n\n\t\t// add to the commonDirs object\n\n\t\tadd_to_common_dirs(val);\n\n\t}", "public static void setDefaultPath(String path) {\n\t\tPATH = path;\n\t}", "public static String getUserDir() {\n return System.getProperty(\"user.dir\");\n }", "public void gettingDesktopPath() {\n FileSystemView filesys = FileSystemView.getFileSystemView();\n File[] roots = filesys.getRoots();\n homePath = filesys.getHomeDirectory().toString();\n System.out.println(homePath);\n //checking if file existing on that location\n pathTo = homePath + \"\\\\SpisakReversa.xlsx\";\n }", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "public void createTestDir() {\n\t\tworkDir = new File(System.getProperty(\"test.dir\", \"target\"));\n\t}", "public static String getPreferenceDirectory() {\n\t\treturn PREF_DIR;\n\t}", "protected void setWorkingDirectory(File dir) {\n\t\tthis.dir = dir;\n\t}", "public static String getUserDir() {\r\n\t\treturn userDir;\r\n\t}", "public void setHomeName(String homeName) {\n this.homeName.setText(homeName);\n }", "public static void ChromeExePathSetUp() {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \r\n\t\t\t\t\"D:\\\\VisionITWorkspace\\\\dependencies\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tReporter.log(\"Chrome Exe path Set up\", true);\r\n\t}", "public void setBasedir( String basedir )\n {\n setBasedir( new File( basedir.replace( '/', File.separatorChar ).replace( '\\\\', File.separatorChar ) ) );\n }", "public void setProjectDirectory(File projectDir) {\n this.mProjectDir = projectDir;\n }", "protected void setRootPath(String root) {\n this.root = new File(root);\n this.appsDir = new File(this.root, APPS_ROOT);\n this.m2Dir = new File(M2_ROOT);\n }", "private void setLabtainersDir() throws IOException{\n String newLabtainersPath = LabtainersDirTextfield.getText();\n \n // check if labtainers path exist\n if(new File(newLabtainersPath).isDirectory()){\n pathValidLabel.setVisible(false);\n \n FileOutputStream out = new FileOutputStream(iniFile);\n writeValueToINI(out, \"labtainersPath\", newLabtainersPath);\n\n labtainerPath = newLabtainersPath;\n updateLabtainersPath();\n \n LabtainersDirDialog.setVisible(false);\n }\n else{\n pathValidLabel.setVisible(true);\n } \n }", "public void setPath (\r\n String strPath) throws java.io.IOException, com.linar.jintegra.AutomationException;", "abstract public void setTopResourcesDir(String path);", "public void setHomeAddress(String homeAddress) {\n this.homeAddress = homeAddress == null ? null : homeAddress.trim();\n }" ]
[ "0.612661", "0.6106778", "0.5966956", "0.5935954", "0.58284664", "0.58271915", "0.57006896", "0.56415737", "0.5633868", "0.56317633", "0.56119156", "0.5560672", "0.5547786", "0.55372614", "0.5503477", "0.5468763", "0.5461038", "0.54349464", "0.5318341", "0.5231801", "0.52215815", "0.5199625", "0.51755625", "0.5158446", "0.51457644", "0.5138555", "0.51013833", "0.50878805", "0.50545335", "0.50471663", "0.50228584", "0.4996732", "0.49905944", "0.49876693", "0.49595347", "0.49494296", "0.49478352", "0.49383914", "0.4931814", "0.49197602", "0.49107948", "0.48988366", "0.4841796", "0.48374388", "0.48278177", "0.48189753", "0.4810362", "0.48102093", "0.48027977", "0.47999674", "0.47718254", "0.4770462", "0.4765655", "0.4758598", "0.47308013", "0.4726636", "0.4713701", "0.47022814", "0.47003794", "0.46855986", "0.46611235", "0.46583956", "0.4652603", "0.46433794", "0.46359065", "0.46329552", "0.46295786", "0.46165726", "0.46068218", "0.4601295", "0.46001795", "0.45913437", "0.45812756", "0.45719743", "0.4556459", "0.4549248", "0.45488212", "0.4548621", "0.45199195", "0.45199195", "0.45051315", "0.44995204", "0.44897884", "0.44862148", "0.44842628", "0.44835556", "0.44833735", "0.44682217", "0.4457513", "0.44432428", "0.44431278", "0.44422424", "0.44418204", "0.44417107", "0.4438229", "0.44352156", "0.44200218", "0.44179136", "0.44112357", "0.44103223" ]
0.7827016
0
Get the FindBugs home directory.
public static String getHome() { return home; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getHomeDirectory() {\n\t\treturn System.getProperty(\"user.home\");\n\t}", "public static String home() {\n\n String treefsHome = stringValue(\"treefs.home\");\n if(isNullOrEmpty(treefsHome)) {\n // default home location\n treefsHome = System.getProperty(\"user.dir\");\n }\n\n return treefsHome;\n }", "private File getHomeDirectory() {\n String brunelDir = System.getProperty(\"brunel.home\");\n File home = brunelDir != null ? new File(brunelDir) :\n new File(System.getProperty(\"user.home\"), \"brunel\");\n return ensureWritable(home);\n }", "public File getHomeDir() {\n\t\tFile f = new File(System.getProperty(\"user.home\"),MuViChatConstants.muviHomeDir);\t\t\n if (!f.isDirectory()) {\n\t f.mkdir();\t \n\t }\n return f;\n\t}", "public File getHome() {\r\n\t\treturn homeDir;\r\n\t}", "public static String getUserHome() {\n return System.getProperty(\"user.home\");\n }", "public File getHomeDir() {\n return physicalHomeDir;\n }", "private static String\n\tgetDefaultPrefsDir()\n\t{\n\t\tString homeDir\t= System.getProperty( \"user.home\" );\n\t\tif ( homeDir == null )\n\t\t{\n\t\t\thomeDir\t= \".\";\n\t\t}\n\t\t\n\t\treturn( homeDir );\n\t}", "HomeDir getHome(BaseUser u);", "public String getProgramHomeDirName() {\n return pathsProvider.getProgramDirName();\n }", "public static String testHome()\n {\n if (testHome == null)\n {\n //See if we set it as a property using TestLauncher\n testHome = System.getProperty (\"jacorb.test.home\");\n\n //Try to find it from the run directory\n if (testHome == null)\n {\n URL url = TestUtils.class.getResource(\"/.\");\n\n String result = url.toString();\n if (result.matches(\"file:/.*?\"))\n {\n result = result.substring (5, result.length() - 9);\n }\n String relativePath=\"/classes/\";\n if (!pathExists(result, relativePath))\n {\n throw new RuntimeException (\"cannot find test home\");\n }\n testHome = osDependentPath(result);\n }\n }\n return testHome;\n }", "protected File getDefaultHomeDir()\n throws AntException\n {\n if( null != m_userDir )\n {\n try \n {\n checkDirectory( m_userDir, null );\n return m_userDir;\n }\n catch( final AntException ae ) {}\n }\n\n final String os = System.getProperty( \"os.name\" );\n final File candidate = \n (new File( getSystemLocationFor( os ) )).getAbsoluteFile();\n checkDirectory( candidate, \"ant-home\" );\n return candidate;\n }", "public File getJavaHome()\n {\n return javaHomeDir;\n }", "public String getNabtoHomeDirectory() {\n return nabtoHomeDirectory.getAbsolutePath();\n }", "protected File getFlexHomeDirectory()\n\t{\n\t\tif (!m_initializedFlexHomeDirectory)\n\t\t{\n\t\t\tm_initializedFlexHomeDirectory = true;\n\t\t\tm_flexHomeDirectory = new File(\".\"); // default in case the following logic fails //$NON-NLS-1$\n\t\t\tString flexHome = System.getProperty(\"application.home\"); //$NON-NLS-1$\n\t\t\tif (flexHome != null && flexHome.length() > 0)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tm_flexHomeDirectory = new File(flexHome).getCanonicalFile();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\t// ignore\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn m_flexHomeDirectory;\n\t}", "protected String getSahiFolder() {\n String packageName = \"/sahi\";\n Path sahHomeFolder = resolveResource(AbstractSakuliTest.class, packageName);\n if (Files.exists(sahHomeFolder)) {\n return sahHomeFolder.normalize().toAbsolutePath().toString();\n }\n throw new SakuliRuntimeException(\"Cannot load SAHI_HOME folder! Should be normally under 'target/classes/\" + packageName + \"'\");\n }", "public static String getUserDir() {\n return System.getProperty(\"user.dir\");\n }", "public Path getInstallationHome() {\n return home;\n }", "public static File getPlatformDir () {\n return new File (System.getProperty (\"netbeans.home\")); // NOI18N\n }", "private String getHome()\n {\n return this.bufferHome.getAbsolutePath() + \"/\";\n }", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "public static String getCLOUDTEST_HOME() {\n\n if (CommonUtils.isNullOrEmpty(CLOUDTEST_HOME)) {\n\n try {\n CLOUDTEST_HOME = new CLOUDTEST_HOME$PathProviderImpl()\n .getCLOUDTEST_HOME();\n } catch (Exception e) {\n \tif (!homePathWarningLogged) {\n \t\tlogger.warn(e.getMessage());\n \t\t\t\thomePathWarningLogged = true;\n \t\t\t}\n \n return null;\n }\n\n }\n return CLOUDTEST_HOME;\n }", "public File getInstHomeDir() {\n \treturn this.getHomeDir(\"octHome\");\n }", "@Override\r\n\tpublic String getUserHome() throws FileSystemUtilException\r\n\t{\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":test()\");\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tconnect(); \r\n\t\t\tString command = \"pwd\";\t\t\t\r\n\t\t\tint signal = executeSimpleCommand(command);\r\n\t\r\n\t\t\tif(signal != 0)\r\n\t\t\t{\t\t\t \r\n\t\t\t\tthrow new FileSystemUtilException(\"ET0030\");\r\n\t\t\t}\r\n\t\t\tdisconnect();\t\t\r\n\t\t\tString[] dirName = getFileNamesArray(output);\r\n\t\t\tlogger.debug(\"UserHome is : \"+dirName[0]);\r\n\t\t\tlogger.debug(\"End: \"+getClass().getName()+\":test()\");\r\n\t\t\treturn dirName[0];\r\n\t\t}\r\n\t\t\r\n\t\tcatch(FileSystemUtilException ee)\r\n\t\t{\r\n\t\t disconnect();\t\r\n\t\t\tthrow new FileSystemUtilException(ee.getErrorCode(),ee.getException());\r\n\t\t}\r\n\t}", "private String getArcGISHomeDir() throws IOException {\n String arcgisHome = null;\n /* Not found in env, check system property */\n if (System.getProperty(ARCGISHOME_ENV) != null) {\n arcgisHome = System.getProperty(ARCGISHOME_ENV);\n }\n if(arcgisHome == null) {\n /* To make env lookup case insensitive */\n Map<String, String> envs = System.getenv();\n for (String envName : envs.keySet()) {\n if (envName.equalsIgnoreCase(ARCGISHOME_ENV)) {\n arcgisHome = envs.get(envName);\n }\n }\n }\n if(arcgisHome != null && !arcgisHome.endsWith(File.separator)) {\n arcgisHome += File.separator;\n }\n return arcgisHome;\n }", "public static String getBaseDir() {\r\n Path currentRelativePath = Paths.get(System.getProperty(\"user.dir\"));\r\n return currentRelativePath.toAbsolutePath().toString();\r\n }", "public synchronized static String getCurrentDirectory() {\n if (currentDirectory == null)\n currentDirectory = canon(System.getProperty(\"user.home\"));\n return currentDirectory;\n }", "public static assesment.persistence.question.QuestionReportHome getHome() throws javax.naming.NamingException\n {\n return (assesment.persistence.question.QuestionReportHome) lookupHome(null, assesment.persistence.question.QuestionReportHome.COMP_NAME, assesment.persistence.question.QuestionReportHome.class);\n }", "public static String getUserDir() {\r\n\t\treturn userDir;\r\n\t}", "public File getHome() {\n return home;\n }", "public static String getUserFolder() {\n\n String sPath;\n String sConfDir;\n\n \n // default is to use system's home folder setting\n sPath = System.getProperty(\"user.home\") + File.separator + \"sextante\"; \n \n // check if SEXTANTE.confDir has been set\n sConfDir = System.getProperty(\"SEXTANTE.confDir\"); \t\n if ( sConfDir != null ) {\n \t sConfDir = sConfDir.trim();\n \t \tif ( sConfDir.length() > 0 ) {\n \t \t\t// check if we have to append a separator char\n \t \t\tif ( sConfDir.endsWith(File.separator) ) {\n \t \t\t\tsPath = sConfDir;\n \t \t\t} else {\n \t \t\t\tsPath = sConfDir + File.separator;\n\t\t\t\t}\n\t\t\t}\n }\n\n final File sextanteFolder = new File(sPath);\n if (!sextanteFolder.exists()) {\n \t sextanteFolder.mkdir();\n }\n return sPath;\n\n }", "public static String getOutputFolder() {\n\n if ((m_sOutputFolder == null) || m_sOutputFolder.trim().equals(\"\")) {\n return System.getProperty(\"user.home\");\n }\n else {\n return m_sOutputFolder;\n }\n\n }", "public static void setHome(String home) {\n FindBugs.home = home;\n }", "public static String findCurrentDirectory() {\n\t\tString absolutePath = new File(\"\").getAbsolutePath();\n\t return absolutePath;\n\t}", "public String workingDirectory() {\n\t\treturn workingDir.getAbsolutePath();\n\t}", "private String checkUserLibDir() {\n\t\t// user .libPaths() to list all paths known when R is run from the \n\t\t// command line\n \tif (!runRCmd(\"R -e \\\".libPaths()\\\" -s\")) {\n \t\tlogger.error(\"Could not detect user lib path.\");\n \t} else {\n \t\t// split on '\"'. This gives irrelevant strings, but those will\n \t\t// not match a user.home anyway\n \t\tString[] parts = status.split(\"\\\\\\\"\");\n \t\tString userHome = System.getProperty(\"user.home\");\n \t\tlogger.debug(\"user.home: \" + userHome);\n \t\tfor (int i=0; i<parts.length; i++) {\n \t\t\tString part = parts[i];\n \t\t\t// The replacement for front-slashes for windows systems.\n \t\t\tif (part != null && part.startsWith(userHome) || part.replace(\"/\", \"\\\\\").startsWith(userHome)) {\n \t\t\t\t// OK, we found the first lib path in $HOME\n \t\t\t\treturn part;\n \t\t\t}\n \t\t}\n \t}\n\t\treturn null;\n }", "public void gettingDesktopPath() {\n FileSystemView filesys = FileSystemView.getFileSystemView();\n File[] roots = filesys.getRoots();\n homePath = filesys.getHomeDirectory().toString();\n System.out.println(homePath);\n //checking if file existing on that location\n pathTo = homePath + \"\\\\SpisakReversa.xlsx\";\n }", "public String getWorkspacePath() {\n\t\tString workspacePath = userSettingsService.getUserSettings().getWorkspacePath();\n\t\treturn getAbsoluteSubDirectoryPath(workspacePath);\n\t}", "@Override\n\tpublic String getForumHomePath() throws Exception {\n\t\treturn null;\n\t}", "private String getDicDir() {\n\t\tString wDir = null;\n\n\t\tif (System.getProperties().containsKey(\"root\")) {\n\t\t\twDir = System.getProperty(\"root\");\n\t\t}\n\n\t\tif ((wDir == null || wDir.isEmpty()) && CPlatform.isMacOs())\n\t\t\twDir = new File(CPlatform.getUserHome(), \"Library/Spelling\")\n\t\t\t\t\t.getAbsolutePath();\n\n\t\tif (wDir == null || wDir.isEmpty())\n\t\t\twDir = \"/home/ff/projects/hunspell\";\n\t\treturn wDir;\n\t}", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "String getInstallRoot();", "static File getDistributionInstallationFolder() {\n return ProcessRunnerImpl.getDistRootPath();\n }", "private static void findPath()\r\n {\r\n String temp_path = System.getProperty(\"user.dir\");\r\n char last = temp_path.charAt(temp_path.length() - 1);\r\n if(last == 'g')\r\n {\r\n path = \".\";\r\n }\r\n else\r\n {\r\n path = \"./bag\";\r\n }\r\n \r\n }", "public String getGitBasePath() {\n\t\tif (StringUtils.isBlank(gitBasePath)) {\n\t\t\tgitBasePath = System.getProperties().getProperty(\"user.home\") + \"/gittest\";\n\t\t}\n\t\treturn gitBasePath;\n\t}", "public File getJRELocation() {\n \t\tif (executableLocation == null)\n \t\t\treturn null;\n \t\treturn new File(executableLocation.getParentFile(), \"jre\"); //$NON-NLS-1$\n \t}", "public String getProjectRootDirectory() {\r\n\t\treturn getTextValue(workspaceRootText);\r\n\t}", "public static String getBasePath() {\n String basePath;\n if (new File(\"../../MacOS/JavaApplicationStub\").canExecute()) {\n basePath = \"../../../..\";\n } else {\n basePath = \".\";\n }\n return basePath;\n }", "public static final String getHome() { return home; }", "public static String getKylinHome() {\n String kylinHome = System.getenv(\"KYLIN_HOME\");\n if (StringUtils.isEmpty(kylinHome)) {\n logger.warn(\"KYLIN_HOME was not set\");\n }\n return kylinHome;\n }", "protected File getAsinstalldir() throws ClassNotFoundException {\n\t\tif (asinstalldir == null) {\n\t\t\tString home = getProject().getProperty(\"asinstall.dir\");\n\t\t\tif (home != null) {\n asinstalldir = new File(home);\n\t\t\t}\n else {\n home = getProject().getProperty(\"sunone.home\");\n if (home != null)\n {\n final String msg = lsm.getString(\"DeprecatedProperty\", new Object[] {\"sunone.home\", \"asinstall.dir\"});\n log(msg, Project.MSG_WARN);\n asinstalldir = new File(home);\n }\n \n }\n\t\t}\n if (asinstalldir!=null) verifyAsinstalldir(asinstalldir);\n\t\treturn asinstalldir;\n\t}", "public static assesment.persistence.question.QuestionReportHome getHome( java.util.Hashtable environment ) throws javax.naming.NamingException\n {\n return (assesment.persistence.question.QuestionReportHome) lookupHome(environment, assesment.persistence.question.QuestionReportHome.COMP_NAME, assesment.persistence.question.QuestionReportHome.class);\n }", "private String getJdkHome() {\n String result;\n result = System.getProperty(\"java.home\");\n if (result.endsWith(File.separatorChar + \"jre\")) {\n result = result.substring(0, result.length() - 4);\n }\n return result;\n }", "public String getHomeworkfilepath() {\n return homeworkfilepath;\n }", "public static String getWorkingDirectory() {\r\n try {\r\n // get working directory as File\r\n String path = DBLIS.class.getProtectionDomain().getCodeSource()\r\n .getLocation().toURI().getPath();\r\n File folder = new File(path);\r\n folder = folder.getParentFile().getParentFile(); // 2x .getParentFile() for debug, 1x for normal\r\n\r\n // directory as String\r\n return folder.getPath() + \"/\"; // /dist/ for debug, / for normal\r\n } catch (URISyntaxException ex) {\r\n return \"./\";\r\n }\r\n }", "public static String sBasePath() \r\n\t{\r\n\t\tif(fromJar) \r\n\t\t{\r\n\t\t\tFile file = new File(System.getProperty(\"java.class.path\"));\r\n\t\t\tif (file.getParent() != null)\r\n\t\t\t{\r\n\t\t\t\treturn file.getParent().toString();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\treturn new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public static assesment.persistence.question.QuestionReportLocalHome getLocalHome() throws javax.naming.NamingException\n {\n return (assesment.persistence.question.QuestionReportLocalHome) lookupHome(null, assesment.persistence.question.QuestionReportLocalHome.COMP_NAME, assesment.persistence.question.QuestionReportLocalHome.class);\n }", "public static String getPreferenceDirectory() {\n\t\treturn PREF_DIR;\n\t}", "public static String getBaseDir() {\n // 'basedir' is set by Maven Surefire. It always points to the current subproject,\n // even in reactor builds.\n String baseDir = System.getProperty(\"basedir\");\n\n // if 'basedir' is not set, try the current directory\n if (baseDir == null) {\n baseDir = System.getProperty(\"user.dir\");\n }\n return baseDir;\n }", "public static String getConfigFolder() {\n\t\tString progArg = System.getProperty(ConfigConstants.CONFIG_DIR_PROG_ARGUMENT);\n\t\tif (progArg != null) {\n\t\t\treturn progArg;\n\t\t} else {\n\t\t\treturn configFolder;\n\t\t}\n\t}", "public static File getUserDir()\n {\n return fUserDir;\n }", "@Override\n public Home defaultHome() {\n Home h = null;\n for (String ver : VER_CURRENT) {\n for (String path : WKIP) {\n if (Utilities.isWindows() && path.contains(\"AppData\")) { //NOI18N\n // issue #251710 - Gluon SceneBuilder by default installs to C:\\Users\\<username>\\AppData\\Local\\SceneBuilder\n final String appDataPath = System.getenv(\"AppData\"); //NOI18N\n if (appDataPath != null) {\n final FileObject appDataFo = FileUtil.toFileObject(new File(appDataPath)).getParent();\n h = loadHome(path.replace(VER_DELIMITER, ver).replace(APPDATA_DELIMITER, appDataFo.getPath()));\n }\n } else {\n h = loadHome(path.replace(VER_DELIMITER, ver), ver);\n }\n if (h != null) {\n return h;\n }\n }\n }\n return h;\n }", "public static String getWorkingDirectory() {\n\n return System.getProperty(\"user.dir\");\n }", "public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }", "private NodeRef getompanyHomeFolder(){\n LOG.debug(\"### Executing \"+ Thread.currentThread().getStackTrace()[1].getMethodName() +\" ####\");\n return nodeLocatorService.getNode(\"companyhome\", null, null);\n }", "public static String downloadDir() {\n\n String downloads = stringValue(\"treefs.downloads\");\n if(isNullOrEmpty(downloads)) {\n // default home location\n downloads = home() + File.separator + \"downloads\";\n } else {\n downloads = home() + File.separator + downloads;\n }\n\n System.out.println(\"downloadDir=\" + downloads);\n return downloads;\n }", "public String getWorkDirectory(){\n String wd = \"\";\n try {\n wd = new File(\"test.txt\").getCanonicalPath().replace(\"/test.txt\",\"\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return wd;\n }", "public static File getPreferencesDirectory() {\n\t\treturn PREFERENCES_DIRECTORY;\n\t}", "public static File getRegistrationDirectory() {\n\t\t\n\t\tFile home = ApplicationRuntime.getInstance().getApplicationHomeDir();\n\n\t\tFile registrationDirectory = new File(home,REGISTRATION_DIRECTORY_NAME);\n\t\tif (!registrationDirectory.exists()) {\n\t\t\tregistrationDirectory.mkdir();\n\t\t}\n\t\treturn registrationDirectory;\n\t}", "public static Path getPluginsDir() {\n\t\treturn Paths.get(prefs.get(Constants.PREF_USERSAVE_DIR, null)).resolve(PLUGINS_DIR);\n\t}", "public static String getWorkingDirectory() {\n // Since System.getProperty(\"user.dir\") and user.home etc. can be confusing\n // and I haven't quite figured out if they really are reliable on all systems,\n // I chose a little more complicated approach. This is exactly the same\n // like if a file is created relatively, like new File(\"testfile.txt\"), which\n // would be relative to the working directory.\n\n File f = new File(\".\");\n\n try {\n return addPathSeparator(f.getCanonicalPath());\n } catch (IOException e) {\n return null;\n }\n }", "public String getFileDirectory() {\n String storedDirectory = settings.get(\"fileDirectory\");\n \n // Default to the program files\n if (storedDirectory == null) {\n storedDirectory = System.getenv(\"ProgramFiles\");\n }\n \n return storedDirectory;\n }", "public static File getTemporaryDirectory() {\r\n\t\tFile dir = new File(System.getProperty(\"java.io.tmpdir\", //$NON-NLS-1$\r\n\t\t\t\tSystem.getProperty(\"user.dir\", \".\"))); //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\ttry {\r\n\t\t\treturn dir.getCanonicalFile();\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn dir;\r\n\t\t}\r\n\t}", "public static Path getUserSaveDir() {\n\t\treturn Paths.get(prefs.get(Constants.PREF_USERSAVE_DIR, null));\n\t}", "public final String ping() {\n\t\tlog.debug(\"I'm here \\\"\" + workDir + \"\\\"\");\n\t\treturn configRootDir;\n\t}", "public FileObject getProjectDirectory() {\n return helper.getProjectDirectory();\n }", "public static String jdkDefaultDirectory(String currentlySelectedDir) {\n \tFile file;\n \t\n \t// Try currently selected JDK path\n \tString path = currentlySelectedDir;\n \tif(path != null && !path.isEmpty()) {\n \t\tfile= new File(path);\n \t\tif(file.isDirectory() && file.exists()) {\n \t\t\treturn path;\n \t\t}\n \t}\n \t\n \t// Try JAVA_HOME\n path = System.getenv(\"JAVA_HOME\");\n if(path != null && !path.isEmpty())\n {\n \tfile = new File(path);\n\t \tif(file.exists() && file.isDirectory()) {\n\t \t\t// Verify presence of javac.exe\n\t \t\tFile javacFile = new File(file, \"bin\\\\javac.exe\");\n\t \t\tif(javacFile.exists()) {\n\t \t\t\treturn path;\n\t \t\t}\n\t \t}\n }\n \t\t\n \t// Try %ProgramFiles%\\Java\n path = String.format(\"%s%s%s\", System.getenv(\"ProgramFiles\"), File.separator, \"Java\", File.separator);\n \tfile = new File(path);\n \tif(!file.exists() || !file.isDirectory()) {\n \t\treturn System.getenv(\"ProgramFiles\");\n \t} \n \t\n \t// Find the first entry under Java that contains jdk\n \tFile[] files = file.listFiles();\n \tfor(File subFile : files) {\n \t\tif(!subFile.isDirectory()) {\n \t\t\tcontinue;\n \t\t} else if(subFile.getName().contains(\"jdk\")) {\n \t\t\treturn subFile.getAbsolutePath();\n \t\t}\n \t}\n \t\n \treturn path;\n \t\t\t\n }", "public static String setupJMeterHome() {\n if (JMeterUtils.getJMeterProperties() == null) {\n String file = \"jmeter.properties\";\n File f = new File(file);\n if (!f.canRead()) {\n System.out.println(\"Can't find \" + file + \" - trying bin/ and ../bin\");\n if (!new File(\"bin/\" + file).canRead()) {\n // When running tests inside IntelliJ\n filePrefix = \"../bin/\"; // JMeterUtils assumes Unix-style separators\n } else {\n filePrefix = \"bin/\"; // JMeterUtils assumes Unix-style separators\n }\n file = filePrefix + file;\n } else {\n filePrefix = \"\";\n }\n // Used to be done in initializeProperties\n String home=new File(System.getProperty(\"user.dir\"),filePrefix).getParent();\n System.out.println(\"Setting JMeterHome: \"+home);\n JMeterUtils.setJMeterHome(home);\n }\n return filePrefix;\n }", "@Override\n public String getApplicationDirectory() {\n return Comm.getAppHost().getAppLogDirPath();\n }", "@Override\n public String getTempDir() {\n return Comm.getAppHost().getTempDirPath();\n }", "Preferences systemRoot();", "public String getIndexDirectoryString() {\n File indexDir = this.getIndexDirectory();\n return indexDir != null ? indexDir.getAbsolutePath() : null;\n }", "public static String getTempDirectoryPath()\n {\n return System.getProperty( \"java.io.tmpdir\" );\n }", "public static String uploadDir() {\n\n String uploads = stringValue(\"treefs.uploads\");\n if(isNullOrEmpty(uploads)) {\n // default home location\n uploads = home() + File.separator + \"uploads\";\n } else {\n uploads = home() + File.separator + uploads;\n }\n\n System.out.println(\"uploadDir=\" + uploads);\n return uploads;\n }", "public String getUserTempDir() throws IOException {\n\t\treturn \"/data/local/tmp/\";\n\t}", "private EntryStorageHome home()\r\n {\r\n if( home == null )\r\n {\r\n\t\ttry\r\n\t\t{\r\n home = (EntryStorageHome) \r\n get_storage_home().get_catalog().find_storage_home( PSS_HOME );\r\n\t\t}\r\n\t\tcatch( Throwable e )\r\n\t\t{\r\n\t\t String error = \"Could not resolve the EntryStorageHome\";\r\n\t\t throw new RuntimeException( error, e );\r\n\t\t}\r\n }\r\n return home;\r\n }", "protected String getUserLocationFor( final String os, final String userDir )\n {\n if( os.startsWith( \"Windows\" ) )\n {\n return userDir + \"\\\\Ant\";\n }\n else if( '/' == File.separatorChar )\n {\n if( os.startsWith( \"Linux\" ) ) return userDir + \"/ant\";\n else return userDir + \"/opt/ant\";\n }\n else\n {\n return userDir + File.separator + \"ant\";\n }\n }", "private String getConfigurationDirectory() throws UnsupportedEncodingException {\r\n\r\n String folder;\r\n if (ISphereJobLogExplorerPlugin.getDefault() != null) {\r\n // Executed, when started from a plug-in.\r\n folder = ISphereJobLogExplorerPlugin.getDefault().getStateLocation().toFile().getAbsolutePath() + File.separator + REPOSITORY_LOCATION\r\n + File.separator;\r\n FileHelper.ensureDirectory(folder);\r\n } else {\r\n // Executed, when started on a command line.\r\n URL url = getClass().getResource(DEFAULT_CONFIGURATION_FILE);\r\n if (url == null) {\r\n return null;\r\n }\r\n String resource = URLDecoder.decode(url.getFile(), \"utf-8\"); //$NON-NLS-1$\r\n folder = new File(resource).getParent() + File.separator;\r\n }\r\n return folder;\r\n }", "public static File getLogDirectory() {\n\t\treturn LOG_DIRECTORY;\n\t}", "public static String getCodeDir() {\n\t\tlogger.entry();\n\t\treturn logger.exit(codeDir);\n\t}", "public String getRepoPathIssues() {\n\t\treturn this.properties.getProperty(SoundLooperProperties.KEY_REPO_PATH_ISSUE, \"\");\n\t}", "protected File getRootDir() {\r\n\t\tif (rootDir == null) {\r\n\t\t\trootDir = new File(getProperties().getString(\"rootDir\"));\r\n\t\t\tif (! rootDir.exists())\r\n\t\t\t\tif (! rootDir.mkdirs())\r\n\t\t\t\t\tthrow new RuntimeException(\"Could not create root dir\");\r\n\t\t}\r\n\t\treturn rootDir;\r\n\t}", "public File getDefaultOutputDir() {\n File out = _mkdir(XPreferencesFactory.kDefaultReportsOutputDir.getDir(false));\r\n String dn = NamingConventions.createNiceEnglishDate_for_dirs();\r\n return _mkdir(new File(out, dn));\r\n }", "private StringBuffer getLogDirectory() {\n final StringBuffer directory = new StringBuffer();\n directory.append(directoryProvider.get());\n if (directory.charAt(directory.length() - 1) != File.separatorChar) {\n directory.append(File.separatorChar);\n }\n return directory;\n }", "public static String getHelpPath() {\n\n return m_sSextantePath + File.separator + \"help\";\n\n }", "public String getProjectDir() {\n return (String) data[GENERAL_PROJECT_DIR][PROP_VAL_VALUE];\n }", "public static File getRootDirectory() {\n\t\treturn ROOT_DIRECTORY;\n\t}", "static String getDefaultConfigurationFileName() {\n // This is a file calles 'jmx-scandir.xml' located\n // in the user directory.\n final String user = System.getProperty(\"user.home\");\n final String defconf = user+File.separator+\"jmx-scandir.xml\";\n return defconf;\n }", "public static File getScriptDirectory() {\n \t\treturn new File(getScriptlerHomeDirectory(), \"scripts\");\n \t}" ]
[ "0.7384024", "0.7036297", "0.7023642", "0.68832594", "0.6830545", "0.68128127", "0.678027", "0.6702826", "0.66900235", "0.6597846", "0.65781474", "0.6542484", "0.64449376", "0.63505614", "0.6274063", "0.62701356", "0.62127507", "0.61408854", "0.6104328", "0.60970855", "0.6073916", "0.6062073", "0.6033841", "0.60239434", "0.60126954", "0.5962199", "0.595087", "0.5899526", "0.5870534", "0.5850289", "0.58037937", "0.5796291", "0.5788195", "0.57868195", "0.5749932", "0.5740257", "0.57232004", "0.5714657", "0.56945723", "0.56719595", "0.56658363", "0.56543225", "0.5620419", "0.5586165", "0.5581312", "0.557682", "0.55600995", "0.5531545", "0.5520652", "0.55090904", "0.54852444", "0.5454964", "0.54516536", "0.54302204", "0.5414006", "0.54116523", "0.53988093", "0.53982073", "0.5371714", "0.5357892", "0.5338666", "0.5300609", "0.528854", "0.5283881", "0.5271012", "0.5240094", "0.52307934", "0.52279174", "0.5226711", "0.52185255", "0.52160865", "0.52131265", "0.52091", "0.51966447", "0.5180722", "0.5177305", "0.51568735", "0.51489395", "0.514677", "0.51448476", "0.5136916", "0.5132332", "0.5125101", "0.5114586", "0.51095873", "0.51010615", "0.50867593", "0.50860345", "0.5084437", "0.5083794", "0.5083139", "0.50821394", "0.5075372", "0.50617737", "0.50611883", "0.50587004", "0.505497", "0.5048697", "0.50457114", "0.5040365" ]
0.54672307
51
Determines whether or not given DetectorFactory should be enabled.
public static boolean isDetectorEnabled(IFindBugsEngine findBugs, DetectorFactory factory, int rankThreshold) { if (!findBugs.getUserPreferences().isDetectorEnabled(factory)) return false; if (!factory.isEnabledForCurrentJRE()) return false; // Slow first pass detectors are usually disabled, but may be explicitly // enabled if (!AnalysisContext.currentAnalysisContext().getBoolProperty(FindBugsAnalysisFeatures.INTERPROCEDURAL_ANALYSIS) && factory.isDetectorClassSubtypeOf(InterproceduralFirstPassDetector.class)) return false; int maxRank = Integer.MAX_VALUE; Set<BugPattern> reportedBugPatterns = factory.getReportedBugPatterns(); boolean isNonReportingDetector = factory.isDetectorClassSubtypeOf(FirstPassDetector.class); if (!isNonReportingDetector && !reportedBugPatterns.isEmpty()) { for (BugPattern b : reportedBugPatterns) { int rank = BugRanker.findRank(b, factory); if (maxRank > rank) maxRank = rank; } if (maxRank > rankThreshold) { if (false) { System.out.println("Detector " + factory.getShortName() + " has max rank " + maxRank + ", disabling"); System.out.println("Reports : " + reportedBugPatterns); } return false; } } // Training detectors are enabled if, and only if, we are emitting // training output boolean isTrainingDetector = factory.isDetectorClassSubtypeOf(TrainingDetector.class); if (findBugs.emitTrainingOutput()) { return isTrainingDetector || isNonReportingDetector; } if (isTrainingDetector) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public default boolean hasDetector() {\n\t\treturn false;\n\t}", "public final boolean isEnabled(Feature f)\n/* */ {\n/* 557 */ return (this._factoryFeatures & f.getMask()) != 0;\n/* */ }", "boolean isDataSourceIngestModuleFactory();", "boolean hasGcsFuseCsiDriverConfig();", "boolean hasArtilleryFactorySelected();", "public static boolean m3186a() {\n String str;\n String str2;\n if (VERSION.SDK_INT > 23) {\n str = \"com.samsung.android.feature.SemFloatingFeature\";\n str2 = \"getBoolean\";\n } else {\n str = \"com.samsung.android.feature.FloatingFeature\";\n str2 = \"getEnableStatus\";\n }\n try {\n Class cls = Class.forName(str);\n Object invoke = cls.getMethod(\"getInstance\", null).invoke(null, new Object[0]);\n boolean booleanValue = ((Boolean) cls.getMethod(str2, new Class[]{String.class}).invoke(invoke, new Object[]{\"SEC_FLOATING_FEATURE_CONTEXTSERVICE_ENABLE_SURVEY_MODE\"})).booleanValue();\n if (booleanValue) {\n C0784a.m3255b(\"cf feature is supported\");\n } else {\n C0784a.m3255b(\"feature is not supported\");\n }\n return booleanValue;\n } catch (Exception e) {\n C0784a.m3255b(\"Floating feature is not supported (non-samsung device)\");\n C0784a.m3252a(C0766d.class, e);\n return false;\n }\n }", "public boolean hasDriver() {\n return fieldSetFlags()[6];\n }", "boolean isFileIngestModuleFactory();", "public boolean isSetDiscoveryClassification() {\n return this.discoveryClassification != null;\n }", "public boolean needFaceDetection() {\n return false;\n }", "public boolean needFaceDetection() {\n return true;\n }", "public boolean isSetRFAdaptiveDriver() {\n return (this.rfAdaptiveDriver != null ? this.rfAdaptiveDriver.isSetValue() : false);\n }", "public boolean isSetDriver() {\n\t\treturn this.driver != null;\n\t}", "public static boolean isSetup() {\n return setup;\n }", "boolean hasFeaturesUsed();", "@Override\n public boolean isConfigured()\n {\n return (config != null) && config.isValid() &&!config.isDisabled();\n }", "public final boolean isEnabled(JsonGenerator.Feature f)\n/* */ {\n/* 652 */ return (this._generatorFeatures & f.getMask()) != 0;\n/* */ }", "public void setDetectorFactoryCollection(DetectorFactoryCollection detectorFactoryCollection) {\n this.detectorFactoryCollection = detectorFactoryCollection;\n }", "boolean hasHasCFD();", "public static boolean isEnabled() {\n return true;\n }", "boolean isInitializeDevio();", "public boolean isDemo() {\n return demo;\n }", "public static boolean isVolteEnhancedConfCallSupport() {\n if (sEnableVolteConfForTest) {\n return true;\n } else {\n return MTK_ENHANCE_VOLTE_CONF_CALL && MTK_IMS_SUPPORT && MTK_VOLTE_SUPPORT;\n }\n }", "private static boolean supportsDnD()\r\n { // Static Boolean\r\n if (supportsDnD == null)\r\n {\r\n boolean support = false;\r\n try\r\n {\r\n //Class arbitraryDndClass = Class.forName(\"java.awt.dnd.DnDConstants\");\r\n support = true;\r\n } // end try\r\n catch (Exception e)\r\n {\r\n support = false;\r\n } // end catch\r\n supportsDnD = new Boolean(support);\r\n } // end if: first time through\r\n return supportsDnD.booleanValue();\r\n }", "public final boolean isEnabled(JsonParser.Feature f)\n/* */ {\n/* 596 */ return (this._parserFeatures & f.getMask()) != 0;\n/* */ }", "boolean hasDatastoreOptions();", "boolean hasDecisionPointParams();", "@DISPID(79)\r\n\t// = 0x4f. The runtime will prefer the VTID if present\r\n\t@VTID(77)\r\n\tboolean enabled();", "public static boolean isImplementationAvailable() {\r\n if (implementationAvailable == null) {\r\n try {\r\n getJavaxBeanValidatorFactory();\r\n implementationAvailable = true;\r\n } catch (Exception e) {\r\n implementationAvailable = false;\r\n }\r\n }\r\n return implementationAvailable;\r\n }", "boolean isFeatureSupported(String feature);", "private boolean isDemoMode() {\r\n\t\treturn Boolean.valueOf(getSettingAsText(CONFIG_DEMO_MODE, Boolean.FALSE.toString()));\r\n\t}", "boolean isEnabled() throws CDIException;", "boolean supportsStrategy(String strategy);", "public void setFeatureFactory(FeatureFactory featureFactory) {\n factory = featureFactory;\n }", "boolean hasConfiguration();", "public boolean isDetectorRail() {\n return this.type == Type.DETECTOR_RAIL;\n }", "boolean hasProvider();", "boolean hasLabelDetectionConfig();", "public static boolean isEnabled()\n\t{\n\t\treturn AngularPageConfigurator.enabled;\n\t}", "public boolean isEnabled(JSON.Feature f) {\n return f.isEnabled(_features);\n }", "public boolean isEngineOn();", "protected boolean isDebugEnable() {\n return BlurDialogEngine.DEFAULT_DEBUG_POLICY;\n }", "boolean profilerEnabled();", "public boolean isSupportFlipCover() {\r\n return sIsFilpCoverSystemFeatureEnabled;\r\n }", "boolean getFaceDetectionPref();", "public boolean isCreateTestSuite() {\n\n return createTestSuite;\n }", "public boolean isEnableGestureRecognization() {\n return false;\n }", "public boolean isDetectable(Fire feu) {\n\t\tdouble isDetected = Math.random();\n\t\t/*\n\t\t * isDetected est compris entre 0 et 1\n\t\t * la notation isDetected>=0 signifie qu'un feu de Type X sera toujours detecte pour le type Sonde choisi (car condition tjrs vrai)\n\t\t * ainsi, la notation isDetected>0.5 signifie que cette sonde a une chance sur deux de detecter ce type de feu\n\t\t */\n\t\tif (this.type == TypeSonde.Smoke) {\n\t\t\t//classes toujours detectes\n\t\t\tif ( (feu.getType().contentEquals(\"ClassA\")||feu.getType().contentEquals(\"ClassB\")) && isDetected>=0 ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t//classes moins bien detectées\n\t\t\tif (feu.getType().contentEquals(\"ClassC\") && isDetected>=0.5) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (feu.getType().contentEquals(\"ClassD\") && isDetected>=0.3) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (this.type == TypeSonde.CO2) {\n\t\t\t//classe toujours detecte\n\t\t\tif (feu.getType().contentEquals(\"ClassC\") && isDetected>=0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t//classes moins bien detectées\n\t\t\tif (feu.getType().contentEquals(\"ClassA\") && isDetected>=0.2) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (feu.getType().contentEquals(\"ClassB\") && isDetected>=0.4) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (feu.getType().contentEquals(\"ClassD\") && isDetected>=0.8) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (this.type == TypeSonde.Thermic) {\n\t\t\t//classes toujours detectes\n\t\t\tif (feu.getType().contentEquals(\"ClassD\") && isDetected>=0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t//classes moins bien detectées\n\t\t\tif (feu.getType().contentEquals(\"ClassA\") && isDetected>=0.2) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (feu.getType().contentEquals(\"ClassB\") && isDetected>=0.2) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (feu.getType().contentEquals(\"ClassC\") && isDetected>=0.8) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean isEnabled () {\n return impl.isEnabled ();\n }", "final public boolean isEnabled() {\n return enabledType!=ENABLED_NONE;\n }", "public boolean isSetup(){\n return isSetup;\n }", "protected static boolean isConfigured()\n {\n return __s_Configured;\n }", "public boolean isLoggingEnabledNow() {\n return this.decider.isLoggingEnabledNow();\n }", "public boolean areComponentsEnabled() {\n return itiefe.isEnabled();\n }", "boolean isDebugEnabled();", "@Deprecated\r\n\tpublic boolean isHDCPBurned(){\r\n\t\treturn mFactoryBurnUtil.isHDCPBurned();\r\n\t}", "public boolean isSupportDtd() {\n\t\treturn this.supportDtd;\n\t}", "boolean isSetCryptProviderTypeExtSource();", "@Override\n IDeviceFactory getFactory();", "boolean hasShotChangeDetectionConfig();", "boolean hasCustomFeatures();", "boolean hasEnabled();", "boolean hasMode();", "public boolean isNuspecAnalyzerEnabled() {\n return nuspecAnalyzerEnabled;\n }", "@java.lang.Override\n public boolean hasDeviceSettings() {\n return deviceSettings_ != null;\n }", "public boolean isDebugEnabled();", "public static boolean isDevEnv() {\n return (Boolean) Launch.blackboard.get(\"fml.deobfuscatedEnvironment\");\n }", "public static boolean isDialerSearchEnabled() {\n return sIsRunTestCase ?\n false : SystemProperties.get(\"ro.mtk_dialer_search_support\").equals(\"1\");\n }", "public boolean isProvidesDigestion() {\n\t\treturn providesDigestion;\n\t}", "boolean hasDevice();", "final public boolean isPerspective()\n {\n return ComponentUtils.resolveBoolean(getProperty(PERSPECTIVE_KEY), true);\n }", "@SuppressLint(\"LongLogTag\")\n public static boolean isIpfsRuning() {\n if (IpfsRunning != null)\n return IpfsRunning;\n\n try {\n IPFS ipfs = new IPFS(IPFS_PROXY_URL);\n IpfsRunning = true;\n } catch (Exception e) {\n Log.e(\"Failed to connnect IPFS service:\", e.toString());\n IpfsRunning = false;\n }\n\n return IpfsRunning;\n }", "public boolean getVisualizerOn()\n {\n DsLog.log1(LOG_TAG, \"getVisualizerOn\");\n boolean enabled = false;\n int count = 0;\n\n //\n // Send EFFECT_CMD_GET_PARAM\n // EFFECT_PARAM_VISUALIZER_ENABLE\n //\n byte[] baValue = new byte[4];\n count = getParameter(EFFECT_PARAM_VISUALIZER_ENABLE, baValue);\n if (count != 4)\n {\n Log.e(LOG_TAG, \"getVisualizerOn: Error in getting the visualizer on/off state!\");\n }\n else\n {\n int on = byteArrayToInt32(baValue);\n enabled = (on == DsAkSettings.AK_DS1_FEATURE_ON) ? true : false;\n }\n\n return enabled;\n }", "private boolean isTransactionConfigEnabled() {\n boolean internalRmFeatureExists = (rc.configuration.getInternalRmFeature() != null);\n DeliveryAssurance deliveryAssurance = rc.configuration.getRmFeature().getDeliveryAssurance();\n boolean noDupQoS =\n (deliveryAssurance.equals(DeliveryAssurance.EXACTLY_ONCE) ||\n deliveryAssurance.equals(DeliveryAssurance.AT_MOST_ONCE));\n return internalRmFeatureExists && noDupQoS;\n }", "public boolean isSupportNfcLedCover() {\r\n return sIsNfcLedCoverSystemFeatureEnabled;\r\n }", "public boolean isTestMode() {\n return testMode;\n }", "public PresentationManager.StubFactoryFactory getStubFactoryFactory(boolean paramBoolean) {\n/* 167 */ if (paramBoolean) {\n/* 168 */ return this.dynamicStubFactoryFactory;\n/* */ }\n/* 170 */ return this.staticStubFactoryFactory;\n/* */ }", "public boolean isDetecting()\n\t{\n\t\treturn currentlyDetecting;\n\t}", "private static boolean development() {\n final String mode = mode();\n return \"dev\".equalsIgnoreCase(mode);\n }", "private boolean hasCamera(){\n return getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY);\n }", "static boolean m61447d(Context context) {\n try {\n if (System.getInt(context.getContentResolver(), \"airplane_mode_on\", 0) != 0) {\n return true;\n }\n return false;\n } catch (NullPointerException unused) {\n return false;\n }\n }", "public boolean isCountDownShow() {\n boolean isCanCountDown = isCameraFrontFacing() ? CustomUtil.getInstance().getBoolean(CustomFields.DEF_CAMERA_SUPPORT_FRONTFACING_COUNT_DOWN, false) : CustomUtil.getInstance().getBoolean(CustomFields.DEF_CAMERA_SUPPORT_BACKFACING_COUNT_DOWN, false);\n if (!CustomUtil.getInstance().getBoolean(CustomFields.DEF_CAMERA_SUPPORT_COUNT_DOWN_ONLY_AUTO_MODE, false) || getModuleId() == this.mActivity.getResources().getInteger(R.integer.camera_mode_photo) || getModuleId() == this.mActivity.getResources().getInteger(R.integer.camera_mode_square) || getModuleId() == this.mActivity.getResources().getInteger(R.integer.camera_mode_pro)) {\n return isCanCountDown;\n }\n return false;\n }", "boolean hasRecognizer();", "boolean supports(Object descriptor);", "@Deprecated\n public boolean isEnable() {\n return !skip;\n }", "@Override\r\n\tpublic boolean hasFirewallSupport() {\n\t\treturn false;\r\n\t}", "public boolean isProvidesSupport() {\n\t\treturn providesSupport;\n\t}", "public boolean isEnabled(FeatureFlagsProvider featureFlagsProvider) {\n try {\n return featureFlagsProvider.isFeatureEnabled(getFeatureFlagString());\n } catch (NullPointerException e) {\n return getDefaultValue();\n }\n }", "private final boolean isDebugMode() {\r\n\tString debug = m_ctx.getInitParameter(\"gateway.debug\");\r\n\tif (debug == null)\r\n\t return false;\r\n\tif (debug.equalsIgnoreCase(\"true\"))\r\n\t return true;\r\n\telse\r\n\t return false;\r\n }", "@java.lang.Override\n public boolean hasDrmSystems() {\n return drmSystems_ != null;\n }", "public boolean isDas() {\n return env.isDas() || env.isEmbedded();\n }", "boolean hasEstimator();", "public final JsonFactory configure(Feature f, boolean state)\n/* */ {\n/* 532 */ return state ? enable(f) : disable(f);\n/* */ }", "public boolean hasDriverid() {\n return fieldSetFlags()[2];\n }", "public boolean isSetDeviceType() {\n return this.DeviceType != null;\n }", "boolean hasCloudRunConfig();", "boolean hasDef();", "boolean isEnabled();", "boolean isEnabled();", "boolean isEnabled();" ]
[ "0.6290573", "0.5976883", "0.5950982", "0.56741387", "0.5445409", "0.5442834", "0.54103506", "0.5383615", "0.5359396", "0.5290629", "0.5260574", "0.52287936", "0.52230597", "0.5217313", "0.5203054", "0.5110588", "0.50855345", "0.5066651", "0.5063325", "0.505622", "0.5031918", "0.5016622", "0.50094235", "0.49943763", "0.4993255", "0.4989649", "0.4982043", "0.49757987", "0.49552566", "0.49551547", "0.49550352", "0.49524507", "0.49471864", "0.4939036", "0.49227", "0.4912975", "0.49085176", "0.49064302", "0.4901725", "0.4900255", "0.48941594", "0.48897955", "0.4869753", "0.4862766", "0.48595524", "0.48555863", "0.4854968", "0.48539865", "0.48411164", "0.4832812", "0.48273197", "0.48256466", "0.48253894", "0.48250335", "0.48173487", "0.48070997", "0.48069233", "0.4806068", "0.48049963", "0.47953624", "0.47816294", "0.4781382", "0.47796074", "0.477778", "0.47730705", "0.4767243", "0.47663486", "0.47654995", "0.47635123", "0.47579625", "0.4748278", "0.47401235", "0.4738955", "0.47357157", "0.47309628", "0.4726701", "0.47254908", "0.47090858", "0.47089073", "0.47087803", "0.47013465", "0.47006342", "0.46937728", "0.4687076", "0.46867484", "0.46855092", "0.46848106", "0.46822637", "0.46813017", "0.46805274", "0.46678272", "0.4666768", "0.46651855", "0.4663705", "0.4659262", "0.46589753", "0.46576032", "0.4653756", "0.4653756", "0.4653756" ]
0.6645084
0
Process the command line.
public static void processCommandLine(TextUICommandLine commandLine, String[] argv, IFindBugsEngine findBugs) throws IOException, FilterException { // Expand option files in command line. // An argument beginning with "@" is treated as specifying // the name of an option file. // Each line of option files are treated as a single argument. // Blank lines and comment lines (beginning with "#") // are ignored. try { argv = commandLine.expandOptionFiles(argv, true, true); } catch (HelpRequestedException e) { showHelp(commandLine); } int argCount = 0; try { argCount = commandLine.parse(argv); } catch (IllegalArgumentException e) { System.out.println(e.getMessage()); showHelp(commandLine); } catch (HelpRequestedException e) { showHelp(commandLine); } Project project = commandLine.getProject(); for (int i = argCount; i < argv.length; ++i) project.addFile(argv[i]); commandLine.handleXArgs(); commandLine.configureEngine(findBugs); if (commandLine.getProject().getFileCount() == 0 && !commandLine.justPrintConfiguration() && !commandLine.justPrintVersion()) { System.out.println("No files to be analyzed"); showHelp(commandLine); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void processInput(CommandLineInput commandLineInput) {\n\t\t\n\t}", "private void processLine(String line) throws NoSystemException {\n line = line.trim();\n if (line == null || line.length() == 0 || line.startsWith(\"//\")\n || line.startsWith(\"--\"))\n return;\n\n if (fStepMode) {\n Log.println(\"[step mode: `return' continues, \"\n + \"`escape' followed by `return' exits step mode.]\");\n try {\n int c = System.in.read();\n if (c == 0x1b)\n fStepMode = false;\n } catch (IOException ex) { }\n }\n\n if (line.startsWith(\"help\") || line.endsWith(\"--help\"))\n cmdHelp(line);\n else if (line.equals(\"q\") || line.equals(\"quit\") || line.equals(\"exit\"))\n cmdExit();\n else if (line.startsWith(\"??\"))\n cmdQuery(line.substring(2).trim(), true);\n else if (line.startsWith(\"?\"))\n cmdQuery(line.substring(1).trim(), false);\n else if (line.startsWith(\":\"))\n cmdDeriveStaticType(line.substring(1).trim());\n else if (line.startsWith(\"!!\"))\n \tcmdExec(line.substring(2).trim(), true);\n else if (line.startsWith(\"!\"))\n \tcmdExec(line.substring(1).trim(), false);\n else if (line.equals(\"\\\\\"))\n cmdMultiLine();\n else if (line.equals(\"check\") || line.startsWith(\"check \"))\n cmdCheck(line);\n else if (line.equals(\"genvcg\"))\n cmdGenVCG(null);\n else if (line.startsWith(\"genvcg \"))\n cmdGenVCG(line.substring(7));\n else if (line.equals(\"genmm\"))\n cmdGenMM(null);\n else if (line.startsWith(\"genmm \"))\n cmdGenMM(line.substring(6));\n else if (line.equals(\"genmonitor\"))\n cmdGenMonitor();\n else if (line.startsWith(\"info \"))\n cmdInfo(line.substring(5));\n else if (line.equals(\"net\"))\n cmdNet();\n else if (line.startsWith(\"open \"))\n cmdOpen(line.substring(5));\n else if (line.startsWith(\"reopen\"))\n \tcmdReOpen(line.substring(6));\n else if (line.startsWith(\"read \"))\n cmdRead(line.substring(5), true);\n else if (line.startsWith(\"readq \"))\n cmdRead(line.substring(6), false);\n else if (line.equals(\"reset\"))\n cmdReset();\n else if (line.equals(\"step on\"))\n cmdStepOn();\n else if (line.equals(\"undo\"))\n cmdUndo();\n else if (line.equals(\"redo\"))\n cmdRedo();\n else if (line.equals(\"write\"))\n cmdWrite(null);\n else if (line.startsWith(\"write \"))\n cmdWrite(line.substring(6));\n else if (line.startsWith(\"load -q \"))\n cmdGenLoadInvariants(line.substring(8), system(), false);\n else if (line.startsWith(\"gen loaded\"))\n cmdGenPrintLoadedInvariants(system());\n else if (line.startsWith(\"gen load\"))\n cmdGenLoadInvariants(line.substring(8), system(), true);\n else if (line.startsWith(\"gen unload\") || line.equals(\"unload\"))\n cmdGenUnloadInvariants(line.substring(10), system());\n else if (line.startsWith(\"gen start\") || line.equals(\"gen start\"))\n cmdGenStartProcedure(line.substring(9), system());\n else if (line.startsWith(\"gen flags\") || line.equals(\"gen flags\"))\n cmdGenInvariantFlags(line.substring(9), system());\n else if (line.startsWith(\"gen result\") || line.equals(\"gen result\"))\n cmdGenResult(line.substring(10), system());\n else if (line.startsWith(\"reload extensions\"))\n \tcmdReloadExtensions();\n else if (line.startsWith(\"coverage\"))\n \tcmdCoverage();\n\t\telse if (line.startsWith(\"plugins\") || line.equals(\"plugins\"))\n\t\t\tcmdShowPlugins();\n\t\telse if (Options.doPLUGIN) {\n\t\t\tSet<Entry<Map<String, String>, PluginShellCmdProxy>> cmdEntrySet = this.pluginCommands.entrySet();\n\t\t\tboolean cmdFound = false;\n\t\t\t\n\t\t\tfor (Entry<Map<String, String>, PluginShellCmdProxy> currentCmdMapEntry : cmdEntrySet) {\n\t\t\t\tMap<String, String> currentCmdDescMap = currentCmdMapEntry.getKey();\n\n\t\t\t\tif (line.startsWith(currentCmdDescMap.get(\"cmd\"))\n\t\t\t\t\t\t|| line.equals(currentCmdDescMap.get(\"cmd\"))) {\n\t\t\t\t\tIPluginShellCmd currentCmd = currentCmdMapEntry.getValue();\n\t\t\t\t\tcurrentCmd.executeCmd(currentCmdDescMap.get(\"cmd\"), \n\t\t\t\t\t\t\tline.substring(currentCmdDescMap.get(\"cmd\").length()));\n\t\t\t\t\tcmdFound = true;\n\t\t\t\t\tbreak;\n }\n\t\t\t}\n\n\t\t\tif (!cmdFound)\n\t\t\t\tLog.error(\"Unknown command `\" + line + \"'. Try `help'.\");\n\t\t} else\n\t\t\tLog.error(\"Unknown command `\" + line + \"'. Try `help'.\");\n\t}", "protected abstract void go(CommandLine line) throws Exception;", "void process(\n final WriteableCommandLine commandLine,\n final ListIterator args)\n throws OptionException;", "private static void process(String... args) throws Exception {\n Deque<String> params = new LinkedList<>(Arrays.asList(args));\n String command = params.pop().toUpperCase(Locale.ROOT);\n valueOf(command).run(params);\n }", "private static void parseArguments(String[] args, MiParaPipeLine p) throws IOException{\n options.addOption(\"i\", \"input-file\", true, \"FASTA input file for query sequences\");\n options.addOption(\"o\", \"output-folder\", true, \"output folder for prediction results\");\n options.addOption(\"t\", \"test\", true, \"run test example \");\n options.addOption(\"c\", \"config\", true, \"configuration file for miRPara\");\n options.addOption(\"a\", \"action\", true, \"action to perform\");\n options.addOption(\"h\", \"help \", false, \"print help\");\n\n logger.trace(\"parsing args\");\n CommandLineParser parser = new BasicParser();\n CommandLine cmd = null;\n\n \n try {\n cmd = parser.parse(options, args);\n if (cmd.hasOption(\"h\")){\n print_help();\n System.out.print(p.reportAvailableActions());\n }\n\n if (cmd.hasOption(\"t\")){ \n logger.info(\"test set to \" + cmd.getOptionValue(\"l\"));\n test = cmd.getOptionValue(\"t\").toLowerCase();\n }\n \n if (cmd.hasOption(\"i\")) {\n logger.info(\"input file set to \" + cmd.getOptionValue(\"i\"));\n p.setInputFilename(cmd.getOptionValue(\"i\"));\t\n } \n\n if (cmd.hasOption(\"o\")){\n logger.info(\"output folder is\" + cmd.getOptionValue(\"o\"));\n p.setOutputFolder(cmd.getOptionValue(\"o\"));\n }\n \n if (cmd.hasOption(\"a\")){\n logger.info(\"requested action is \" + cmd.getOptionValue(\"a\"));\n p.setAction(cmd.getOptionValue(\"a\"));\n }\n \n if (cmd.hasOption(\"c\")){\n configFile = cmd.getOptionValue(\"c\");\n logger.info(\"Configuration file is \" + configFile);\n p.setConfigFilename(configFile);\n }\n\n\n \n if(p.getConfigFilename()==null){\n throw new ParseException(\"no configuration file was specified\") ; \n }\n \n if(new File(p.getConfigFilename()).exists() == false){\n throw new IOException(\"configuration file <\" + p.getConfigFilename() + \"> does not exist\");\n } \n \n if(new File(p.getInputFilename()).exists()== false)\n {\n throw new IOException(\"input file <\" + p.getInputFilename() + \"> does not exist\");\n }\n \n if(new File(p.getOutputFolder()).exists() == false)\n {\n if (new File(p.getOutputFolder()).getParentFile().exists() == false)\n throw new IOException(\"parent file <\" + new File(p.getOutputFolder()).getParentFile() + \"> does not exist\");\n \n new File(p.getOutputFolder()).mkdir();\n logger.info(\"create results folder <\" + p.getOutputFolder() + \">\");\n }\n\n } catch (ParseException e) {\n\n logger.fatal(\"Failed to parse command line properties\", e);\n print_help();\n\n }\n\n \n }", "public static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tCreditCardProcess ccp = new CreditCardProcess();\n\t\ttry {\n\t\t\t// Read in the first line to check\n\t\t\tString line = br.readLine();\n\t\t\ttry {\n\t\t\t\t// Try use this first-line as file location\n\t\t\t\tBufferedReader fbr = new BufferedReader(new FileReader(line));\n\t\t\t\t// Success, then proceed to read in commands from file\n\t\t\t\twhile ((line = fbr.readLine()) != null) {\n\t\t\t\t\tccp.processCommand(line);\n\t\t\t\t}\n\t\t\t\tfbr.close();\n\t\t\t\t//Encountered error - file does not exist\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t//Use first line as command\n\t\t\t\tccp.processCommand(line);\n\t\t\t\t//Keep accepting command from console until an empty line is enter\n\t\t\t\twhile (!(line = br.readLine()).isEmpty()) {\n\t\t\t\t\tccp.processCommand(line);\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tccp.print();\n\t}", "void main(CommandLine cmd);", "public static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\tValuesRecords values = new ValuesRecords(args[1]);\n\t\tBTreeStructure btree = new BTreeStructure(args[0]);\n\t\twhile(sc.hasNext()) {\n\t\t\t//get command here!\n\t\t\tString commline = sc.nextLine();\n\t\t\t//split, then check comm[0] if exit; break if true, else commandLine\n\t\t\t\n\t\t\tString[] comm = commline.split(\" \");\n\t\t\t\n\t\t\tif(comm[0].equals(\"exit\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//invalid command rejector\n\t\t\telse if (!comm[0].equals(\"insert\")||!comm[0].equals(\"select\")||!comm[0].equals(\"update\")) {\n\t\t\t\tSystem.out.println(\"ERROR: invalid command\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcommandLine(values, btree, commline);\n\t\t\t}\n\t\t}\n\t\tsc.close();\n\t}", "public static void main(String[] args) {\n\t\tprocess();\r\n\r\n\t}", "public static void main(String[] args) {\n process();\n }", "public void process(String[] args) {\n ExitStatus status = parseCommand(args);\n System.err.println(status.getMessage());\n System.exit(status.getExitCode().getStatusCode());\n }", "public static void main(String[] args) {\r\n\t\tCommandLine top = new CommandLine(new Main());\r\n\t\tif (args.length == 0) {\r\n\t\t\ttop.usage(System.out);\r\n\t\t}\r\n\t\t\r\n\t\tList<CommandLine> parsedCommands;\r\n\t\ttry {\r\n\t\t parsedCommands = top.parse(args);\r\n\t\t} catch (ParameterException ex) { // incorrect user input for one of the subcommands\r\n\t\t LOG.severe(\"Error parsing command line: \" + ex.getMessage());\r\n\t\t ex.getCommandLine().usage(System.out); // get the offended subcommand from the exception\r\n\t\t return;\r\n\t\t}\r\n\t\t\r\n\t\tfor (CommandLine parsed : parsedCommands) {\r\n\t\t if (parsed.isUsageHelpRequested()) {\r\n\t\t parsed.usage(System.out);\r\n\t\t return;\r\n\t\t } else if (parsed.isVersionHelpRequested()) {\r\n\t\t parsed.printVersionHelp(System.out);\r\n\t\t return;\r\n\t\t }\r\n\t\t}\r\n\t\tObject last = parsedCommands.get(parsedCommands.size() - 1).getCommand();\r\n\t\tif (last instanceof Runnable) {\r\n\t\t ((Runnable) last).run();\r\n\t\t return;\r\n\t\t}\r\n\t}", "public static void main(String[] args)\r\n {\r\n CommandParser parser = new CommandParser(args[0]);\r\n parser.parseFile();\r\n }", "public void run(){\n\t\t\ttry{\n\t\t\t\twhile(true){\n\t\t\t\t\tScanner keyboard = new Scanner(System.in);\n\t\t\t\t\tString line = keyboard.nextLine();\n\t\t\t\t\tString[] command = line.split(\" \");\n\t\t\t\t\tSystem.out.println(execute(line));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}catch(Exception ex){\n\t\t\t\tSystem.err.println(\"Incorrect command \\\"help\\\" for info\");\n\t\t\t\tex.printStackTrace();\n\t\t\t\trun();\n\t\t\t}\n\t\t\t\n\t\t}", "void processCommandLineArguments(String[] args) throws ConfigurationException;", "@Override\n protected void processRun() {\n try {\n if (helpOnly) helpOnly();\n else {\n if (hasPipedInput()) pipeVersion();\n else stdinVersion();\n }\n } catch (IOException e) {\n return; // Killed process\n }\n }", "public static void main(String[] args) {\r\n MemoryManager memory = new MemoryManager(Integer.parseInt(args[0]));\r\n HashTable hasher = new HashTable(Integer.parseInt(args[1]), memory);\r\n if (args[2] != null) {\r\n File commands = new File(args[2]);\r\n Processor processor = new Processor(commands, hasher);\r\n processor.process();\r\n }\r\n //System.exit(0);\r\n \r\n }", "public void parseCommandLine(String[] args) {\r\n\t\t// define command line options\r\n\t\tOptions options = new Options();\r\n\t\t// refresh:\r\n\t\toptions.addOption(new Option(\r\n\t\t \"refresh\", \r\n\t\t \"Tell Argus to start refreshing all files after Minstrel startup.\"));\r\n\t\t// port:\r\n\t\tOptionBuilder.withArgName(\"port\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription( \"Run NanoHTTPD on this port instead of default 8000.\" );\r\n\t\toptions.addOption(OptionBuilder.create(\"port\"));\r\n\t\t// argus:\r\n\t\tOptionBuilder.withArgName(\"url\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription( \"Use Argus at <url> instead of default localhost:8008.\" );\r\n\t\toptions.addOption(OptionBuilder.create(\"argus\"));\r\n\t\t// vlc:\r\n\t\tOptionBuilder.withArgName(\"url\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription(\"Use VLC at <url> instead of default localhost:8080.\");\r\n\t\toptions.addOption(OptionBuilder.create(\"vlc\"));\r\n\t\t// wwwroot:\r\n\t\tOptionBuilder.withArgName(\"path\");\r\n\t\tOptionBuilder.hasArg();\r\n\t\tOptionBuilder.withDescription(\"Have NanoHTTPD serve files from <path> instead of default ./wwwroot.\");\r\n\t\toptions.addOption(OptionBuilder.create(\"wwwroot\"));\r\n\t\t\r\n\t\t// parse command line options and adjust accordingly\r\n\t\tCommandLineParser parser = new GnuParser();\r\n\t\ttry {\r\n\t\t\tCommandLine line = parser.parse(options, args);\r\n\r\n\t\t\tif (line.hasOption(\"refresh\")) {\r\n\t\t\t\trefresh = new Date();\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"port\")) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tport = Integer.parseInt( line.getOptionValue(\"port\"));\r\n\t\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t\tSystem.err.println(\"Badly formatted port number, defaulting to 8000. Reason: \" + e.getMessage());\r\n\t\t\t\t\tport = 8000;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"argus\")) {\r\n\t\t\t\targusURL = line.getOptionValue(\"argus\");\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"vlc\")) {\r\n\t\t\t\tvlcURL = line.getOptionValue(\"vlc\");\r\n\t\t\t}\r\n\t\t\tif (line.hasOption(\"wwwroot\")) {\r\n\t\t\t\twwwroot = line.getOptionValue(\"wwwroot\");\r\n\t\t\t}\r\n\t\t} catch (ParseException e) {\r\n\t\t\tSystem.err.println(\"Command line parsing failed. Reason: \" + e.getMessage());\r\n\t\t}\r\n\t}", "private static void parseCommandLine(String[] args) throws Exception {\n int i;\n // iterate over all options (arguments starting with '-')\n for (i = 0; i < args.length && args[i].charAt(0) == '-'; i++) {\n switch (args[i].charAt(1)) {\n // -a type = write out annotations of type a.\n case 'a':\n if (annotTypesToWrite == null)\n annotTypesToWrite = new ArrayList();\n annotTypesToWrite.add(args[++i]);\n break;\n\n // -g gappFile = path to the saved application\n case 'g':\n gappFile = new File(args[++i]);\n break;\n\n // -e encoding = character encoding for documents\n case 'e':\n encoding = args[++i];\n break;\n\n default:\n System.err.println(\"Unrecognised option \" + args[i]);\n usage();\n }\n }\n\n // set index of the first non-option argument, which we take as the first\n // file to process\n firstFile = i;\n\n // sanity check other arguments\n if (gappFile == null) {\n System.err.println(\"No .gapp file specified\");\n usage();\n }\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n List<String> inputs = new InputsReader().read(scanner);\n\n List<Command> commands = new CommandsFactory().build(inputs);\n\n new CommandsProcessor().execute(commands);\n }", "public static void main(String... args) {\n int status;\n try {\n process(args);\n status = 0;\n } catch (IllegalArgumentException | NoSuchElementException ex) {\n printUsage(ex);\n status = 1;\n } catch (NoSuchMethodException ex) {\n log.error(\"Method not found \", ex);\n status = 2;\n } catch (Throwable ex) {\n ex.printStackTrace();\n status = 3;\n }\n System.exit(status);\n }", "public static void main( String args[] ) {\n\n parseInput(args);\n }", "public static void main(String[] args)\n throws CmdLineExceptions, FileNotFoundException {\n CommandLineProcessor clp = new CommandLineProcessor(args);\n HashMap<String, ArrayList<String>> allTasks = clp.argumentSeparator(); // package neatly all flags and args into a list of HashMap\n\n Model digitalEntryDatabase = new Model(allTasks.get(CSV_ARG).get(INPUT_FILE_INDEX)); // create data model\n Controller program = new Controller(digitalEntryDatabase, allTasks); // ingest package\n\n program.executeTask(); // execute all tasks, modify data model, write to backup CSV\n Map<Integer, DigitalEntry> toDisplay = program.display(); // output final TreeMap, primary key is ID\n\n View finalView = new View(toDisplay); // Front end focus, still render on errors\n finalView.printAllEntries();\n }", "public static void main( String[] args )\n {\n CommandLineParser parser = new DefaultParser();\n\n // create the Options\n OptionGroup optgrp = new OptionGroup();\n optgrp.addOption(Option.builder(\"l\")\n .longOpt(\"list\")\n .hasArg().argName(\"keyword\").optionalArg(true)\n .type(String.class)\n .desc(\"List documents scraped for keyword\")\n .build());\n optgrp.addOption( Option.builder(\"r\")\n .longOpt(\"read\")\n .hasArg().argName(\"doc_id\")\n .type(String.class)\n .desc(\"Display a specific scraped document.\")\n .build());\n optgrp.addOption( Option.builder(\"a\")\n .longOpt(\"add\")\n .type(String.class)\n .desc(\"Add keywords to scrape\")\n .build());\n optgrp.addOption( Option.builder(\"s\")\n .longOpt(\"scraper\")\n .type(String.class)\n .desc(\"Start the scraper watcher\")\n .build());\n\n\n\n Options options = new Options();\n options.addOptionGroup(optgrp);\n\n options.addOption( Option.builder(\"n\")\n .longOpt(\"search-name\").hasArg()\n .type(String.class)\n .desc(\"Name of the search task for a set of keywords\")\n .build());\n\n options.addOption( Option.builder(\"k\")\n .longOpt(\"keywords\")\n .type(String.class).hasArgs()\n .desc(\"keywords to scrape. \")\n .build());\n\n options.addOption( Option.builder(\"t\")\n .longOpt(\"scraper-threads\")\n .type(Integer.class).valueSeparator().hasArg()\n .desc(\"Number of scraper threads to use.\")\n .build());\n\n //String[] args2 = new String[]{ \"--add --search-name=\\\"some thing\\\" --keywords=kw1, kw2\" };\n // String[] args2 = new String[]{ \"--add\", \"--search-name\", \"some thing new\", \"--keywords\", \"kw3\", \"kw4\"};\n // String[] args2 = new String[]{ \"--scraper\"};\n// String[] args2 = new String[]{ \"--list\"};\n\n int exitCode = 0;\n CommandLine line;\n try {\n // parse the command line arguments\n line = parser.parse( options, args );\n }\n catch( ParseException exp ) {\n System.out.println( \"Unexpected exception:\" + exp.getMessage() );\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name=<SearchTask> --keywords=<keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n System.exit(2);\n return;\n }\n\n if( line.hasOption( \"add\" ) ) {\n // Add Search Task mode\n if(!line.hasOption( \"search-name\" ) || !line.hasOption(\"keywords\")) {\n System.out.println(\"must have search name and keywords when adding\");\n System.exit(2);\n }\n String name = line.getOptionValue( \"search-name\" );\n String[] keywords = line.getOptionValues(\"keywords\");\n System.out.println(\"Got keywords: \" + Arrays.toString(keywords) );\n\n exitCode = add(name, Arrays.asList(keywords));\n\n } else if( line.hasOption( \"list\" ) ) {\n // List Keyword mode\n DataStore ds = new DataStore();\n String keyword = line.getOptionValue( \"list\" );\n System.out.println(\"Listing with keyword = `\" + keyword + \"`\");\n if(keyword == null) {\n List<String > keywords = ds.listKeywords();\n for(String kw : keywords) {\n System.out.println(kw);\n }\n exitCode=0;\n } else {\n List<SearchResult > results = ds.listDocsForKeyword(keyword);\n for(SearchResult kw : results) {\n System.out.println(kw);\n }\n }\n ds.close();\n\n } else if( line.hasOption( \"read\" ) ) {\n // Show a specific document\n String docId = line.getOptionValue( \"read\" );\n if(docId == null) {\n System.err.println(\"read option missing doc_id parameter\");\n exitCode = 2;\n } else {\n\n DataStore ds = new DataStore();\n String result = ds.read(docId);\n\n if (result == null) {\n System.err.println(\"NOT FOUND\");\n exitCode = 1;\n } else {\n System.out.println(result);\n }\n ds.close();\n }\n }\n else if( line.hasOption( \"scraper\" ) ) {\n int numThreads = 1;\n if(line.hasOption( \"scraper-threads\")) {\n String threadString = line.getOptionValue(\"scraper-threads\");\n try {\n numThreads = Integer.parseInt(threadString);\n } catch (NumberFormatException e) {\n System.out.println(\n \"unable to parse number of threads from `\" +\n threadString + \"`\");\n }\n\n }\n // Start scraper mode\n Daemon daemon = new Daemon(numThreads);\n daemon.start();\n } else {\n // generate the help statement\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"searchscraper \\n\" +\n \" [--add --search-name <SearchTask> --keywords <keyword1> <keyword2> ...]\\n\" +\n \" [--list [<keyword>] ]\\n\" +\n \" [--read <doc_id>]\\n\", options , true);\n exitCode = 2;\n }\n\n\n System.exit(exitCode);\n }", "public void processArgs(String[] args){\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tString useqVersion = IO.fetchUSeqVersion();\n\t\tSystem.out.println(\"\\n\"+useqVersion+\" Arguments: \"+ Misc.stringArrayToString(args, \" \") +\"\\n\");\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'r': bedFile = new File(args[++i]); break;\n\t\t\t\t\tcase 's': saveDirectory = new File(args[++i]); break;\n\t\t\t\t\tcase 'c': haploArgs = args[++i]; break;\n\t\t\t\t\tcase 't': numberConcurrentThreads = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//check save dir\n\t\tif (saveDirectory == null) Misc.printErrAndExit(\"\\nError: cannot find your save directory!\\n\"+saveDirectory);\n\t\tsaveDirectory.mkdirs();\n\t\tif (saveDirectory.isDirectory() == false) Misc.printErrAndExit(\"\\nError: your save directory does not appear to be a directory?\\n\");\n\n\t\t//check bed\n\t\tif (bedFile == null || bedFile.canRead() == false) Misc.printErrAndExit(\"\\nError: cannot find your bed file of regions to interrogate?\\n\"+bedFile);\n\t\t\n\t\t//check args\n\t\tif (haploArgs == null) Misc.printErrAndExit(\"\\nError: please provide a gatk haplotype caller launch cmd similar to the following where you \"\n\t\t\t\t+ \"replace the $xxx with the correct path to these resources on your system:\\n'java -Xmx4G -jar $GenomeAnalysisTK.jar -T \"\n\t\t\t\t+ \"HaplotypeCaller -stand_call_conf 5 -stand_emit_conf 5 --min_mapping_quality_score 13 -R $fasta --dbsnp $dbsnp -I $bam'\\n\");\n\t\tif (haploArgs.contains(\"~\") || haploArgs.contains(\"./\")) Misc.printErrAndExit(\"\\nError: full paths in the GATK command.\\n\"+haploArgs);\n\t\tif (haploArgs.contains(\"-o\") || haploArgs.contains(\"-L\")) Misc.printErrAndExit(\"\\nError: please don't provide a -o or -L argument to the cmd.\\n\"+haploArgs);\t\n\t\n\t\t//determine number of threads\n\t\tdouble gigaBytesAvailable = ((double)Runtime.getRuntime().maxMemory())/ 1073741824.0;\n\t\t\n\t\n\t}", "public void run() {\n\t\tsetupReadline();\n\n\t\tif (Options.cmdFilename != null) {\n\t\t\tcmdOpen(Options.cmdFilename);\n\t\t} else {\n\t\t\tLog.verbose(\"Enter `help' for a list of available commands.\");\n\t\t\t\n\t\t\tif (Options.doPLUGIN) {\n\t\t\t\tLog.verbose(\"Enter `plugins' for a list of available plugin commands.\");\n\t\t\t}\n\t\t}\n\n while (!fFinished) {\n Thread.yield();\n Log.resetOutputFlag();\n\n String line = \"\";\n\n // get current readline (may be e.g. console or file)\n fReadline = fReadlineStack.getCurrentReadline();\n try {\n if (fMultiLineMode) {\n while (true) {\n // use special prompt to emphasize multi-line input\n String oneLine = fReadline.readline(CONTINUE_PROMPT);\n // end of input or a single dot terminates the input\n // loop\n if (oneLine == null || oneLine.equals(\".\"))\n break;\n line += oneLine + Options.LINE_SEPARATOR;\n }\n fMultiLineMode = false;\n } else {\n line = fReadline.readline(PROMPT);\n }\n } catch (IOException ex) {\n Log.error(\"Cannot read line: \" + ex.getMessage());\n }\n if (line != null) {\n \tif (!fReadline.doEcho())\n \t\tUSEWriter.getInstance().protocol(line);\n \t\n processLineSafely(line);\n } else {\n fFinished = fReadlineStack.popCurrentReadline();\n setFileClosed();\n \n if (fFinished && Options.quiet)\n processLineSafely(\"check\");\n }\n }\n cmdExit();\n }", "public void doCommandLine(){\n\t\t//parse arguments\n\t\tString help = System.getProperty(\"help\");\n\t\tif (help!=null){\n\t\t\tdoHelp();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tboolean doAutomation = false;\n\t\tString numRuns = System.getProperty(\"runs\");\n\t\tString outputDir = System.getProperty(\"out\");\n\t\tString filePref = System.getProperty(\"prefix\");\n\t\tString numIters = System.getProperty(\"iters\");\n\t\tString params = System.getProperty(\"params\");\n\t\tString inFasta = System.getProperty(\"in\");\n\t\tString inCustomMatrix = System.getProperty(\"inCustom\");\n\t\tString distanceName = System.getProperty(\"distanceName\");\n\t\tString doPdf = System.getProperty(\"pdf\");\n\t\tString zoom = System.getProperty(\"zoom\");\n\t\tString UIScaling = System.getProperty(\"UIScaling\");\n\t\tString width = System.getProperty(\"width\");\n\t\tString height = System.getProperty(\"height\");\n\t\tString reference = System.getProperty(\"reference\");\n\t\tdoAutomation |= numRuns!=null;\n\t\tdoAutomation |= outputDir!=null;\n\t\tdoAutomation |= filePref!=null;\n\t\tdoAutomation |= numIters!=null;\n\t\tdoAutomation |= inFasta!=null;\n\t\tdoAutomation |= inCustomMatrix!=null;\n\t\tif (doAutomation){\n\t\t\t//Necessary params:\n\t\t\tif (outputDir==null){\n\t\t\t\tbatchError(\"-Dout must be specified.\");\n\t\t\t}\n\t\t\tif (inFasta==null){\n\t\t\t\tbatchError(\"-Din must be specified.\");\n\t\t\t}\n\t\t\t//Necessary, if not doing PDF\n\t\t\tif (doPdf==null){ //Pdf render doesn't require all this stuff.\n\t\t\t\tif (numRuns==null){\n\t\t\t\t\tbatchError(\"-Druns must be specified.\");\n\t\t\t\t}\n\t\t\t\tif (params==null){\n\t\t\t\t\tbatchError(\"-Dparams must be specified.\");\n\t\t\t\t}\n\t\t\t\tif (numIters==null){\n\t\t\t\t\tbatchError(\"-Diters must be specified.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnumRuns = \"0\";\n\t\t\t\tnumIters = \"0\";\n\t\t\t\tparams = null; //Use defaults\n\t\t\t}\n\t\t\t//Has a default / Optional:\n\t\t\tif (filePref==null){\n\t\t\t\tfilePref=\"dGbatch\";\n\t\t\t}\n\t\t\tif (zoom!=null){\n\t\t\t\tVIEW_SCALE_USER=max(1,new Float(zoom));\n\t\t\t}\n\t\t\tif (UIScaling != null) {\n\t\t\t\tthis.UIScaling = max(1, new Float(UIScaling));\n\t\t\t}\n\t\t\tif (width != null) {\n\t\t\t\tVIEW_WIDTH = max(1,new Integer(width));\n\t\t\t}\n\t\t\tif (height != null) {\n\t\t\t\tVIEW_HEIGHT = max(1,new Integer(height));\n\t\t\t}\n\t\t\tif (inCustomMatrix != null) {\n\t\t\t\tif (distanceName == null) {\n\t\t\t\t\tbatchError(\"-DdistanceName must be specified if -DinCustom used.\");\n\t\t\t\t}\n\t\t\t\tthis.distanceName = distanceName;\n\t\t\t}\n\t\t\t//Ok, do it.\n\t\t\trunScript(new Integer(numRuns),new Integer(numIters),params,outputDir,filePref,inFasta,inCustomMatrix,doPdf!=null,reference);\n\t\t} else {\n\t\t\t//If we get here, we didn't input any command line arguments.\n\t\t\tSystem.out.println(\"Dgraph can be automated: try adding -Dhelp to the arguments when running the program.\");\n\t\t}\n\t}", "public abstract void runProcess(String[] args) throws Exception;", "private void cli (String[] args)\n {\n if (args.length != 2) {\n System.out.println(\"Usage: <analyzer> input-file output-file\");\n return;\n }\n dataFilename = args[1];\n super.cli(args[0], this);\n }", "public static void main( String[] args ) {\n \tclArgs = new CommandLineArgs();\n \tJCommander jc = new JCommander(clArgs);\n \tfinal IDefaultProvider DEFAULT_PROVIDER = new DefaultCommandLineArgsProvider();\n \t\n \t// Set provider for default values of command line arguments \n \tjc.setDefaultProvider(DEFAULT_PROVIDER);\n \tjc.setColumnSize(100);\n \t\n \ttry {\n \t\t// Try to parse the arguments\n \t\tjc.parse(args);\n \t} catch (ParameterException e) {\n \t\t// Print error message, jc.usage() is called automatically\n \t\tLOG.error(\"{}. Refer to the available options and their explanation below.\", e.getMessage());\n \t}\n \t\n \tif (clArgs.preprocess) {\n \t\t// Go into the preprocessing phase\n \t\tpreprocess();\n \t}\n \telse if (clArgs.spDetection) {\n \t\t// Go into the detection of stay points\n \t\tdetectStayPoints();\n \t}\n \telse if (clArgs.clustering) {\n \t\t// Go into the clustering task\n \t\tclustering();\n \t}\n \telse if (clArgs.buildFramework) {\n \t\t// Create shared framework based on clustering results\n \t\tbuildFramework();\n \t}\n \telse if (clArgs.buildUserGraphs) {\n \t\t// Create hierarchical graph for each user\n \t\tbuildHierarchicalGraphs();\n \t}\n \telse if (clArgs.calcSimilarity) {\n \t\t// Calculate spatial similarity between users\n \t\tcalculateSimilarity();\n \t}\n \telse if (clArgs.evaluation && !clArgs.automation) {\n \t\t// Evaluation only works with a run of similarity measurement beforehand\n \t\tLOG.info(\"The evaluation can only be performed in connection with the similarity measurement. Run this program with the command line switch {} or {} to get more information on how to run the similarity measurement.\",\n \t\t\t\tCommandLineArgs.HELP, CommandLineArgs.HELP_LONG);\n \t\treturn;\n \t}\n \telse if (clArgs.automation) {\n \t\tif (clArgs.evaluation) {\n \t\t\t// Start the automation\n \t\t\tautomate();\n \t\t} else {\n \t\t\t// The automation task needs the evaluation switch\n \t\tLOG.info(\"The automation requires the evaluation. The evaluation can be enabled with the {} or {} command line switch. Run this program with the command line switch {} or {} to get more information on how to run the automation.\",\n \t\t\t\tnew Object[] { CommandLineArgs.EVALUATION, CommandLineArgs.EVALUATION_LONG, CommandLineArgs.HELP, CommandLineArgs.HELP_LONG });\n \t\t\n \t\t// Ask the user if the evaluation should be enabled and the automation should run\n \t System.out.print(\"Do you want the system to enable the evaluation (y/n)? \");\n\n \t // Open standard input stream\n \t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \t\t\n \t\tString runAutomationWithEvaluation = null;\n \t\ttry {\n \t\t\trunAutomationWithEvaluation = br.readLine();\n \t\t} catch (IOException ioe) {\n \t\t\tLOG.error(\"An error occurred while reading your input: {}\", ioe);\n \t\t}\n \t\t\n \t\t// User decided to start automation with evaluation\n \t\tif (runAutomationWithEvaluation.equals(\"y\") || runAutomationWithEvaluation.equals(\"Y\")) {\n \t\t\tLOG.debug(\"The evaluation is enabled by the system. Starting automation task.\");\n \t\t\tautomate();\n \t\t}\n \t\t// User decided to end the program\n \t\telse {\n \t\t\tLOG.debug(\"Automation aborted by the user.\");\n \t\t\treturn;\n \t\t}\n \t\t}\n \t}\n \telse {\n \t\t// Print a help text\n \t\tjc.usage();\n \t}\n }", "public void startCommandLine() {\r\n Object[] messageArguments = { System.getProperty(\"app.name.display\"), //$NON-NLS-1$\r\n System.getProperty(\"app.version\") }; //$NON-NLS-1$\r\n MessageFormat formatter = new MessageFormat(\"\"); //$NON-NLS-1$\r\n formatter.applyPattern(Messages.MainModel_13.toString());\r\n TransportLogger.getSysAuditLogger().info(\r\n formatter.format(messageArguments));\r\n }", "public static void main(String[] args) {\n ICommand[] commandRegister = {\n new LeagueCmd(),\n new TeamCmd(),\n new MatchCmd(),\n new LoadCmd(),\n new SaveCmd()\n };\n if (Utils.initSaveFileLocation()) {\n final CommandHandler cmdHandler = new CommandHandler(commandRegister);\n Scanner scanner = new Scanner(System.in);\n boolean isExited = false;\n String userInput;\n String[] exitCmd = {\"exit\", \"quit\", \"close\"};\n\n System.out.println(\"# CompetitionManager.\\nAfin d'afficher la liste des commandes, entrez \\\"help\\\".\");\n Utils.displayBasePath();\n\n while (!isExited) {\n // Boucle de lecture des commandes\n System.out.printf(\"%s> \", renderSelected());\n userInput = scanner.nextLine();\n if (Arrays.asList(exitCmd).contains(userInput)) isExited = true;\n else cmdHandler.handleMessage(userInput);\n }\n } else {\n System.out.println(\"Une erreur est survenue lors de l'initialisation de l'application.\");\n }\n }", "public static void main(String[] args) throws IOException{\r\n\t\tparseOption(args);\r\n\t\trun(args);\r\n\t}", "protected void handleArgs(String[] argv) throws IOException {\n String url = null, path = null, com = null;\n char c;\n boolean got_com = false;\n boolean error = false;\n edu.hkust.clap.monitor.Monitor.loopBegin(750);\nfor (int i = 0; i < argv.length; i++) { \nedu.hkust.clap.monitor.Monitor.loopInc(750);\n{\n if (argv[i].charAt(0) != '-' || argv[i].length() != 2) {\n error = true;\n break;\n }\n c = argv[i].charAt(1);\n switch(c) {\n case 'c':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n com = argv[++i].toUpperCase() + \"\\0\";\n got_com = true;\n break;\n case 'u':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n url = argv[++i];\n break;\n case 'p':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n path = argv[++i];\n break;\n case 's':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n _host_name = argv[++i];\n break;\n case 'P':\n if (i == argv.length - 1) {\n System.err.println(\"Missing argument for -\" + c);\n error = true;\n break;\n }\n try {\n _port = Integer.parseInt(argv[++i]);\n } catch (Exception e) {\n System.err.println(\"Invalid port number \\\"\" + argv[i] + \"\\\"\");\n _port = -1;\n error = true;\n }\n break;\n case 'v':\n ++_verbose;\n break;\n case 'h':\n usage();\n System.exit(OK);\n case 'V':\n version();\n System.exit(OK);\n default:\n error = true;\n }\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(750);\n\n if (!got_com) {\n System.err.println(\"No command specified\");\n error = true;\n }\n if (error) {\n usage();\n System.exit(FAILED);\n }\n if (_port == -1) {\n _port = PushCacheFilter.DEFAULT_PORT_NUM;\n }\n if (_host_name.length() == 0) {\n _host_name = DEFAULT_SERVER;\n }\n int ev = 0;\n try {\n switch(PushCacheProtocol.instance().parseCommand(com)) {\n case PushCacheProtocol.ADD:\n add(path, url);\n break;\n case PushCacheProtocol.DEL:\n del(url);\n break;\n case PushCacheProtocol.PRS:\n if (!isPresent(url)) {\n ev = 1;\n }\n break;\n default:\n simpleCommand(com);\n }\n } catch (IllegalArgumentException e) {\n System.err.println(e.getMessage());\n usage();\n ev = FAILED;\n }\n sendBye();\n System.exit(ev);\n }", "public void processArgs(String[] args){\n\t\t//look for a config file \n\t\targs = appendConfigArgs(args,\"-c\");\n\t\t\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\n\t\tFile forExtraction = null;\n\t\tFile configFile = null;\n\t\tfor (int i = 0; i<args.length; i++){\n\t\t\tString lcArg = args[i].toLowerCase();\n\t\t\tMatcher mat = pat.matcher(lcArg);\n\t\t\tif (mat.matches()){\n\t\t\t\tchar test = args[i].charAt(1);\n\t\t\t\ttry{\n\t\t\t\t\tswitch (test){\n\t\t\t\t\tcase 'f': forExtraction = new File(args[++i]); break;\n\t\t\t\t\tcase 'v': vcfFileFilter = args[++i]; break;\n\t\t\t\t\tcase 'b': bedFileFilter = args[++i]; break;\n\t\t\t\t\tcase 'x': appendFilter = false; break;\n\t\t\t\t\tcase 'c': configFile = new File(args[++i]); break;\n\t\t\t\t\tcase 'd': dataDir = new File(args[++i]); break;\n\t\t\t\t\tcase 'm': maxCallFreq = Double.parseDouble(args[++i]); break;\n\t\t\t\t\tcase 'o': minBedCount = Integer.parseInt(args[++i]); break;\n\t\t\t\t\tcase 's': saveDirectory = new File(args[++i]); break;\n\t\t\t\t\tcase 'e': debug = true; break;\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e){\n\t\t\t\t\tMisc.printErrAndExit(\"\\nSorry, something doesn't look right with this parameter: -\"+test+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//config file? or local\n\t\tif (configLines != null && configFile != null){\n\t\t\tif (configLines[0].startsWith(\"-\") == false ) {\n\t\t\t\tHashMap<String, String> config = IO.loadFileIntoHashMapLowerCaseKey(configFile);\n\t\t\t\tif (config.containsKey(\"queryurl\")) queryURL = config.get(\"queryurl\");\n\t\t\t\tif (config.containsKey(\"host\")) host = config.get(\"host\");\n\t\t\t\tif (config.containsKey(\"realm\")) realm = config.get(\"realm\");\n\t\t\t\tif (config.containsKey(\"username\")) userName = config.get(\"username\");\n\t\t\t\tif (config.containsKey(\"password\")) password = config.get(\"password\");\n\t\t\t\tif (config.containsKey(\"maxcallfreq\")) maxCallFreq = Double.parseDouble(config.get(\"maxcallfreq\"));\n\t\t\t\tif (config.containsKey(\"vcffilefilter\")) vcfFileFilter = config.get(\"vcffilefilter\");\n\t\t\t\tif (config.containsKey(\"bedfilefilter\")) bedFileFilter = config.get(\"bedfilefilter\");\n\t\t\t}\n\t\t}\n\t\t//local search?\n\t\tif (queryURL == null){\n\t\t\tif (dataDir == null || dataDir.isDirectory()== false) {\n\t\t\t\tMisc.printErrAndExit(\"\\nProvide either a configuration file for remotely accessing a genomic query service or \"\n\t\t\t\t\t\t+ \"set the -d option to the Data directory created by the GQueryIndexer app.\\n\");;\n\t\t\t}\n\t\t}\n\n\t\tIO.pl(\"\\n\"+IO.fetchUSeqVersion()+\" Arguments:\");\n\t\tIO.pl(\"\\t-f Vcfs \"+forExtraction);\n\t\tIO.pl(\"\\t-s SaveDir \"+saveDirectory);\n\t\tIO.pl(\"\\t-v Vcf File Filter \"+vcfFileFilter);\n\t\tIO.pl(\"\\t-b Bed File Filter \"+bedFileFilter);\n\t\tIO.pl(\"\\t-m MaxCallFreq \"+maxCallFreq);\n\t\tIO.pl(\"\\t-o MinBedCount \"+minBedCount);\n\t\tIO.pl(\"\\t-x Remove failing \"+(appendFilter==false));\n\t\tIO.pl(\"\\t-e Verbose \"+debug);\n\t\tif (queryURL != null){\n\t\t\tIO.pl(\"\\tQueryUrl \"+queryURL);\n\t\t\tIO.pl(\"\\tHost \"+host);\n\t\t\tIO.pl(\"\\tRealm \"+realm);\n\t\t\tIO.pl(\"\\tUserName \"+userName);\n\t\t\t//check config params\n\t\t\tif (queryURL == null) Misc.printErrAndExit(\"\\nError: failed to find a queryUrl in the config file, e.g. queryUrl http://hci-clingen1.hci.utah.edu:8080/GQuery/\");\n\t\t\tif (queryURL.endsWith(\"/\") == false) queryURL = queryURL+\"/\";\n\t\t\tif (host == null) Misc.printErrAndExit(\"\\nError: failed to find a host in the config file, e.g. host hci-clingen1.hci.utah.edu\");\n\t\t\tif (realm == null) Misc.printErrAndExit(\"\\nError: failed to find a realm in the config file, e.g. realm QueryAPI\");\n\t\t\tif (userName == null) Misc.printErrAndExit(\"\\nError: failed to find a userName in the config file, e.g. userName FCollins\");\n\t\t\tif (password == null) Misc.printErrAndExit(\"\\nError: failed to find a password in the config file, e.g. password g0QueryAP1\");\n\n\t\t}\n\t\telse IO.pl(\"\\t-d DataDir \"+dataDir);\n\t\tIO.pl();\n\n\t\t//pull vcf files\n\t\tif (forExtraction == null || forExtraction.exists() == false) Misc.printErrAndExit(\"\\nError: please enter a path to a vcf file or directory containing such.\\n\");\n\t\tFile[][] tot = new File[3][];\n\t\ttot[0] = IO.extractFiles(forExtraction, \".vcf\");\n\t\ttot[1] = IO.extractFiles(forExtraction,\".vcf.gz\");\n\t\ttot[2] = IO.extractFiles(forExtraction,\".vcf.zip\");\n\t\tvcfFiles = IO.collapseFileArray(tot);\n\t\tif (vcfFiles == null || vcfFiles.length ==0 || vcfFiles[0].canRead() == false) Misc.printExit(\"\\nError: cannot find your xxx.vcf(.zip/.gz OK) file(s)!\\n\");\n\n\t\t//check params\n\t\tif (vcfFileFilter == null) Misc.printErrAndExit(\"\\nError: provide a vcf file filter, e.g. Hg38/Somatic/Avatar/Vcf \");\n\t\tif (bedFileFilter == null) Misc.printErrAndExit(\"\\nError: provide a bed file filter, e.g. Hg38/Somatic/Avatar/Bed \");\n\t\tif (saveDirectory == null) Misc.printErrAndExit(\"\\nError: provide a directory to save the annotated vcf files.\");\n\t\telse saveDirectory.mkdirs();\n\t\tif (saveDirectory.exists() == false) Misc.printErrAndExit(\"\\nError: could not find your save directory? \"+saveDirectory);\n\n\t\tuserQueryVcf = new UserQuery().addRegExFileName(\".vcf.gz\").addRegExDirPath(vcfFileFilter).matchVcf();\n\t\tuserQueryBed = new UserQuery().addRegExFileName(\".bed.gz\").addRegExDirPath(bedFileFilter);\n\t}", "public static void main (String [] args) {\n\t\tlogger.entry();\n\t\t// Validate the argument list and print the options listing if validation fails.\n\t\tif (!checkArgs(args) || args.length == 0) {\n\t\t\tSystem.err.println(optionsListing());\n\t\t\tSystem.exit(1);\n\t\t} else {\n\t\t\t// Process the arguments\n\t\t\tif (argsMap.containsKey(\"dir\")) {\n\t\t\t\tstart(argsMap.get(\"dir\"));\n\t\t\t}\n\t\t}\n\t\tlogger.exit();\n\t}", "@Override\n\tpublic void process() {\n\t\tport = Integer.parseInt(args);\n\t\tsuper.process();\n\t}", "public static void main(String[] args) throws Exception {\n int numFiles = 0;\n boolean keepValid = false;\n for (int i=0; i<args.length; i++) {\n if (args[i].startsWith(\"-\")) {\n if (args[i].equals(\"-valid\")) keepValid = true;\n else {\n System.err.println(\"Warning: ignoring unknown command line flag \\\"\" +\n args[i] + \"\\\"\");\n }\n }\n else numFiles++;\n }\n\n if (numFiles == 0) {\n // read from stdin\n process(new BufferedReader(new InputStreamReader(System.in)), keepValid);\n }\n else {\n // read from file(s)\n for (int i=0; i<args.length; i++) {\n if (!args[i].startsWith(\"-\")) {\n process(new BufferedReader(new FileReader(args[i])), keepValid);\n }\n }\n }\n }", "@Override\n\t\tpublic String execute(String line) {\n\t\t\tString[] command = line.split(\" \"); \n\t\t\tJCommander.newBuilder()\n\t\t\t .addObject(settings)\n\t\t\t .build()\n\t\t\t .parse(command);\n\t\t\t\n\t\t\treturn settings.execute();\n\t\t}", "public void processCommand(String line) {\n\t\ttry {\n\t\t\tString[] command = line.replaceAll(\"[$]\", \"\").split(\" \");\n\t\t\tif (command[0].equals(\"Add\") && command.length == 4) {\n\t\t\t\tadd(command[1], command[2], Integer.valueOf(command[3]));\n\t\t\t} else if (command[0].equals(\"Charge\") && command.length == 3) {\n\t\t\t\tcharge(command[1], Integer.valueOf(command[2]));\n\t\t\t} else if (command[0].equals(\"Credit\") && command.length == 3) {\n\t\t\t\tcredit(command[1], Integer.valueOf(command[2]));\n\t\t\t}\n\t\t} catch (Throwable e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "@Override\n public void process() throws IOException {\n outputPrinter.welcome();\n final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n final String input = reader.readLine();\n final ExecutableCommand command = new ExecutableCommand(input);\n processCommand(command);\n if (command.getCommandName().equals(ExitCommand.COMMAND_NAME)) {\n break;\n }\n }\n }", "public void processInput(String command) {\r\n\t\t//begin\r\n\t\tString word = \"\";\r\n\t\tint i = 0;\r\n\t\tboolean processingInput = true;\r\n\t\t\r\n\t\t//loop that runs through whole command and breaks it apart\r\n\t\twhile(processingInput == true && i < command.length()) {\r\n\t\t\t\r\n\t\t\tif(command.charAt(i) == ',' && i < command.length()) {\r\n\t\t\t\t\r\n\t\t\t\ti += 2;\r\n\t\t\t\tword = word.toLowerCase();\r\n\t\t\t\t//word = word.trim();\r\n\t\t\t\tboolean hasError = false;\r\n\t\t\t\t\r\n\t\t\t\tif(word.compareTo(\"publish\") == 0 && checkIfHasCorrectFormat(command, \"publish\") == true) {\r\n\t\t\t\t\tString producer = \"\";\r\n\t\t\t\t\tString prodCat = \"\";\r\n\t\t\t\t\tString brandName = \"\";\r\n\t\t\t\t\t//loop that gets producer name from command line\r\n\t\t\t\t\twhile(i < command.length() && command.charAt(i) != ',') {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tproducer += command.charAt(i);\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tproducer = producer.toLowerCase();\r\n\t\t\t\t\t//producer = producer.trim();\r\n\t\t\t\t\ti += 2;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//loop that gets the product category from command line\r\n\t\t\t\t\twhile(i < command.length() && command.charAt(i) != ',') {\t\r\n\t\t\t\t\t\tprodCat += command.charAt(i);\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tprodCat = prodCat.toLowerCase();\r\n\t\t\t\t\t//prodCat = prodCat.trim();\r\n\t\t\t\t\ti += 2;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//loop that gets brand name from command line\r\n\t\t\t\t\twhile(i < command.length()) {\r\n\t\t\t\t\t\tif(command.charAt(i) != ',') {\r\n\t\t\t\t\t\t\tbrandName += command.charAt(i);\r\n\t\t\t\t\t\t i++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\thasError = true;\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbrandName = brandName.toLowerCase();\r\n\t\t\t\t\t//brandName = brandName.trim();\r\n\t\t\t\t\tif(hasError == false) {\r\n\t\t\t\t\t\t//adds producer to producerList\r\n\t\t\t\t\t\taddProducer(producer);\r\n\t\t\t\t\t\t//performs a publish for the given producer\r\n\t\t\t\t\t\ti = 0;\r\n\t\t\t\t\t\tboolean foundMatch = false;\r\n\t\t\t\t\t\twhile(i < producerList.size() && foundMatch == false) {\r\n\t\t\t\t\t\t\tProducer tempProducer = producerList.get(i);\r\n\t\t\t\t\t\t\tif(producer.compareTo(tempProducer.getPublisherName()) == 0) {\r\n\t\t\t\t\t\t\t\tfoundMatch = true;\r\n\t\t\t\t\t\t\t\ttempProducer.publish(brandName, prodCat);\r\n\t\t\t\t\t\t\t\tproducerList.set(i, tempProducer); \r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ti++;\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\telse if(word.compareTo(\"subscribe\") == 0 && checkIfHasCorrectFormat(command, \"subscribe\") == true) { \r\n\t\t\t\t\tString retailer = \"\";\r\n\t\t\t\t\tString prodCat = \"\";\r\n\t\t\t\t\t\r\n\t\t\t\t\t//loop that gets the retailer name\r\n\t\t\t\t\twhile(i < command.length() && command.charAt(i) != ',') {\t\r\n\t\t\t\t\t\tretailer += command.charAt(i);\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tretailer = retailer.toLowerCase();\r\n\t\t\t\t\t//retailer = retailer.trim();\r\n\t\t\t\t\ti += 2;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//loop that gets the product category\r\n\t\t\t\t\twhile(i < command.length() && i < command.length()) {\r\n\t\t\t\t\t\tif(command.charAt(i) != ',') {\r\n\t\t\t\t\t\t\tprodCat += command.charAt(i);\t\r\n\t\t\t\t\t\t i++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\thasError = true;\r\n\t\t\t\t\t\t\ti++;\r\n\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\r\n\t\t\t\t\t}\r\n\t\t\t\t\tprodCat = prodCat.toLowerCase();\r\n\t\t\t\t\t//prodCat = prodCat.trim();\r\n\t\t\t\t\tif(hasError == false) {\r\n\t\t\t\t\t\taddRetailer(retailer);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ti = 0;\r\n\t\t\t\t\t\tboolean foundMatch = false;\r\n\t\t\t\t\t\twhile(i < retailerList.size() && foundMatch == false) {\r\n\t\t\t\t\t\t\tRetailer tempRetailer = retailerList.get(i);\r\n\t\t\t\t\t\t\tif(retailer.compareTo(tempRetailer.getSubscriberName()) == 0) {\r\n\t\t\t\t\t\t\t\tfoundMatch = true;\r\n\t\t\t\t\t\t\t\ttempRetailer.subscribe(prodCat);\r\n\t\t\t\t\t\t\t\tretailerList.set(i, tempRetailer); //NOT SURE IF I OR I + 1 OR I - 1 ****************************************8\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//broker.subscribeCommand(retailer, prodCat);\r\n\t\t\t\t}\r\n\t\t\t\telse if(word.compareTo(\"unsubscribe\") == 0 && checkIfHasCorrectFormat(command, \"unsubscribe\") == true) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tString retailer = \"\";\r\n\t\t\t\t\tString prodCat = \"\";\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t//loop that gets the retailer name\r\n\t\t\t\t\twhile(i < command.length() && command.charAt(i) != ',') {\r\n\t\t\t\t\t\tretailer += command.charAt(i);\t\t\t\t\t\t\r\n\t\t\t\t\t\ti++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tretailer = retailer.toLowerCase();\r\n\t\t\t\t\tretailer = retailer.trim();\r\n\t\t\t\t\ti += 2;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//loop that gets the product category\r\n\t\t\t\t\twhile(i < command.length()) {\r\n\t\t\t\t\t\tif(command.charAt(i) != ',') {\r\n\t\t\t\t\t\t\tprodCat += command.charAt(i);\t\r\n\t\t\t\t\t\t i++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\thasError = true;\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tprodCat = prodCat.toLowerCase();\r\n\t\t\t\t\t//prodCat = prodCat.trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(hasError == false) {\r\n\t\t\t\t\t\ti = 0;\r\n\t\t\t\t\t\tboolean foundMatch = false;\r\n\t\t\t\t\t\twhile(i < retailerList.size() && foundMatch == false) {\r\n\t\t\t\t\t\t\tRetailer tempRetailer = retailerList.get(i);\r\n\t\t\t\t\t\t\tif(retailer.compareTo(tempRetailer.getSubscriberName()) == 0) {\r\n\t\t\t\t\t\t\t\tfoundMatch = true;\r\n\t\t\t\t\t\t\t\ttempRetailer.unsubscribe(prodCat);\r\n\t\t\t\t\t\t\t\tretailerList.set(i, tempRetailer); //NOT SURE IF I OR I + 1 OR I - 1 ****************************************8\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ti++;\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\tprocessingInput = false;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tword += command.charAt(i);\t\t\t\t\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\t\r\n\t\t//end\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t/**\n\t\t * Implementation of Environment. Used for communication with user.\n\t\t * Implements Closeable because needs to close Scanner.\n\t\t * */\n\t\tclass MyEnvironment implements Environment, Closeable {\n\t\t\t\n\t\t\t/**\n\t\t\t * Used for scanning input of user.\n\t\t\t * */\n\t\t\tprivate Scanner scan;\n\t\t\t/**\n\t\t\t * Used for security check if scan closes.\n\t\t\t * */\n\t\t\tprivate boolean scanClosed;\n\t\t\t/**\n\t\t\t * multilineSymbol used for marking multilines\n\t\t\t * */\n\t\t\tprivate Character multilineSymbol;\n\t\t\t/**\n\t\t\t * promptSymbol is used for marking input line.\n\t\t\t * */\n\t\t\tprivate Character promptSymbol;\n\t\t\t/**\n\t\t\t * morelinesSymbol is used for marking more lines by user.\n\t\t\t * */\n\t\t\tprivate Character morelinesSymbol;\n\t\t\t/**\n\t\t\t * commands is used to pair commands' name with commands' object\n\t\t\t * */\n\t\t\tprivate SortedMap<String, ShellCommand> commands;\n\t\t\t/**\n\t\t\t * Contains current directory\n\t\t\t * */\n\t\t\tprivate Path currentDirectory;\n\t\t\t/**\n\t\t\t * Used for sharing data between commands\n\t\t\t * */\n\t\t\tprivate Map<String, Object> sharedData;\n\t\t\t\n\t\t\t/**\n\t\t\t * Default constructor. Sets all private variables to default.\n\t\t\t * */\n\t\t\tpublic MyEnvironment() {\n\t\t\t\tscan = new Scanner(System.in);\n\t\t\t\tscanClosed = false;\n\t\t\t\tmultilineSymbol = '|';\n\t\t\t\tpromptSymbol = '>';\n\t\t\t\tmorelinesSymbol = '\\\\';\n\t\t\t\tcommands = new TreeMap<>();\n\t\t\t\tcommands.put(\"cat\", new CatShellCommand());\n\t\t\t\tcommands.put(\"charsets\", new CharsetsShellCommand());\n\t\t\t\tcommands.put(\"copy\", new CopyShellCommand());\n\t\t\t\tcommands.put(\"exit\", new ExitShellCommand());\n\t\t\t\tcommands.put(\"hexdump\", new HexdumpShellCommand());\n\t\t\t\tcommands.put(\"ls\", new LsShellCommand());\n\t\t\t\tcommands.put(\"mkdir\", new MkdirShellCommand());\n\t\t\t\tcommands.put(\"tree\", new TreeShellCommand());\n\t\t\t\tcommands.put(\"symbol\", new SymbolShellCommand());\n\t\t\t\tcommands.put(\"help\", new HelpShellCommand());\n\t\t\t\tcommands.put(\"cd\", new CdShellCommand());\n\t\t\t\tcommands.put(\"pwd\", new PwdShellCommand());\n\t\t\t\tcommands.put(\"dropd\", new DropdShellCommand());\n\t\t\t\tcommands.put(\"pushd\", new PushdShellCommand());\n\t\t\t\tcommands.put(\"listd\", new ListdShellCommand());\n\t\t\t\tcommands.put(\"popd\", new PopdShellCommand());\n\t\t\t\tcommands.put(\"massrename\", new MassrenameShellCommand());\n\t\t\t\tcurrentDirectory = Paths.get(\".\");\n\t\t\t\tsharedData = new HashMap<>();\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Used for closing Scanner scan.\n\t\t\t * */\n\t\t\tpublic void close() {\n\t\t\t\tif(scanClosed == false) {\n\t\t\t\t\tscan.close();\n\t\t\t\t\tscanClosed = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic String readLine() throws ShellIOException {\n\t\t\t\tString line;\n\t\t\t\ttry {\n\t\t\t\t\tline = scan.nextLine();\n\t\t\t\t} catch (NoSuchElementException | IllegalStateException e) {\n\t\t\t\t\tthrow new ShellIOException(e.getMessage());\n\t\t\t\t}\n\t\t\t\treturn line;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void write(String text) throws ShellIOException {\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.print(text);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new ShellIOException(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void writeln(String text) throws ShellIOException {\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(text);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new ShellIOException(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic SortedMap<String, ShellCommand> commands() {\n\t\t\t\treturn Collections.unmodifiableSortedMap(commands);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Character getMultilineSymbol() {\n\t\t\t\treturn multilineSymbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setMultilineSymbol(Character symbol) {\n\t\t\t\tmultilineSymbol = symbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Character getPromptSymbol() {\n\t\t\t\treturn promptSymbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setPromptSymbol(Character symbol) {\n\t\t\t\tpromptSymbol = symbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Character getMorelinesSymbol() {\n\t\t\t\treturn morelinesSymbol;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setMorelinesSymbol(Character symbol) {\n\t\t\t\tmorelinesSymbol = symbol;\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Path getCurrentDirectory() {\n\t\t\t\treturn currentDirectory.toAbsolutePath().normalize();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setCurrentDirectory(Path path) throws IOException{\n\t\t\t\tif(!path.toFile().isDirectory()) {\n\t\t\t\t\tthrow new IOException(\"No such directory.\");\n\t\t\t\t}\n\t\t\t\tcurrentDirectory = path.toAbsolutePath().normalize();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Object getSharedData(String key) {\n\t\t\t\tif (key == null) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\treturn sharedData.get(key);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void setSharedData(String key, Object value) {\n\t\t\t\tif(key == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsharedData.put(key, value);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\ttry(MyEnvironment env = new MyEnvironment()) {\n\t\t\tShellStatus status = ShellStatus.CONTINUE;\n\t\t\tenv.writeln(\"Welcome to MyShell v 1.0\");\n\t\t\t\n\t\t\twhile(status != ShellStatus.TERMINATE) {\n\t\t\t\tenv.write(env.getPromptSymbol() + \" \");\n\t\t\t\tString l = readLineOrLines(env);\n\t\t\t\tint boundaryIndex = l.indexOf(' ') == -1 ? l.length() : l.indexOf(' ');\n\t\t\t\tString commandName = l.substring(0, boundaryIndex);\n\t\t\t\tString arguments = l.substring(boundaryIndex);\n\t\t\t\tShellCommand command = env.commands().get(commandName);\n\t\t\t\tif(command == null) {\n\t\t\t\t\tenv.writeln(\"Wrong command. Use 'help'.\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstatus = command.executeCommand(env, arguments);\n\t\t\t} \n\t\t} catch(ShellIOException e) {\n\t\t\t// Terminates shell.\n\t\t}\n\t\t\n\t}", "public static void main(String[] args)\n {\n // form option String if there are arguments\n Option io = Option.GetOptonByArgs(args);\n // define the system option flag & argument\n norm normObj = new norm();\n Out out = new Out();\n // execute command according to option & argument\n if(SystemOption.CheckSyntax(io, normObj.GetOption(), false, true) == true)\n {\n // decode input option to form options\n normObj.ExecuteCommands(io, normObj.GetOption(), out);\n // get config file from environment variable\n normObj.GetConfig();\n // Init vars by config\n normObj.InitByConfig(normObj, out);\n }\n else\n {\n NormHelp.NormHelp(normObj.GetOutWriter(), \n normObj.GetFileOutput(), out);\n }\n // close files & database\n normObj.Close();\n }", "private void parseCommandLine(final String[] args) {\n if (args.length == 0) {\r\n System.out.println(usage);\r\n System.exit(1);\r\n }\r\n // One parameter (Run Code Metrics without Code Churn)\r\n else if (args.length == 1) {\r\n newFile = new File(args[0]);\r\n\r\n if (newFile.isDirectory()) {\r\n // One directory\r\n newFiles.parseSrcDir(newFile);\r\n } else if (newFile.isFile()) {\r\n // One file\r\n newFiles.addSrcFile(newFile);\r\n } else {\r\n System.out.println(usage);\r\n System.exit(1);\r\n }\r\n }\r\n // Two parameters calculate all Code Metrics\r\n else if (args.length == 2) {\r\n oldFile = new File(args[0]);\r\n newFile = new File(args[1]);\r\n calculateCodeChurn = true;\r\n\r\n if (oldFile.isDirectory() && newFile.isDirectory()) {\r\n // Two directories\r\n newFiles.parseSrcDir(newFile);\r\n oldFiles.parseSrcDir(oldFile);\r\n newFiles.setPath(newFile.getAbsolutePath());\r\n oldFiles.setPath(oldFile.getAbsolutePath());\r\n } else if (oldFile.isFile() && newFile.isFile()) {\r\n // Two files\r\n oldFiles.addSrcFile(oldFile);\r\n newFiles.addSrcFile(newFile);\r\n } else {\r\n System.out.println(usage);\r\n System.exit(1);\r\n }\r\n }\r\n }", "public static void mainInternal(String[] args) throws Exception {\n\n Options options = new Options();\n CmdLineParser parser = new CmdLineParser(options);\n try {\n parser.parseArgument(args);\n } catch (CmdLineException ex) {\n helpScreen(parser);\n throw ex;\n }\n\n try {\n \trun(parser, options);\n } catch (PatchException ex) {\n LOG.error(\"ERROR {}\", ex.getMessage());\n LOG.debug(\"Patch Exception\", ex);\n throw ex;\n } catch (Throwable th) {\n LOG.error(\"Error executing command\", th);\n throw th;\n }\n }", "public static void main(String... args) {\n\n if (args.length == 0){\n System.out.println(\"Please enter a command\");\n return;\n }\n\n // load commit-tree if .gitlet initialized\n Main program = new Main();\n program.setTree_(program.loadTree());\n\n if (program.getTree_() == null && !args[0].equals(\"init\")){\n System.out.println(\"Not in an initialized gitlet directory.\");\n return;\n }\n\n String command = args[0];\n switch (command){\n\n case \"init\":\n\n checkNumArgs(1, args);\n boolean created = program.createGitletDirectory();\n if (created){\n program.setTree_(CommitTree.initCommitTree());\n }\n break;\n\n case \"add\":\n\n checkNumArgs(2, args);\n program.getTree_().add(args[1]);\n break;\n\n case \"commit\":\n\n checkNumArgs(2, args);\n program.getTree_().commit(args[1]);\n break;\n\n case \"rm\":\n\n checkNumArgs(2, args);\n program.getTree_().removeFile(args[1]);\n break;\n\n case \"log\":\n\n checkNumArgs(1, args);\n program.getTree_().log();\n break;\n\n case \"global-log\":\n\n checkNumArgs(1, args);\n program.getTree_().globalLog();\n break;\n\n case \"find\":\n\n checkNumArgs(2, args);\n program.getTree_().find(args[1]);\n break;\n\n case \"status\":\n\n checkNumArgs(1, args);\n program.getTree_().status();\n break;\n\n case \"checkout\":\n\n // check arguments and invoke specific checkout command\n program.checkoutArgs(args);\n break;\n\n case \"branch\":\n\n checkNumArgs(2, args);\n program.getTree_().branch(args[1]);\n break;\n\n case \"rm-branch\":\n\n checkNumArgs(2, args);\n program.getTree_().removeBranch(args[1]);\n break;\n\n case \"reset\":\n\n checkNumArgs(2, args);\n program.getTree_().reset(args[1]);\n break;\n\n case \"merge\":\n\n checkNumArgs(2, args);\n program.getTree_().merge(args[1]);\n break;\n\n default:\n\n System.out.println(\"No command with that name exists.\");\n break;\n }\n\n // save commit-tree to disk\n program.SaveTree();\n }", "protected abstract String executeCommandAndModifyOutput(List<String> args, String originalInput);", "public static void main(String[] args) {\n\t\tif (!processArguments(args)) {\n\t\t\tSystem.out.println(\"Invalid Arguments! Please try again..\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "public static void main(final String[] args) {\n\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.entering(Main.class.getName(), \"main\", args);\n }\n\n int lvStatus = STATUS_OK;\n\n resetOptionsAndArguments();\n\n // Create and initialise an Options object *****************************\n final Options lvOptions = defineCmdLineOptions();\n\n // Create the parser and parse the command line arguments **************\n CommandLine parCmdLine = null;\n\n try {\n // Parse the command line arguments\n parCmdLine = new GnuParser().parse(lvOptions, args);\n\n lvStatus += checkCmdLineOptions(parCmdLine);\n\n if (lvStatus == STATUS_OK) {\n lvStatus += execute(parCmdLine);\n }\n\n } catch (ParseException e) {\n LOGGER.log(Level.SEVERE,\n \"Parsing of the command line arguments failed\", e);\n lvStatus++;\n }\n\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.exiting(Main.class.getName(), \"main\", Integer\n .valueOf(lvStatus));\n }\n\n if (lvStatus == STATUS_OK) {\n LOGGER.log(Level.INFO, \"Task completed successfully\");\n } else {\n LOGGER.log(Level.SEVERE, \"Task due to errors aborted\");\n }\n\n System.exit(lvStatus);\n }", "private static void parseCommandLine(String[] args) {\r\n\t\tif (args.length != 3)\r\n\t\t\terror(\"usage: Tester server port url-file\");\r\n\t\t\t\r\n\t\tserverName = args[0];\r\n\t\tserverPort = Integer.parseInt(args[1]);\r\n\t\turlFileName = args[2];\r\n\t}", "public static void main(String... args) throws IOException {\n Controller controller = new Controller();\n try {\n controller.parseLine(args);\n } catch (TinyGitException e) {\n System.out.println(e.getMessage());\n System.exit(0);\n }\n }", "protected void setupArguments(Commandline commandLine) throws BuildException {\n }", "public static void main(String[] args) {\n EquationManipulator manipulator = new EquationManipulator();\n \n if (args.length == 3) {\n // arguments were passed in from the command line\n System.out.println(\"It looks like you passed in some arguments. Let me fetch those for you.\");\n checkPassedInArguments(args, manipulator);\n } else if (args.length != 0) {\n // User passed in an incorrect number of arguments\n printErrorMessage();\n handleUserInput(manipulator);\n } else { \n // User did not pass in any arguments\n handleUserInput(manipulator);\n }\n\n }", "public static void main(String args[]) throws Exception {\n Scanner scan = new Scanner(System.in);\n\n CommandProcessor cmd = CommandProcessorFactory.getCommandProcessor();\n\n while (true) {\n\n String str = scan.nextLine();\n\n String[] obj = str.split(\" \");\n\n int len = obj.length;\n\n if (\"mkdir\".equals(obj[0])) {\n\n if (len != 2) {\n\n System.out.println(\"Invalid Directory Name\");\n\n continue;\n\n }\n\n cmd.createDirectory(obj[1]);\n\n } else if (\"cd\".equals(obj[0])) {\n\n if (len == 2) {\n cmd.changeDirectory(obj[1]);\n } else {\n cmd.changeDirectory(null);\n }\n\n } else if (\"touch\".equals(obj[0])) {\n\n if (len != 2) {\n\n System.out.println(\"Invalid Directory Name\");\n\n continue;\n\n } else {\n\n cmd.createFile(obj[1]);\n\n }\n\n } else if (\"ls\".equals(obj[0])) {\n\n cmd.listAllFiles();\n\n } else if (\"pwd\".equals(obj[0])) {\n\n cmd.pwd();\n\n } else if (\"quit\".equals(obj[0])) {\n\n break;\n\n } else {\n\n System.out.println(\"Unrecognized Command\");\n\n }\n\n }\n\n }", "public static void main(String[] args) {\n CommandCliParser cliParser = new CommandCliParser();\n cliParser.parseCommand(\"--verbose\");\n }", "public Main(String[] commandLineArgs) {\n\t\tint claLength = commandLineArgs.length;\n\t\tif (claLength == 0) {\n\t\t\thelp();\n\t\t} else {\n\t\t\tcommand = commandLineArgs[0];\n\t\t\tif (claLength >= 2) {\n\t\t\t\targuments = Arrays.asList(commandLineArgs).subList(1, commandLineArgs.length - 1);\n\t\t\t}\n\t\t}\n\t}", "public static void main( String[] args )\n\t{\n\t\tResourceBundle rbm = ResourceBundle.getBundle( rbmFile );\n\t\tCommandLine userInput = prepCli( prepCliParser(), args, rbm );\n\t\tBerCli doesStuff = prepDoer( userInput );\n\t\tdoesStuff.setSessionConfig( prepConfig( userInput, rbm ) );\n\t\tdoesStuff.satisfySession();\n\t}", "public static void main(String... args) throws IOException {\n\n if (args.length == 0) {\n exitWithError(\"Please enter a command.\");\n }\n\n //TODO: error message for not initialized + opearnds\n if (!GITLET_FOLDER.exists() && !args[0].equals(\"init\")) {\n exitWithError(\"Not in an initialized gitlet directory.\");\n }\n switch (args[0]) {\n case \"init\":\n\n if ((GITLET_FOLDER.exists())) {\n exitWithError(\"A Gitlet version-control system already exists in the current directory.\");\n }\n init();\n break;\n\n case \"add\":\n //TODO: how to check \"format\" of operands?\n if (args.length != 2) {\n exitWithError(\"Incorrect operands.\");\n }\n\n add(args[1]);\n break;\n\n case \"rm\":\n if (args.length != 2) {\n exitWithError(\"Incorrect operands.\");\n }\n remove(args[1]);\n break;\n\n case \"commit\":\n if (args.length != 2 || args[1].equals(\"\")) {\n exitWithError(\"Please enter a commit message.\");\n }\n\n commit(args[1]);\n break;\n case \"log\":\n if (args.length != 1) {\n exitWithError(\"Incorrect operands.\");\n }\n log();\n break;\n\n //fixed error 30.5?\n case \"checkout\":\n if (args.length == 3){\n if (args[1].equals(\"--\")) {\n checkoutFile(args[2]);\n }\n else {\n exitWithError(\"Incorrect operands.\");\n }\n }\n else if (args.length == 2){\n checkoutBranch(args[1]);\n }\n else if (args.length == 4) {\n if (args[2].equals(\"--\")) {\n checkoutCommit(args[1], args[3]);\n }\n else{\n exitWithError(\"Incorrect operands.\");\n }\n }\n else{\n exitWithError(\"Incorrect operands.\");\n }\n break;\n\n case \"branch\":\n if (args.length != 2) {\n exitWithError(\"Incorrect operands.\");\n }\n branch(args[1]);\n break;\n\n case \"rm-branch\":\n if (args.length != 2) {\n exitWithError(\"Incorrect operands.\");\n }\n removeBranch(args[1]);\n break;\n\n case \"global-log\":\n if (args.length != 1) {\n exitWithError(\"Incorrect operands.\");\n }\n globalLog();\n break;\n\n case \"find\":\n if (args.length != 2) {\n exitWithError(\"Incorrect operands.\");\n }\n find(args[1]);\n break;\n\n case \"reset\":\n if (args.length != 2) {\n exitWithError(\"Incorrect operands.\");\n }\n reset(args[1]);\n break;\n\n case \"status\":\n if (args.length != 1) {\n exitWithError(\"Incorrect operands.\");\n }\n status();\n break;\n\n case \"merge\":\n if (args.length != 2) {\n exitWithError(\"Incorrect operands.\");\n }\n merge(args[1]);\n break;\n\n default:\n exitWithError(\"No command with that name exists.\");\n }\n return;\n }", "public static void main(String... args) {\r\n\t\tShellImpl shell = new ShellImpl();\r\n\r\n\t\tBufferedReader bReader = new BufferedReader(new InputStreamReader(System.in, StandardCharsets.UTF_8));\r\n\t\tString readLine = null;\r\n\t\tString currentDir;\r\n\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tcurrentDir = Environment.currentDirectory;\r\n\t\t\t\tSystem.out.print(currentDir + \">\");\r\n\t\t\t\treadLine = bReader.readLine();\r\n\t\t\t\tif (readLine == null) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif ((\"\").equals(readLine)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tshell.parseAndEvaluate(readLine, System.out);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\r\n\t\tUserInterface.instance().process();\r\n\t}", "public static void main(String[] args) {\r\n\t\tSystem.exit(createCommandLine().execute(args));\r\n\t}", "public static void main(String[] args) {\r\n\t\tif (args.length != 1) {\r\n\t\t\tSystem.out.println(\"Invalid cmd arguments, terminating\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Integer[]> vocabulary = new HashMap<>();\r\n\t\tMap<Path, Vector> freqVectors = new HashMap<>();\r\n\t\t\r\n\t\tPath path = Paths.get(args[0]);\r\n\t\tVisitor visitor = new Visitor(vocabulary, freqVectors, STOPWORDS_PATH);\r\n\t\ttry {\r\n\t\t\t//create vocabulary\r\n\t\t\tFiles.walkFileTree(path,visitor);\t\r\n\t\t\t//create frequency vectors\r\n\t\t\tvisitor.vocabularyAcquired = true;\r\n\t\t\tFiles.walkFileTree(path, visitor);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"An error occurred while reading files.\");\r\n\t\t\treturn;\r\n\t\t}\t\r\n\t\tprocessFreqVectors(visitor.vocabulary, visitor.freqVectors, visitor.numOfDocs);\r\n\t\tSystem.out.println(\"Velicina rjecnika je: \" + vocabulary.size());\r\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\trunShell(sc, freqVectors, vocabulary);\r\n\t\t\r\n\t\tSystem.out.println(\"Application is closing.\");\r\n\t\tsc.close();\r\n\t\t\r\n\t}", "public static void main(String args[]) {\n boolean isTestRun = isTestRun(args);\n Scanner sc = new Scanner(System.in);\n\n String welcomeMsg = \"Welcome to CLI calc, enter a command like \" + System.lineSeparator() +\n \"add, sub, mul, div, hist, clearhist, or addsquares. All commands \" + System.lineSeparator() +\n \"save hist and clearhist accept a list of integers after the command, so an \" + System.lineSeparator() +\n \"example command would be '> add 1 2 3'.\" + System.lineSeparator() +\n System.lineSeparator() +\n \"Enter 'q' to quit\" + System.lineSeparator();\n if (!isTestRun)\n System.out.println(welcomeMsg);\n\n for (prompt(isTestRun); sc.hasNextLine(); prompt(isTestRun)) {\n String line = sc.nextLine().replaceAll(System.lineSeparator(), \"\");\n if (line.isEmpty()) {\n continue;\n }\n\n if (line.equalsIgnoreCase(\"q\")) {\n int normalExitCode = 0;\n if (isTestRun)\n return;\n else\n System.exit(normalExitCode);\n\n } else {\n Command c;\n try {\n c = Parser.parseInputToCommand(line);\n CalcResult res = c.calculate();\n History.addToHistory(res);\n if (!c.getCmd().equals(\"hist\") &&\n !c.getCmd().equals(\"clearhist\")) {\n System.out.println(res.getRes());\n }\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n }\n }\n\n }", "public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\twhile(in.hasNext()){\n\t\t\tString strIn=in.nextLine();\n\t\t\tString strOut=processing(strIn);\n\t\t\tSystem.out.println(strOut);\n\t\t}\n\t\tin.close();\n\t}", "public static void main(String[] args) {\r\n// new ZuluCLI().LoadCLIargs4j(args);\r\n System.out.println(\"-g AAA -l 32 -d commit --author=PIPKA --amend a.java b.java b.java\");\r\n new ZuluCLI().LoadFishjcommander(args);\r\n }", "public static void main(String[]args) {\n\t\n\t \n\tArgsHandler handler = new ArgsHandler(args);\n if (!handler.empty()) {\n handler.execute();\n }\n \n final int exit = 0;\n final int setValues = 1;\n final int getValues = 2;\n final int execute2 = 3;\n final int printResult = 4;\n String word = null;\n \n /**\n * Our dialog menu with checking of input argumet's of program \n */\n do {\n UI.mainMenu();\n UI.enterChoice();\n switch (UI.getChoice()) {\n case exit:\n if (ArgsHandler.isDebug()) {\n System.out.println(\"\\nYou chosen 0. Exiting...\");\n System.out.format(\"%n############################################################### DEBUG #############################################################\");\n }\n break;\n case setValues:\n if (ArgsHandler.isDebug()) {\n \tSystem.out.format(\"%n############################################################### DEBUG #############################################################\");\n System.out.println(\"\\nYou chosen 1. Setting values...\");\n }\n word = UI.enterValues();\n break;\n case getValues:\n if (ArgsHandler.isDebug()) {\n \tSystem.out.format(\"%n############################################################### DEBUG #############################################################\");\n System.out.println(\"\\nYou chosen 2. Getting values...\");\n }\n if (word != null ) {\n UI.printText(word);\n } else {\n System.out.format(\"%nFirst you need to add values.\");\n }\n break; \n case execute2:\n if (ArgsHandler.isDebug()) {\n \tSystem.out.format(\"%n############################################################### DEBUG #############################################################\");\n System.out.println(\"\\nYou chosen 3. Executing task...\");\n }\n if (word != null) {\n \t final String []lines = NewHelper.DivString(word);\n \t System.out.println(\"\\nTask done...\");\n \t if (ArgsHandler.isDebug()) {\n \t System.out.format(\"%n############################################################### DEBUG #############################################################\");\n \t }\n } else {\n System.out.format(\"%nFirst you need to add values.\");\n }\n break;\n case printResult:\n if (ArgsHandler.isDebug()) {\n \tSystem.out.format(\"%n############################################################### DEBUG #############################################################\");\n System.out.format(\"%nYou chosen 4. \"\n + \"Printing out result...%n\");\n }\n if (word != null) {\n \tfinal String[] lines2 = NewHelper.DivString(word);\n \tfor (final String line2 : lines2) {\n NewHelper.printSymbols(line2);\n NewHelper.printSymbolNumbers(line2);\n \t}\n \tif(ArgsHandler.isDebug()) {\n \tSystem.out.format(\"%n############################################################### DEBUG #############################################################\");\n } \n \telse {\n System.out.format(\"%nFirst you need to add values.\"); \n }\n break;\n }\n default:\n System.out.println(\"\\nEnter correct number.\");\n }\n } while (UI.getChoice() != 0);\n}", "public static void main(String[] args)\n {\n cmdLineArgs = args;\n }", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\t\n\t\tprocess(s);\n\t}", "public static void main(String[] args) {\n\n getProperties();\n\n Options optionsMain = new Options();\n optionsMain.addOption(\"h\", \"help\", false, \"display this message\");\n optionsMain.addOption(\"db\", \"database\", true, \"path to the database\");\n //optionsMain.addOption(\"p\", \"peaqb\", true, \"path to the PEAQb program\");\n //optionsMain.addOption(\"r\", \"reference\", true, \"path to the reference sound file\");\n //optionsMain.addOption(\"t\", \"test\", true, \"path to the test sound file\");\n //optionsMain.addOption(\"m\", \"metric\", true, \"name of the metric to be used\");\n CommandLineParser commandLineParser = new DefaultParser();\n CommandLine commandLine = null;\n try {\n commandLine = commandLineParser.parse(optionsMain, args);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if (args.length == 0 || commandLine.hasOption(\"help\")) {\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp(\"Robco\", optionsMain);\n return;\n }\n if (commandLine.hasOption(\"database\")) {\n dbPath = commandLine.getOptionValue(\"database\");\n } else {\n System.err.println(\"No database file specified\");\n System.exit(1);\n }\n System.out.println(\"Using database \" + dbPath);\n /*if (commandLine.hasOption(\"reference\")) {\n reference = commandLine.getOptionValue(\"reference\");\n } else {\n System.err.println(\"No reference file specified\");\n System.exit(1);\n }\n System.out.println(\"Using reference \" + reference);\n if (commandLine.hasOption(\"test\")) {\n test = commandLine.getOptionValue(\"test\");\n } else {\n System.err.println(\"No test file specified\");\n System.exit(1);\n }\n System.out.println(\"Using test \" + test);*/\n /*if (commandLine.hasOption(\"metric\")) {\n String metricParam = commandLine.getOptionValue(\"metric\");\n if (metricParam.equalsIgnoreCase(\"PEAQ\")) {\n metric = PEAQ;\n if (commandLine.hasOption(\"peaqb\")) {\n peaqbPath = commandLine.getOptionValue(\"peaqb\");\n } else {\n System.err.println(\"No PEAQb programPEAQ specified\");\n System.exit(1);\n }\n System.out.println(\"Using programPEAQ \" + peaqbPath);\n } else if (metricParam.equalsIgnoreCase(\"SSIM\")) {\n metric = SSIM;\n } else {\n System.err.println(\"Couldn't recognize metric \" + metricParam);\n System.exit(1);\n }\n System.out.println(\"Using metric \" + metricParam);\n } else {\n System.err.println(\"No metric specified\");\n System.exit(1);\n }*/\n /*double result;\n switch (metric) {\n case PEAQ:\n SQLiteConnector connectorPEAQ = new SQLiteConnector(dbPath, \"peaq\", \"ODG\", \"REF\", \"TEST\", \"ID\");\n result = executePEAQAnalysis(peaqbPath, reference, test).getMean();\n System.out.println(\"MeanODG=\" + result);\n connectorPEAQ.write(result, reference, test, getUsableId(connectorPEAQ) + 1);\n System.exit(0);\n case SSIM:\n SQLiteConnector connectorSSIM = new SQLiteConnector(dbPath, \"ssim\", \"VALUE\", \"REF\", \"TEST\", \"ID\");\n result = executeSSIMAnalysis(reference, test);\n System.out.println(\"SSIMIndex=\" + result);\n connectorSSIM.write(result, reference, test, getUsableId(connectorSSIM) + 1);\n System.exit(0);\n default:\n return;\n }*/\n processResults(resultPath);\n }", "public static void main(String[] args) throws IOException\n {\n BungeeCord bungee = new BungeeCord();\n ProxyServer.setInstance(bungee);\n $().info(\"Enabled BungeeCord version \" + bungee.getVersion());\n bungee.start();\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n while (bungee.isRunning)\n {\n String line = br.readLine();\n if (line != null)\n {\n boolean handled = getInstance().getPluginManager().dispatchCommand(ConsoleCommandSender.getInstance(), line);\n if (!handled)\n {\n System.err.println(\"Command not found\");\n }\n }\n }\n }", "public static void main(String[] args) {\n\n\t\tString input_line = \"\";\n\n\n\t\ttry{\n\t\t\tbuyer = new Buyer(Integer.parseInt(args[0]));\n\t\t\tseller = new Seller(Integer.parseInt(args[0]));\n\n //Process command line input until EOF\n\t\t\tScanner s = new Scanner(System.in);\n\t\t\twhile (s.hasNext()){\n input_line = s.nextLine();\n\n //Parse Input\n\t\t\t\tparseNewOrder(input_line);\n }\n\n\t\t} catch (IndexOutOfBoundsException|IOException|NumberFormatException e){\n\t\t\tSystem.out.println(improper_input_warning_1+input_line+improper_input_warning_2);\n\t\t}\n catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "protected abstract String getCommandLine() throws ConfigException;", "protected void parse(CommandLine cli)\n {\n // Application ID option\n if(hasOption(cli, Opt.APPLICATION_ID, false))\n {\n applicationId = Long.parseLong(getOptionValue(cli, Opt.APPLICATION_ID));\n logOptionValue(Opt.APPLICATION_ID, applicationId);\n }\n\n // Server ID option\n if(hasOption(cli, Opt.SERVER_ID, false))\n {\n serverId = Long.parseLong(getOptionValue(cli, Opt.SERVER_ID));\n logOptionValue(Opt.SERVER_ID, serverId);\n }\n\n // Category option\n if(hasOption(cli, Opt.CATEGORY, true))\n {\n category = getOptionValue(cli, Opt.CATEGORY);\n logOptionValue(Opt.CATEGORY, category);\n }\n\n // Name option\n if(hasOption(cli, Opt.NAME, true))\n {\n name = getOptionValue(cli, Opt.NAME);\n logOptionValue(Opt.NAME, name);\n }\n }", "public static void main(String[] args) {\n\t\tif(args == null || args.length == 0){\n\t\t\tprintRunOptions();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tString currentDir = System.getProperty(\"user.dir\");\n\t System.out.println(\"Current dir using System:\"\t + currentDir);\n\n\n\t\tswitch(args[0]){\n\t\tcase \"-testCGRAVerilog\":\n\t\tcase \"-simple\":\n\t\t\tsimpleRun(args);\n\t\t\tbreak;\n\t\tcase \"-simpleSpeedup\":\n\t\t\tsimpleSpeedupRun(args);\n\t\t\tbreak;\n\t\tcase \"-sweep\":\n\t\t\tlocalParallelSweep(args);\n\t\t\tbreak;\n\t\tcase \"-sweepRemote\":\n\t\t\tparallelSweep(args);\n\t\t\tbreak;\n\t\tcase \"-synthesize\":\n\t\t\tstandaloneSynthesize(args);\n\t\t\tbreak;\n\t\tcase \"-test\":\n\t\t\ttest(args);\n\t\t\tbreak;\n\t\tcase \"-speedup\":\n\t\t\tspeedup(args);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Wrong run options\");\n\t\t\tprintRunOptions();\n\t\t\treturn;\n\t\t}\n\n\n\t}", "private void processArgs(String[] args)\n\t{\n\t\tboolean verbose = _verbose.getMatched();\n\n\t\t// disable console echo\n\t\t_writer.println(\"@echo off\");\n\n\t\tfor(int i = 0; i < args.length; ++i)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// try and expand any wildcards not handled by DOS/Windows\n\t\t\t\tString[] xargs = expandArg(args[i]);\n\n\t\t\t\tfor(int j = 0; j < xargs.length; ++j)\n\t\t\t\t{\n\t\t\t\t\tif(verbose)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.err.println(Strings.format(\"fProcessArg\", new Object[] { xargs[j] }));\n\t\t\t\t\t}\n\n\t\t\t\t\tFile pc = new File(xargs[j]);\n\t\t\t\t\t_writer.print(\"set CLASSPATH=%CLASSPATH%;\");\n\t\t\t\t\t_writer.println(pc.getCanonicalPath());\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\tSystem.err.println(Strings.format(\"fGeneralError\", new Object[] { e.getMessage() }));\n\t\t\t\t\n\t\t\t\tif(verbose)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\n\t\tprocess(s);\n\n\t}", "@Override\n public void executeCommand() {\n this.setJCLIOptions();\n String args[] = this.convertToArray();\n try {\n CommandLine jcCmd = this.jcParser.parse(this.jcOptions, args);\n if (jcCmd.hasOption(\"h\")) {\n this.printHelp();\n }\n if (jcCmd.hasOption(\"ttb\")) {\n this.texttobinary = true;\n }\n if (jcCmd.hasOption(\"btt\")) {\n this.binarytotext = true;\n }\n if (jcCmd.hasOption(\"f\")) {\n if ((this.done == false) && (this.jcError == false)) {\n this.filePath = jcCmd.getOptionValue(\"f\");\n }\n }\n if ((this.done == false) && (this.jcError == false) && (this.texttobinary == true)) {\n if ((this.filePath == null) || (this.filePath.length() == 0)) {\n this.jcError = true;\n this.addErrorMessages(\"Error : No File defined.\");\n }\n if (this.jcError == false) {\n if (isFileCanRead(this.filePath) == false) {\n this.jcError = true;\n this.addErrorMessages(\"Error : File does not exsist / File Unreadable.\");\n }\n }\n\n if (this.jcError == false) {\n String txt = this.getFileContents(this.filePath);\n this.resultString.append(this.convertTextToBinary(txt));\n this.done = true;\n }\n }\n if ((this.done == false) && (this.jcError == false) && (this.binarytotext == true)) {\n String txt = this.getFileContents(this.filePath);\n this.resultString.append(this.convertBinaryToText(txt));\n this.done = true;\n }\n\n\n if (this.done == true) {\n System.out.println(this.resultString);\n }\n\n\n } catch (org.apache.commons.cli.ParseException ex) {\n this.setJcError(true);\n this.addErrorMessages(\"Error :\" + ex.getMessage());\n }\n }", "public static void main( String[] args ) throws IOException {\n options.addOption(OPTION_FILE_PATH, true, \"specify file containing the words\");\n CommandLineParser parser = new DefaultParser();\n CommandLine cmd;\n try {\n cmd = parser.parse(options, args);\n } catch (ParseException e) {\n System.out.println(e.getMessage());\n printUsage();\n return;\n }\n\n String text;\n // Read command line\n if (cmd.hasOption(OPTION_FILE_PATH)) {\n String fileName = cmd.getOptionValue(OPTION_FILE_PATH);\n Path path = Paths.get(fileName);\n byte[] bytes;\n try {\n bytes = Files.readAllBytes(path);\n } catch (NoSuchFileException e) {\n System.out.println(\"No such file: \" + e.getLocalizedMessage());\n printUsage();\n return;\n }\n text = new String(bytes);\n } else {\n // No command line given. Let's check standard input\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n if (!input.ready()) {\n printUsage();\n return;\n }\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = input.readLine()) != null) {\n sb.append(line);\n sb.append(\"\\n\");\n }\n text = sb.toString();\n }\n\n // Filtering words and delivering outputs\n WordCounter wc = new WordCounter(\"^[Mm]\");\n String[] words = wc.filter(text);\n System.out.println(\"The number of words starting with \\\"M\\\" or \\\"m\\\" is \" + words.length + \".\");\n\n wc = new WordCounter(\".{6,}\");\n words = wc.filter(words);\n System.out.println(\"Words starting with \\\"M\\\" or \\\"m\\\" having length more than 5 are \" + Arrays.toString(words));\n }", "public static void main(String[] args) {\n /*if (args.length < 1)\n error(\"No output method given\");\n else if (args.length > 1)\n error(\"Expected 1 argument, received \" + args.length);\n else if (args[0].toLowerCase().equals(\"cli\"))*/\n new CLI().main();\n /*else if (args[0].toLowerCase().equals(\"gui\"))\n new GUI().main();*/\n /*else\n error(args[0] + \" is not a valid argument\");*/\n }", "public static void main(final String[] args) {\n try {\n new FormatSource().start(args);\n } catch (Throwable t) { // NOPMD\n LOG.error(\"Processing failed\", t);\n System.exit(1);\n }\n }", "private static void parseCommandLine(String[] args) throws WorkbenchException {\n commandLine = new CommandLine('-');\r\n commandLine.addOptionSpec(new OptionSpec(PROPERTIES_OPTION, 1));\r\n commandLine.addOptionSpec(new OptionSpec(DEFAULT_PLUGINS, 1));\r\n commandLine.addOptionSpec(new OptionSpec(PLUG_IN_DIRECTORY_OPTION, 1));\r\n commandLine.addOptionSpec(new OptionSpec(I18N_FILE, 1));\r\n //[UT] 17.08.2005 \r\n commandLine.addOptionSpec(new OptionSpec(INITIAL_PROJECT_FILE, 1));\r\n commandLine.addOptionSpec(new OptionSpec(STATE_OPTION, 1));\r\n try {\r\n commandLine.parse(args);\r\n } catch (ParseException e) {\r\n throw new WorkbenchException(\"A problem occurred parsing the command line: \" + e.toString());\r\n }\r\n }", "public static void main(String[] args) throws IOException {\n CommandLineParser parser = new DefaultParser();\n Options options = new Options();\n\n Option optModel = OptionBuilder.withArgName(\"model\")\n .hasArg()\n .withDescription(\"model used for simulation: \\n\\nmistransmission\\n constraint\\n constraintWithMistransmission\\n prior\\n priorWithMistransmission (default)\")\n .create(\"model\");\n options.addOption(optModel);\n \n options.addOption(\"stochastic\", false, \"sample from previous generation's distributions\"); \n \n options.addOption(\"superspeakers\", false, \"20% of speakers in grouped distance model connect to other group\"); \n\n Option optLogging = OptionBuilder.withArgName(\"logging\")\n .hasArg()\n .withDescription(\"logging level: \\nnone \\nsome \\nall \\ntabular \\ntroubleshooting\")\n .create(\"logging\");\n options.addOption(optLogging); \n\n Option optFreqNoun = OptionBuilder.withArgName(\"freqNoun\")\n .hasArg()\n .withDescription(\"noun frequency of the target word\")\n .create(\"freqNoun\");\n options.addOption(optFreqNoun); \n \n Option optFreqVerb = OptionBuilder.withArgName(\"freqVerb\")\n .hasArg()\n .withDescription(\"verb frequency of the target word\")\n .create(\"freqVerb\");\n options.addOption(optFreqVerb); \n \n Option optMisProbP = OptionBuilder.withArgName(\"misProbNoun\")\n .hasArg()\n .withDescription(\"mistransmission probability for nouns\")\n .create(\"misProbP\");\n options.addOption(optMisProbP); \n \n Option optMisProbQ = OptionBuilder.withArgName(\"misProbVerb\")\n .hasArg()\n .withDescription(\"mistransmission probability for verbs\")\n .create(\"misProbQ\");\n options.addOption(optMisProbQ); \n \n Option optLambda11 = OptionBuilder.withArgName(\"prior11General\")\n .hasArg()\n .withDescription(\"general prior probability for {1,1} stress pattern\")\n .create(\"prior11General\");\n options.addOption(optLambda11); \n \n Option optLambda22 = OptionBuilder.withArgName(\"prior22General\")\n .hasArg()\n .withDescription(\"general prior probability for {2,2} stress pattern\")\n .create(\"prior22General\");\n options.addOption(optLambda22); \n \n Option optTargetLambda11 = OptionBuilder.withArgName(\"prior11Target\")\n .hasArg()\n .withDescription(\"prior probability for {1,1} stress pattern in the target word prefix class\")\n .create(\"prior11Target\");\n options.addOption(optTargetLambda11); \n \n Option optTargetLambda22 = OptionBuilder.withArgName(\"prior22Target\")\n .hasArg()\n .withDescription(\"prior probability for {2,2} stress pattern in the target word prefix class\")\n .create(\"prior22Target\");\n options.addOption(optTargetLambda22); \n \n Option optDistModel = OptionBuilder.withArgName(\"distModel\")\n .hasArg()\n .withDescription(\"distance model:\\n none\\n absolute\\n probabilistic\\n random\\n lattice\\n grouped (default)\")\n .create(\"distModel\");\n options.addOption(optDistModel); \n \n options.addOption(\"priorClass\", false, \"use word pair prefixes as a class for sharing prior probabilities\"); \n \n Option optNumSpeakers = OptionBuilder.withArgName(\"numSpeakers\")\n .hasArg()\n .withDescription(\"number of speakers\")\n .create(\"numSpeakers\");\n options.addOption(optNumSpeakers); \n \n Option optTargetWord = OptionBuilder.withArgName(\"targetWord\")\n .hasArg()\n .withDescription(\"target word for logging\")\n .create(\"targetWord\");\n options.addOption(optTargetWord); \n \n options.addOption(\"help\", false, \"print this message\"); \n\n try { // parse the command line arguments\n CommandLine line = parser.parse(options, args);\n if(line.hasOption(\"model\")) {\n model = line.getOptionValue(\"model\");\n }\n if(line.hasOption(\"stochastic\")) { \n stochastic = true;\n } else {\n stochastic = false;\n }\n if(line.hasOption(\"superspeakers\")) { \n superspeakers = true;\n } else {\n superspeakers = false;\n }\n if(line.hasOption(\"logging\")) {\n logging = line.getOptionValue(\"logging\");\n }\n if(line.hasOption(\"freqNoun\")) {\n freqNoun = Integer.parseInt(line.getOptionValue(\"freqNoun\"));\n }\n if(line.hasOption(\"freqVerb\")) {\n freqVerb = Integer.parseInt(line.getOptionValue(\"freqVerb\"));\n }\n if(line.hasOption(\"misProbP\")) {\n misProbP = Integer.parseInt(line.getOptionValue(\"misProbP\"));\n }\n if(line.hasOption(\"misProbQ\")) {\n misProbQ = Integer.parseInt(line.getOptionValue(\"misProbQ\"));\n }\n if(line.hasOption(\"targetWord\")) {\n targetWord = line.getOptionValue(\"targetWord\");\n }\n if(line.hasOption(\"prior11General\")) {\n lambda11 = Integer.parseInt(line.getOptionValue(\"prior11General\"));\n }\n if(line.hasOption(\"prior22General\")) {\n lambda22 = Integer.parseInt(line.getOptionValue(\"prior22General\"));\n }\n if(line.hasOption(\"prior11Target\")) {\n targetClassLambda11 = Integer.parseInt(line.getOptionValue(\"prior11Target\"));\n }\n if(line.hasOption(\"prior22Target\")) {\n targetClassLambda22 = Integer.parseInt(line.getOptionValue(\"prior22Target\"));\n }\n if(line.hasOption(\"distModel\")) {\n distModel = line.getOptionValue(\"distModel\");\n }\n if(line.hasOption(\"priorClass\")) {\n priorClass = true;\n } else {\n priorClass = false;\n }\n if(line.hasOption(\"numSpeakers\")) {\n numSpeakers = Integer.parseInt(line.getOptionValue(\"numSpeakers\"));\n }\n if(line.hasOption(\"help\")) {\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp( \"StressChange\", options );\n }\n } catch ( ParseException exp) {\n System.out.println(\"Unexpected exception: \" + exp.getMessage());\n }\n\n if (StressChange.logging.equals(\"tabular\")){\n System.out.println(\"Iteration,Speaker,Group,Word,Prefix,Noun prob,Verb prob\");\n }\n else if (!StressChange.logging.equals(\"none\")) {\n System.out.println(\"Simulating \" + model + \" model with \" + distModel + \" distance model, showing \" + logging + \" words\");\n System.out.println(\"N1 (target word noun frequency): \" + freqNoun);\n System.out.println(\"N2 (target word verb frequency): \" + freqVerb);\n }\n \n initialStress = new ReadPairs(System.getProperty(\"user.dir\") + \"/src/initialStressSmoothed.txt\").OpenFile(); // read in initial pairs\n\n SimState state = new StressChange(System.currentTimeMillis());\n state.start();\n \n do {\n convos.removeAllEdges();\n if (! StressChange.logging.equals(\"none\") && !StressChange.logging.equals(\"tabular\")){ System.out.println(\"\"); }\n //if (! StressChange.logging.equals(\"none\")){ System.out.println(\"Generation at year \" + (1500 + (state.schedule.getSteps()) * 25)); } // 25-year generations \n if (! StressChange.logging.equals(\"none\") && !StressChange.logging.equals(\"tabular\")){ System.out.println(\"==== ITERATION \" + (state.schedule.getSteps() + 1) + \" ====\"); }\n if (!state.schedule.step(state)) {\n break;\n }\n step++;\n } while (state.schedule.getSteps() < 49); // maximum 50 iterations\n state.finish();\n\n System.exit(0);\n }", "protected String interpretCommand(final String line)\n throws IOException\n {\n return executeCommand(line);\n }", "public static void main(String[] args) throws IOException {\n String command, file, destination;\n Scanner in = new Scanner(System.in);\n System.out.print(\"Enter: command file destination\\n\");\n command = in.next();\n file = in.next();\n destination = in.next();\n\n Process process = new ProcessBuilder(\"EncryptionUtil\", command, file, destination).start();\n InputStream is = process.getInputStream();\n InputStreamReader isr = new InputStreamReader(is);\n BufferedReader br = new BufferedReader(isr);\n String line;\n\n System.out.printf(\"Output of running %s is:\", Arrays.toString(args));\n\n while ((line = br.readLine()) != null) {\n System.out.println(line);\n }\n// EncryptionUtil sec = null;\n// sec = new EncryptionUtil();\n//\n//\n// try {\n//\n// System.out.println(\"Testing file encrypting: \");\n// File input = new File(\"To Encrypt.txt\");\n// File output = new File(\"Encrypted Output.txt\");\n//\n// sec.encrypt(input, output);\n//\n// File deOut = new File(\"Decrypted Output.txt\");\n//\n// sec.decrypt(output, deOut);\n//\n//\n// } catch (Exception e) {\n// e.printStackTrace();\n// }\n }", "public void processArgs(String[] args){\r\n\t\tPattern pat = Pattern.compile(\"-[a-z]\");\r\n\t\tfor (int i = 0; i<args.length; i++){\r\n\t\t\tString lcArg = args[i].toLowerCase();\r\n\t\t\tMatcher mat = pat.matcher(lcArg);\r\n\t\t\tif (mat.matches()){\r\n\t\t\t\tchar test = args[i].charAt(1);\r\n\t\t\t\ttry{\r\n\t\t\t\t\tswitch (test){\r\n\t\t\t\t\tcase 'f': directory = new File(args[i+1]); i++; break;\r\n\t\t\t\t\tcase 'o': orderedFileNames = args[++i].split(\",\"); break;\r\n\t\t\t\t\tcase 'c': output = new File(args[++i]); break;\r\n\t\t\t\t\tcase 'h': printDocs(); System.exit(0);\r\n\t\t\t\t\tdefault: Misc.printErrAndExit(\"\\nProblem, unknown option! \" + mat.group());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e){\r\n\t\t\t\t\tSystem.out.print(\"\\nSorry, something doesn't look right with this parameter request: -\"+test);\r\n\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//check to see if they entered required params\r\n\t\tif (directory==null || directory.isDirectory() == false){\r\n\t\t\tSystem.out.println(\"\\nCannot find your directory!\\n\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}", "public ViewScheCommand(String line) throws DukeException {\n String[] arrOfStr = line.split(\"\\\\s+\");\n\n this.option = arrOfStr[0].trim();\n if (option.equals(\"/all\")) {\n if (arrOfStr.length > 1) {\n this.date = Parser.parseDate(arrOfStr[1].trim());\n sortByDate = true;\n }\n } else if (option.equals(\"/member\")) {\n this.memberName = arrOfStr[1].trim();\n if (arrOfStr.length > 2) {\n this.date = Parser.parseDate(arrOfStr[2].trim());\n sortByDate = true;\n }\n }\n }", "public void run(String[] args){\n if (args.length > 0)\n {\n try{\n InputStreamReader is = new InputStreamReader(getClass().getResourceAsStream(\"/\" + args[0]));\n BufferedReader txtReader = new BufferedReader(is);\n Scanner inputScanner = new Scanner(txtReader);\n System.out.println(String.format(\"Processing file %s\", args[0]));\n ToyRobot toyRobot = new ToyRobot();\n ToyRobotController controller = new ToyRobotController(toyRobot);\n while (inputScanner.hasNext()){\n String line = inputScanner.nextLine().toUpperCase();\n if (line.contains(Constants.COMMAND_PLACE) && Utilities.isOnTable(Utilities.getCoordinateFromInput(line))){\n controller.place(Utilities.getCoordinateFromInput(line), Utilities.getDirectionFromInput(line));\n System.out.println(String.format(\"Robot placement at %s,%s\", controller.getRobot().getCoordinates().getxCoordinate(), controller.getRobot().getCoordinates().getyCoordinate() ));;\n } else if (line.contains(Constants.COMMAND_MOVE)){\n controller.move();\n System.out.println(String.format(\"Robot moving at direction %s\", controller.getRobot().getDirection()));\n } else if ((line.contains(Constants.COMMAND_TURN_LEFT) || line.contains(Constants.COMMAND_TURN_RIGHT))){\n controller.turn(line);\n System.out.println(String.format(\"Robot changed direction to %s\", controller.getRobot().getDirection()));\n } else if (line.contains(Constants.COMMAND_REPORT)){\n controller.location();\n }\n }\n } catch (Exception e){\n System.out.println(\"No input found\");\n }\n }\n else\n {\n System.out.println(\"No input found\");\n }\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\tmapName = \"\";\r\n\t\ttrack = false;\r\n\t\tdrawingDataLines = false;\r\n\t\tLog.getLog().setFilter(Log.NONE);\r\n\t\tint argindex = \t0;\r\n\t\twhile(argindex<args.length) {\r\n\t\t\tString arg = args[argindex];\r\n\t\t\tif(arg.compareTo(\"-map\")==0) {\r\n\t\t\t\tmapName = args[argindex+1];\r\n\t\t\t\targindex+=2;\r\n\t\t\t}\r\n\t\t\telse if(arg.compareTo(\"-pigeon\")==0) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpigeonCt = Integer.parseInt(args[argindex+1]);\r\n\t\t\t\t}catch (NumberFormatException e) {\r\n\t\t\t\t\tSystem.out.println(\"Illegal argument: '\"+args[argindex+1]+\"'\");\r\n\t\t\t\t\tSystem.exit(1);\r\n\t\t\t\t}\r\n\t\t\t\targindex+=2;\r\n\t\t\t}\r\n\t\t\telse if(arg.compareTo(\"-sparrow\")==0) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsparrowCt = Integer.parseInt(args[argindex+1]);\r\n\t\t\t\t}catch (NumberFormatException e) {\r\n\t\t\t\t\tSystem.out.println(\"Illegal argument: '\"+args[argindex+1]+\"'\");\r\n\t\t\t\t\tSystem.exit(1);\r\n\t\t\t\t}\r\n\t\t\t\targindex+=2;\r\n\t\t\t}\r\n\t\t\telse if(arg.compareTo(\"-hawk\")==0) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\thawkCt = Integer.parseInt(args[argindex+1]);\r\n\t\t\t\t}catch (NumberFormatException e) {\r\n\t\t\t\t\tSystem.out.println(\"Illegal argument: '\"+args[argindex+1]+\"'\");\r\n\t\t\t\t\tSystem.exit(1);\r\n\t\t\t\t}\r\n\t\t\t\targindex+=2;\r\n\t\t\t}\r\n\t\t\telse if(arg.compareTo(\"-track\")==0) {\r\n\t\t\t\ttrack=true;\r\n\t\t\t\targindex+=1;\r\n\t\t\t}\r\n\t\t\telse if(arg.compareTo(\"-draw\")==0) {\r\n\t\t\t\tdrawingDataLines=true;\r\n\t\t\t\targindex+=1;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"Unknown Argument: '\"+arg+\"'\");\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(mapName.compareTo(\"\")!=0) {\r\n\t\t\ttry {\r\n\t\t\t\tloadmap(mapName);\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\tSystem.out.println(\"Could not load: '\"+mapName+\"'\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tRandomBoids(pigeonCt,sparrowCt,hawkCt);\r\n\t\t\r\n\t\tSystem.out.println(\"Welcome to Boids!\");\r\n\t\tWindow = graphics.Screen.initScreen(1000,800); \r\n\t\tTimer clock = new Timer(\"Clock\",20);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//add birds to screen\r\n\t\tfor(int i=0;i<Bird.getAllBirds().size();i++) {\r\n\t\t\tWindow.getToDraw().add((Drawable)Bird.getAllBirds().get(i));\r\n\t\t}\r\n\t\t//add map objecst\r\n\t\tfor(int i=0;i<mapobjects.size();i++) {\r\n\t\t\tWindow.getToDraw().add(mapobjects.get(i));\r\n\t\t}\r\n\t\t\r\n\t\t//main loop\r\n\t\tboolean done = false;\r\n\t\twhile(!done) {\r\n\t\t\t\r\n\t\t\t//clear for calculations\r\n\t\t\tfor(int i=0;i<Bird.getAllBirds().size();i++) {\r\n\t\t\t\tBird.getAllBirds().get(i).preBehaviour();\r\n\t\t\t}\r\n\t\t\t//see each bird\r\n\t\t\tfor(int i=0;i<Bird.getAllBirds().size()-1;i++) {\r\n\t\t\t\tfor(int ii=i+1;ii<Bird.getAllBirds().size();ii++) {\r\n\t\t\t\t\tBoid.sight(Bird.getAllBirds().get(i), Bird.getAllBirds().get(ii));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//run formula\r\n\t\t\tfor(int i=0;i<Bird.getAllBirds().size();i++) {\r\n\t\t\t\tBird.getAllBirds().get(i).behaviour();\r\n\t\t\t}\r\n\t\t\t//move birds\r\n\t\t\tfor(int i=0;i<Bird.getAllBirds().size();i++) {\r\n\t\t\t\tBird.getAllBirds().get(i).movement();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//myLog.println(a, DEBUG_CODE);\r\n\t\t\tif(track) {\r\n\t\t\t\tWindow.getViewPoint().copy(Bird.getAllBirds().get(0).getPositionVector());\r\n\t\t\t}\r\n\t\t\tWindow.updateFrameBuffer();\r\n\t\t\tWindow.repaint();\r\n\t\t\ttry {\r\n\t\t\t\tclock.sleep();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tdone = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "void setup(CommandLine cmd);", "private void processInput(String command) {\r\n\r\n if (command.equals(\"1\")) {\r\n displayListings();\r\n } else if (command.equals(\"2\")) {\r\n listYourCar();\r\n } else if (command.equals(\"3\")) {\r\n removeYourCar(user);\r\n } else if (command.equals(\"4\")) {\r\n checkIfWon();\r\n } else if (command.equals(\"5\")) {\r\n saveCarListings();\r\n } else if (command.equals(\"6\")) {\r\n exitApp = true;\r\n } else {\r\n System.out.println(\"Invalid selection\");\r\n }\r\n }", "public static void main(String[] args) throws IOException {\n\t\tProcess process = Runtime.getRuntime().exec(\"cmd /c start cmd\");\r\n\r\n\t\tBufferedWriter in = new BufferedWriter(new OutputStreamWriter(process\r\n\t\t\t\t.getOutputStream()));\r\n\t\tString line = \"2967 \";\r\n\t\tin.write(line);\r\n\t\tin.flush();\r\n\t\tin.close();\r\n\t\tInputStream out = process.getInputStream();\r\n\t\t// clean up if any output in stdout\r\n\t\tBufferedReader brCleanUp = new BufferedReader(\r\n\t\t\t\tnew InputStreamReader(out));\r\n\t\twhile ((line = brCleanUp.readLine()) != null) {\r\n\t\t\tSystem.out.println(\"[Stdout] \" + line);\r\n\t\t}\r\n\t\tbrCleanUp.close();\r\n\t\tprocess.destroy();\r\n\t}", "public static void main(String args[]) \n{\n\nDomainBlender domainBlender = new DomainBlender();\n\n/**DECLARE THE COMMANDS**/\n\n//String typoFinder=\"~/domainBlender/typofinder/TypoMagic/custom_typofinder.py\";\n//String dnsTwist=\"cat ~/domainBlender/domains | while read line; do dnstwist -r -t 4000 -f csv \\\"$line\\\" >> ~/domainBlender/dnstwist_results.csv; done\";\n//./data_merger.py \"['value1', 'value2']\"\n\n\n/**BANNER DISPLAY FOR CONSOLE**/\t\nbanner();\n\n\n\n/**Commands**/\t\n//command(squatCobbler);\n//command(urlCrazy);\n//command(typoFinder);\n//command(dnsTwist);\n\t\n\t\n/**CONVERT CSV files to JSON\nThis is just running a python script csv2json.py that takes two arguments an input and an output which you can see below:\ncsvJSON(\"~/domainBlender/dnstwist_results.csv\",\"~/domainBlender/dnstwist_results.json\");\ncsvJSON(\"~/domainBlender/urlcrazy_results.csv\",\"~/domainBlender/urlcrazy_results.json\");\n**/\n}", "static public void main(String[] args)\n {\n try {\n ParserModel parser = new ParserModel();\n\n Map<String, String> options = getOptions(args);\n\n // process received options\n \n if (hasRequiredOptionsMissing(options)) {\n throw new IllegalArgumentException(\n \"Please provide all required options: \" + String.join(\",\", requiredOptions)\n );\n }\n\n String duration = options.get(\"duration\");\n if (!isValidDuration(duration.toUpperCase())) {\n throw new IllegalArgumentException(\"Unknown duration: \" + duration);\n }\n\n String startDateStr = options.get(\"startDate\");\n LocalDateTime startDate = null;\n try {\n startDate = parser.prepareDateArgument(startDateStr);\n } catch (DateTimeParseException e) {\n throw new IllegalArgumentException(\n \"Expected date pattern: \" + ParserModel.DATE_PATTERN\n );\n }\n\n String thresholdStr = options.get(\"threshold\");\n int threshold;\n try {\n threshold = Integer.parseInt(thresholdStr);\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\n \"Expected int value for threshold, actual: \" + thresholdStr\n );\n }\n\n // take action based on processed options\n // if \"accesslog\" option is provided, also process log file\n if (options.containsKey(\"accesslog\")) {\n List<LogEntry> list = parser.parse(options.get(\"accesslog\"));\n parser.saveLogEntries(list);\n }\n \n duration = duration.toUpperCase();\n Map<String, Integer> result = parser.findAboveThresholdIPs(startDate, Duration.valueOf(duration), threshold);\n\n if (result.isEmpty()) {\n System.out.println(\"No above-threshold IPs for given arguments\");\n } else {\n result.keySet().forEach((ip) -> {\n System.out.println(ip);\n });\n\n parser.logBlockedIPs(result, startDate, Duration.valueOf(duration), threshold);\n }\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "public static void main(String[] args) {\n \ttry{\n\t \tLexer l = new Lexer(System.in);\n\t \tParser p = new Parser(l.getTokens());\n\t \t// System.out.println(p.printParseTree());\n\t\t\tp.evaluate();\n\t\t} catch (IOException e){\n\t\t\tSystem.out.println(\"End of input...\");\n \t} catch (Exception e){\t\n\t\t\tSystem.out.println(\"Error!\");\n\t\t\tif ( args.length > 0 && args[0].matches(\"-d\") ){\n \t\t\tSystem.out.println(e.getMessage());\n\t \t\te.printStackTrace();\n\t\t\t}\n \t\tSystem.exit(3);\n \t}\n }", "public static void main(String[] args){\n cmd = args;\r\n init(cmd);\r\n }", "public static void main(String[] args) {\r\n\t\tTaskResultAnalysis analysis = extractArguments(args);\r\n\t\tif (analysis == null)\r\n\t\t\tdie(USAGE);\r\n\t\t// determine tool mode, invoke proper action\r\n\t\tif (analysis.directory != null)\r\n\t\t\tsearch(analysis);\r\n\t\telse analyze(analysis);\r\n\t}", "public static void main(String[] args) {\n processData();\r\n }", "public static void main(String [] args)\n{\n DpinMain dm = new DpinMain(args);\n dm.process();\n}" ]
[ "0.6846604", "0.6539652", "0.6455983", "0.6413015", "0.63157636", "0.63080245", "0.6301382", "0.62635386", "0.6256346", "0.62066466", "0.61896515", "0.6159164", "0.6105426", "0.6084365", "0.6060956", "0.6054806", "0.6046996", "0.6046554", "0.6038991", "0.6030959", "0.6017336", "0.6011462", "0.6004429", "0.5963048", "0.5949798", "0.5942371", "0.59059477", "0.5845448", "0.58409053", "0.5833813", "0.5823553", "0.5823227", "0.58231467", "0.58070934", "0.5801165", "0.5799659", "0.5788977", "0.5785258", "0.57833785", "0.5763855", "0.57550544", "0.575288", "0.57516253", "0.57510984", "0.5749978", "0.5748926", "0.5739193", "0.5737569", "0.57369053", "0.573531", "0.5727178", "0.572619", "0.57008505", "0.5699336", "0.5689542", "0.56892914", "0.56706583", "0.5658464", "0.5652404", "0.56497794", "0.5648364", "0.5643005", "0.564077", "0.56332123", "0.56240964", "0.56234956", "0.5623363", "0.5616026", "0.56071895", "0.5602814", "0.5600234", "0.5598672", "0.55952287", "0.5592978", "0.5584281", "0.5581829", "0.5577133", "0.5575149", "0.5573943", "0.55634844", "0.55506176", "0.5549796", "0.55470806", "0.5545334", "0.55410624", "0.5539871", "0.5539164", "0.5522484", "0.5519053", "0.55187804", "0.5517864", "0.5516465", "0.5513025", "0.5511956", "0.5505177", "0.55032307", "0.5496848", "0.5495295", "0.54889894", "0.5486549" ]
0.60623276
14
Given a fullyconfigured IFindBugsEngine and the TextUICommandLine used to configure it, execute the analysis.
@SuppressWarnings("DM_EXIT") public static void runMain(IFindBugsEngine findBugs, TextUICommandLine commandLine) throws IOException { boolean verbose = !commandLine.quiet() || commandLine.setExitCode(); FutureValue<Collection<UpdateChecker.PluginUpdate>> updateHolder = null; if (verbose) updateHolder = DetectorFactoryCollection.instance().getUpdates(); try { findBugs.execute(); } catch (InterruptedException e) { assert false; // should not occur checkExitCodeFail(commandLine, e); throw new RuntimeException(e); } catch (RuntimeException e) { checkExitCodeFail(commandLine, e); throw e; } catch (IOException e) { checkExitCodeFail(commandLine, e); throw e; } int bugCount = findBugs.getBugCount(); int missingClassCount = findBugs.getMissingClassCount(); int errorCount = findBugs.getErrorCount(); if (verbose) { if (bugCount > 0) System.err.println("Warnings generated: " + bugCount); if (missingClassCount > 0) System.err.println("Missing classes: " + missingClassCount); if (errorCount > 0) System.err.println("Analysis errors: " + errorCount); if (updateHolder.isDone()) { try { Collection<PluginUpdate> updates = updateHolder.get(); if (!DetectorFactoryCollection.instance().getUpdateChecker().updatesHaveBeenSeenBefore(updates)) for(UpdateChecker.PluginUpdate u : updates) { System.err.println(u); } } catch (InterruptedException e) { assert true; } } } if (commandLine.setExitCode()) { int exitCode = 0; System.err.println("Calculating exit code..."); if (errorCount > 0) { exitCode |= ExitCodes.ERROR_FLAG; System.err.println("Setting 'errors encountered' flag (" + ExitCodes.ERROR_FLAG + ")"); } if (missingClassCount > 0) { exitCode |= ExitCodes.MISSING_CLASS_FLAG; System.err.println("Setting 'missing class' flag (" + ExitCodes.MISSING_CLASS_FLAG + ")"); } if (bugCount > 0) { exitCode |= ExitCodes.BUGS_FOUND_FLAG; System.err.println("Setting 'bugs found' flag (" + ExitCodes.BUGS_FOUND_FLAG + ")"); } System.err.println("Exit code set to: " + exitCode); System.exit(exitCode); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void processCommandLine(TextUICommandLine commandLine, String[] argv, IFindBugsEngine findBugs)\n throws IOException, FilterException {\n // Expand option files in command line.\n // An argument beginning with \"@\" is treated as specifying\n // the name of an option file.\n // Each line of option files are treated as a single argument.\n // Blank lines and comment lines (beginning with \"#\")\n // are ignored.\n try {\n argv = commandLine.expandOptionFiles(argv, true, true);\n } catch (HelpRequestedException e) {\n showHelp(commandLine);\n }\n\n int argCount = 0;\n try {\n argCount = commandLine.parse(argv);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n showHelp(commandLine);\n } catch (HelpRequestedException e) {\n showHelp(commandLine);\n }\n\n Project project = commandLine.getProject();\n for (int i = argCount; i < argv.length; ++i)\n project.addFile(argv[i]);\n commandLine.handleXArgs();\n\n commandLine.configureEngine(findBugs);\n if (commandLine.getProject().getFileCount() == 0 &&\n !commandLine.justPrintConfiguration() && !commandLine.justPrintVersion()) {\n System.out.println(\"No files to be analyzed\");\n\n showHelp(commandLine);\n }\n }", "@Override\n\tpublic void execute(Engine engine) {\n\t\tengine.executeHelp();\n\t}", "public static void main(String[] args) throws Exception {\n if (!CheckBcel.check()) {\n System.exit(1);\n }\n\n // Create FindBugs2 engine\n FindBugs2 findBugs = new FindBugs2();\n\n // Parse command line and configure the engine\n TextUICommandLine commandLine = new TextUICommandLine();\n FindBugs.processCommandLine(commandLine, args, findBugs);\n\n\n boolean justPrintConfiguration = commandLine.justPrintConfiguration();\n if (justPrintConfiguration || commandLine.justPrintVersion()) {\n Version.printVersion(justPrintConfiguration);\n\n return;\n }\n // Away we go!\n \n\n FindBugs.runMain(findBugs, commandLine);\n \n }", "public void runAnalysis ()\n\t{\n\t\tif (isBatchFile()) { runBatch(false); return; }\n\n\t\tfinal String modelText = editor.getText();\n\t\tString iterations = toolbar.getIterations();\n\t\tmodel = Model.compile (modelText, frame);\n\t\tif (model == null) return;\n\t\tTask task = model.getTask();\n\t\tfinal int n = (iterations.equals(\"\")) ? task.analysisIterations()\n\t\t\t\t: Integer.valueOf(iterations);\n\t\t(new SwingWorker<Object,Object>() {\n\t\t\tpublic Object doInBackground() {\n\t\t\t\tif (!core.acquireLock(frame)) return null;\n\t\t\t\tstop = false;\n\t\t\t\tupdate();\n\t\t\t\tclearOutput();\n\t\t\t\toutput (\"> (run-analysis \" + n + \")\\n\");\n\t\t\t\tif (model != null && model.getTask() != null) \n\t\t\t\t{\n\t\t\t\t\tTask[] tasks = new Task[n];\n\t\t\t\t\tfor (int i=0 ; !stop && i<n ; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tmodel = Model.compile (modelText, frame);\n\t\t\t\t\t\t//brainPanel.setVisible (false);\n\t\t\t\t\t\tshowTask (model.getTask());\n\t\t\t\t\t\tmodel.setParameter (\":real-time\", \"nil\");\n\t\t\t\t\t\tmodel.run();\n\t\t\t\t\t\tmodel.getTask().finish();\n\t\t\t\t\t\ttasks[i] = model.getTask();\n\t\t\t\t\t}\n\t\t\t\t\tif (!stop && model!=null)\n\t\t\t\t\t\tmodel.getTask().analyze (tasks, true);\n\t\t\t\t\t//model = null;\n\t\t\t\t\thideTask();\n\t\t\t\t}\n\t\t\t\tcore.releaseLock (frame);\n\t\t\t\tupdate();\n\t\t\t\treturn null;\n\t\t\t}\n }).execute();\n\t}", "public void execute() throws IOException, InterruptedException {\n\n if (FindBugs.noAnalysis)\n throw new UnsupportedOperationException(\"This FindBugs invocation was started without analysis capabilities\");\n\n Profiler profiler = bugReporter.getProjectStats().getProfiler();\n\n try {\n // Get the class factory for creating classpath/codebase/etc.\n classFactory = ClassFactory.instance();\n\n // The class path object\n createClassPath();\n\n progress.reportNumberOfArchives(project.getFileCount() + project.getNumAuxClasspathEntries());\n profiler.start(this.getClass());\n\n // The analysis cache object\n createAnalysisCache();\n\n // Create BCEL compatibility layer\n createAnalysisContext(project, appClassList, analysisOptions.sourceInfoFileName);\n\n // Discover all codebases in classpath and\n // enumerate all classes (application and non-application)\n buildClassPath();\n\n\n // Build set of classes referenced by application classes\n buildReferencedClassSet();\n\n // Create BCEL compatibility layer\n setAppClassList(appClassList);\n\n // Configure the BugCollection (if we are generating one)\n FindBugs.configureBugCollection(this);\n\n // Enable/disabled relaxed reporting mode\n FindBugsAnalysisFeatures.setRelaxedMode(analysisOptions.relaxedReportingMode);\n FindBugsDisplayFeatures.setAbridgedMessages(analysisOptions.abridgedMessages);\n\n // Configure training databases\n FindBugs.configureTrainingDatabases(this);\n\n // Configure analysis features\n configureAnalysisFeatures();\n\n // Create the execution plan (which passes/detectors to execute)\n createExecutionPlan();\n\n for (Plugin p : detectorFactoryCollection.plugins()) {\n for (ComponentPlugin<BugReporterDecorator> brp\n : p.getComponentPlugins(BugReporterDecorator.class)) {\n if (brp.isEnabledByDefault() && !brp.isNamed(explicitlyDisabledBugReporterDecorators)\n || brp.isNamed(explicitlyEnabledBugReporterDecorators))\n bugReporter = BugReporterDecorator.construct(brp, bugReporter);\n }\n }\n if (!classScreener.vacuous()) {\n bugReporter = new DelegatingBugReporter(bugReporter) {\n\n @Override\n public void reportBug(@Nonnull BugInstance bugInstance) {\n String className = bugInstance.getPrimaryClass().getClassName();\n String resourceName = className.replace('.', '/') + \".class\";\n if (classScreener.matches(resourceName)) {\n this.getDelegate().reportBug(bugInstance);\n }\n }\n };\n }\n\n if (executionPlan.isActive(NoteSuppressedWarnings.class)) {\n SuppressionMatcher m = AnalysisContext.currentAnalysisContext().getSuppressionMatcher();\n bugReporter = new FilterBugReporter(bugReporter, m, false);\n }\n\n if (appClassList.size() == 0) {\n if (analysisOptions.noClassOk) {\n System.err.println(\"No classfiles specified; output will have no warnings\");\n } else {\n throw new NoClassesFoundToAnalyzeException(classPath);\n }\n }\n\n // Analyze the application\n analyzeApplication();\n } catch (CheckedAnalysisException e) {\n IOException ioe = new IOException(\"IOException while scanning codebases\");\n ioe.initCause(e);\n throw ioe;\n } catch (OutOfMemoryError e) {\n System.err.println(\"Out of memory\");\n System.err.println(\"Total memory: \" + Runtime.getRuntime().maxMemory() / 1000000 + \"M\");\n System.err.println(\" free memory: \" + Runtime.getRuntime().freeMemory() / 1000000 + \"M\");\n\n for (String s : project.getFileList()) {\n System.err.println(\"Analyzed: \" + s);\n }\n for (String s : project.getAuxClasspathEntryList()) {\n System.err.println(\" Aux: \" + s);\n }\n throw e;\n } finally {\n clearCaches();\n profiler.end(this.getClass());\n profiler.report();\n }\n }", "@AutoGUIAnnotation(\r\n DescriptionForUser = \"<html>A reference implementation of<br>a Instrument Command.</html>\",\r\n ParameterNames = {\"Value 1\", \"Value 2\", \"Value 3\"},\r\n DefaultValues = {\"1.1\", \"true\", \"\\\"Command-Line in double quotes\\\"\"},\r\n ToolTips = {\"TT1\", \"TT2\", \"The command to execute\"})\r\n @iC_Annotation( MethodChecksSyntax = true )\r\n public void ReferenceImplementation(float Param1,\r\n boolean Param2,\r\n String CommandLine)\r\n throws ScriptException, IOException, DataFormatException {\r\n\r\n // local variables\r\n float dummy = 0;\r\n\r\n\r\n // remove double-quotes from the beginning and end of the CommandLine\r\n CommandLine = CommandLine.replaceFirst(\"^\\\"\", \"\").replaceFirst(\"\\\"$\", \"\");\r\n\r\n\r\n //////////////////////////////////////\r\n // Syntax-Check + Execute Command Line\r\n\r\n // Execute the Command Line:\r\n // in Syntax-Check mode the returned object is null\r\n // when not in Syntax-Check mode, the object should be valid\r\n if ( !CommandLine.isEmpty() ) {\r\n\r\n // make a new Device object to call it's DispatchCommand method\r\n // see Remark in javadoc (How to write new Instrument-Classes)\r\n Device dev = new Device();\r\n\r\n // perform the Syntax check\r\n Object obj = dev.DispatchCommand(CommandLine);\r\n\r\n // convert to float if returned object is valid\r\n if (obj != null) {\r\n\r\n try {\r\n // convert the Instrument's answer to a float\r\n dummy = getFloat(obj.toString());\r\n \r\n } catch (ScriptException ex) {\r\n // returned object is no convertible into a float, so throw an Exception\r\n String str = \"Executing the Command Line\\n\" + CommandLine + \"\\n\"\r\n + \"did not return an object that can be converted into a float value.\\n\"\r\n + \"Please check the Command Line.\\n\";\r\n throw new ScriptException(str);\r\n }\r\n }\r\n // the returned object is not valid, so throw an Exception when\r\n // not in Syntax-Check mode\r\n else if ( !inSyntaxCheckMode() ) {\r\n\r\n // returned object is null, so throw an Exception\r\n String str = \"Executing the Command Line\\n\" + CommandLine + \"\\n\";\r\n str += \"did not return a valid object. Please check the Command Line.\\n\";\r\n\r\n throw new ScriptException(str);\r\n }\r\n }\r\n\r\n\r\n // perform Syntax-Checks here\r\n if (inSyntaxCheckMode()) {\r\n \r\n // these commands are only executed during Syntax-Check mode\r\n \r\n /* if (...) {\r\n String str = \"Descriptive Text.\\n\";\r\n\r\n throw new DataFormatException(str);\r\n }*/\r\n \r\n // Syntax check for a String value defined in a List\r\n // consider if it makes sense to define the list in iC.properties\r\n // see LakeshoreTC.checkInputChannel for an example\r\n /*final List<String> NEW_LIST =\r\n Arrays.asList(\"A\", \"B\", \"C\"); // the entries need to be in uppercase letters!\r\n if ( !NEW_LIST.contains(YourVariableToCheck.toUpperCase()) ) {\r\n String str = \"YourVariableToCheck '\" + YourVariableToCheck + \"' is not valid.\";\r\n str += \"Please select a value from:\\n \" + NEW_LIST.toString() + \".\\n\";\r\n throw new DataFormatException(str);\r\n }*/\r\n\r\n // Range check for a Float value defined in a List\r\n // consider if it makes sense to define the list in iC.properties\r\n /* final List<Float> YOUR_RANGE = Arrays.asList(-100f, 100f);\r\n\r\n if (YourVariableToCheck < YOUR_RANGE.get(0) || YourVariableToCheck > YOUR_RANGE.get(1)) {\r\n String str = \"The zyx value is out of range.\\n\"\r\n + \"Please select a value between \" + YOUR_RANGE.toString() + \".\\n\";\r\n throw new DataFormatException(str);\r\n }*/\r\n \r\n // return if in Syntax-Check mode\r\n return;\r\n }\r\n \r\n\r\n \r\n // exit if in No-Communication-Mode\r\n if (inNoCommunicationMode())\r\n return;\r\n\r\n\r\n\r\n // insert code to perform the desired task\r\n // for instance open files, calculate intermediate values, etc.\r\n\r\n\r\n\r\n //////////////////\r\n // query a command\r\n\r\n // build the GPIB command\r\n String cmd = String.format(Locale.US, \"COMMAND 1, %.3f\", Param1);\r\n\r\n // add the boolean value\r\n cmd += (Param2 ? \"ON\" : \"OFF\");\r\n\r\n\r\n\r\n // if new code requires to wait until a certain criteria is met, the\r\n // following while-loop can be used\r\n boolean Done = false;\r\n while ( !Done && !m_StopScripting) {\r\n\r\n // check for pause button\r\n isPaused(true);\r\n\r\n\r\n // query the command\r\n String ans = QueryInstrument(cmd);\r\n\r\n\r\n /* Convert to float\r\n * Using the predefined conversion routine is useful, because\r\n * it throws a ScriptException when the conversion fails.\r\n */\r\n dummy = getFloat(ans);\r\n\r\n\r\n // do something useful with dummy\r\n\r\n\r\n // check if the Instrument's answer is what we want it to be\r\n // to exit the method\r\n if (dummy == Param1) {\r\n Done = true;\r\n }\r\n }\r\n\r\n\r\n // if new code requires to start a new task, the following anonymous\r\n // inner class can be used. Ensure that the task terminates itself\r\n // upon the Stop signal.\r\n // See iC_Instrument.MonitorChart() for a working example displaying\r\n // data in a chart.\r\n\r\n /**\r\n * Implement a new class from an anonymous inner class that extends\r\n * Thread and implements run(), in which the actual job is done.<p>\r\n *\r\n * The thread pauses, respectively, stops when <code>m_Paused</code>, respectively,\r\n * <code>m_StopScripting</code> is true.\r\n */\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"myThread as anonymous inner class\">\r\n class myThread extends Thread {\r\n\r\n // member variables\r\n public String m_dummy;\r\n\r\n /** Constructor */\r\n public myThread(String dummy) {\r\n // assign the passed values\r\n m_dummy = dummy;\r\n }\r\n\r\n\r\n @Override\r\n public void run() {\r\n // local variables\r\n float dummy = 0.0f;\r\n\r\n // Display a status message\r\n m_GUI.DisplayStatusMessage(\"Starting the thread.\\n\");\r\n\r\n // do until the thread should be stopped\r\n while ( m_StopScripting == false) {\r\n\r\n // check for pause button\r\n isPaused(true);\r\n\r\n // do something useful here\r\n\r\n\r\n // wait the desired time\r\n try { Thread.sleep( 500 ); } catch (InterruptedException ignore) {}\r\n }\r\n\r\n // clean up the thread\r\n\r\n\r\n // Display a status message\r\n m_GUI.DisplayStatusMessage(\"Thread stopped.\\n\");\r\n }\r\n }//</editor-fold>\r\n\r\n\r\n // make a new thread object\r\n myThread myT = new myThread(\"Love All, Serve All\");\r\n\r\n // start the thread and return\r\n myT.start();\r\n }", "public interface ConnectedSonarLintEngine {\n\n enum State {\n UNKNOW,\n UPDATING,\n NEVER_UPDATED,\n NEED_UPDATE,\n UPDATED\n }\n\n State getState();\n\n void stop(boolean deleteStorage);\n\n void addStateListener(StateListener listener);\n\n void removeStateListener(StateListener listener);\n\n /**\n * Return rule details.\n * @param ruleKey See {@link Issue#getRuleKey()}\n * @return Rule details\n * @throws IllegalArgumentException if ruleKey is unknown\n * @since 1.2\n */\n RuleDetails getRuleDetails(String ruleKey);\n\n /**\n * Trigger an analysis\n */\n AnalysisResults analyze(ConnectedAnalysisConfiguration configuration, IssueListener issueListener);\n\n AnalysisResults analyze(ConnectedAnalysisConfiguration configuration, IssueListener issueListener, @Nullable LogOutput logOutput);\n\n /**\n * Get information about current update state\n * @return null if server was never updated\n * @since 2.0\n * @throws UnsupportedOperationException for standalone mode\n */\n @CheckForNull\n GlobalUpdateStatus getUpdateStatus();\n\n /**\n * Get information about module update state\n * @return null if module was never updated\n * @since 2.0\n * @throws UnsupportedOperationException for standalone mode\n */\n @CheckForNull\n ModuleUpdateStatus getModuleUpdateStatus(String moduleKey);\n\n /**\n * Return all modules by key\n * @since 2.0\n * @throws UnsupportedOperationException for standalone mode\n */\n Map<String, RemoteModule> allModulesByKey();\n\n // REQUIRES SERVER TO BE REACHABLE\n\n /**\n * Update current server.\n * @since 2.0\n * @throws UnsupportedOperationException for standalone mode\n * @throws UnsupportedServerException if server version is too low\n * @throws CanceledException if the update task was cancelled\n */\n GlobalUpdateStatus update(ServerConfiguration serverConfig, @Nullable ProgressMonitor monitor);\n \n GlobalUpdateStatus update(ServerConfiguration serverConfig);\n\n /**\n * Update given module.\n * @since 2.0\n * @throws UnsupportedOperationException for standalone mode\n */\n void updateModule(ServerConfiguration serverConfig, String moduleKey);\n\n}", "public void process(String analysisData) throws Exception;", "public void run(FuzzyEngine engine) throws FuzzyEngineException;", "public void processAnalyze() throws ExtendedException {\n\t\tif (hlddFile == null) {\n\t\t\tthrow new ExtendedException(\"HLDD model file is missing\", ExtendedException.MISSING_FILE_TEXT);\n\t\t}\n\n\t\tint patternCount = applicationForm.getPatternCountForCoverage();\n\t\tboolean isRandom = applicationForm.isRandomCov();\n\t\tboolean isDoMeasureCoverage = applicationForm.isDoAnalyzeCoverage();\n\t\tString directive = applicationForm.getCoverageAnalyzerDirective();\n\n\t\t/* Collect execution string */\n\t\tList<String> commandList = new ArrayList<String>(5);\n\t\tcommandList.add(ApplicationForm.LIB_DIR + (Platform.isWindows() ? \"hlddsim.exe\" : \"hlddsim\"));\n\t\tif (isDoMeasureCoverage) {\n\t\t\tcommandList.add(\"-coverage\");\n\t\t\tcommandList.add(directive);\n\t\t}\n\t\tif (isRandom) {\n\t\t\tcommandList.add(\"-random\");\n\t\t\tcommandList.add(\"\" + patternCount);\n\t\t}\n\t\tcommandList.add(hlddFile.getAbsolutePath().replace(\".agm\", \"\"));\n\n\t\t/* Execute command */\n\t\tUIWithWorker.runUIWithWorker(\n\t\t\t\tnew CoverageAnalyzingUI(applicationForm.getFrame()),\n\t\t\t\tnew CoverageAnalyzingWorker(\n\t\t\t\t\t\tcommandList,\n\t\t\t\t\t\tSystem.err,\n\t\t\t\t\t\tthis,\n\t\t\t\t\t\tconsoleWriter\n\t\t\t\t)\n\t\t);\n\n\t\t/* showVHDLCoverage() is invoked in CoverageAnalyzingWorker after it (\"assert\") has completed its work */\n\t}", "@Override\n\t\tpublic String execute(String line) {\n\t\t\tString[] command = line.split(\" \"); \n\t\t\tJCommander.newBuilder()\n\t\t\t .addObject(settings)\n\t\t\t .build()\n\t\t\t .parse(command);\n\t\t\t\n\t\t\treturn settings.execute();\n\t\t}", "void analysisPostponed();", "public void execute() {\n if(isModified() && worker==null) {\n try {\n worker = new AnalyzeToolWorker();\n } catch (IOException ex) {\n setExecuting(false);\n ErrorDialog.displayIOExceptionDialog(toolName+\" Error\", \"Tool initialization failed.\", ex);\n return;\n }\n worker.start();\n }\n }", "public static void main(String[] args) {\n\t\tInjector injector = Guice.createInjector(new TextEditorModule());\n\t\tTextEditor editor = injector.getInstance (TextEditor.class);\n\t\teditor.makeSpellCheck();\n\t}", "protected abstract void go(CommandLine line) throws Exception;", "public void engine() {\n\t\tSystem.out.println(\"Follow engine guidelines\");\n\t}", "public void execute(EditorAdaptor editorAdaptor) throws CommandExecutionException {\n doIt(editorAdaptor);\n }", "@Test\n\tpublic void execute() throws Exception {\n\t\tassertTrue(argumentAnalyzer.getFlags().contains(Context.CHECK.getSyntax()));\n\t}", "public interface IAnalysisListener {\r\n /**\r\n * Notification that analysis is starting.\r\n */\r\n void analysisStarting();\r\n\r\n /**\r\n * Notification that analysis has been completed.\r\n */\r\n void analysisCompleted();\r\n\r\n /**\r\n * Notification that analysis has been postponed until compilation errors are\r\n * removed.\r\n */\r\n void analysisPostponed();\r\n \r\n /**\r\n * Notification that analysis has been cancelled\r\n */\r\n void analysisCancelled();\r\n}", "protected void paintErrorLine(Graphics gfx, int line, int x) {\n \n if (errorCheckerService == null) {\n return;\n }\n \n if (errorCheckerService.problemsList == null) {\n return;\n }\n \n boolean notFound = true;\n boolean isWarning = false;\n \n // Check if current line contains an error. If it does, find if it's an\n // error or warning\n for (ErrorMarker emarker : errorCheckerService.getEditor().errorBar.errorPoints) {\n if (emarker.problem.lineNumber == line + 1) {\n notFound = false;\n if (emarker.type == ErrorMarker.Warning) {\n isWarning = true;\n }\n break;\n }\n }\n \n if (notFound) {\n return;\n }\n \n // Determine co-ordinates\n // System.out.println(\"Hoff \" + ta.getHorizontalOffset() + \", \" +\n // horizontalAdjustment);\n int y = ta.lineToY(line);\n y += fm.getLeading() + fm.getMaxDescent();\n int height = fm.getHeight();\n int start = ta.getLineStartOffset(line);\n \n try {\n String linetext = null;\n \n try {\n linetext = ta.getDocument().getText(start,\n ta.getLineStopOffset(line) - start\n - 1);\n } catch (BadLocationException bl) {\n // Error in the import statements or end of code.\n // System.out.print(\"BL caught. \" + ta.getLineCount() + \" ,\"\n // + line + \" ,\");\n // System.out.println((ta.getLineStopOffset(line) - start - 1));\n return;\n }\n \n // Take care of offsets\n int aw = fm.stringWidth(trimRight(linetext)) + ta.getHorizontalOffset(); // apparent width. Whitespaces\n // to the left of line + text\n // width\n int rw = fm.stringWidth(linetext.trim()); // real width\n int x1 = 0 + (aw - rw), y1 = y + fm.getHeight() - 2, x2 = x1 + rw;\n // Adding offsets for the gutter\n x1 += 20;\n x2 += 20;\n \n // gfx.fillRect(x1, y, rw, height);\n \n // Let the painting begin!\n gfx.setColor(errorMarkerColor);\n if (isWarning) {\n gfx.setColor(warningMarkerColor);\n }\n gfx.fillRect(1, y + 2, 3, height - 2);\n \n gfx.setColor(errorColor);\n if (isWarning) {\n gfx.setColor(warningColor);\n }\n int xx = x1;\n \n // Draw the jagged lines\n while (xx < x2) {\n gfx.drawLine(xx, y1, xx + 2, y1 + 1);\n xx += 2;\n gfx.drawLine(xx, y1 + 1, xx + 2, y1);\n xx += 2;\n }\n } catch (Exception e) {\n System.out\n .println(\"Looks like I messed up! XQTextAreaPainter.paintLine() : \"\n + e);\n //e.printStackTrace();\n }\n \n // Won't highlight the line. Select the text instead.\n // gfx.setColor(Color.RED);\n // gfx.fillRect(2, y, 3, height);\n }", "@Override\r\n\tpublic void execute(PostAllParserPluginContext ctx) throws ParserPluginException {\r\n\t\tTestAgenda testAgenda = ctx.getTestAgenda();\r\n\t\tTraceabilityMatrix.produceTraceabilityMatrix(testAgenda);\r\n\t}", "public void setBugEngine(java.lang.String mBugEngine) {\n bugQuery.setBugEngine(mBugEngine);\n }", "CommandResult execute(String commandText) throws CommandException, ParseException, UnmappedPanelException;", "public static void main(String[] args) throws Exception {\n//\t\t Logger logger = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME);\n//\t\t logger.setLevel(Level.ALL);\n\t\tlogger = Logger.getLogger(\"ExcecutionEngine\");\n\t\tLogManager.getLogManager().readConfiguration(new FileInputStream(\"U:\\\\git\\\\KeywordDriverTestingHR2020\\\\src\\\\main\\\\java\\\\Log4jDB\\\\loggingAPI.properties\"));\n//\t\tFileHandler fh = new FileHandler(\"C:/Users/case/Desktop/HR2020/Logs_Screenshots/TestLogsID.txt\");\n//\t\t logger.addHandler(fh);\n\t \n\t\tlogger.info(\"ANFANG VON LOGS\");\n\t\tString sentence = \"\";\n\t\tString executionId=\"\";\n\t\tkeywordsEdit1= new KeywordsEditor();\n\t\t\n System.out.println(\"Default Charset=\" + Charset.defaultCharset());\n\n// System.setProperty(\"file.encoding\", \"UTF-8\");\n// System.setProperty(\"Charset.defaultCharset()\", \"UTF-8\");\n\n System.out.println(\"file.encoding=\" + System.getProperty(\"file.encoding\"));\n\n System.out.println(\"Default Charset=\" + Charset.defaultCharset());\n // System.setProperty(\"file.encoding\", \"UTF-8\");\n System.out.println(\"file.encoding=\" + System.getProperty(\"file.encoding\"));\n\n\n\t\t// Selenium:\n\t\t//System.setProperty(\"webdriver.gecko.driver\",\"U:\\\\git\\\\KeywordDriverTestingHR2020\\\\Drivers\\\\geckodriver.exe\");\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"U:\\\\git\\\\KeywordDriverTestingHR2020\\\\Drivers\\\\chromedriver.exe\");\n\t//\tkeywordsEdit = new KeywordsEdit();\n\t//\tkeywordsEdit = new KeywordsEditor();\n\t\t\n\t\tfor (int i = 0; i < args.length; i++) {\n \t\tSystem.out.println(\"Die Eingabe war: \" +args[i]);\n \t\t\n \t\t//API GET Request um die zu automatisierenden Sätze aus der Jira Cloud zu laden\n \t\tString uri=(\"http://localhost:2990/jira/rest/api/latest/issue/\"+args[i]);\n \t\tString proxy =(\"http://localhost:8080/\");\n \t\tURL url = new URL(uri);\n \t\t\n \t\tSystem.out.println(url);\n \t\t\n\n \t\t// Encode data on your side using BASE64\n \t\tString encoding =(\"admin\" + \":\" + \"admin\");\n \t\tbyte[] bytesEncoded = Base64.encodeBase64(encoding.getBytes());\n \t\t\n \t\tSystem.out.println(\"encoded value is: \" + new String(bytesEncoded));\n //\"YWRtaW4gOiBhZG1pbg==\";//Base64Encoder.encode;\n\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n\n con.setRequestMethod(\"GET\");\n\n con.setRequestProperty(\"Authorization\", \"Basic \"+new String(bytesEncoded));\n\n //String contentType = con.getHeaderField(\"Content-Type\");\n\n int status = con.getResponseCode();\n\n BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream(), \"UTF-8\")); //Writer out = new OutputStreamWriter(new FileOutputStream(yourFile), \"windows-1252\");\n\n String inputLine;\n\n StringBuffer content = new StringBuffer();\n \n\n while ((inputLine = in.readLine()) != null) {\n\n content.append(inputLine);\n\n }\nSystem.out.println(\"inputLine hier: \"+inputLine);\n\n in.close();\n\n con.disconnect();\n JSONParser jsonParser = new JSONParser();\n JSONObject jsonObject = (JSONObject) jsonParser.parse(content.toString());\n JSONObject fields =(JSONObject) jsonObject.get(\"fields\");\n JSONObject project =(JSONObject) fields.get(\"project\");\n JSONObject issueType =(JSONObject) fields.get(\"issuetype\");\n \n \n issueId=jsonObject.get(\"id\").toString();\n issueTypeId=issueType.get(\"id\").toString();\n String projectId=project.get(\"id\").toString();\n \t\n System.out.println(issueTypeId);\n \t\t\n \t\tif( issueTypeId.equals(\"10002\"))\n \t\t{\n \t\t\n \t\t//API Request für Testfälle\n \t\tString uri5=(\"http://localhost:2990/jira/rest/zapi/latest/teststep/\"+args[i]+\"?offset=0&limit=50\");\n \t\t\n \t\tURL url5 = new URL(uri5);\n \t\t\n \t\tSystem.out.println(url5);\n \t\t\n\n \t\t\n \t\tSystem.out.println(\"encoded value is \" + new String(bytesEncoded));\n //\"YWRtaW4gOiBhZG1pbg==\";//Base64Encoder.encode;\n\n HttpURLConnection con5 = (HttpURLConnection) url5.openConnection();\n\n con5.setRequestMethod(\"GET\");\n\n con5.setRequestProperty(\"Authorization\", \"Basic \"+new String(bytesEncoded));\n\n //String contentType = con.getHeaderField(\"Content-Type\");\n\n int status5 = con5.getResponseCode();\n//******//\n BufferedReader in5 = new BufferedReader(new InputStreamReader(con5.getInputStream())); //Writer out = new OutputStreamWriter(new FileOutputStream(yourFile), \"windows-1252\");\n//*****//\n String inputLine5;\n\n StringBuffer content5 = new StringBuffer();\n \n\n while ((inputLine5 = in5.readLine()) != null) {\n \t//inputLine5.getBytes(StandardCharsets.UTF_16BE);\n content5.append(inputLine5);\n//System.out.println(\"Hier sind Sätze: \"+inputLine5);\n\n }\n\n in5.close();\n\n con5.disconnect();\n JSONParser jsonParser5 = new JSONParser();\n JSONObject jsonObject5 = (JSONObject) jsonParser5.parse(content5.toString());\n JSONArray JSONArray =(JSONArray) jsonObject5.get(\"stepBeanCollection\");\n int size= JSONArray.size();\n // System.out.println(\"Size ist jetzt: \"+size);\n System.out.println(\"OBJEKT\"+jsonObject5);\n for(int k=0;k<size;k++)\n {\n \tJSONObject testStep= (JSONObject) JSONArray.get(k);\n \tString testStepSentence =testStep.get(\"step\").toString();\n \tsentence+= testStepSentence;\n \tSystem.out.println(\"SATZ:\"+testStepSentence);\n \t\t}\n\n \t\t}\n \t\telse {\n \t\t\tsentence= fields.get(\"customfield_10100\").toString();\n \t\t\t\n \t\t}\n \t\t\t\n System.out.println(\"Zu automatisierender Satz: \"+sentence); \n System.out.println(\"IssueId: \"+issueId+\" ProjektId: \"+projectId); \t\n \t\t\t\n\n \n \n //POST Request zum Jira Addon Zephyr um dort einen Testfall zu starten \n \n \t\tString uri1=(\"http://localhost:2990/jira/rest/zapi/latest/execution\");\n \t\t\n \t\t//String data = (\"{\\\"cycleId\\\":\\\"-1\\\",\\\"issueId\\\":\"+issueId+\",\\\"projectId\\\":\"+projectId+\",\\\"assigneeType\\\":\\\"assignee\\\",\\\"assignee\\\":\\\"admin\\\"}\");\n \t\t//\"executionStatus\": \"-1\"\n \t\tString data = (\"{\\\"issueId\\\":\"+issueId+\",\\\"projectId\\\":\"+projectId+\"}\");\n \t\tURL url1 = new URL(uri1);\n \t\t\n \t\tSystem.out.println(url1);\n\n HttpURLConnection con1 = (HttpURLConnection) url1.openConnection();\n\n con1.setRequestMethod(\"POST\");\n\n con1.setRequestProperty(\"Authorization\", \"Basic \"+new String(bytesEncoded));\n \n con1.setDoOutput(true);\n con1.setRequestProperty(\"Content-Type\", \"application/json\");\n con1.setRequestProperty(\"Accept\", \"application/json\");\n\n //String contentType = con1.getHeaderField(\"Content-Type\");\n\n \n \n \n OutputStreamWriter osw = new OutputStreamWriter(con1.getOutputStream(), \"windows-1252\");\n osw.write(data);\n osw.flush();\n osw.close();\n BufferedReader in1 = new BufferedReader(new InputStreamReader(con1.getInputStream(), \"windows-1252\")); //Writer out = new OutputStreamWriter(new FileOutputStream(yourFile), \"windows-1252\");\n \n if (con1 != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = in1.readLine()) != null) {\n System.out.println(\" line : \" + line);\n sb.append(line);\n }\n String getResponseString = \"\";\n getResponseString = sb.toString();\n JSONObject jsonObject1 = (JSONObject) jsonParser.parse(getResponseString);\n JSONArray jsonObject2= (JSONArray) jsonParser.parse(jsonObject1.values().toString());\n JSONObject jsonObject3= (JSONObject) jsonParser.parse(jsonObject2.get(0).toString());\n executionId= jsonObject3.get(\"id\").toString();\n //keywordsEdit1.setID(executionId);\n System.out.println(\"testID: \"+jsonObject3.get(\"id\"));\n //use server output getResponseString as string value.\n }\n \n \n System.err.println(con1.getResponseCode());\n \n \n\n\t\t//PUT Request zur Erstellten Zephypr Testausführung mit Update des Status\n String uri2=(\"http://localhost:2990/jira/rest/zapi/latest/execution/\"+executionId+\"/execute\");\t\n System.out.println(\"Nach dem Test 1\");\n\t\t\n // Teststatus (1 Bestanden, 2 Nicht Bestanden, 3 In Arbeit\n // ,\"comment\":\"\"\n statusId= Common.testExecuter(sentence);\n if (statusId ==\"1\") {\n comment = \"Test bestanden\";\n }else if (statusId ==\"2\"){\n \tcomment = \"Test nicht bestanden\";\n } else {\n \tcomment = \"Test noch in Bearbeitung\";\n \tlogger.warning(\"Test wurde abgebrochen während der Satzbearbeitung\");\n }\n // String log= keywordsEdit1.verify();\n\n\t\tString data1 = (\"{\\\"status\\\": \\\"\"+statusId+\"\\\",\\\"comment\\\":\\\"\"+comment +\"\\\"}\");\n\t\t\n\t\t\n\t\tURL url2 = new URL(uri2);\n\t\t\n\t\tSystem.out.println(url2);\n\n HttpURLConnection con2 = (HttpURLConnection) url2.openConnection();\n\n con2.setRequestMethod(\"PUT\");\n\n\t\tcon2.setRequestProperty(\"Authorization\", \"Basic \"+new String(bytesEncoded));\n \n con2.setDoOutput(true);\n con2.setRequestProperty(\"Content-Type\", \"application/json\");\n con2.setRequestProperty(\"Accept\", \"application/json\");\n\n //String contentType = con1.getHeaderField(\"Content-Type\");\n\n OutputStreamWriter osw1 = new OutputStreamWriter(con2.getOutputStream());\n osw1.write(data1);\n osw1.flush();\n osw1.close();\n \n System.err.println(con2.getResponseCode());\n \n System.out.println(data1);\n \n\t\t}\n\t\t\n\t\t// Log bearbeiten\n\t\tFile source = new File(\"C:/Users/case/Desktop/HR2020/Logs_Screenshots/TestLogsID.txt\");\n\t\tFile dest = new File(\"C:/Users/case/Desktop/HR2020/Logs_Screenshots/TestLogsID\"+executionId+\".txt\");\n\t\ttry {\n\t\t FileUtils.copyFile(source, dest);\n\t\t} catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t}\n\t\t//Screenshots bearbeiten\n\t\tPath quelleFiles =null;\n \tFile cache = new File(\"C:\\\\Users\\\\case\\\\Desktop\\\\HR2020\\\\Logs_Screenshots\\\\CacheScreenShot\");// your destination\n \tFile[] listOfFiles = cache.listFiles();\n \tPath ziel = Paths.get(\"C:\\\\Users\\\\case\\\\Desktop\\\\HR2020\\\\Logs_Screenshots\"); \n \tfor (int i = 0; i < listOfFiles.length; i++) {\n \t \n \t\tif (listOfFiles[i].isFile()) {\n \t\t\tquelleFiles = Paths.get(\"C:\\\\Users\\\\case\\\\Desktop\\\\HR2020\\\\Logs_Screenshots\\\\CacheScreenShot\\\\\"+ listOfFiles[i].getName().replaceAll(\"[^A-Za-z0-9][.][\\\\s+]\",\"\"));\n \t\t\tSystem.out.println(\"ScreenShot: \"+quelleFiles.toString());\n \t\t\n \t\t\tPath fileTemp = Files.move(quelleFiles, quelleFiles.resolveSibling(i+\"Error\"+executionId+\".jpg\"));\n \t\t\tFiles.move(fileTemp, ziel.resolve(fileTemp.getFileName()), StandardCopyOption.REPLACE_EXISTING);\n \t\t}\n \t}\n \t\n \tfor (int i = -1; i < listOfFiles.length; i++)\n \t{\n \t\tFile textFile;\n \t\tif(i==-1)\n \t\t{\n \t\t\ttextFile = new File(\"C:/Users/case/Desktop/HR2020/Logs_Screenshots/TestLogsID\"+executionId+\".txt\");\n \t\t}\n \t\telse {\n \t\t\ttextFile = new File(\"C:/Users/case/Desktop/HR2020/Logs_Screenshots/\"+i+\"Error\"+executionId+\".jpg\");\n \t\t}\n String uri3=(\"http://localhost:2990/jira/rest/zapi/latest/attachment?entityId=\"+executionId+\"&entityType=execution\");\n URL url3 = new URL(uri3);\n String boundary = Long.toHexString(System.currentTimeMillis()); // Just generate some unique random value.\n \n \n \n String charset = \"UTF-8\";\n String CRLF = \"\\r\\n\"; // Line separator required by multipart/form-data.\n\n\n\t\tSystem.out.println(url3);\n\t\tHttpURLConnection con3 = (HttpURLConnection) url3.openConnection();\n\t\t\n\t\tcon3.setRequestMethod(\"POST\");\n\n con3.setRequestProperty(\"Authorization\", \"Basic \"+new String(bytesEncoded));\n \n con3.setDoOutput(true);\n con3.setRequestProperty(\"Content-Type\", \"multipart/form-data; boundary=\" + boundary);\n \n try (\n \t OutputStream output = con3.getOutputStream();\n \t PrintWriter writer = new PrintWriter(new OutputStreamWriter(output, charset), true);\n ) {\n \n \n \t// Send text file.\n writer.append(\"--\" + boundary).append(CRLF);\n writer.append(\"Content-Disposition: form-data; name=\\\"file\\\"; filename=\\\"\" + textFile.getName() + \"\\\"\").append(CRLF);\n if(i==-1)\n {\n writer.append(\"Content-Type: text/plain; charset=\" + charset).append(CRLF); // Text file itself must be saved in this charset!\n }\n else {\n \t writer.append(\"Content-Type: image/jpeg\").append(CRLF); \n }\n writer.append(CRLF).flush();\n Files.copy(textFile.toPath(), output);\n output.flush(); // Important before continuing with writer!\n writer.append(CRLF).flush(); // CRLF is important! It indicates end of boundary.\n \n \n \n // End of multipart/form-data.\n writer.append(\"--\" + boundary + \"--\").append(CRLF).flush();\n }\n\n // Request is lazily fired whenever you need to obtain information about response.\n int responseCode = ((HttpURLConnection) con3).getResponseCode();\n System.out.println(responseCode); // Should be 200\n \t}\n \tFileHandler fh = new FileHandler(\"C:/Users/case/Desktop/HR2020/Logs_Screenshots/TestLogsID.txt\");\n\t\t logger.addHandler(fh);\n\t}", "void analysisStarting();", "public static void main(String[] args) throws Exception {\n if(args.length < 2) {\n System.out.println(\"Not enough parameters! java -jar programAnalysis.jar <Analysis> <Input file> \");\n return;\n }\n\n // Parse the analysis input\n String analysisString = args[0];\n\n // Get Analysis from factory\n GeneralAnalysisFactory analysisFactory = new GeneralAnalysisFactory();\n GeneralAnalysis analysis = analysisFactory.getInstance(analysisString);\n\n TheLangLexer lex = new TheLangLexer(new ANTLRFileStream(args[1]));\n CommonTokenStream tokens = new CommonTokenStream(lex);\n TheLangParser parser = new TheLangParser(tokens);\n ProgramGeneralAnalysisListener listener = new ProgramGeneralAnalysisListener(analysis);\n parser.addParseListener(listener);\n\n try {\n TheLangParser.ProgramContext parserResult = parser.program();\n\n BaseMutableTreeNode rootTree = listener.getRootTree();\n FlowGraph graph = new FlowGraph();\n\n Enumeration en = rootTree.preorderEnumeration();\n int i = 1;\n while (en.hasMoreElements()) {\n\n // Unfortunately the enumeration isn't genericised so we need to downcast\n // when calling nextElement():\n BaseMutableTreeNode node = (BaseMutableTreeNode) en.nextElement();\n ParserRuleContext object = (ParserRuleContext) node.getUserObject();\n\n if(BaseStatement.class.isAssignableFrom(node.getClass())) {\n BaseStatement statement = (BaseStatement) node;\n graph.processStatement(statement);\n\n System.out.println(\"label-\" + i++ + \": \" + object.getText());\n }\n\n }\n\n analysis.doAnalysis(graph);\n\n System.out.println(analysis.printResult());\n\n// CommonTree t = (CommonTree) parserResult.getTree();\n// CommonTree t2 = (CommonTree) t.getChild(0);\n// int startToken = t2.getTokenStartIndex();\n// int stopToken = t2.getTokenStopIndex();\n// CommonToken token = (CommonToken) t2.getToken();\n// System.out.println(token.getText());\n//\n// if (parserResult != null) {\n// CommonTree tree = (CommonTree) parserResult.tree;\n// System.out.println(tree.toStringTree());\n// }\n } catch (RecognitionException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}", "public interface IFuzzyCommand {\n\t\n\t/**\n\t * Run the command on the given fuzzy engine\n\t * @param engine a fuzzy engine\n\t * @throws FuzzyEngineException in case of errors\n\t */\n\tpublic void run(FuzzyEngine engine) throws FuzzyEngineException;\n\n}", "public void run() {\n if (!getEditor().isDefinitionComplete()) {\r\n MessageDialog.openInformation(Display.getCurrent().getActiveShell(), RuleEditorMessages\r\n .getString(\"RuleEditor.Dlg.Error.Incomplete.Title\"), RuleEditorMessages\r\n .getString(\"RuleEditor.Dlg.Error.Incomplete.Msg\"));\r\n return;\r\n }\r\n \r\n getEditor().save(null);\r\n\r\n // disable the quick edit mode on save\r\n IAction action = getEditor().getAction(QuickEditAction.ID);\r\n if (action != null) {\r\n action.setChecked(false);\r\n }\r\n\r\n // quick fix\r\n updateEnableState();\r\n }", "@Override\r\n protected String internalAutomaticFix(PageAnalysis analysis) {\r\n return fix(globalFixes[0], analysis, null);\r\n }", "public void run() {\n \n if (Parameter != null && Parameter instanceof ConvertTextUnitsParameter) {\n CastParameter = (ConvertTextUnitsParameter)Parameter;\n }\n else {\n CastParameter = null;\n }\n\n String shortErrorMessage = \"Error: Text Units Cannot be Converted!\";\n this.acceptTask(TaskProgress.INDETERMINATE, \"Initial Preparations\");\n this.validateParameter(Parameter, shortErrorMessage);\n this.openDiasdemCollection(CastParameter.getCollectionFileName());\n this.checkPrerequisitesAndSetDefaultTextUnitsLayer(shortErrorMessage);\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .APPLY_REGULAR_EXPRESSION_TO_TEXT_UNITS) {\n RegexPattern = Pattern.compile(CastParameter.getRegularExpression());\n }\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .IDENTIFY_SPECIFIED_MULTI_TOKEN_TERMS) {\n // read multi token word: each line contains one multi token word;\n // comment lines start with '#'\n TextFile multiTokenFile = new TextFile(\n new File(CastParameter.getMultiTokenFileName()));\n multiTokenFile.open();\n String line = multiTokenFile.getFirstLineButIgnoreCommentsAndEmptyLines();\n ArrayList list = new ArrayList();\n while (line != null) {\n list.add(line.trim());\n line = multiTokenFile.getNextLineButIgnoreCommentsAndEmptyLines();\n }\n // sort multi token terms by decreasing length\n Collections.sort(list, new SortStringsByDecreasingLength());\n // for (int i = 0; i < list.size(); i++) {\n // System.out.println((String)list.get(i));\n // }\n // System.out.println(list.size());\n String[] multiToken = new String[list.size()];\n for (int i = 0; i < list.size(); i++)\n multiToken[i] = (String)list.get(i);\n multiTokenFile.close();\n MyMultiTokenWordIdentifier = new HeuristicMultiTokenWordIdentifier(\n multiToken);\n }\n else {\n MyMultiTokenWordIdentifier = null;\n }\n \n if (CastParameter.getConversionType() == ConvertTextUnitsParameter\n .FIND_AND_REPLACE_SPECIFIED_TOKENS) {\n // read token replacement file: each line contains the tokens to search \n // for and the replacement tokens separated by a tab stop;\n // comment lines start with '#'\n TextFile tokenReplacementFile = new TextFile(\n new File(CastParameter.getTokenReplacementFileName()));\n tokenReplacementFile.open();\n String line = tokenReplacementFile.getFirstLineButIgnoreCommentsAndEmptyLines();\n HashMap tokensSearchList = new HashMap();\n String[] tokensContents = null;\n while (line != null) {\n tokensContents = line.split(\"\\t\");\n if (tokensContents.length == 2\n && tokensContents[1].trim().length() > 0) {\n try {\n tokensSearchList.put(tokensContents[0].trim(), \n tokensContents[1].trim());\n }\n catch (PatternSyntaxException e) {\n System.out.println(\"[TokenizeTextUnitsTask] Regex syntax error in \"\n + \" file \" + CastParameter.getTokenReplacementFileName() + \": \"\n + \" Line \\\"\" + line + \"\\\"; error message: \" + e.getMessage());\n }\n }\n else {\n System.out.println(\"[TokenizeTextUnitsTask] Error in file \"\n + CastParameter.getTokenReplacementFileName() + \": Line \\\"\"\n + line + \"\\\" does not conform to syntax!\");\n }\n line = tokenReplacementFile.getNextLineButIgnoreCommentsAndEmptyLines();\n }\n // sort multi token terms by decreasing length\n ArrayList list = new ArrayList(tokensSearchList.keySet());\n Collections.sort(list, new SortStringsByDecreasingLength());\n // create arrays for token replacement \n String[] tokensSearch = new String[list.size()];\n String[] tokensReplace = new String[list.size()];\n Iterator iterator = list.iterator();\n int i = 0;\n while (iterator.hasNext()) {\n TmpString = (String)iterator.next();\n tokensSearch[i] = TmpString;\n tokensReplace[i++] = (String)tokensSearchList.get(TmpString);\n }\n tokenReplacementFile.close();\n MyTokenReplacer = new HeuristicTokenReplacer(tokensSearch, tokensReplace);\n }\n else {\n MyTokenReplacer = null;\n }\n \n int counterProgress = 0;\n long maxProgress = DiasdemCollection.getNumberOfDocuments();\n \n DiasdemDocument = DiasdemCollection.getFirstDocument(); \n while (DiasdemDocument != null) {\n \n if (counterProgress == 1 || (counterProgress % 50) == 0) {\n Progress.update( (int)(counterProgress * 100 / maxProgress),\n \"Processing Document \" + counterProgress);\n DiasdemServer.setTaskProgress(Progress, TaskThread);\n }\n\n DiasdemDocument.setActiveTextUnitsLayer(DiasdemProject\n .getActiveTextUnitsLayerIndex());\n DiasdemDocument.backupProcessedTextUnits(DiasdemProject\n .getProcessedTextUnitsRollbackOption());\n \n for (int i = 0; i < DiasdemDocument.getNumberOfProcessedTextUnits(); \n i++) {\n DiasdemTextUnit = DiasdemDocument.getProcessedTextUnit(i);\n switch (CastParameter.getConversionType()) {\n case ConvertTextUnitsParameter.CONVERT_TEXT_UNITS_TO_LOWER_CASE: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString()\n .toLowerCase();\n break;\n }\n case ConvertTextUnitsParameter.CONVERT_TEXT_UNITS_TO_UPPER_CASE: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString()\n .toUpperCase();\n break;\n } \n case ConvertTextUnitsParameter.APPLY_REGULAR_EXPRESSION_TO_TEXT_UNITS: {\n RegexMatcher = RegexPattern.matcher(DiasdemTextUnit\n .getContentsAsString());\n TmpStringBuffer = new StringBuffer(DiasdemTextUnit\n .getContentsAsString().length() + 10000);\n while (RegexMatcher.find()) {\n RegexMatcher.appendReplacement(TmpStringBuffer,\n CastParameter.getReplacementString());\n }\n TextUnitContentsAsString = RegexMatcher.appendTail(TmpStringBuffer)\n .toString();\n break;\n }\n case ConvertTextUnitsParameter.IDENTIFY_SPECIFIED_MULTI_TOKEN_TERMS: {\n TextUnitContentsAsString = MyMultiTokenWordIdentifier\n .identifyMultiTokenWords(DiasdemTextUnit.getContentsAsString());\n break;\n } \n case ConvertTextUnitsParameter.FIND_AND_REPLACE_SPECIFIED_TOKENS: {\n TextUnitContentsAsString = MyTokenReplacer\n .replaceTokens(DiasdemTextUnit.getContentsAsString());\n break;\n } \n case ConvertTextUnitsParameter.REMOVE_PART_OF_SPEECH_TAGS_FROM_TOKENS: {\n TextUnitContentsAsString = this.removeTagsFromTokens(\n DiasdemTextUnit.getContentsAsString(), \"/p:\");\n break;\n } \n case ConvertTextUnitsParameter.REMOVE_WORD_SENSE_TAGS_FROM_TOKENS: {\n TextUnitContentsAsString = this.removeTagsFromTokens(\n DiasdemTextUnit.getContentsAsString(), \"/s:\");\n break;\n } \n default: {\n TextUnitContentsAsString = DiasdemTextUnit.getContentsAsString();\n }\n }\n DiasdemTextUnit.setContentsFromString(TextUnitContentsAsString);\n DiasdemDocument.replaceProcessedTextUnit(i, DiasdemTextUnit);\n }\n\n DiasdemCollection.replaceDocument(DiasdemDocument\n .getDiasdemDocumentID(), DiasdemDocument);\n \n DiasdemDocument = DiasdemCollection.getNextDocument();\n counterProgress++;\n \n } // read all documents\n \n super.closeDiasdemCollection();\n \n CastResult = new ConvertTextUnitsResult(TaskResult.FINAL_RESULT,\n \"All processed text units have been converted in the DIAsDEM document\\n\" +\n \" collection \" +\n Tools.shortenFileName(CastParameter.getCollectionFileName(), 55) + \"!\", \n \"Processed text units have been converted.\");\n this.setTaskResult(100, \"All Documents Processed ...\", CastResult,\n TaskResult.FINAL_RESULT, Task.TASK_FINISHED);\n \n }", "@Override\n public void execute(String commandText) throws Exception {\n parse(commandText);\n }", "public void analyzeCommand(String cmd)\n {\n commandEntered(cmd);\n }", "@Override\r\n\tpublic void execute() throws BuildException {\r\n\r\n\t\tif (StringUtils.isBlank(getViewPath())) {\r\n\t\t\tthrow new BuildException(\"'viewpath' must be specified\");\r\n\t\t}\r\n\r\n\t\tSet<String> currentLoadRules = getCurrentLoadRules();\r\n\t\tlog(\"Current load rules: \" + currentLoadRules, Project.MSG_VERBOSE);\r\n\r\n\t\tString bl = determineBaseline();\r\n\t\tCcListBlcompRoots listBlRoots = new CcListBlcompRoots();\r\n\t\tlistBlRoots.setProject(getProject());\r\n\t\tlistBlRoots.setBaseline(bl);\r\n\t\tlistBlRoots.execute();\r\n\t\tlog(\"Required load rules: \" + listBlRoots.getLoadRules(),\r\n\t\t\t\tProject.MSG_VERBOSE);\r\n\t\tSet<String> toAdd = new HashSet<String>();\r\n\t\ttoAdd.addAll(listBlRoots.getLoadRules());\r\n\r\n\t\tString[] split = explicitLoadRules.split(System\r\n\t\t\t\t.getProperty(\"line.separator\"));\r\n\t\tfor (String string : split) {\r\n\t\t\ttoAdd.add(string);\r\n\t\t}\r\n\t\ttoAdd.removeAll(currentLoadRules);\r\n\t\tlog(\"Rules to add to view [\" + viewTag + \"] : \" + toAdd,\r\n\t\t\t\tProject.MSG_DEBUG);\r\n\r\n\t\tCcAddLoadRules addLoadRule = new CcAddLoadRules();\r\n\t\taddLoadRule.setProject(getProject());\r\n\t\taddLoadRule.setViewPath(getViewPath());\r\n\t\taddLoadRule.setOverwrite(true);\r\n\t\tfor (String newRule : toAdd) {\r\n\t\t\tif (!StringUtils.isEmpty(newRule)) {\r\n\t\t\t\taddLoadRule.setLoadRule(newRule);\r\n\t\t\t\taddLoadRule.execute();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void processLineSafely(String line) {\n try { \n processLine(line);\n } catch (NoSystemException ex) {\n\t\t\tLog.error(\"No System available. Please load a model before executing this command.\");\n } catch (Exception ex) {\n System.err.println();\n String nl = Options.LINE_SEPARATOR;\n System.err\n .println(\"INTERNAL ERROR: An unexpected exception occured. This happened most probably\"\n + nl\n + \"due to an error in the program. The program will try to continue, but may\"\n + nl\n + \"not be able to recover from the error. Please send a bug report to [email protected]\"\n + nl\n + \"with a description of your last input and include the following output:\");\n System.err.println(\"Program version: \" + Options.RELEASE_VERSION);\n\t\t\t// System.err.println(\"Project version: \" +\n\t\t\t// Options.PROJECT_VERSION);\n System.err.print(\"Stack trace: \");\n ex.printStackTrace(System.err);\n }\n }", "private void doExecute() throws MojoExecutionException {\n URL buildUrl;\n try {\n buildUrl = buildDirectory.toURI().toURL();\n getLog().info(\"build directory \" + buildUrl.toString());\n } catch (MalformedURLException e1) {\n throw new MojoExecutionException(\"Cannot build URL for build directory\");\n }\n ClassLoader loader = makeClassLoader();\n Properties properties = new Properties(project.getProperties());\n properties.setProperty(\"lenskit.eval.dataDir\", dataDir);\n properties.setProperty(\"lenskit.eval.analysisDir\", analysisDir);\n dumpClassLoader(loader);\n EvalConfigEngine engine = new EvalConfigEngine(loader, properties);\n \n try {\n File f = new File(script);\n getLog().info(\"Loading evalution script from \" + f.getPath());\n engine.execute(f);\n } catch (CommandException e) {\n throw new MojoExecutionException(\"Invalid evaluation script\", e);\n } catch (IOException e) {\n throw new MojoExecutionException(\"IO Exception on script\", e);\n }\n }", "public void run() {\n String line = finalArg.toString();\n\n String separate = line, text=\"\";\n boolean isEmoji = false;\n String[] words = separate.split(\" \");\n for (int i = 0; i < words.length; i++) {\n if (words[i].equals(\"Ω:v\") || words[i].equals(\":3\") || words[i].equals(\":)\") || words[i].equals(\":(\") || words[i].equals(\"o.O\") || words[i].equals(\":poop:\")\n || words[i].equals(\"(^^^)\") || words[i].equals(\"-_-\") || words[i].equals(\"<(')\") || words[i].equals(\"><\") || words[i].equals(\":kiss:\") || words[i].equals(\"(y)\")\n || words[i].equals(\":love:\") || words[i].equals(\"<3\") || words[i].equals(\":crysmiley:\") || words[i].equals(\":nervous:\")\n ) {\n isEmoji = true;\n text = words[i];\n words[i] = \"\";\n }\n }\n String ans = \"\";\n for (String i : words) {\n ans += (i + \" \");\n }\n// textPane.setFont(new java.awt.Font(\"Arial\", Font.PLAIN, 15));\n if (line.startsWith(\"Tôi:\")) {\n addColoredText(textPane, ans, Color.BLACK);\n } else if (ans.startsWith(\"***\") || ans.startsWith(\"Welcome\") || ans.startsWith(\"To\")) {\n addColoredText(textPane, ans, Color.red);\n } else {\n addColoredText(textPane, ans, Color.BLUE);\n new Notifications();\n }\n\n if (isEmoji) {\n try {\n addIcon(textPane, text);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n addColoredText(textPane, \"\\n\", Color.red);\n\n }", "private void commandRunner(int confidenceLevel) {\n model.showDueCards(LocalDate.now().atStartOfDay());\n AnswerCommand answerCommand = prepareCommand(confidenceLevel);\n Card selectedCard = model.getFilteredCardList().get(0);\n model.setSelectedCard(selectedCard);\n String expectedMessage = AnswerCommand.MESSAGE_SUCCESS;\n assertCommandSuccess(answerCommand, model, expectedMessage, model);\n }", "abstract /*package*/ IValue executeRVMProgram(String moduleName, String uid_main, IValue[] posArgs, Map<String,IValue> kwArgs);", "protected TKExecutable(Engine pEngine) {\n\t\tsuper(pEngine);\n\t}", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\texecutable.feedbackExecutionError();\r\n\t\t\t\t\t}", "private void runTypeChefAnalyzes(IFolder folder) {\r\n\t\tProjectExplorerController prjController = new ProjectExplorerController();\r\n\t\tprjController.addResource(folder);\r\n\t\ttypeChef.run(prjController.getList());\r\n\t\tfinal Display display = Display.getDefault();\r\n\t\tif (display == null) {\r\n\t\t\tthrow new NullPointerException(\"Display is null\");\r\n\t\t}\r\n\r\n\t\tdisplay.syncExec(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tPluginViewController viewController = PluginViewController\r\n\t\t\t\t\t\t.getInstance();\r\n\t\t\t\tviewController.showPluginView();\r\n\t\t\t\tif (typeChef.getLogs().length > 0) {\r\n\t\t\t\t\tviewController.adaptTo(typeChef.getLogs());\r\n\t\t\t\t\tcontinueCompilationFlag = MessageDialog.openQuestion(\r\n\t\t\t\t\t\t\tdisplay.getActiveShell(),\r\n\t\t\t\t\t\t\t\"Error!\",\r\n\t\t\t\t\t\t\t\"This project contains errors in some feature combinations.\\nDo you want to continue the compilation?\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tviewController.clear();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public Object execute(ExecutionEvent event) throws ExecutionException {\n\t\t\n\t\tString avrPath = \"/Users/juliosugaya/_projects/org.xtext.botlib.dsl\";\n\t\tIWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);\n\n\t\t// cpp file\n\t\tString cppPath = this.getFileProject();\n\t\tif(cppPath != \"\"){\n\t\t\t//System.out.println(\"meu cpp : \" + cppPath);\n\t\t\t// /avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega1280 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA -DARDUINO_ARCH_AVR -I./lib/arduino -I./lib/arduino/variants/mega -I./lib/arduino/Release -I./lib/SoftwareSerial ./teste.bot.cpp -o ./test.cpp.o\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -Wextra -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I \" + avrPath + \"/Release -I \" + avrPath + \"/hardware/arduino/avr/cores/arduino -I \" + avrPath + \"/hardware/arduino/avr/variants/eightanaloginputs -I \" + avrPath + \"/hardware/arduino/avr/libraries/SoftwareSerial -I \" + avrPath + \"/hardware/arduino/avr/libraries/LiquidCrystal/src \" + cppPath + \" -o \" + avrPath + \"/test.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/BOTLib.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/BlueTooth.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/LED.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/Motor.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/Button.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/Debug.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/SensorSR04.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/SensorIR.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/Libraries/SoftwareSerial/SoftwareSerial.cpp.o\");\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-ar rcs \" + avrPath + \"/arduino.ar \" + avrPath + \"/Release/Libraries/LiquidCrystal/src/LiquidCrystal.cpp.o\");\n\t\t\t// /avr/bin/avr-gcc -w -Os -Wl,--gc-sections -mmcu=atmega1280 -o test.cpp.elf test.cpp.o arduino.ar -L -lm\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-gcc -Wall -Wextra -Os -Wl,--gc-sections -mmcu=atmega328p -o \" + avrPath + \"/test.cpp.elf \" + avrPath + \"/test.cpp.o \" + avrPath + \"/arduino.ar -L -lm\");\n\t\t\t// /avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 test.cpp.elf test.cpp.eep\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 \" + avrPath + \"/test.cpp.elf \" + avrPath + \"/test.cpp.eep\");\n\t\t\t// /avr/bin/avr-objcopy -O ihex -R .eeprom test.cpp.elf test.cpp.hex\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom \" + avrPath + \"/test.cpp.elf \" + avrPath + \"/test.cpp.hex\");\n\t\t\t// /avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 test.cpp.elf test.cpp.eep\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 \" + avrPath + \"/test.cpp.elf \" + avrPath + \"/test.cpp.eep\");\n\t\t\t// /avr/bin/avr-objcopy -O ihex -R .eeprom test.cpp.elf test.cpp.hex\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avr-objcopy -O ihex -R .eeprom \" + avrPath + \"/test.cpp.elf \" + avrPath + \"/test.cpp.hex\");\n\t\t\t// /avr/bin/avrdude -C./avr/etc/avrdude.conf -v -patmega1280 -carduino -P/dev/cu.usbserial-AH00PD34 -b57600 -D -Uflash:w:test.cpp.hex:i\n\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avrdude -C\" + avrPath + \"/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P\" + getUSBName() + \" -b57600 -D -Uflash:w:\" + avrPath + \"/test.cpp.hex:i\");\t\t\n//\t\t\texecCmd( avrPath + \"/hardware/tools/avr/bin/avrdude -C\" + avrPath + \"/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/tty.usbserial-A9MP9FFZ -b57600 -D -Uflash:w:\" + avrPath + \"/test.cpp.hex:i\");\t\t\n\t\t\t\n\t\t\tMessageDialog.openInformation(\n\t\t\t\t\twindow.getShell(),\n\t\t\t\t\t\"BotDuino\",\n\t\t\t\t\t\"Uploded! Unplug the device.\");\n\t\t}else{\n\t\t\tMessageDialog.openInformation(\n\t\t\t\t\twindow.getShell(),\n\t\t\t\t\t\"BotDuino\",\n\t\t\t\t\t\"No project selected!\");\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}", "@Test\n\tpublic void KnowledgeBase_21466_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\t\t\n\t\t// Logout as admin and Login as QAuser\n\t\tsugar().logout();\n\t\tsugar().login(sugar().users.getQAUser());\n\t\t\n\t\t// Verify that no KB records are shown\n\t\tsugar().knowledgeBase.navToListView();\n\t\tAssert.assertTrue(\"KB list view items count is not 0\", sugar().knowledgeBase.listView.countRows() == 0);\n\t\t\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "@Override\n public CommandResult execute(String userInput) throws DukeException {\n Command c;\n if (EditorManager.isActive()) {\n logger.log(Level.INFO, \"editing...\");\n c = EditorManager.edit(userInput);\n } else {\n try {\n c = Parser.parseComplexCommand(userInput);\n conversationManager.clearContext();\n } catch (ChronologyAfterPresentException | ChronologyBeforePresentException\n | ChronologyInconsistentException | ApiException e) {\n throw e;\n } catch (ParseException e) {\n c = getCommandFromConversationManager(userInput);\n }\n }\n return (CommandResult) c.execute(model);\n }", "public abstract void execute(GameEngine pGameEngine);", "public void execute() throws MissingDescriptionException, InvalidCommandException {\n }", "@Override\r\n\tpublic void launch(IEditorPart arg0, String arg1) {\n\t\tSystem.out.println(\"Launch Raoul by editor \" + arg1);\r\n\t}", "private synchronized void syncTypeChefAnalyzes() {\r\n\t\tif (threadInExecId.isEmpty()) {\r\n\t\t\tProjectConfigurationErrorLogger.getInstance().clearLogList();\r\n\t\t\trunTypeChefAnalyzes(featureProject.getSourceFolder());\r\n\t\t}\r\n\t\tthreadInExecId.add(Thread.currentThread().getId());\r\n\t}", "public static void main(String[] arguments) {\n AnalyzeFile analyzer = new AnalyzeFile();\n analyzer.runAnalysis(arguments);\n }", "private void addPostReportingGroovy(Project project) {\r\n String script = \r\n\"Boolean buildFailed = false\\n\" +\r\n\"Boolean buildUnstable = false\\n\" +\r\n\"\\n\" +\r\n\"if(manager.logContains(\\\".*py did not execute correctly.*\\\") || manager.logContains(\\\".*Traceback .most recent call last.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Jenkins Integration Script Failure\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Jenkins Integration Script Failure\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*Failed to acquire lock on environment.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Failed to acquire lock on environment\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Failed to acquire lock on environment\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*Environment Creation Failed.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Environment Creation Failed\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Environment Creation Failed\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*FLEXlm Error.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"FLEXlm Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"FLEXlm Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*INCR_BUILD_FAILED.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Build Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Build Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*Environment was not successfully built.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Build Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Build Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*NOT_LINKED.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Link Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Link Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*Preprocess Failed.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Preprocess Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Preprocess Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"if (manager.logContains(\\\".*Value Line Error - Command Ignored.*\\\"))\\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"warning.gif\\\").appendText(\\\"Test Case Import Error\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildUnstable = true\\n\" +\r\n\" manager.addBadge(\\\"warning.gif\\\", \\\"Test Case Import Error\\\")\\n\" +\r\n\"}\\n\" +\r\n\"\\n\" +\r\n\"if(manager.logContains(\\\".*Abnormal Termination on Environment.*\\\")) \\n\" +\r\n\"{\\n\" +\r\n\" manager.createSummary(\\\"error.gif\\\").appendText(\\\"Abnormal Termination of at least one Environment\\\", false, false, false, \\\"red\\\")\\n\" +\r\n\" buildFailed = true\\n\" +\r\n\" manager.addBadge(\\\"error.gif\\\", \\\"Abnormal Termination of at least one Environment\\\")\\n\" +\r\n\"}\\n\" +\r\n\"\\n\" +\r\n\"if (buildFailed && !buildUnstable)\\n\" +\r\n\"{\\n\" +\r\n\" manager.buildFailure()\\n\" +\r\n\"}\\n\" +\r\n\"if (buildUnstable)\\n\" +\r\n\"{\\n\" +\r\n\" manager.buildUnstable()\\n\" +\r\n\"}\\n\" +\r\n\"\\n\";\r\n\r\n SecureGroovyScript secureScript = new SecureGroovyScript(script, /*sandbox*/false, /*classpath*/null);\r\n GroovyPostbuildRecorder groovy = new GroovyPostbuildRecorder(secureScript, /*behaviour*/2, /*matrix parent*/false);\r\n project.getPublishersList().add(groovy);\r\n }", "@Override\r\n\tpublic void engine() {\n\t\t\r\n\t}", "public void runProgram() {\n if (isSyntaxChecked()) {\n // panelDebugArea1.getTextArea().setText(\"\");\n this.setPause(false);\n try {\n // Precisa adicionar o Swingworker em uma nova thread para que ele execute!!\n // Vai entender.\n // Duas instâncias de Swingworker diferentes não estavam rodando ao mesmo mesmo. O código abaixo solucionou o problema.\n new Thread(this.getWorker()).start();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, this.errorWhileRunningText + \"\\n\" + ex);\n }\n }\n }", "public void execute() throws CommandLineModuleExecutionException\n {\n try\n { \n MRMDialog mrmDialog = new MRMDialog(file,meanPrecursorDiscoveryMzTolerance,meanDaughterMzTolerance,SICtolerance,peakStrategyClass,traceAllFragments,syncLH,minPeakCutoff,minAreaCutoff);\n if(getBooleanArgumentValue(\"SELECTED_ION_MONITORING\"))\n {\n mrmDialog.topGraphLabel.setText(\"SIM Intensities\");\n mrmDialog._sim = true;\n }\n //mrmDialog.setModalityType(Dialog.ModalityType.DOCUMENT_MODAL);\n mrmDialog.setVisible(true);\n \n mrmDialog.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n// Thread.currentThread().yield();\n\n Thread.currentThread().join();\n }\n catch (Exception e)\n {\n throw new CommandLineModuleExecutionException(e);\n }\n }", "public Document analyze(String text) {\r\n Document doc = new Document(text);\r\n this.rake.loadDocument(doc);\r\n this.rake.run();\r\n return doc;\r\n }", "private void processLine(String line) throws NoSystemException {\n line = line.trim();\n if (line == null || line.length() == 0 || line.startsWith(\"//\")\n || line.startsWith(\"--\"))\n return;\n\n if (fStepMode) {\n Log.println(\"[step mode: `return' continues, \"\n + \"`escape' followed by `return' exits step mode.]\");\n try {\n int c = System.in.read();\n if (c == 0x1b)\n fStepMode = false;\n } catch (IOException ex) { }\n }\n\n if (line.startsWith(\"help\") || line.endsWith(\"--help\"))\n cmdHelp(line);\n else if (line.equals(\"q\") || line.equals(\"quit\") || line.equals(\"exit\"))\n cmdExit();\n else if (line.startsWith(\"??\"))\n cmdQuery(line.substring(2).trim(), true);\n else if (line.startsWith(\"?\"))\n cmdQuery(line.substring(1).trim(), false);\n else if (line.startsWith(\":\"))\n cmdDeriveStaticType(line.substring(1).trim());\n else if (line.startsWith(\"!!\"))\n \tcmdExec(line.substring(2).trim(), true);\n else if (line.startsWith(\"!\"))\n \tcmdExec(line.substring(1).trim(), false);\n else if (line.equals(\"\\\\\"))\n cmdMultiLine();\n else if (line.equals(\"check\") || line.startsWith(\"check \"))\n cmdCheck(line);\n else if (line.equals(\"genvcg\"))\n cmdGenVCG(null);\n else if (line.startsWith(\"genvcg \"))\n cmdGenVCG(line.substring(7));\n else if (line.equals(\"genmm\"))\n cmdGenMM(null);\n else if (line.startsWith(\"genmm \"))\n cmdGenMM(line.substring(6));\n else if (line.equals(\"genmonitor\"))\n cmdGenMonitor();\n else if (line.startsWith(\"info \"))\n cmdInfo(line.substring(5));\n else if (line.equals(\"net\"))\n cmdNet();\n else if (line.startsWith(\"open \"))\n cmdOpen(line.substring(5));\n else if (line.startsWith(\"reopen\"))\n \tcmdReOpen(line.substring(6));\n else if (line.startsWith(\"read \"))\n cmdRead(line.substring(5), true);\n else if (line.startsWith(\"readq \"))\n cmdRead(line.substring(6), false);\n else if (line.equals(\"reset\"))\n cmdReset();\n else if (line.equals(\"step on\"))\n cmdStepOn();\n else if (line.equals(\"undo\"))\n cmdUndo();\n else if (line.equals(\"redo\"))\n cmdRedo();\n else if (line.equals(\"write\"))\n cmdWrite(null);\n else if (line.startsWith(\"write \"))\n cmdWrite(line.substring(6));\n else if (line.startsWith(\"load -q \"))\n cmdGenLoadInvariants(line.substring(8), system(), false);\n else if (line.startsWith(\"gen loaded\"))\n cmdGenPrintLoadedInvariants(system());\n else if (line.startsWith(\"gen load\"))\n cmdGenLoadInvariants(line.substring(8), system(), true);\n else if (line.startsWith(\"gen unload\") || line.equals(\"unload\"))\n cmdGenUnloadInvariants(line.substring(10), system());\n else if (line.startsWith(\"gen start\") || line.equals(\"gen start\"))\n cmdGenStartProcedure(line.substring(9), system());\n else if (line.startsWith(\"gen flags\") || line.equals(\"gen flags\"))\n cmdGenInvariantFlags(line.substring(9), system());\n else if (line.startsWith(\"gen result\") || line.equals(\"gen result\"))\n cmdGenResult(line.substring(10), system());\n else if (line.startsWith(\"reload extensions\"))\n \tcmdReloadExtensions();\n else if (line.startsWith(\"coverage\"))\n \tcmdCoverage();\n\t\telse if (line.startsWith(\"plugins\") || line.equals(\"plugins\"))\n\t\t\tcmdShowPlugins();\n\t\telse if (Options.doPLUGIN) {\n\t\t\tSet<Entry<Map<String, String>, PluginShellCmdProxy>> cmdEntrySet = this.pluginCommands.entrySet();\n\t\t\tboolean cmdFound = false;\n\t\t\t\n\t\t\tfor (Entry<Map<String, String>, PluginShellCmdProxy> currentCmdMapEntry : cmdEntrySet) {\n\t\t\t\tMap<String, String> currentCmdDescMap = currentCmdMapEntry.getKey();\n\n\t\t\t\tif (line.startsWith(currentCmdDescMap.get(\"cmd\"))\n\t\t\t\t\t\t|| line.equals(currentCmdDescMap.get(\"cmd\"))) {\n\t\t\t\t\tIPluginShellCmd currentCmd = currentCmdMapEntry.getValue();\n\t\t\t\t\tcurrentCmd.executeCmd(currentCmdDescMap.get(\"cmd\"), \n\t\t\t\t\t\t\tline.substring(currentCmdDescMap.get(\"cmd\").length()));\n\t\t\t\t\tcmdFound = true;\n\t\t\t\t\tbreak;\n }\n\t\t\t}\n\n\t\t\tif (!cmdFound)\n\t\t\t\tLog.error(\"Unknown command `\" + line + \"'. Try `help'.\");\n\t\t} else\n\t\t\tLog.error(\"Unknown command `\" + line + \"'. Try `help'.\");\n\t}", "public void execute() throws MojoExecutionException, MojoFailureException {\n ApprovalTestingConfiguration approvalTestingConfiguration =\n new ApprovalTestingConfiguration();\n BaselineRepositoryImpl baselineRepository =\n new BaselineRepositoryImpl(approvalTestingConfiguration);\n ApprovalTestingEngine approvalTestingEngine =\n new ApprovalTestingEngine(baselineRepository, approvalTestingConfiguration);\n Approver approver = approvalTestingEngine.getApprover();\n if (approveAll) {\n approver.approveAllBaselineCandidates();\n } else if (baseline != null) {\n approver.approveBaselineCandidate(baseline);\n } else {\n approver.startApprovingBatchProcess();\n }\n }", "protected abstract void analyzeSystem(PipelineData data) throws Exception;", "@Override\n public void run() {\n try{\n //System.out.println(\"make method\");\n java.lang.reflect.Method method;\n //System.out.println(\"get DwenguinoBlocklyArduinoPlugin class\");\n Class ed = DwenguinoBlocklyArduinoPlugin.editor.getClass();\n //System.out.println(\"get args\");\n Class[] cArg = new Class[1];\n //System.out.println(\"set first arg as string\");\n cArg[0] = String.class;\n //System.out.println(\"get setText method\");\n method = ed.getMethod(\"setText\", cArg);\n //System.out.println(\"invoke method\");\n method.invoke(editor, code);\n }catch(NoSuchMethodException e) {\n //System.out.println(\"nosuchmethod\");\n \t\t\tDwenguinoBlocklyArduinoPlugin.editor.getCurrentTab().setText(code);\n \t\t} catch (IllegalAccessException e) {\n //System.out.println(\"illegalaccess\");\n \t\t\tDwenguinoBlocklyArduinoPlugin.editor.getCurrentTab().setText(code);\n \t\t} catch (SecurityException e) {\n //System.out.println(\"security\");\n \t\t\tDwenguinoBlocklyArduinoPlugin.editor.getCurrentTab().setText(code);\n \t\t} catch (InvocationTargetException e) {\n //System.out.println(\"invocationtarget\");\n \t\t\tDwenguinoBlocklyArduinoPlugin.editor.getCurrentTab().setText(code);\n \t\t}\n \n //System.out.println(\"handleExport\");\n\n DwenguinoBlocklyArduinoPlugin.editor.handleExport(false);\n\n //System.out.println(\"Done handling export\");\n }", "@Test\n\tpublic void Reports_18961_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Navigate to Advance Reports in navbar \n\t\tsugar().navbar.navToModule(ds.get(0).get(\"advance_report_name\"));\n \t\tnavigationCtrl.click();\n \t\t\n \t\t// Click on View Advance Report link\n \t\tviewAdvanceReportCtrl = new VoodooControl(\"a\", \"css\", \"[data-navbar-menu-item='LNK_LIST_REPORTMAKER']\");\n \t\tviewAdvanceReportCtrl.click();\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\t\n \t\t// click on list item\n \t\tnew VoodooControl(\"a\", \"css\", \"tr.oddListRowS1 > td:nth-child(3) a\").click();\n \t\tVoodooUtils.focusDefault();\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\t\n \t\t// Click to Select to add data format in report\n \t\tnew VoodooControl(\"input\", \"css\", \"#form [title='Select']\").click();\n \t\tVoodooUtils.focusWindow(1);\n \t\t\n \t\t// select data format in list\n \t\tnew VoodooControl(\"a\", \"css\", \"tr.oddListRowS1 td:nth-child(1) a\").click();\n \t\tVoodooUtils.focusWindow(0);\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\t\n \t\t// Click \"Edit\" of a \"Data Format\"\n \t\tnew VoodooControl(\"a\", \"css\", \"#contentTable tr.oddListRowS1 > td:nth-child(6) > slot > a:nth-child(3)\").click();\n \t\tVoodooUtils.focusDefault();\n \t\tVoodooUtils.focusFrame(\"bwc-frame\");\n \t\tnew VoodooControl(\"input\", \"id\", \"name\").assertEquals(ds.get(0).get(\"data_format_name\"), true);\n \t\tnew VoodooControl(\"input\", \"id\", \"query_name\").assertEquals(ds.get(0).get(\"query_name\"), true);\n \t\tnew VoodooControl(\"a\", \"css\", \"#Default_DataSets_Subpanel tr:nth-child(1) td:nth-child(4) a\").assertEquals(ds.get(0).get(\"report_name\"), true);\n \t\tVoodooUtils.focusDefault();\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "protected void thoroughInspection() {}", "protected abstract void execute(ICustomContext context,\n\t\t\tIProgressMonitor monitor);", "@Override\n\tpublic void run( String arg )\n\t{\n\t\tfinal LoadParseQueryXML result = new LoadParseQueryXML();\n\n\t\tif ( !result.queryXML( \"Dataset Quality Estimation\", true, true, true, true, true ) )\n\t\t\treturn;\n\n\t\testimateFRC( result.getData(), SpimData2.getAllViewIdsSorted( result.getData(), result.getViewSetupsToProcess(), result.getTimePointsToProcess() ) );\n\t}", "@Override\n\tpublic void testEngine() {\n\t\t\n\t}", "public interface Engine {\n\n String run();\n\n}", "public FindBugsCommandLine() {\n super();\n project = new Project();\n startOptionGroup(\"General FindBugs options:\");\n addOption(\"-project\", \"project\", \"analyze given project\");\n addOption(\"-home\", \"home directory\", \"specify FindBugs home directory\");\n addOption(\"-pluginList\", \"jar1[\" + File.pathSeparator + \"jar2...]\", \"specify list of plugin Jar files to load\");\n addSwitchWithOptionalExtraPart(\"-effort\", \"min|less|default|more|max\", \"set analysis effort level\");\n addSwitch(\"-adjustExperimental\", \"lower priority of experimental Bug Patterns\");\n addSwitch(\"-workHard\", \"ensure analysis effort is at least 'default'\");\n addSwitch(\"-conserveSpace\", \"same as -effort:min (for backward compatibility)\");\n }", "public void run() throws IloException {\n\t\t\n\t\t//Instancie la classe Cplex avec le programme lineaire et la nature\n\t\tCplex cplex = new Cplex(prog, nature);\n\t\tboolean st = false;\n\t\tString info;\n\t\tint i = 0;\n\t\t\n\t\t/*Tant que l'on a des sous tours dans le modèle*/\n\t\tdo {\n\t\t\t//Lancement du solve du model de cplex\n\t\t\tcplex.solve();\n\t\t\t\n\t\t\t//Récupère un booléen en fonction de la présence de sous tours après le solve\n\t\t\tst = contrainteSousTour(cplex);\n\t\t\tinfo = \"Contrainte de sous-tours ajouté au modèle\";\n\t\t\tInterface.majAffichage(info);\n\t\t\ti++;\n\t\t} while (st && i!= 5);\n\n\t}", "public void testDebugging() throws Throwable {\n // Status bar tracer\n MainWindowOperator.StatusTextTracer stt = MainWindowOperator.getDefault().getStatusTextTracer();\n SourcePackagesNode sourcePackagesNode = new SourcePackagesNode(SAMPLE_PROJECT_NAME);\n JavaNode sampleClass1Node = new JavaNode(sourcePackagesNode, SAMPLE1_PACKAGE_NAME + \"|\" + SAMPLE1_FILE_NAME);\n // flag to stop debugger in finally\n boolean debuggerStarted = false;\n try {\n // find sample file in Editor\n EditorOperator eo = new EditorOperator(SAMPLE1_FILE_NAME);\n eo.setCaretPosition(\"public static void main\", true);\n final int insertLine = eo.getLineNumber() + 2;\n\n // if file not contains brpText from previous test cases, insert it\n String brpText = \"System.out.println(\\\"Hello\\\");\"; // NOI18N\n if (!eo.contains(brpText)) {\n eo.insert(brpText + \"\\n\", insertLine, 1);\n }\n eo.select(brpText);\n\n ToggleBreakpointAction toggleBreakpointAction = new ToggleBreakpointAction();\n try {\n // toggle breakpoint via Shift+F8\n toggleBreakpointAction.performShortcut(eo);\n waitBreakpoint(eo, insertLine);\n } catch (TimeoutExpiredException e) {\n // need to be realiable test => repeat action once more to be sure it is problem in IDE\n // this time use events instead of Robot\n MainWindowOperator.getDefault().pushKey(\n toggleBreakpointAction.getKeyStrokes()[0].getKeyCode(),\n toggleBreakpointAction.getKeyStrokes()[0].getModifiers());\n waitBreakpoint(eo, insertLine);\n }\n\n // if file not contains second brpText from previous test cases, insert it\n brpText = \"System.out.println(\\\"Good bye\\\");\"; // NOI18N\n if (!eo.contains(brpText)) {\n eo.insert(brpText + \"\\n\", insertLine + 1, 1);\n }\n eo.select(brpText);\n // toggle breakpoint via pop-up menu\n // clickForPopup(0, 0) used in the past sometimes caused that menu\n // was opened outside editor area because editor roll up after \n // text was selected\n toggleBreakpointAction.perform(eo.txtEditorPane());\n // wait second breakpoint established\n waitBreakpoint(eo, insertLine + 1);\n // start to track Main Window status bar\n stt.start();\n debuggerStarted = true;\n // start debugging\n new DebugJavaFileAction().performMenu(sampleClass1Node);\n // check the first breakpoint reached\n // wait status text \"Thread main stopped at SampleClass1.java:\"\n // increase timeout to 60 seconds\n MainWindowOperator.getDefault().getTimeouts().setTimeout(\"Waiter.WaitingTime\", 60000);\n String labelLine = Bundle.getString(\"org.netbeans.modules.debugger.jpda.ui.Bundle\",\n \"CTL_Thread_stopped\",\n new String[]{\"main\", SAMPLE1_FILE_NAME, null, String.valueOf(insertLine)}); // NOI18N\n stt.waitText(labelLine);\n // continue debugging\n new ContinueAction().perform();\n // check the second breakpoint reached\n // wait status text \"Thread main stopped at SampleClass1.java:\"\n String labelLine1 = Bundle.getString(\"org.netbeans.modules.debugger.jpda.ui.Bundle\",\n \"CTL_Thread_stopped\",\n new String[]{\"main\", SAMPLE1_FILE_NAME, null, String.valueOf(insertLine)}); // NOI18N\n stt.waitText(labelLine1);\n // check \"Hello\" was printed out in Output\n OutputTabOperator oto = new OutputTabOperator(\"debug-single\"); // NOI18N\n // wait until text Hello is not written in to the Output\n oto.waitText(\"Hello\"); // NOI18N\n } catch (Throwable th) {\n try {\n // capture screen before cleanup in finally clause is completed\n PNGEncoder.captureScreen(getWorkDir().getAbsolutePath() + File.separator + \"screenBeforeCleanup.png\");\n } catch (Exception e1) {\n // ignore it\n }\n th.printStackTrace(getLog());\n throw th;\n } finally {\n if (debuggerStarted) {\n // finish debugging\n new FinishDebuggerAction().perform();\n // check status line\n // \"SampleProject (debug-single)\"\n String outputTarget = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"TITLE_output_target\",\n new Object[]{SAMPLE_PROJECT_NAME, null, \"debug-single\"}); // NOI18N\n // \"Finished building SampleProject (debug-single)\"\n String finishedMessage = Bundle.getString(\n \"org.apache.tools.ant.module.run.Bundle\",\n \"FMT_finished_target_status\",\n new Object[]{outputTarget});\n stt.waitText(finishedMessage);\n }\n stt.stop();\n // delete sample class\n sampleClass1Node.delete();\n String confirmTitle = Bundle.getString(\"org.netbeans.modules.refactoring.java.ui.Bundle\", \"LBL_SafeDel_Delete\"); // NOI18N\n String confirmButton = UIManager.getDefaults().get(\"OptionPane.okButtonText\").toString(); // NOI18N\n // \"Confirm Object Deletion\"\n new JButtonOperator(new NbDialogOperator(confirmTitle), confirmButton).push();\n }\n }", "public static void main(String[] args) throws Exception {\n\t\tLogConfig.execute();\n\t\tlogger.info(START);\n\t\tint endValue = 0;\n\t\ttry {\n\t\t\t//args check\n\t\t\targsValidation(args); \n\t\t\t//start logic\n\t\t\tendValue = SudokuFacade.build().executeSudokuValidation(new FileSystemContext(args[0]));\n\t\t} catch (Exception e) {\n\t\t\tendValue = 1;\n\t\t\tlogger.log(SEVERE, EXCEPTION, e);\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tlogger.info(END);\n\t\t\tlogger.info(endValue == 0 ? SUCCESS : FAIL );\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\texecutable.feedbackExecutionProcessRunning();\r\n\t\t\t}", "public void setExecutionEngine(ExecutionEngine executionEngine)\n\t{\n\t\tthis.executionEngine = executionEngine;\n\t}", "private CommandResult executeCommand(String commandText) throws CommandException,\n ParseException, InvalidTaskListOperationException, IllegalArgumentException {\n try {\n CommandResult commandResult = logic.execute(commandText);\n logger.info(\"Result: \" + commandResult.getFeedbackToUser());\n feedbackBox.setFeedbackToUser(commandResult.getFeedbackToUser());\n refreshTitle();\n\n // categoryPanel.setFeedbackToUser(commandResult.getFeedbackToUser());\n if (commandResult.isExit()) {\n handleExit();\n }\n\n return commandResult;\n } catch (CommandException | ParseException | InvalidTaskListOperationException | IllegalArgumentException e) {\n logger.info(\"Invalid command: \" + commandText);\n feedbackBox.setFeedbackToUser(e.getMessage());\n throw e;\n }\n }", "@Override\n public void handleSolution(String solution,long time) {\n \n }", "protected abstract void executeTests() throws BuilderException;", "private void run()\n {\n searchLexDb(\"^providing_\", true);\n }", "@Override\n public void execute(RuntimeStep exe, RuntimePlan plan) {\n }", "@Test\n\tpublic void KnowledgeBase_29454_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Create a Published KB without a Category\n\t\tsugar().knowledgeBase.navToListView();\n\t\tsugar().knowledgeBase.listView.create();\n\t\tsugar().knowledgeBase.createDrawer.showMore();\n\t\tsugar().knowledgeBase.createDrawer.getEditField(\"name\").set(customData.get(\"name\"));\n\t\tsugar().knowledgeBase.createDrawer.getEditField(\"status\").set(customData.get(\"status\"));\n\t\tsugar().knowledgeBase.createDrawer.save();\n\n\t\t// Select My Dashboard from the right hand side\n\t\tVoodooControl dashboardTitle = sugar().accounts.dashboard.getControl(\"dashboardTitle\");\n\t\tif(!dashboardTitle.queryContains(customData.get(\"dashboardTitle\"), true)) {\n\t\t\tsugar().dashboard.chooseDashboard(customData.get(\"dashboardTitle\"));\n\t\t}\n\n\t\t// TODO: VOOD-976 - need lib support of RHS on record view\n\t\tVoodooControl dashletTitleCtrl = new VoodooControl(\"h4\", \"css\", \".dashlet-row .row-fluid .dashlet-title\");\n\t\tVoodooControl noDataAvailableCtrl = new VoodooControl(\"div\", \"css\", \".dashlet-row .row-fluid .block-footer:not([style *='display: none'])\");\n\n\t\t// Verify that in the KB list view, at the right hand side, by default, there is the \"KB Categories\" Dashlet\n\t\tdashletTitleCtrl.assertEquals(customData.get(\"dashletTitle\"), true);\n\n\t\t// Verify that the above KB won't appear in the Dashlet\n\t\tnoDataAvailableCtrl.assertEquals(customData.get(\"noDataAvailable\"), true);\n\n\t\t// Navigate to KB categories page\n\t\tsugar().navbar.selectMenuItem(sugar().knowledgeBase, \"viewCategories\");\n\t\tVoodooUtils.waitForReady();\n\t\t// TODO: VOOD-1754 - Need Lib support for Categories field and Help Text (in RHS) in KnowledgeBase create Drawer.\n\t\t// Create Category \n\t\tnew VoodooControl(\"a\", \"css\", \"a[name='add_node_button']\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tnew VoodooControl(\"input\", \"css\", \"input.jstree-rename-input:not([style *='display: none'])\").set(customData.get(\"categoryName\")+'\\uE007');\t\t\n\t\tVoodooUtils.waitForReady();\n\n\t\t// In the list view, choose \"Create a Localization\" action from the above KB action list\n\t\tsugar().knowledgeBase.navToListView();\n\t\tsugar().knowledgeBase.listView.openRowActionDropdown(1);\n\t\t// TODO: VOOD-695 - Lib support for primary button drop down\n\t\tnew VoodooControl(\"a\", \"css\", \".fld_create_localization_button a\").click();\n\n\t\t// Now the create form opens, user can set the Status = Published, click on \"Select Category\"\n\t\tsugar().knowledgeBase.createDrawer.assertVisible(true);\n\t\tsugar().knowledgeBase.createDrawer.showMore();\n\t\tsugar().knowledgeBase.createDrawer.getEditField(\"name\").set(customData.get(\"localName\"));\n\t\tsugar().knowledgeBase.createDrawer.getEditField(\"status\").set(customData.get(\"status\"));\n\n\t\t// Click on \"Category\" link, enter a new category name, e.g \"new test category\" and hit enter\n\t\t// The above step is blocked due to CB-252 and as the test case motive is not to verify the create Category functionality\n\t\t// so link existing Category instead of create new\n\n\t\t// Select this category for the Localization KB\n\t\t// TODO: VOOD-629 - Add support for accessing and manipulating individual components of a VoodooSelect.\n\t\t// TODO: VOOD-1754 - Need Lib support for Categories field and Help Text (in RHS) in KnowledgeBase create Drawer.\n\t\tnew VoodooControl(\"div\", \"css\", \".fld_category_name.edit div\").click();\n\t\tnew VoodooControl(\"a\", \"css\", \".list .jstree-sugar.tree-component a\").click();\n\n\t\t// Click on Save\n\t\tsugar().knowledgeBase.createDrawer.save();\n\n\t\tsugar().knowledgeBase.navToListView();\n\n\t\t// Sort the list view in ascending order as order is not consistent\n\t\tsugar().knowledgeBase.listView.sortBy(\"headerName\", true);\n\n\t\t// Verify that the new Localized KB is saved, also the Category appears\n\t\tsugar().knowledgeBase.listView.getDetailField(1, \"name\").assertEquals(customData.get(\"localName\"), true);\n\t\t// TODO: VOOD-1754 - Need Lib support for Categories field and Help Text (in RHS) in KnowledgeBase create Drawer.\n\t\tnew VoodooControl(\"a\", \"css\", \".fld_category_name a\").assertEquals(customData.get(\"categoryName\"), true);\n\n\t\t// Verify that the new custom category is appearing, the KB record is associated with it\n\t\t// TODO: VOOD-976 - need lib support of RHS on record view\n\t\tVoodooControl dashletDataCtrl = new VoodooControl(\"a\", \"css\", \".dashlet-row .row-fluid .jstree-sugar.tree-component a[data-action='jstree-select']\");\n\t\tdashletDataCtrl.assertContains(customData.get(\"categoryName\"), true);\n\n\t\tVoodooControl localKBFolderCtrl = new VoodooControl(\"a\", \"css\", \".dashlet-row .row-fluid .jstree-sugar.tree-component > ul > li > a\");\n\t\tVoodooControl localKBCtrl = new VoodooControl(\"a\", \"css\", \".dashlet-row .row-fluid .jstree-sugar.tree-component .jstree-leaf a\");\n\t\tlocalKBFolderCtrl.click();\n\t\tVoodooUtils.waitForReady();\n\t\tlocalKBCtrl.waitForVisible(); // wait needed\n\t\tlocalKBCtrl.assertContains(customData.get(\"localName\"), true);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "public InputMethodTextRun(@NamedArg(\"text\") String text,\n @NamedArg(\"highlight\") InputMethodHighlight highlight) {\n this.text = text;\n this.highlight = highlight;\n }", "public void execute(TaskManager taskManager, Ui ui) throws DukeException {\n String rawDescription = Parser.parseDescription(line, COMMAND_DEADLINE);\n int indexBy = rawDescription.indexOf(PARAMETER_BY);\n String[] details = Parser.splitTaskDetails(rawDescription, COMMAND_DEADLINE, indexBy);\n Task addedTask = new Deadline(details[0], details[1]);\n taskManager.addTask(addedTask);\n ui.printAddTask(addedTask, taskManager);\n }", "@Override\n public InterpreterResult interpret(String line, InterpreterContext context) {\n\n InterpreterResult result=null;\n if (pauseInterpreter) {\n result = new InterpreterResult(Code.INCOMPLETE,\n \"Memory threshold reached.Please restart interpreter to release memory\");\n } else {\n if (sparkVersion.isUnsupportedVersion()) {\n result = new InterpreterResult(Code.ERROR, \"Spark \" + sparkVersion.toString()\n + \" is not supported\");\n }\n\n z.setInterpreterContext(context);\n if (line == null || line.trim().length() == 0) {\n result = new InterpreterResult(Code.SUCCESS);\n }\n result = interpret(line.split(\"\\n\"), context);\n }\n /*\n Resetting the classloader due to this issue: https://issues.scala-lang.org/browse/SI-8521\n */\n Thread.currentThread().setContextClassLoader(org.apache.spark.util.Utils.getSparkClassLoader());\n return result;\n }", "void executeLine(String line){\n\t\tString[] input = digest(line);\n\t\tif(input.length == 0) return;\n\n\t\tswitch (input[0]) {\n\t\t\tcase LOCATION:\n\t\t\t\tcatalog.addVan(input[1], input[2], input[3].equals(AUTOMATIC));\t\t\t\t\t\t\n\t\t\t\tbreak;\n\n\t\t\tcase REQUEST:\n\t\t\tcase CHANGE:\n\n\t\t\t\tCalendar start, end;\n\t\t\t\ttry{\n\t\t\t\t\tstart = stringsToCalendar(input[2], input[3], input[4]);\n\t\t\t\t\tend = stringsToCalendar(input[5], input[6], input[7]);\n\t\t\t\t}\n\t\t\t\tcatch(ParseException e){\n\t\t\t\t\tSystem.err.println(String.format(\"Cannot parse date string, skipping...\"));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tInterval interval = new Interval(start, end);\n\t\t\t\t\n\t\t\t\tint auto, manual;\n\t\t\t\tint tmpa = Integer.parseInt(input[8]);\n\t\t\t\tint tmpb = input.length == 12 ? Integer.parseInt(input[10]) : 0;\n\t\t\t\tif(input[9].equals(AUTOMATIC)){\n\t\t\t\t\tauto = tmpa;\n\t\t\t\t\tmanual = tmpb;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tauto = tmpb;\n\t\t\t\t\tmanual = tmpa;\n\t\t\t\t}\n\n\t\t\t\tif(input[0].equals(REQUEST)){\n\t\t\t\t\tSystem.out.print(\"Booking \" + catalog.makeOrder(input[1], interval, auto, manual) + \"\\n\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\"Change \" + catalog.changeOrder(input[1], interval, auto, manual) + \"\\n\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase CANCEL:\n\t\t\t\tSystem.out.print(\"Cancel \" + catalog.cancelOrder(input[1]) + \"\\n\");\n\t\t\t\tbreak;\n\n\t\t\tcase PRINT:\n\t\t\t\tSystem.out.print(catalog.print(input[1]));\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void analyze() throws AnalysisException {\n Resource resource = Env.getCurrentEnv().getResourceMgr().getResource(getName());\n if (resource == null) {\n throw new AnalysisException(\"Resource does not exist. name: \" + getName());\n }\n if (resource.getType() == Resource.ResourceType.SPARK) {\n etlJobType = EtlJobType.SPARK;\n }\n }", "@Override\n public void doAfterAllAnalysed(AnalysisContext context) {\n\n }", "public void actionPerformed(ActionEvent a) {\n\n String command = a.getActionCommand();\n if (command.equals(\"e\")) {\n //Log toggle.\n if (consoleDisplayed = !consoleDisplayed) //Show\n splitter.setDividerLocation(defaultSliderPosition);\n else //Hide\n splitter.setDividerLocation(.999);\n } else if (command.equals(\"r\")) {\n //Gets the code into a string.\n String code = text.getText();\n\n //Marks certain areas as \"dirty\".\n //Dirty areas are places that shouldn't be considered for any keywords,\n //including \"import\", \"extend\", and so on.\n ArrayList<Integer> dirtyBounds = getDirty(code);\n\n //Not quite perfect all of the time.\n if (text.getText().contains(\"class\")) {\n //This is a bit more explicit\n //if(text.getText().trim().substring(0, text.getText().trim().indexOf(\"{\")).contains(\"class\")) {\n //This means we should try to compile this as normal.\n\n //Pulls out class name\n int firstPos = code.indexOf(\"class\");\n while(isDirty(dirtyBounds, firstPos)) \n firstPos = code.indexOf(\"class\", firstPos + 1);\n\n int secondPos = code.indexOf(\"{\"); //No checks here because who would possibly put a comment between \"class\" and \"{\"?\n String name = code.substring(firstPos + \"class\".length() + 1, secondPos).trim();\n\n //Just a safety check to make sure you don't try to modify this program while it's running.\n if (name.equals(\"Playground\")) {\n System.out.println(\"I know what you're doing and I don't approve. I won't even compile that.\");\n return;\n //println(\"Self-compiling. You were warned.\", warning); //Allowed users to bootstrap this program. October 26, 2014\n }\n\n compileAndRun(name, code);\n } else {\n //This means we should compile this as a playground.\n\n //TODO: Try to assign every line to a variable, and print it out if it's by itself. IE, saying \"int i = 0\" won't do anything,\n //but then just typing \"i\" or \"i;\" would print out \"0\". Add support for functions, too. So \"factorial(5)\" by itself would \n //print out \"120\" without any fluff.\n\n //TODO: Lazy typing. \"int i = 0\" should be equivilant to \"i = 0\"\n\n //TODO: Less need for casting. If \"int.toString()\" is called, modify in-place to \"(new Integer(int)).toString()\"\n //Similar for calls that need Strings but are passed primitives; \"promote\" them by prepending \"\"+ to them.\n\n //Common import statements built-in\n String importDump = new String();\n importDump+=(\"import java.util.*;\\n\" + \n \"import javax.swing.*;\\n\" + \n \"import javax.swing.event.*;\\n\" +\n \"import java.awt.*;\\n\" + \n \"import java.awt.event.*;\\n\" + \n \"import java.io.*;\\n\");\n\n //User-defined or auto-generated methods\n String methodDump = new String();\n\n //Pulls out any \"import\" statements and appends them to the import dump.\n int i = code.indexOf(\"import\");\n while(i >= 0) {\n //Ignores comments and string literals\n if (isDirty(dirtyBounds, i)) {\n i = code.indexOf(\"import\", i+1);\n continue;\n }\n\n String s = code.substring(i, code.indexOf(\";\", i) + 1); \n //System.out.println(\"Found import: \" + s);\n code = code.replaceFirst(s, \"\");\n importDump+=s+\"\\n\";\n i = code.indexOf(\"import\", i+1);\n }\n\n //Pulls out all methods\n i = code.indexOf(\"(\");\n while(i >= 0) {\n if (isDirty(dirtyBounds,i)) {\n i = code.indexOf(\"(\", i+1); continue;\n }\n\n //Move backwards first\n char temp = 0; int pos = i;\n boolean shouldSkip = false;\n while(--pos > 0) {\n temp = code.charAt(pos);\n if (temp == '.') {shouldSkip = true; break;} //This is a method call, ie String.charAt();\n if (temp == ';') {++pos; break;} //This is most likely a method declaration, since we had no errors\n //If we hit the start of the file, that's probable a method dec. too!\n }\n\n String sub = code.substring(pos, i);\n if (shouldSkip || isDirty(dirtyBounds, pos) || \n sub.contains(\"while\") || sub.contains(\"for\") || sub.contains(\"new\") || sub.contains(\"try\") || sub.contains(\"catch\")) \n {i=code.indexOf(\"(\", i+1); continue;} //If this def. isn't a method or it's in a comment\n\n int start = pos;\n temp = 0; pos = code.indexOf(\"{\", i+1);\n int count = 1; shouldSkip = false;\n if(pos != -1) {\n if (code.indexOf(\";\", i+1) > pos || code.indexOf(\";\", i+1) == -1) {\n while(++pos < code.length()) {\n if (count == 0) \n break;\n\n temp = code.charAt(pos);\n if (temp == '{') \n count++;\n if (temp == '}') \n count--;\n }\n } else {\n //If there's a semicolon between the opening paranthesis and opening curly brace, this isn't a method!\n i = code.indexOf(\"(\", i+1);\n continue;\n }\n } else {\n i = code.indexOf(\"(\", i+1);\n continue;\n }\n\n int end = pos;\n String s = code.substring(start,end);\n code = code.replace(s, \"\"); \n\n //Just to make it look nicer\n s = s.trim();\n\n //println(\"Found method: \" + s);\n\n //This makes using the method intuitive by effectively removing the need for static modifiers\n if (!s.substring(0,s.indexOf(\"(\")).contains(\"static\")) {\n s = \"static \" + s;\n //println(\"Silently adding 'static' modifier\", warning);\n }\n\n methodDump+=(s + \"\\n\");\n i = code.indexOf(\"(\", i+1);\n }\n\n //Inject the class header and main method, imports, and methods\n code = \"//User and auto-imports pre-defined\\n\"\n + importDump\n + \"//Autogenerated class\\n\"\n + \"public class Main {\\n\" \n + \"public static void main(String[] args) {\\n\"\n + code\n + \"\\n}\\n\"\n + methodDump \n + \"}\";\n\n //Run as normal\n compileAndRun(\"Main\", code);\n }\n } else if (command.equals(\"k\")) {\n kill(); \n } else if (command.equals(\"o\")) {\n of = new OptionFrame(frame);\n } else if (command.equals(\"/\")) {\n hf = new HelpFrame(frame);\n }\n }", "public RSyntaxTextArea commonEditingActions(String selectedValue, boolean isMainFrame) {\r\n currentFrame = new JFrame(\"Editing \"+selectedValue); // keep the current frame handle\r\n editedFileName = selectedValue; // keep the edited filename\r\n jep = new RSyntaxTextArea(); // construct a JEditorPane component \r\n \r\n jep.setToolTipText(\"F7 (and F8 using ScriptEngine) executes selected text or current line. F3 supplies completion info. F5 clears console window\");\r\n \r\n jep.setFont(new Font(GlobalValues.paneFontName, Font.PLAIN, GlobalValues.paneFontSize));\r\n \r\n jep.setSyntaxEditingStyle(SyntaxConstants.SYNTAX_STYLE_JAVA);\r\n jep.setCodeFoldingEnabled(true);\r\n \r\n // create a toolbar with searching options\r\n JToolBar toolBar = new JToolBar();\r\n \r\n gotoLineButton = new JButton(\"Go To Line: \");\r\n gotoLineButton.setToolTipText(\"Positions the cursor to the line entered at the corresponding field \");\r\n toolBar.add(gotoLineButton);\r\n gotoLineButton.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n int lineNo = Integer.parseInt(gotoLineField.getText());\r\n int apos;\r\n try {\r\n apos = GlobalValues.globalEditorPane.getLineStartOffset(lineNo-1);\r\n GlobalValues.globalEditorPane.setCaretPosition(apos);\r\n } catch (BadLocationException ex) {\r\n ex.printStackTrace();\r\n }\r\n \r\n }\r\n });\r\n \r\n gotoLineField = new JTextField();\r\n toolBar.add(gotoLineField);\r\n \r\n \r\n searchField = new JTextField(30);\r\n toolBar.add(searchField);\r\n \r\n JLabel suggestionsLabel=new JLabel(\"suggestions: \");\r\n suggestionField = new JTextField(50);\r\n \r\n toolBar.add(suggestionsLabel);\r\n toolBar.add(suggestionField);\r\n \r\n final JButton nextButton = new JButton(\"Find Next\");\r\n nextButton.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n forward = true;\r\n performSearch(forward);\r\n }\r\n });\r\n toolBar.add(nextButton);\r\n searchField.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n nextButton.doClick();\r\n }\r\n });\r\n toolBar.add(searchField);\r\n \r\n JButton prevButton = new JButton(\"Find Previous\");\r\n prevButton.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n forward = false;\r\n performSearch(forward); \r\n }\r\n });\r\n toolBar.add(prevButton);\r\n\r\n regexCB = new JCheckBox(\"Regex\");\r\n toolBar.add(regexCB);\r\n\r\n matchCaseCB = new JCheckBox(\"Match Case\");\r\n toolBar.add(matchCaseCB);\r\n \r\n \r\n // add the key and mouse handlers\r\n jep.addKeyListener (keyMouseHandler);\r\n jep.addMouseMotionListener(keyMouseMotionHandler);\r\n \r\n \r\n mainJMenuBar = new JMenuBar();\r\n \r\n fileMenu = new JMenu(\"File\");\r\n fileMenu.setMnemonic('F');\r\n fileMenu.setToolTipText(\"File editing operations\");\r\n fileMenu.setFont(GlobalValues.uifont);\r\n \r\n \r\n \r\n \r\n \r\n \r\n JMenu KotlinMenu = new JMenu(\"Kotlin\");\r\n KotlinMenu.setToolTipText(\"Kotlin Scripting\");\r\n KotlinMenu.setFont(GlobalValues.uifont);\r\n \r\n \r\n \r\n JMenuItem executeWithKotlinJMenuItem = new JMenuItem(\"Execute Code with Kotlin (use also F10 key\");\r\n executeWithKotlinJMenuItem.setFont(jshellLabGlobal.Interpreter.GlobalValues.puifont);\r\n executeWithKotlinJMenuItem.addActionListener((ActionEvent e) -> {\r\n keyMouseHandler.clickExecuteScriptEngine();\r\n });\r\n \r\n KotlinMenu.add(executeWithKotlinJMenuItem);\r\n \r\n \r\n JMenu JShellMenu = new JMenu(\"JShell\");\r\n JShellMenu.setToolTipText(\"JShell Scripting\");\r\n JShellMenu.setFont(GlobalValues.uifont);\r\n \r\n \r\n JMenuItem classCompletionWithJShell = new JMenuItem(\"Class Completion with JShell of selected class\");\r\n classCompletionWithJShell.setFont(jshellLabGlobal.Interpreter.GlobalValues.puifont);\r\n classCompletionWithJShell.addActionListener((ActionEvent e) -> {\r\n String simpleTypeName = GlobalValues.globalEditorPane.getSelectedText();\r\n System.out.println(simpleTypeName);\r\n \r\n SourceCodeAnalysis.QualifiedNames qualifiedNames = GlobalValues.jshell.sourceCodeAnalysis().listQualifiedNames(simpleTypeName, simpleTypeName.length());\r\n \r\n List<String> allQualifiedNames = qualifiedNames.getNames();\r\n \r\n // priority to grooovySci related classes\r\n String groovySciClass = null;\r\n for (Iterator<String> it = allQualifiedNames.iterator(); it.hasNext();) {\r\n String elem = it.next();\r\n if (elem.contains(\"groovySci\")) {\r\n groovySciClass = elem;\r\n break;\r\n }\r\n }\r\n String mainName = groovySciClass;\r\n if (mainName==null)\r\n mainName = allQualifiedNames.get(0);\r\n // groovySciCommands.Inspect.inspectCompletionList(mainName);\r\n });\r\n \r\n JMenuItem reinitJShellJMenuItem = new JMenuItem(\"Reinit JShell\");\r\n reinitJShellJMenuItem.setFont(jshellLabGlobal.Interpreter.GlobalValues.guifont);\r\n reinitJShellJMenuItem.addActionListener(((ActionEvent e) -> {\r\n jshellLabExec.jshellLab.jshellLab.reinitJShell();\r\n }));\r\n \r\n JMenuItem executeWithJShellJMenuItem = new JMenuItem(\"Execute Code with Jshell (use also F7 key\");\r\n executeWithJShellJMenuItem.setFont(jshellLabGlobal.Interpreter.GlobalValues.puifont);\r\n executeWithJShellJMenuItem.addActionListener((ActionEvent e) -> {\r\n keyMouseHandler.clickExecuteCode();\r\n });\r\n \r\n \r\n JMenuItem matrixResultJShellJMenuItem = new JMenuItem(\"Retrieve matrix result from Equation in JShell (use also F8 key)\");\r\n matrixResultJShellJMenuItem.setFont(jshellLabGlobal.Interpreter.GlobalValues.puifont);\r\n matrixResultJShellJMenuItem.addActionListener((ActionEvent e) -> {\r\n keyMouseHandler.clickLookupMatrixResult();\r\n });\r\n \r\n \r\n JMenuItem intResultJShellJMenuItem = new JMenuItem(\"Retrieve int result from Equation in JShell (use also F9 key)\");\r\n intResultJShellJMenuItem.setFont(jshellLabGlobal.Interpreter.GlobalValues.puifont);\r\n intResultJShellJMenuItem.addActionListener((ActionEvent e) -> {\r\n keyMouseHandler.clickLookupIntResult();\r\n });\r\n \r\n JMenuItem variablesOfJShellJMenuItem = new JMenuItem(\"Display JShell's variables\");\r\n variablesOfJShellJMenuItem.setFont(jshellLabGlobal.Interpreter.GlobalValues.puifont);\r\n String [] allVars = new String[100];\r\n variablesOfJShellJMenuItem.addActionListener((ActionEvent e) -> {\r\n \r\n System.out.println(\"Variables: \");\r\n int [] vcnt=new int[1];\r\n vcnt[0]=0;\r\n GlobalValues.jshell.variables().forEach((v) -> {\r\n \r\n String vn = v.name();\r\n if (vn.contains(\"$\")==false) { // not a special variable\r\n String valueOfVar = jshellLabGlobal.Interpreter.GlobalValues.jshell.eval(vn).get(0).value();\r\n VarSnippet varX = jshellLabGlobal.Interpreter.GlobalValues.jshell.variables().filter((x1) -> vn.equals(x1.name())).findFirst().get();\r\n String typeOfVar = varX.typeName();\r\n System.out.println(\"Variable: \"+vn+\" type: \"+typeOfVar+\" value = \"+valueOfVar);\r\n if (vcnt[0]++ < 100)\r\n allVars[vcnt[0]] = \"Variable: \"+vn+\" type: \"+typeOfVar+\" value = \"+valueOfVar;\r\n if (vn.contains(\"$\")==false) {\r\n GlobalValues.jshellBindingValues.put(vn, valueOfVar);\r\n GlobalValues.jshellBindingTypes.put(vn, typeOfVar);\r\n }\r\n }\r\n } ); \r\n JList resultsList= new JList(allVars);\r\n AutoCompletionFrame displayFrame = new AutoCompletionFrame(\"JShell Variables\");\r\n displayFrame.displayMatches(resultsList);\r\n \r\n });\r\n \r\n \r\n \r\n JMenuItem importsOfJShellJMenuItem = new JMenuItem(\"Display JShell's imports\");\r\n importsOfJShellJMenuItem.setFont(jshellLabGlobal.Interpreter.GlobalValues.puifont);\r\n Vector <String> allImports = new Vector<String>(); \r\n \r\n importsOfJShellJMenuItem.addActionListener((ActionEvent e) -> {\r\n \r\n System.out.println(\"Imports: \");\r\n int [] icnt=new int[1];\r\n icnt[0]=0;\r\n GlobalValues.jshell.imports().forEach((v) -> {\r\n String importName = v.fullname();\r\n String isStatic = (v.isStatic() ? \"static \": \" \");\r\n \r\n String importStatement = \"import \"+isStatic+importName+\";\";\r\n System.out.println(importStatement);\r\n \r\n allImports.add(importStatement);\r\n });\r\n \r\n JList resultsList= new JList(allImports);\r\n AutoCompletionFrame displayFrame = new AutoCompletionFrame(\"JShell Imports\");\r\n displayFrame.displayMatches(resultsList);\r\n \r\n });\r\n \r\n \r\n \r\n \r\n JMenuItem bindingOfJShellJMenuItem = new JMenuItem(\"Display JShell's binding\");\r\n bindingOfJShellJMenuItem.setFont(jshellLabGlobal.Interpreter.GlobalValues.puifont);\r\n bindingOfJShellJMenuItem.addActionListener((ActionEvent e) -> {\r\n System.out.println(\"Variable Values: \");\r\n GlobalValues.jshellBindingValues.entrySet().forEach(v-> {\r\n System.out.println(v.getKey());\r\n System.out.println(v.getValue());\r\n }\r\n );\r\n System.out.println(\"Variable Types: \");\r\n \r\n GlobalValues.jshellBindingTypes.entrySet().forEach(v-> {\r\n System.out.println(v.getKey());\r\n System.out.println(v.getValue());\r\n }\r\n );\r\n });\r\n\r\n \r\n JMenuItem methodsOfJShellJMenuItem = new JMenuItem(\"Display JShell's methods\");\r\n String [] allMethods = new String[100];\r\n int [] methodCnt = new int[1];\r\n methodCnt[0] = 0;\r\n \r\n methodsOfJShellJMenuItem.setFont(jshellLabGlobal.Interpreter.GlobalValues.puifont);\r\n methodsOfJShellJMenuItem.addActionListener((ActionEvent e) -> {\r\n System.out.println(\"Methods: \");\r\n GlobalValues.jshell.methods().forEach(m -> {\r\n System.out.println(m.name()+\" \"+m.signature());\r\n allMethods[methodCnt[0]] = m.name()+\" \"+m.signature();\r\n methodCnt[0]++;\r\n });\r\n JList resultsList= new JList(allMethods);\r\n AutoCompletionFrame displayFrame = new AutoCompletionFrame(\"JShell Methods\");\r\n displayFrame.displayMatches(resultsList);\r\n \r\n });\r\n \r\n \r\n \r\n JMenuItem controlCharsToDisplayMenuItem = new JMenuItem(\"Chars to Display on large objects\");\r\n controlCharsToDisplayMenuItem.setToolTipText(\"Controls Chars to Display on large object output\");\r\n controlCharsToDisplayMenuItem.setFont(jshellLabGlobal.Interpreter.GlobalValues.guifont);\r\n controlCharsToDisplayMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) { // increase the font size of the rsyntaxarea editor\r\n String newMxCharsToOutput = JOptionPane.showInputDialog(GlobalValues.myGEdit, \"Controls max chars to display\",GlobalValues.mxLenToDisplay );\r\n GlobalValues.mxLenToDisplay = Integer.valueOf(newMxCharsToOutput);\r\n }\r\n });\r\n \r\n \r\n \r\n JShellMenu.add(executeWithJShellJMenuItem);\r\n JShellMenu.add(reinitJShellJMenuItem);\r\n JShellMenu.add(variablesOfJShellJMenuItem);\r\n JShellMenu.add(importsOfJShellJMenuItem);\r\n JShellMenu.add(bindingOfJShellJMenuItem);\r\n JShellMenu.add(methodsOfJShellJMenuItem);\r\n JShellMenu.add(classCompletionWithJShell);\r\n JShellMenu.add(controlCharsToDisplayMenuItem);\r\n \r\n saveEditorTextJMenuItem = new JMenuItem(\"Save Editor Text \");\r\n saveEditorTextJMenuItem.addActionListener(new saveEditorTextAction());\r\n saveEditorTextJMenuItem.setAccelerator(KeyStroke.getKeyStroke(\"ctrl S\"));\r\n saveEditorTextJMenuItem.setFont(GlobalValues.uifont);\r\n \r\n saveAsEditorTextJMenuItem = new JMenuItem(\"Save As Editor Text to File\");\r\n saveAsEditorTextJMenuItem.addActionListener(new saveAsEditorTextAction());\r\n saveAsEditorTextJMenuItem.setFont(GlobalValues.uifont);\r\n \r\n loadEditorTextJMenuItem = new JMenuItem(\"Load File to Editor\");\r\n loadEditorTextJMenuItem.addActionListener(new loadEditorTextAction());\r\n loadEditorTextJMenuItem.setAccelerator(KeyStroke.getKeyStroke(\"ctrl L\"));\r\n loadEditorTextJMenuItem.setFont(GlobalValues.uifont);\r\n \r\n \r\n exitJMenuItem = new JMenuItem(\"Exit\");\r\n exitJMenuItem.setFont(GlobalValues.uifont); \r\n \r\n exitJMenuItem.addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n String fullNameOfPropsFile = \"JShellLab.props\";\r\n \r\n try {\r\n File outPropFile = new File(fullNameOfPropsFile);\r\n \r\n FileOutputStream outFile= new FileOutputStream(outPropFile);\r\n GlobalValues.passPropertiesFromWorkspaceToSettings(GlobalValues.settings); // update properties to the current values kept in workspace\r\n GlobalValues.settings.store(outFile, \"Saved JShellLab global conf parameters\");\r\n outFile.close();\r\n }\r\n catch (Exception fnfe) {\r\n JOptionPane.showMessageDialog(null, \"Cannot write configuration file. Perhaps you do not have access rights for write, try making a shortcut to jShellLab using a proper \\\"Start in\\\" directory \",\"Cannot write configuration file\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"error opening file for writing configuration\");\r\n fnfe.printStackTrace();\r\n \r\n }\r\n saveRecentPaneFiles();\r\n System.exit(0);\r\n }\r\n });\r\n\r\n \r\n fileMenu.add(saveEditorTextJMenuItem);\r\n fileMenu.add(saveAsEditorTextJMenuItem);\r\n fileMenu.add(loadEditorTextJMenuItem);\r\n fileMenu.add(exitJMenuItem);\r\n\r\n \r\n JMenuItem interfaceWithLibrariesJMenuItem = new JMenuItem(\"Matrix Assignment - Tip - Matrix Conversions\");\r\n interfaceWithLibrariesJMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n EditorPaneHTMLHelp inPlaceHelpPane = new EditorPaneHTMLHelp(\"MatrixConversions.html\");\r\n if (GlobalValues.useSystemBrowserForHelp==false) {\r\n inPlaceHelpPane.setSize(GlobalValues.figFrameSizeX, GlobalValues.figFrameSizeY);\r\n inPlaceHelpPane.setLocation(GlobalValues.sizeX/4, GlobalValues.sizeY/4);\r\n inPlaceHelpPane.setVisible(true);\r\n \r\n }\r\n }\r\n });\r\n \r\n \r\n JMenu JEquationMenu = new JMenu(\"Equation\");\r\n JEquationMenu.setToolTipText(\"EJML Equation MATLAB-like interface\");\r\n JEquationMenu.setFont(GlobalValues.uifont);\r\n \r\n JMenuItem equationKeysItem = new JMenuItem(\"F6 evaluates equations, F4 displays variable values of equations\");\r\n equationKeysItem.setFont(GlobalValues.uifont);\r\n \r\n JEquationMenu.add(equationKeysItem); \r\n JEquationMenu.add(matrixResultJShellJMenuItem);\r\n JEquationMenu.add(intResultJShellJMenuItem);\r\n \r\n JMenu appearanceMenu = new JMenu(\"Appearance\");\r\n appearanceMenu.setFont(jshellLabGlobal.Interpreter.GlobalValues.uifont);\r\n appearanceMenu.setToolTipText(\"Appearance related settings (e.g. fonts, etc. )\");\r\n \r\n \r\n JMenuItem increaseRSyntaxFontMenuItem = new JMenuItem(\"Increase the font size of the rsyntaxarea editor\");\r\n increaseRSyntaxFontMenuItem.setToolTipText(\"Increases the font size of the rsyntaxarea editor\");\r\n increaseRSyntaxFontMenuItem.setFont(jshellLabGlobal.Interpreter.GlobalValues.guifont);\r\n increaseRSyntaxFontMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) { // increase the font size of the rsyntaxarea editor\r\n Font currentFont = jshellLabGlobal.Interpreter.GlobalValues.globalEditorPane.getFont();\r\n Font newFont = new Font(currentFont.getFontName(), currentFont.getStyle(), currentFont.getSize()+1);\r\n jshellLabGlobal.Interpreter.GlobalValues.globalEditorPane.setFont(newFont);\r\n }\r\n });\r\n \r\n \r\n JMenuItem decreaseRSyntaxFontMenuItem = new JMenuItem(\"Decrease the font size of the rsyntaxarea editor\");\r\n decreaseRSyntaxFontMenuItem.setToolTipText(\"Decreases the font size of the rsyntaxarea editor\");\r\n decreaseRSyntaxFontMenuItem.setFont(jshellLabGlobal.Interpreter.GlobalValues.guifont);\r\n decreaseRSyntaxFontMenuItem.addActionListener((ActionEvent e) -> {\r\n // increase the font size of the rsyntaxarea editor\r\n Font currentFont = jshellLabGlobal.Interpreter.GlobalValues.globalEditorPane.getFont();\r\n Font newFont = new Font(currentFont.getFontName(), currentFont.getStyle(), currentFont.getSize()-1);\r\n jshellLabGlobal.Interpreter.GlobalValues.globalEditorPane.setFont(newFont);\r\n });\r\n \r\n \r\n \r\n \r\n appearanceMenu.add(increaseRSyntaxFontMenuItem);\r\n appearanceMenu.add(decreaseRSyntaxFontMenuItem);\r\n \r\n \r\n\r\n \r\n \r\n JMenuItem basicPlotsDirectlyImportJMenuItem = new JMenuItem(\"Basic Plots Imports\");\r\n basicPlotsDirectlyImportJMenuItem.setFont(GlobalValues.uifont);\r\n basicPlotsDirectlyImportJMenuItem.setToolTipText(\"Injects the statements for the JMathPlot based routines\");\r\n basicPlotsDirectlyImportJMenuItem.addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n jShellLabEdit.importsHelper.injectBasicPlotsImports();\r\n }\r\n });\r\n \r\n \r\n JMenuItem JShellLabSciImportJMenuItem = new JMenuItem(\"JShellLabSci Imports\");\r\n JShellLabSciImportJMenuItem.setFont(GlobalValues.uifont);\r\n JShellLabSciImportJMenuItem.setToolTipText(\"Injects directly the statements for the JShellLabSci based routines\");\r\n JShellLabSciImportJMenuItem.addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n jShellLabEdit.importsHelper.injectJShellLabSciImports();\r\n }\r\n });\r\n\r\n \r\n JMenuItem javaSwingImportJMenuItem = new JMenuItem(\"Java Swing Imports\");\r\n javaSwingImportJMenuItem.setFont(GlobalValues.uifont);\r\n javaSwingImportJMenuItem.setToolTipText(\"Injects the statements for the Java Swing based routines\");\r\n javaSwingImportJMenuItem.addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n jShellLabEdit.importsHelper.injectJavaSwing();\r\n }\r\n });\r\n \r\n \r\n JMenuItem apacheCommonMathImportJMenuItem = new JMenuItem(\"Apache Common Maths Imports\");\r\n apacheCommonMathImportJMenuItem.setFont(GlobalValues.uifont);\r\n apacheCommonMathImportJMenuItem.setToolTipText(\"Injects the statements for the Apache Common Maths routines\");\r\n apacheCommonMathImportJMenuItem.addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n jShellLabEdit.importsHelper.injectApacheCommonMaths();\r\n }\r\n });\r\n \r\n \r\n JMenuItem numalImportJMenuItem = new JMenuItem(\"NUMAL library\");\r\n numalImportJMenuItem.setFont(GlobalValues.uifont);\r\n numalImportJMenuItem.setToolTipText(\"Injects the statements for the NUMAL library routines\");\r\n numalImportJMenuItem.addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n jShellLabEdit.importsHelper.injectNumAl();\r\n }\r\n });\r\n \r\n loadRecentPaneFiles();\r\n \r\n JMenu importsMenu = new JMenu(\"Imports\");\r\n importsMenu.setFont(GlobalValues.uifont);\r\n importsMenu.setToolTipText(\"injects some imports to facilitate the programmer\");\r\n importsMenu.add(basicPlotsDirectlyImportJMenuItem);\r\n importsMenu.add(JShellLabSciImportJMenuItem);\r\n importsMenu.add(numalImportJMenuItem);\r\n importsMenu.add(javaSwingImportJMenuItem);\r\n importsMenu.add(numalImportJMenuItem);\r\n// importsMenu.add(apacheCommonMathImportJMenuItem);\r\n \r\n JMenu librariesMenu = new JMenu(\"Libraries\");\r\n librariesMenu.setToolTipText(\"Investigates routines of various libraries using Java reflection in order to provide help\");\r\n librariesMenu.setFont(GlobalValues.uifont);\r\n \r\n JMenuItem nrMenuItem = new JMenuItem(\"Numerical Recipes \");\r\n nrMenuItem.setFont(GlobalValues.uifont);\r\n librariesMenu.add(nrMenuItem);\r\n nrMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfNRNumAl = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector NRNumALClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanNRNumAlLibs(JavaGlobals.numalFile);\r\n\r\n int k=1;\r\n watchClassesOfNRNumAl.displayClassesAndMethods( NRNumALClasses, \"Numerical Recipes\", jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n\r\n JMenuItem scalaSciRoutinesMenuItem = new JMenuItem(\"JShellLabSci routines\");\r\n scalaSciRoutinesMenuItem.setToolTipText(\"Display information using reflection for all the JShellLabSci classes and methods\");\r\n scalaSciRoutinesMenuItem.setFont(GlobalValues.uifont);\r\n librariesMenu.add(scalaSciRoutinesMenuItem);\r\n \r\n scalaSciRoutinesMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfJShellLabSci = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector scalaSciClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.jarFilePath, \"jShellLabSci\");\r\n\r\n int k=1;\r\n watchClassesOfJShellLabSci.displayClassesAndMethods( scalaSciClasses, \"JShellLabSci Classes\", jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n\r\n JMenuItem groovySciGraphicsRoutinesMenuItem = new JMenuItem(\"jShellLabSci Plotting routines\");\r\n groovySciGraphicsRoutinesMenuItem.setToolTipText(\"Display information using reflection for the jShellLabSci plotting classes and methods\");\r\n groovySciGraphicsRoutinesMenuItem.setFont(GlobalValues.uifont);\r\n librariesMenu.add(groovySciGraphicsRoutinesMenuItem);\r\n \r\n groovySciGraphicsRoutinesMenuItem.addActionListener((ActionEvent e) -> {\r\n jshellLabExec.gui.WatchClasses watchClassesOfJShellLabSci = new jshellLabExec.gui.WatchClasses();\r\n \r\n Vector groovySciPlottingClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.jarFilePath, \"jShellLabSci/math/plot\");\r\n \r\n int k=1;\r\n watchClassesOfJShellLabSci.displayClassesAndMethods( groovySciPlottingClasses, \"jShellLabSci Plotting Classses\", jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n });\r\n \r\n \r\n JMenuItem ejmlRoutinesMenuItem = new JMenuItem(\"EJML routines\");\r\n ejmlRoutinesMenuItem.setToolTipText(\"Display information using reflection for the EJML library classes and methods\");\r\n ejmlRoutinesMenuItem.setFont(GlobalValues.uifont);\r\n librariesMenu.add(ejmlRoutinesMenuItem);\r\n \r\n ejmlRoutinesMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfEJML = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector EJMLClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.ejmlFile, \"org\");\r\n\r\n int k=1;\r\n watchClassesOfEJML.displayClassesAndMethods( EJMLClasses, \"EJML Library\", jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n JMenuItem apacheCommonsRoutinesJMenuItem = new JMenuItem(\"Apache Commons Math Routines\");\r\n apacheCommonsRoutinesJMenuItem.setToolTipText(\"Display information using reflection for the Apache Commons math library classes and methods\");\r\n apacheCommonsRoutinesJMenuItem.setFont(GlobalValues.uifont);\r\n librariesMenu.add(apacheCommonsRoutinesJMenuItem);\r\n \r\n apacheCommonsRoutinesJMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfApacheCommonsMath = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector ApacheCommonsClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.ApacheCommonsFile, \"org/apache/commons/math3\");\r\n\r\n int k=1;\r\n watchClassesOfApacheCommonsMath.displayClassesAndMethods( ApacheCommonsClasses, \"Apache Common Maths Library\", jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n \r\n \r\n JMenuItem JASRoutinesJMenuItem = new JMenuItem(\"Java Algebra System (JAS) Routines\");\r\n JASRoutinesJMenuItem.setToolTipText(\"Display information using reflection for the Java Algebra System (JAS library classes and methods\");\r\n JASRoutinesJMenuItem.setFont(GlobalValues.uifont);\r\n librariesMenu.add(JASRoutinesJMenuItem);\r\n \r\n JASRoutinesJMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfJAS = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector JASClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.JASFile, \"edu/jas\");\r\n\r\n int k=1;\r\n watchClassesOfJAS.displayClassesAndMethods( JASClasses, \"Java Algebra System (JAS) Library\", jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n JMenuItem MathEclipseRoutinesJMenuItem = new JMenuItem(\"Math Eclipse Routines\");\r\n MathEclipseRoutinesJMenuItem.setToolTipText(\"Display information using reflection for the Math Eclipse system for symbolic maths\");\r\n MathEclipseRoutinesJMenuItem.setFont(GlobalValues.uifont);\r\n librariesMenu.add(MathEclipseRoutinesJMenuItem);\r\n \r\n MathEclipseRoutinesJMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfMathEclipse = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector MathEclipseClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.JASFile, \"org/matheclipse/core\");\r\n\r\n int k=1;\r\n watchClassesOfMathEclipse.displayClassesAndMethods( MathEclipseClasses, \"Math Eclipse symbolic math evaluator\", jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n JMenuItem numalMenuItem = new JMenuItem(\"NUMAL routines\");\r\n numalMenuItem.setToolTipText(\"Display information using reflection for the NUMAL classes and methods\");\r\n numalMenuItem.setFont(GlobalValues.uifont);\r\n librariesMenu.add(numalMenuItem);\r\n numalMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfNRNumAl = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector numalClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.numalFile, \"numal\");\r\n\r\n int k=1;\r\n watchClassesOfNRNumAl.displayClassesAndMethods( numalClasses, \"NUMAL\", jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n \r\n \r\n \r\n JMenuItem jlapackMenuItem = new JMenuItem(\"JLAPACK routines\");\r\n jlapackMenuItem.setToolTipText(\"Display information using reflection for the JLAPACK classes and methods\");\r\n jlapackMenuItem.setFont(GlobalValues.uifont);\r\n librariesMenu.add(jlapackMenuItem);\r\n jlapackMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfJLAPACK = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector numalClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.LAPACKFile, \"org\");\r\n\r\n int k=1;\r\n watchClassesOfJLAPACK.displayClassesAndMethods( numalClasses, \"JLAPACK\", jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n \r\n JMenuItem jsciMenuItem = new JMenuItem(\"JSci routines (contains Wavelet library, plotting, statistical routines)\");\r\n jsciMenuItem.setToolTipText(\"Display information using reflection for the JSci classes and methods\");\r\n jsciMenuItem.setFont(GlobalValues.uifont);\r\n librariesMenu.add(jsciMenuItem);\r\n jsciMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfJSci = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector JSciClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.jsciFile, \"JSci\");\r\n\r\n int k=1;\r\n watchClassesOfJSci.displayClassesAndMethods( JSciClasses, \"JSci Library Routines\", jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n \r\n \r\n JMenuItem joregonDSPMenuItem = new JMenuItem(\"Oregon Digital Signal Processing library routines\");\r\n joregonDSPMenuItem.setToolTipText(\"Display information using reflection for the classes and methods of the Oregon DSP library \");\r\n joregonDSPMenuItem.setFont(GlobalValues.uifont);\r\n librariesMenu.add(joregonDSPMenuItem);\r\n joregonDSPMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfOregonDSP = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector oregonDSPClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.numalFile, \"DSP\");\r\n\r\n \r\n int k=1;\r\n watchClassesOfOregonDSP.displayClassesAndMethods( oregonDSPClasses, \"Oregon DSP Library\", jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n\r\n \r\n \r\n JMenuItem mtjMenuItem = new JMenuItem(\"Matrix Toolkit for Java routines\");\r\n mtjMenuItem.setToolTipText(\"Display information using reflection for the MTJ classes and methods\");\r\n mtjMenuItem.setFont(GlobalValues.uifont);\r\n librariesMenu.add(jsciMenuItem);\r\n mtjMenuItem.addActionListener((ActionEvent e) -> {\r\n jshellLabExec.gui.WatchClasses watchClassesOfJSci = new jshellLabExec.gui.WatchClasses();\r\n \r\n Vector mtjClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.mtjColtSGTFile, \"no\");\r\n \r\n int k=1;\r\n watchClassesOfJSci.displayClassesAndMethods( mtjClasses, \"MTJ Library Routines\", jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n });\r\n \r\n \r\n \r\n JMenuItem coltMenuItem = new JMenuItem(\"CERN Colt routines\");\r\n coltMenuItem.setToolTipText(\"Display information using reflection for the classes and methods of the Colt Linear Algebra Library of CERN \");\r\n coltMenuItem.setFont(GlobalValues.uifont);\r\n librariesMenu.add(coltMenuItem);\r\n coltMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfNRNumAl = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector NRNumALClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.mtjColtSGTFile, \"cern\");\r\n\r\n int k=1;\r\n watchClassesOfNRNumAl.displayClassesAndMethods( NRNumALClasses, \"Colt Linear Algebra Library of CERN\", jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n \r\n \r\n JMenuItem csparseMenuItem = new JMenuItem(\"CSparse library routines\");\r\n csparseMenuItem.setToolTipText(\"Display information using reflection for the classes and methods of the CSparse library for sparse matrices\");\r\n csparseMenuItem.setFont(GlobalValues.uifont);\r\n librariesMenu.add(csparseMenuItem);\r\n csparseMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfCSparse = new jshellLabExec.gui.WatchClasses();\r\n\r\n String csparseFile = JavaGlobals.jarFilePath;\r\n \r\n Vector csparseClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(csparseFile, \"edu\");\r\n\r\n int k=1;\r\n watchClassesOfCSparse.displayClassesAndMethods( csparseClasses, \"CSparse Library for sparse matrices\", jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n \r\n JMenuItem jtransformsMenuItem = new JMenuItem(\"JTransforms library routines\");\r\n jtransformsMenuItem.setToolTipText(\"Display information using reflection for the classes and methods of the Jtransforms library \");\r\n jtransformsMenuItem.setFont(GlobalValues.uifont);\r\n librariesMenu.add(jtransformsMenuItem);\r\n jtransformsMenuItem.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfJTransforms = new jshellLabExec.gui.WatchClasses();\r\n\r\n String jtransformsFile = JavaGlobals.mtjColtSGTFile;\r\n \r\n Vector jtransformsClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(jtransformsFile, \"edu\");\r\n\r\n int k=1;\r\n watchClassesOfJTransforms.displayClassesAndMethods( jtransformsClasses, \"JTransforms Library\", jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n\r\n \r\n \r\n // now prepare the \"Search Keyword\" menu items\r\n \r\n JMenuItem JShellLabRoutinesMenuItemWithKeyword = new JMenuItem(\"Search keyword in JShellLab Routines\");\r\n JShellLabRoutinesMenuItemWithKeyword.setToolTipText(\"Display information for the JShellLab classes and methods having a keyword\");\r\n JShellLabRoutinesMenuItemWithKeyword.setFont(GlobalValues.uifont);\r\n librariesMenu.add(JShellLabRoutinesMenuItemWithKeyword);\r\n \r\n JShellLabRoutinesMenuItemWithKeyword.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfJShellLabSci = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector jShellLabSciClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.jarFilePath, \"jShellLabSci\");\r\n\r\n int k=1;\r\n String filterString = jShellLabSciCommands.BasicCommands.getString(\"Search for keyword\"); \r\n watchClassesOfJShellLabSci.displayClassesAndMethodsAsString(jShellLabSciClasses, \"jShellLabSci \", filterString, jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n\r\n JMenuItem jshellLabSciPlottingRoutinesMenuItemWithKeyword = new JMenuItem(\"Search keyword in jshellLabSci Plotting Routines\");\r\n jshellLabSciPlottingRoutinesMenuItemWithKeyword.setToolTipText(\"Display information for the jshellLabSci Plotting classes and methods having a keyword\");\r\n jshellLabSciPlottingRoutinesMenuItemWithKeyword.setFont(GlobalValues.uifont);\r\n librariesMenu.add(jshellLabSciPlottingRoutinesMenuItemWithKeyword);\r\n \r\n jshellLabSciPlottingRoutinesMenuItemWithKeyword.addActionListener((ActionEvent e) -> {\r\n jshellLabExec.gui.WatchClasses watchClassesOfScalaSci = new jshellLabExec.gui.WatchClasses();\r\n \r\n Vector jshellLabSciPlottingClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.jarFilePath, \"jShellLabSci/math/plot\");\r\n \r\n int k=1;\r\n String filterString = jShellLabSciCommands.BasicCommands.getString(\"Search for keyword\");\r\n watchClassesOfScalaSci.displayClassesAndMethodsAsString(jshellLabSciPlottingClasses, \"JShellLabSci Plot\", filterString, jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n });\r\n \r\n JMenuItem EJMLRoutinesMenuItemWithKeyword = new JMenuItem(\"Search keyword in EJML\");\r\n EJMLRoutinesMenuItemWithKeyword.setToolTipText(\"Display information for the EJML classes and methods having a keyword\");\r\n EJMLRoutinesMenuItemWithKeyword.setFont(GlobalValues.uifont);\r\n librariesMenu.add(EJMLRoutinesMenuItemWithKeyword);\r\n \r\n EJMLRoutinesMenuItemWithKeyword.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfjshellLabSci = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector EJMLClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.ejmlFile, \"org\");\r\n\r\n int k=1;\r\n String filterString = jShellLabSciCommands.BasicCommands.getString(\"Search for keyword\"); \r\n watchClassesOfjshellLabSci.displayClassesAndMethodsAsString(EJMLClasses, \"EJML Classses and Methods relevant to keyword\", filterString, jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n\r\n \r\n JMenuItem ApacheCommonsRoutinesMenuItemWithKeyword = new JMenuItem(\"Search keyword in Apache Commons\");\r\n ApacheCommonsRoutinesMenuItemWithKeyword.setToolTipText(\"Display information for the Apache Commons classes and methods having a keyword\");\r\n ApacheCommonsRoutinesMenuItemWithKeyword.setFont(GlobalValues.uifont);\r\n librariesMenu.add(ApacheCommonsRoutinesMenuItemWithKeyword);\r\n \r\n ApacheCommonsRoutinesMenuItemWithKeyword.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfApacheCommons = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector ApacheCommonsClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.ApacheCommonsFile, \"org/apache/commons/math3\");\r\n\r\n int k=1;\r\n String filterString = jShellLabSciCommands.BasicCommands.getString(\"Search for keyword\"); \r\n watchClassesOfApacheCommons.displayClassesAndMethodsAsString(ApacheCommonsClasses, \"Apache Commons Math\", filterString, jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n \r\n JMenuItem JASRoutinesMenuItemWithKeyword = new JMenuItem(\"Search keyword in Java Algebra System (JAS)\");\r\n JASRoutinesMenuItemWithKeyword.setToolTipText(\"Display information for the Java Algebra System (JAS) classes and methods having a keyword\");\r\n JASRoutinesMenuItemWithKeyword.setFont(GlobalValues.uifont);\r\n librariesMenu.add(JASRoutinesMenuItemWithKeyword);\r\n \r\n JASRoutinesMenuItemWithKeyword.addActionListener((ActionEvent e) -> {\r\n jshellLabExec.gui.WatchClasses watchClassesOfJAS= new jshellLabExec.gui.WatchClasses();\r\n \r\n Vector JASClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.JASFile, \"edu/jas\");\r\n \r\n int k=1;\r\n String filterString = jShellLabSciCommands.BasicCommands.getString(\"Search for keyword\");\r\n watchClassesOfJAS.displayClassesAndMethodsAsString(JASClasses, \"Java Algebra System (JAS) \", filterString, jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n });\r\n \r\n \r\n \r\n JMenuItem NUMALRoutinesMenuItemWithKeyword = new JMenuItem(\"Search keyword in NUMAL\");\r\n NUMALRoutinesMenuItemWithKeyword.setToolTipText(\"Display information for the NUMAL classes and methods having a keyword\");\r\n NUMALRoutinesMenuItemWithKeyword.setFont(GlobalValues.uifont);\r\n librariesMenu.add(NUMALRoutinesMenuItemWithKeyword);\r\n \r\n NUMALRoutinesMenuItemWithKeyword.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfJShellLabSci = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector NUMALClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.numalFile, \"numal\");\r\n\r\n int k=1;\r\n String filterString = jShellLabSciCommands.BasicCommands.getString(\"Search for keyword\"); \r\n watchClassesOfJShellLabSci.displayClassesAndMethodsAsString(NUMALClasses, \"NUMAL \", filterString, jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n\r\n JMenuItem JLAPACKRoutinesMenuItemWithKeyword = new JMenuItem(\"Search keyword in JLAPACK\");\r\n JLAPACKRoutinesMenuItemWithKeyword.setToolTipText(\"Display information for the JLAPACK classes and methods having a keyword\");\r\n JLAPACKRoutinesMenuItemWithKeyword.setFont(GlobalValues.uifont);\r\n librariesMenu.add(JLAPACKRoutinesMenuItemWithKeyword);\r\n \r\n JLAPACKRoutinesMenuItemWithKeyword.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfJLAPACK = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector JLAPACKClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.LAPACKFile, \"org\");\r\n\r\n int k=1;\r\n String filterString = jShellLabSciCommands.BasicCommands.getString(\"Search for keyword\"); \r\n watchClassesOfJLAPACK.displayClassesAndMethodsAsString(JLAPACKClasses, \"JLAPACK \", filterString, jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n \r\n JMenuItem jsciRoutinesMenuItemWithKeyword = new JMenuItem(\"Search keyword in JSci\");\r\n jsciRoutinesMenuItemWithKeyword.setToolTipText(\"Display information for the JSci classes and methods having a keyword\");\r\n jsciRoutinesMenuItemWithKeyword.setFont(GlobalValues.uifont);\r\n librariesMenu.add(jsciRoutinesMenuItemWithKeyword);\r\n \r\n jsciRoutinesMenuItemWithKeyword.addActionListener((ActionEvent e) -> {\r\n jshellLabExec.gui.WatchClasses watchClassesOfJSci = new jshellLabExec.gui.WatchClasses();\r\n \r\n Vector jsciClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.jsciFile, \"JSci\");\r\n \r\n int k=1;\r\n String filterString = jShellLabSciCommands.BasicCommands.getString(\"Search for keyword\");\r\n watchClassesOfJSci.displayClassesAndMethodsAsString(jsciClasses, \"JSci Classses and Methods relevant to keyword\", filterString, jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n });\r\n \r\n JMenuItem nrRoutinesMenuItemWithKeyword = new JMenuItem(\"Search keyword in Numerical Recipes\");\r\n nrRoutinesMenuItemWithKeyword.setToolTipText(\"Display information for the Numerical Recipes classes and methods having a keyword\");\r\n nrRoutinesMenuItemWithKeyword.setFont(GlobalValues.uifont);\r\n librariesMenu.add(nrRoutinesMenuItemWithKeyword);\r\n \r\n nrRoutinesMenuItemWithKeyword.addActionListener((ActionEvent e) -> {\r\n jshellLabExec.gui.WatchClasses watchClassesOfNUMAL = new jshellLabExec.gui.WatchClasses();\r\n \r\n Vector nrClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.numalFile, \"com\");\r\n \r\n int k=1;\r\n String filterString = jShellLabSciCommands.BasicCommands.getString(\"Search for keyword\");\r\n watchClassesOfNUMAL.displayClassesAndMethodsAsString(nrClasses, \"Numerical Recipes \", filterString, jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n });\r\n \r\n JMenuItem mtjRoutinesMenuItemWithKeyword = new JMenuItem(\"Search keyword in MTJ\");\r\n mtjRoutinesMenuItemWithKeyword.setToolTipText(\"Display information for the MTJ classes and methods having a keyword\");\r\n mtjRoutinesMenuItemWithKeyword.setFont(GlobalValues.uifont);\r\n librariesMenu.add(EJMLRoutinesMenuItemWithKeyword);\r\n \r\n mtjRoutinesMenuItemWithKeyword.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfMTJ = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector mtjClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.mtjColtSGTFile, \"no\");\r\n\r\n int k=1;\r\n String filterString = jShellLabSciCommands.BasicCommands.getString(\"Search for keyword\"); \r\n watchClassesOfMTJ.displayClassesAndMethodsAsString(mtjClasses, \"EJML \", filterString, jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n \r\n \r\n \r\n \r\n JMenuItem csparseRoutinesMenuItemWithKeyword = new JMenuItem(\"Search keyword in CSparse\");\r\n csparseRoutinesMenuItemWithKeyword.setToolTipText(\"Display information for the CSparse classes and methods having a keyword\");\r\n csparseRoutinesMenuItemWithKeyword.setFont(GlobalValues.uifont);\r\n librariesMenu.add(csparseRoutinesMenuItemWithKeyword);\r\n \r\n csparseRoutinesMenuItemWithKeyword.addActionListener((ActionEvent e) -> {\r\n jshellLabExec.gui.WatchClasses watchClassesOfCSparse = new jshellLabExec.gui.WatchClasses();\r\n \r\n String csparseFile = JavaGlobals.jarFilePath;\r\n Vector csparseClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(csparseFile, \"edu\");\r\n \r\n int k=1;\r\n String filterString = jShellLabSciCommands.BasicCommands.getString(\"Search for keyword\");\r\n watchClassesOfCSparse.displayClassesAndMethodsAsString(csparseClasses, \"CSparse \", filterString, jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n });\r\n\r\n \r\n \r\n \r\n JMenuItem joregonDSPMenuItemWithKeyword = new JMenuItem(\"Search Keyword in Oregon Digital Signal Processing library routines\");\r\n joregonDSPMenuItemWithKeyword.setToolTipText(\"Display information using reflection for the classes and methods of the Oregon DSP library having a keyword\");\r\n joregonDSPMenuItemWithKeyword.setFont(GlobalValues.uifont);\r\n librariesMenu.add(joregonDSPMenuItemWithKeyword);\r\n joregonDSPMenuItemWithKeyword.addActionListener(new ActionListener() {\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n jshellLabExec.gui.WatchClasses watchClassesOfOregonDSP = new jshellLabExec.gui.WatchClasses();\r\n\r\n Vector oregonDSPClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.jarFilePath, \"DSP\");\r\n \r\n int k=1;\r\n String filterString = jShellLabSciCommands.BasicCommands.getString(\"Search for keyword\"); \r\n watchClassesOfOregonDSP.displayClassesAndMethodsAsString( oregonDSPClasses, \"com.oregondsp\", filterString, jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n }\r\n });\r\n\r\n\r\n JMenuItem sgtRoutinesMenuItemWithKeyword = new JMenuItem(\"Search keyword in Scientific Graphics Toolbox (SGT)\");\r\n sgtRoutinesMenuItemWithKeyword.setToolTipText(\"Display information for the Scientific Graphics Toolkit (SGT) classes and methods having a keyword\");\r\n sgtRoutinesMenuItemWithKeyword.setFont(GlobalValues.uifont);\r\n librariesMenu.add(sgtRoutinesMenuItemWithKeyword);\r\n \r\n sgtRoutinesMenuItemWithKeyword.addActionListener((ActionEvent e) -> {\r\n jshellLabExec.gui.WatchClasses watchClassesOfSGT = new jshellLabExec.gui.WatchClasses();\r\n \r\n Vector sgtClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.mtjColtSGTFile, \"gov\");\r\n \r\n int k=1;\r\n String filterString = jShellLabSciCommands.BasicCommands.getString(\"Search for keyword\");\r\n watchClassesOfSGT.displayClassesAndMethodsAsString(sgtClasses, \"Scientifc Graphics Toolkit (SGT) \", filterString, jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n });\r\n \r\n JMenuItem coltRoutinesMenuItemWithKeyword = new JMenuItem(\"Search keyword in CERN Colt\");\r\n coltRoutinesMenuItemWithKeyword.setToolTipText(\"Display information for the CERN Colt classes and methods having a keyword\");\r\n coltRoutinesMenuItemWithKeyword.setFont(GlobalValues.uifont);\r\n librariesMenu.add(coltRoutinesMenuItemWithKeyword);\r\n \r\n coltRoutinesMenuItemWithKeyword.addActionListener((ActionEvent e) -> {\r\n jshellLabExec.gui.WatchClasses watchClassesOfCERN = new jshellLabExec.gui.WatchClasses();\r\n \r\n Vector coltClasses = jshellLabExec.ClassLoaders.JarClassLoader.scanLib(JavaGlobals.mtjColtSGTFile, \"cern\");\r\n \r\n int k=1;\r\n String filterString = jShellLabSciCommands.BasicCommands.getString(\"Search for keyword\");\r\n watchClassesOfCERN.displayClassesAndMethodsAsString(coltClasses, \"CERN Colt \", filterString, jshellLabExec.gui.WatchClasses.watchXLoc+k*50, jshellLabExec.gui.WatchClasses.watchYLoc+k*50);\r\n });\r\n \r\n \r\n \r\n JMenu examplesMenu = new JMenu(\"Demos \", true);\r\n examplesMenu.setFont(GlobalValues.uifont);\r\n examplesMenu.setToolTipText(\"Examples and Demos for JShellLab Sci\");\r\n \r\n JMenuItem JShellLabSciExamplesHelpJMenuItem = new JMenuItem(\"JShellLabSci Examples \");\r\n JShellLabSciExamplesHelpJMenuItem.setFont(GlobalValues.uifont);\r\n JShellLabSciExamplesHelpJMenuItem.addActionListener(new jShellLabSciExamplesJTreeAction());\r\n JShellLabSciExamplesHelpJMenuItem.setToolTipText(\"Provides examples of JShellLabSci scripts. To execute Copy and Paste in editor\");\r\n \r\n \r\n JMenuItem JEquationExamplesHelpJMenuItem = new JMenuItem(\"Equation Examples\");\r\n JEquationExamplesHelpJMenuItem.setFont(GlobalValues.uifont);\r\n JEquationExamplesHelpJMenuItem.addActionListener(new jEquationsExamplesJTreeAction());\r\n JEquationExamplesHelpJMenuItem.setToolTipText(\"Provides examples of MATLAB-like scripts based on EJML equation. To execute Copy and Paste in editor\");\r\n \r\n JMenuItem JShellLabSciPlotsExamplesHelpJTreeJMenuItem = new JMenuItem(\"JShellLabSci Plotting Examples with JTree format \");\r\n JShellLabSciPlotsExamplesHelpJTreeJMenuItem.setFont(GlobalValues.uifont);\r\n JShellLabSciPlotsExamplesHelpJTreeJMenuItem.addActionListener(new jShellLabSciPlotExamplesJTreeAction());\r\n JShellLabSciPlotsExamplesHelpJTreeJMenuItem.setToolTipText(\"Provides examples of JShellLabSci plotting scripts with a convenient JTree displaying. To execute Copy and Paste in editor\");\r\n \r\n JMenuItem JShellLabSciExamplesHelpJTreeJMenuItem = new JMenuItem(\"JShellLabSci Examples with JTree format \");\r\n JShellLabSciExamplesHelpJTreeJMenuItem.setFont(GlobalValues.uifont);\r\n JShellLabSciExamplesHelpJTreeJMenuItem.addActionListener(new jShellLabSciExamplesJTreeAction());\r\n JShellLabSciExamplesHelpJTreeJMenuItem.setToolTipText(\"Provides examples of JShellLabSci scripts with a convenient JTree displaying. To execute Copy and Paste in editor\");\r\n \r\n//JShellLabSciExamplesHelpJMenuItem.setIcon(new ImageIcon(groovyImage));\r\n \r\n JMenuItem JShellLabSciPlotsExamplesJMenuItem = new JMenuItem(\"JShellLabSci Plot Examples \");\r\n JShellLabSciPlotsExamplesJMenuItem.setFont(GlobalValues.uifont);\r\n JShellLabSciPlotsExamplesJMenuItem.addActionListener(new jShellLabSciPlotExamplesJTreeAction());\r\n JShellLabSciPlotsExamplesJMenuItem.setToolTipText(\"Provides examples of JShellLabSci Plot scripts. To execute Copy and Paste in editor\");\r\n \r\n \r\n \r\n examplesMenu.add(JShellLabSciExamplesHelpJMenuItem);\r\n examplesMenu.add(JEquationExamplesHelpJMenuItem);\r\n examplesMenu.add(JShellLabSciPlotsExamplesJMenuItem);\r\n examplesMenu.add(JShellLabSciExamplesHelpJTreeJMenuItem);\r\n examplesMenu.add(JShellLabSciPlotsExamplesHelpJTreeJMenuItem);\r\n \r\n \r\n JMenu classpathMenu = new JMenu(\"Classpath\"); \r\n classpathMenu.setFont(GlobalValues.uifont);\r\n classpathMenu.setToolTipText(\"Classpath control of JShell\");\r\n \r\n JMenuItem appendClassPathJMenuItem = new JMenuItem(\"pattern of code to append to classpath of JShell a jar file \");\r\n appendClassPathJMenuItem.setFont(GlobalValues.uifont);\r\n appendClassPathJMenuItem.addActionListener((ActionEvent e) -> { \r\n suggestionField.setText(\" jshellLabGlobal.Interpreter.GlobalValues.jshell.addToClasspath( <your jar file here!>);\"); \r\n });\r\n\r\n classpathMenu.add(appendClassPathJMenuItem);\r\n\r\n JMenuItem specifyAdditionalToolboxJMenuItem = new JMenuItem(\"specify additional .jar file for JShell classpath\");\r\n specifyAdditionalToolboxJMenuItem.setFont(GlobalValues.uifont);\r\n specifyAdditionalToolboxJMenuItem.addActionListener((ActionEvent e) -> {\r\n JFileChooser chooser = new JFileChooser(jshellLabGlobal.Interpreter.GlobalValues.workingDir);\r\n chooser.setDialogTitle(\"Browse file system for specifying .jar file for JShell classpath\");\r\n int retVal = chooser.showOpenDialog(jshellLabGlobal.Interpreter.GlobalValues.globalEditorPane);\r\n \r\n if (retVal == JFileChooser.APPROVE_OPTION) {\r\n File selectedFile = chooser.getSelectedFile();\r\n String SelectedFileWithPath = selectedFile.getAbsolutePath();\r\n GlobalValues.jshell.addToClasspath(SelectedFileWithPath);\r\n System.out.println(\"appended \"+SelectedFileWithPath+\" to JShell classpath\");\r\n }\r\n }); \r\n \r\n classpathMenu.add(specifyAdditionalToolboxJMenuItem);\r\n \r\n mainJMenuBar.add(fileMenu);\r\n mainJMenuBar.add(importsMenu);\r\n mainJMenuBar.add(JShellMenu);\r\n mainJMenuBar.add(KotlinMenu);\r\n mainJMenuBar.add(JEquationMenu);\r\n mainJMenuBar.add(librariesMenu);\r\n mainJMenuBar.add(classpathMenu);\r\n mainJMenuBar.add(examplesMenu);\r\n mainJMenuBar.add(appearanceMenu);\r\n mainJMenuBar.add(recentPaneFilesMenu);\r\n \r\n \r\n currentFrame.setJMenuBar(mainJMenuBar);\r\n\r\n currentFrame.setTitle(titleStr+\": File: \"+selectedValue);\r\n \r\n// use user settings for edit frames to adjust location and size\r\n currentFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n \r\n \r\n \r\n // load the file \r\n FileReader fr = null;\r\n try {\r\n fr = new FileReader(selectedValue);\r\n if (fr != null)\r\n jep.read(fr, null);\r\n \r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"file \"+selectedValue+\" not found\");\r\n }\r\n catch (IOException ex) {\r\n System.out.println(\"cannot close file \"+selectedValue);\r\n }\r\n finally {\r\n try {\r\n if (fr!=null)\r\n fr.close();\r\n \r\n \r\n } \r\n \r\n catch (IOException ex) {\r\n System.out.println(\"cannot close file \"+selectedValue);\r\n }\r\n \r\n }\r\n \r\n Rectangle b = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();\r\n if (GlobalValues.rememberSizesFlag == false) {\r\n currentFrame.setSize( (b.width / 2)-20, b.height * 5 / 6 );\r\n currentFrame.setLocation(50, 100);\r\n }\r\n else {\r\n currentFrame.setSize(GlobalValues.rsizeX, GlobalValues.rsizeY);\r\n currentFrame.setLocation(GlobalValues.rlocX, GlobalValues.rlocY);\r\n }\r\n currentFrame.setVisible(true);\r\n \r\n JPopupMenu popup = jep.getPopupMenu();\r\n popup.addSeparator();\r\n popup.add(new JMenuItem(new plotSignalAction()));\r\n popup.add(new JMenuItem(new executeSelectedAction()));\r\n \r\n \r\n \r\n scrPane = new RTextScrollPane(jep);\r\n //scrPane.setFoldIndicatorEnabled(true);\r\n \r\n toolBar.add(progressComputationLabel);\r\n progressComputationLabel.setVisible(false);\r\n \r\n currentFrame.add(toolBar, BorderLayout.NORTH);\r\n \r\n currentFrame.add(scrPane);\r\n currentFrame.setTitle(titleStr+\": File: \"+selectedValue);\r\n \r\n // if that Editor Frame is the main Editor frame, additional settings is required e.g.\r\n // adding the console output frame at the bottom \r\n if (isMainFrame) {\r\n \r\n JSplitPane sp = new JSplitPane(SwingConstants.HORIZONTAL);\r\n sp.setTopComponent(scrPane);\r\n sp.setBottomComponent(GlobalValues.outputPane);\r\n \r\n \r\n currentFrame.add(sp);\r\n // currentFrame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n currentFrame.setVisible(true);\r\n sp.setDividerLocation( 0.7 );\r\n \r\n \r\n }\r\n else {\r\n fileMenu.add(exitJMenuItem); \r\n }\r\n \r\n return jep;\r\n \r\n }", "public void execute(DelegateExecution execution) throws Exception\r\n {\n if (execution.getVariable(BpmVariables.RequestHelpHelper.VAR_CHOSEN_POSITION) == null)\r\n {\r\n throw new ResourcePlanningException(\"can not book helper to position for position id not set!!\");\r\n }\r\n Long positionId = (Long) execution.getVariable(BpmVariables.RequestHelpHelper.VAR_CHOSEN_POSITION);\r\n Position position = RepositoryProvider.getRepository(PositionRepository.class).findById(positionId);\r\n AssignmentService.assignHelper(getHelper(execution), getEvent(execution), position);\r\n }", "@Test\n\tpublic void RevenueLineItems_26647_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Navigate to RLIs listview, inline edit Sales Stage and verify the Probability and Forecast are changing respectively\n\t\tsugar().revLineItems.navToListView();\n\t\tsugar().revLineItems.listView.updateRecord(1, updateFS1);\n\t\tsugar().revLineItems.listView.verifyField(1, \"salesStage\", (fullFS1.get(\"salesStage\")));\n\t\tsugar().revLineItems.listView.verifyField(1, \"probability\", (fullFS1.get(\"probability\")));\n\t\tsugar().revLineItems.listView.verifyField(1, \"forecast\", (fullFS1.get(\"forecast\")));\n\n\t\tsugar().revLineItems.listView.updateRecord(2, updateFS2);\n\t\tsugar().revLineItems.listView.verifyField(2, \"salesStage\", fullFS2.get(\"salesStage\"));\n\t\tsugar().revLineItems.listView.verifyField(2, \"probability\", fullFS2.get(\"probability\"));\n\t\tsugar().revLineItems.listView.verifyField(2, \"forecast\", fullFS2.get(\"forecast\"));\n\n\t\tVoodooUtils.voodoo.log.info(testName + \"complete.\");\n\t}", "public static void main(String[] args) {\n Engine ry = new Engine();\n ry.interactWithKeyboard();\n // ry.interactWithKeyboard();\n\n }", "public abstract boolean passes(String line);", "public void testExecute() {\n panel.execute();\n }", "public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {\n\n\n addCodeCheckAPI(project);\n\n //Create a second thread for the CodeCheck fix\n CallFixThread cf = new CallFixThread();\n try {\n\n //get the argument\n PsiExpression arg = (PsiExpression) descriptor.getPsiElement();\n //get the current instance of IntelliJ and create a \"factory\" to generate better code\n PsiElementFactory factory = JavaPsiFacade.getInstance(project).getElementFactory();\n\n\n //create a safer call to CodeCheck.validator\n PsiMethodCallExpression safeCall =\n (PsiMethodCallExpression) factory.createExpressionFromText(\n \"CodeCheck.validator.getValidInputString(a)\", null);\n //replace our code with our safer call\n safeCall.getArgumentList().getExpressions()[0].replace(arg);\n arg.replace(safeCall);\n\n } catch (IncorrectOperationException e) {\n LOG.error(e);\n\n }\n\n\n\n\n\n\n\n\n }", "public static void main(String [] args)\n{\n\n DylockPatternAnalyzer dpa = new DylockPatternAnalyzer(args);\n dpa.process();\n}", "public JdkGlyphFixTextMeasurer(JasperReportsContext jasperReportsContext, JRCommonText textElement)\n\t{\n\t\tsuper(jasperReportsContext, textElement);\n\t\t\n\t\tattempts = JRPropertiesUtil.getInstance(jasperReportsContext).getIntegerProperty(PROPERTY_ATTEMPTS, DEFAULT_ATTEMPTS);\n\t\tsleep = JRPropertiesUtil.getInstance(jasperReportsContext).getIntegerProperty(PROPERTY_ATTEMPT_SLEEP, DEFAULT_ATTEMPT_SLEEP);\n\t\tcatchEmptyStacktrace = JRPropertiesUtil.getInstance(jasperReportsContext).getBooleanProperty(PROPERTY_CATCH_EMPTY_STACKTRACE);\n\t}", "@Override\n public void onEnable(){\n \tgetLogger().info(\"onEnable has been invoked!\");\n \t// This will throw a NullPointerException if you don't have the command defined in your plugin.yml file!\n \tgetCommand(\"basic\").setExecutor(new BetatestCommandExecutor(this));\n \tgetCommand(\"WhatAmI\").setExecutor(new BetatestCommandExecutor(this));\n \tgetCommand(\"isonline\").setExecutor(new BetatestCommandExecutor(this));\n }", "@Override\n\tpublic void run(IAction action) {\n\t\n\t\twindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\t\tif (window != null)\n\t\t{\n\t\t\ttry {\n\t\t\t\tIStructuredSelection selection = (IStructuredSelection) window.getSelectionService().getSelection();\n\t\t Object firstElement = selection.getFirstElement();\n \t\tinit();\n \t\t\n \t\tIProject project = (IProject)((IAdaptable)firstElement).getAdapter(IProject.class);\n\t ProjectAnalyzer.firstElement = (IAdaptable)firstElement;\n\t ProjectAnalyzer.url = project.getLocationURI().getPath().toString().substring(1);\n\t File dbFile = new File(ProjectAnalyzer.url + \"\\\\\" + project.getName() + \".db\");\n\t \n\t if(dbFile.exists()){\n\t \tMessageBox dialog = new MessageBox(window.getShell(), SWT.ICON_QUESTION | SWT.OK| SWT.CANCEL);\n\t \t\tdialog.setText(\"Select\");\n\t \t\tdialog.setMessage(\"The DB file of the project exists. \\n Do you want to rebuild the project?\");\n\t \t\tint returnCode = dialog.open();\n\t \t\t\n\t \t\tif(returnCode==SWT.OK){\n\t \t\t\tdbFile.delete();\n\t \t\t\tthis.analysis(project);\n\t \t\t\tthis.showMessage(\"Complete\",\"Rebuild has been complete!\");\n\t \t\t\t//do something\n\t \t\t\tthis.doTask();\n\t \t\t}else{\n\t \t\t\t//do something\n\t \t\t\tthis.doTask();\n\t \t\t}\n\t }else{\n\t \tthis.analysis(project);\n\t \tthis.showMessage(\"Complete\",\"Rebuild has been complete!\");\n\t \t//do something\n\t \tthis.doTask();\n\t }\n \t\t\n\t \n\t\t\t}catch(java.lang.NullPointerException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}catch (java.lang.ClassCastException e2){\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "void execute() throws CommandExecutionException;", "public static void main(String[] args) {\r\n\t\tTaskResultAnalysis analysis = extractArguments(args);\r\n\t\tif (analysis == null)\r\n\t\t\tdie(USAGE);\r\n\t\t// determine tool mode, invoke proper action\r\n\t\tif (analysis.directory != null)\r\n\t\t\tsearch(analysis);\r\n\t\telse analyze(analysis);\r\n\t}", "public static void main(String[] arguments) {\r\n TestIssue13 application = new TestIssue13();\r\n application.start();\r\n }", "void analysisCompleted();", "public void execute() {\n\n try {\n checkTask();\n Ui.printLines();\n Ui.printMatchingTasks();\n int index = 1;\n\n for (Task task : TaskList.taskArrayList) {\n String task_description = task.toString();\n\n if (task_description.contains(command)) {\n System.out.println(index + \". \" + task);\n index++;\n }\n\n }\n Ui.printLines();\n } catch (InvalidTask invalidTask) {\n Ui.printLines();\n Ui.printInvalidTask();\n Ui.printLines();\n }\n }" ]
[ "0.60227484", "0.5237342", "0.51607186", "0.508306", "0.49859306", "0.49785256", "0.49682015", "0.49190745", "0.49126276", "0.48910174", "0.4858374", "0.48285657", "0.48131102", "0.47531435", "0.4736646", "0.46941498", "0.46836552", "0.4660781", "0.46575928", "0.4603007", "0.4595231", "0.45871702", "0.45794353", "0.45522162", "0.45516333", "0.4549097", "0.45469677", "0.45284465", "0.45210874", "0.45199564", "0.45089167", "0.4502529", "0.4492368", "0.44837043", "0.4462792", "0.44515654", "0.44436544", "0.44403598", "0.44360062", "0.44229773", "0.44152063", "0.440682", "0.4404881", "0.44045642", "0.43980724", "0.43873516", "0.43747666", "0.43488723", "0.43432504", "0.43387094", "0.43373826", "0.43348786", "0.43265796", "0.43171963", "0.43025056", "0.4301744", "0.42916068", "0.42905056", "0.42898893", "0.4282046", "0.42771053", "0.42770776", "0.42707562", "0.42674333", "0.42640564", "0.42555422", "0.4250862", "0.42401052", "0.42327335", "0.42243135", "0.42233697", "0.4222598", "0.42160958", "0.42106253", "0.42086807", "0.42060956", "0.42059055", "0.42037195", "0.4201116", "0.419703", "0.41947103", "0.41932088", "0.41925335", "0.4188317", "0.4179826", "0.41779026", "0.4172238", "0.41701666", "0.41699404", "0.41694298", "0.41563815", "0.41553545", "0.4154196", "0.41515526", "0.4149555", "0.41465074", "0.4144297", "0.41410038", "0.413498", "0.4132019" ]
0.6372961
0
Print command line options synopses to stdout.
public static void showCommandLineOptions() { showCommandLineOptions(new TextUICommandLine()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printOptions() {\n\t\t\n\t}", "private static void printRunOptions(){\n\t\tSystem.out.println(\"Run options:\");\n\t\tSystem.out.println(\" -simple <configFile> <pathToApplication> <synthesis(true/false)>\");\n\t\tSystem.out.println(\" -simpleSpeedup <configFile> <pathToApplication>\");\n\t\tSystem.out.println(\" -sweep <configFile> <pathToApplication> <sweepConfig> <parallelism(integer)> <synthesis(true/false)>\");\n\t\tSystem.out.println(\" -sweepRemote <configFile> <pathToApplication> <sweepConfig> <parallelism(integer)> <synthesis(true/false)> <hostAddress> <hostPort>\");\n\t\tSystem.out.println(\" -synthesize <configFile> <pathToApplication> <methodName> <scheduleCDFG(true/false)>\");\n\t\tSystem.out.println(\" -test <configFile> <pathToApplication>\");\n\t\tSystem.out.println(\" -speedup <configFile> <pathToApplication>\");\n\t\tSystem.out.println(\" -testCGRAVerilog <configFile> <pathToApplication>\");\n\t}", "public static void showOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- The participants' directory.\")\n .add(\"2- The RDVs' agenda.\")\n .add(\"3- Quit the app.\")\n .add(\"*************************\")\n );\n }", "public void printOptions(String[] options) {\n\tfor (int counter = 0; counter < options.length; counter++) {\n\t System.out.print(options[counter] + \" || \");\n\t}\n\tSystem.out.print(\"\\n\");\n }", "private void printOptionsMessage() {\n System.out.println(\"\\n\");\n System.out.print(\"Visible arrays: \");\n if (showArray == true) {\n System.out.println(\"On\");\n } else {\n System.out.println(\"Off\");\n }\n\n System.out.println(\"Selected Algorithms: \");\n if (selected[0] == true) {\n System.out.print(\" MergeSort\");\n }\n if (selected[1] == true) {\n System.out.print(\" QuickSort\");\n }\n if (selected[2] == true) {\n System.out.print(\" HeapSort\");\n }\n\n System.out.println();\n }", "public static void showCommandLineOptions(TextUICommandLine commandLine) {\n commandLine.printUsage(System.out);\n }", "protected void printAllOptions() {\n\t\tOption op = null;\n\t\tfor (int i = 0; i < options.size(); i++) {\n\t\t\top = options.get(i);\n\t\t\tSystem.out.println(i + \". \" + op.getOptionName() + \":Price \"\n\t\t\t\t\t+ String.format(\"%.2f\", op.getPrice()));\n\t\t}\n\t}", "private void printHelp(Options options) {\n HelpFormatter formatter = new HelpFormatter();\n formatter.setWidth(79);\n formatter.setOptionComparator(Comparator.comparingInt(this::getOptionOrder));\n formatter.printHelp(\"protostuff-compiler [options] proto_files\", options);\n }", "private void displayOptions() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Main System Menu\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"A)dd polling place\");\n\t\tSystem.out.println(\"C)lose the polls\");\n\t\tSystem.out.println(\"R)esults\");\n\t\tSystem.out.println(\"P)er-polling-place results\");\n\t\tSystem.out.println(\"E)liminate lowest candidate\");\n\t\tSystem.out.println(\"?) display this menu of choices again\");\n\t\tSystem.out.println(\"Q)uit\");\n\t\tSystem.out.println();\n\t}", "public void printArgsInterpretation() {\n StringBuilder usage = new StringBuilder();\n usage.append(\"You launched the CuratorClient with the following options:\");\n usage.append(\"\\n\");\n usage.append(\"\\tCurator host: \");\n usage.append(host);\n usage.append(\"\\n\");\n usage.append(\"\\tCurator port: \");\n usage.append(port);\n usage.append(\"\\n\");\n usage.append(\"\\tInput directory: \");\n usage.append(inputDir.toString());\n usage.append(\"\\n\");\n usage.append(\"\\tOutput directory: \");\n usage.append(outputDir.toString());\n usage.append(\"\\n\");\n usage.append(\"\\tRun in testing mode? \");\n usage.append(testing ? \"Yes.\" : \"No.\");\n usage.append(\"\\n\");\n\n System.out.println( usage.toString() );\n }", "private static void printHelp(final Options options) {\n\t\tHelpFormatter formatter = new HelpFormatter();\n\t\tformatter.printHelp(\"lsc\", options);\n\t}", "private void printMenu() {\n\t\tSystem.out.println(\"Select an option :\\n----------------\");\n\t\tfor (int i = 0, size = OPTIONS.size(); i < size; i++) {\n\t\t\tSystem.out.println(OPTIONS.get(i));\n\t\t}\n\t}", "private void printUsage() {\n \n // new formatter\n HelpFormatter formatter = new HelpFormatter();\n \n // add the text and print\n formatter.printHelp(\"arara [file [--log] [--verbose] [--timeout N] [--language L] | --help | --version]\", commandLineOptions);\n }", "private void printHelp() {\n System.out.println(\"Your available command words are:\");\n parser.showCommands();\n }", "private void printHelp(Options options) {\n\t\tHelpFormatter formatter = new HelpFormatter();\r\n\t\tString header = \"CLI for Message Counter program\\n\\n\";\r\n\t\tString footer = \"End of the help\\n\";\r\n\t\tformatter.printHelp(\"ChatCounter\", header, options, footer, true);\r\n\t}", "private static void printUsage()\n {\n StringBuilder usage = new StringBuilder();\n usage.append(String.format(\"semantika %s [OPTIONS...]\\n\", Environment.QUERYANSWER_OP));\n usage.append(\" (to execute query answer)\\n\");\n usage.append(String.format(\" semantika %s [OPTIONS...]\\n\", Environment.MATERIALIZE_OP));\n usage.append(\" (to execute RDB2RDF export)\");\n String header = \"where OPTIONS include:\"; //$NON-NLS-1$\n String footer =\n \"\\nExample:\\n\" + //$NON-NLS-1$\n \" ./semantika queryanswer -c application.cfg.xml -l 100 -sparql 'SELECT ?x WHERE { ?x a :Person }'\\n\" + //$NON-NLS-1$\n \" ./semantika rdb2rdf -c application.cfg.xml -o output.n3 -f N3\"; //$NON-NLS-1$\n mFormatter.setOptionComparator(null);\n mFormatter.printHelp(400, usage.toString(), header, sOptions, footer);\n }", "private static void printHelp(CmdLineParser parser) {\n\tSystem.out.print(\"Usage: Main \");\n\tparser.printSingleLineUsage(System.out);\n\tSystem.out.println(\"\\n\");\n\tparser.printUsage(System.out);\n\tSystem.out.println(\"\");\n\treturn;\n }", "public static void showAgendaOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- View all scheduled RDVs\")\n .add(\"2- Add a new RDV\")\n .add(\"3- Show all RDVs between 2 dates (sorted).\")\n .add(\"4- Show all RDVs of a certain participant between 2 dates.\")\n .add(\"5- Remove an RDV\")\n .add(\"6- Return to the previous menu.\")\n .add(\"*************************\")\n );\n }", "private static void printUsage() {\n System.err.println(\"\\n\\nUsage:\\n\\tAnalyzeRandomizedDB [-p] [-v] [--enzyme <enzymeName> [--mc <number_of_missed_cleavages>]] <original_DB> <randomized_DB>\");\n System.err.println(\"\\n\\tFlag significance:\\n\\t - p : print all redundant sequences\\n\\t - v : verbose output (application flow and basic statistics)\\n\");\n System.exit(1);\n }", "public void printUsage() {\n printUsage(System.out);\n }", "public void showHelp() {\n\tString shortFormat = \"%16s -- %-20s %n\";\n\tString longFormat = \"%16s -- %-40s %n\";\n System.out.printf(shortFormat, \"ls\", \"list matched tariffs\");\n System.out.printf(shortFormat, \"ls all\", \"list all tariffs\");\n System.out.printf(shortFormat, \"clear\", \"reset filters\");\n System.out.printf(shortFormat, \"exit\", \"exit the program\");\n System.out.printf(longFormat, \"field min max\",\n \"filter tariffs with field having\"\n + \"value between min and max\");\n System.out.println(\"\\nList of available fields:\\n\");\n filterCommands.stream().forEach(System.out::println);\n }", "static void printGeneralOptions(){\n System.out.println(GeneralInfo.PREFIX_COMMAND_DESCRIPTION + \"NameWeapon/Powerup: read the description of that weapon/powerup\");\n }", "public static void options(){\n System.out.println(\"Choose from the following options \");\n System.out.println(\"0 Print the options again\");\n System.out.println(\"1 Create Student Records\");\n System.out.println(\"2 Create Teacher Records\");\n System.out.println(\"3 Edit the Records\");\n System.out.println(\"4 Get the Record Count\");\n System.out.println(\"5 Exit\");\n }", "public void printUsage() {\n System.out.println(\"\\nHelp Invoked on \");\n System.out.println(\"[-hfs] \");\n System.out.println(\"\");\n\n System.out.println(\"Usage: \");\n System.out.println(\"-d [true|false]\");\n System.out.println(\"-f URL-file-pathame\");\n System.out.println(\"-h: invoke help\");\n System.out.println(\"-i: URL-list-input-source [ DEFAULT | USER | FILE ]\");\n System.out.println(\"-s URL-list-separator\");\n }", "private void printHelp() \n {\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "private void print_help_and_exit() {\n System.out.println(\"A bunch of simple directus admin cli commands\");\n System.out.println(\"requires DIRECTUS_API_HOST and DIRECTUS_ADMIN_TOKEN environment variables to be set\");\n System.out.println();\n\n COMMAND_METHODS.values().forEach(c -> {\n for (String desriptionLine : c.descriptionLines) {\n System.out.println(desriptionLine);\n }\n System.out.println();\n });\n\n System.out.println();\n System.exit(-1);\n }", "private static void printUsage() {\r\n\t\t//TODO: print out clear usage instructions when there are problems with\r\n\t\t// any command line args\r\n\t\tSystem.out.println(\"This program expects three command-line arguments, in the following order:\"\r\n\t\t\t\t+ \"\\n -q for storing as a queue, -c for console output, and the input file name.\");\r\n\t}", "static void selectOptions(String[] args)\n {\n if (args.length > 0)\n {\n for (String arg : args)\n {\n switch(arg)\n {\n default:\n System.out.println(\"Usage: java PGInstance [-options]\\n\"\n + \"where options include\\n\"\n + \" <an invalid option> to print this help message\\n\"\n + \" -m -more -v -verbose to turn on verbose console messages\\n\"\n + \" -c -cheat to turn on cheats\\n\"\n + \" <no options> to run program as is\"\n );\n System.exit(0);\n break;\n\n // this silences all calls to Verbose.println()\n case \"-m\": case \"-more\": case \"-v\": case \"-verbose\":\n if (!Verbose.on)\n {\n System.out.println(\"[Verbose messages enabled.]\");\n Verbose.on = true;\n }\n break;\n\n // a Pokemon object will always output an invincible Pokemon with this option\n case \"-c\": case \"-cheat\":\n if (!Pokemon.usingCheats)\n {\n System.out.println(\"[Cheats on. (69/420/\\\"ONE PUNCH MON\\\")]\");\n Pokemon.usingCheats = true;\n }\n break;\n }\n }\n }\n }", "private static void viewOptions() {\n\t\tlog.info(\"Enter 0 to Exit.\");\n\t\tlog.info(\"Enter 1 to Login.\");\n\t}", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the prision.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n System.out.println(parser.showCommands());\n }", "private void displayMenuOptions()\n {\n // display user options menu\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n System.out.println(\"COMMAND OPTIONS:\");\n System.out.println(\"\");\n System.out.println(\" 'on' to force power controller to ON state\");\n System.out.println(\" 'off' to force power controller to OFF state\");\n System.out.println(\" 'status' to see current power controller state\");\n System.out.println(\" 'sunrise' to display sunrise time.\");\n System.out.println(\" 'sunset' to display sunset time.\");\n System.out.println(\" 'next' to display next scheduled event.\");\n System.out.println(\" 'time' to display current time.\");\n System.out.println(\" 'coord' to display longitude and latitude.\");\n System.out.println(\" 'help' to display this menu.\");\n System.out.println(\"\");\n System.out.println(\"PRESS 'CTRL-C' TO TERMINATE\");\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n }", "private static void printHelp(Options options) {\n HelpFormatter formatter = new HelpFormatter();\n String header = \"Generates the JSON file to send to Drupal.\";\n formatter.printHelp(120, \"drupal-builder\", header, options, \"\", true);\n }", "public static void printHelp(Options options) {\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp(\"java -jar $DIR/evsrestapi-*.jar\", options);\n return;\n }", "private void printHelp() {\r\n\t\tSystem.out.println(\"Flag Param Details\");\r\n\t\tSystem.out.println(\" -f **x** Add a filter. 'x' is the board letter.\");\r\n\t\tSystem.out.println(\" Can have 0 or more stars before and after the board letter.\");\r\n\t\tSystem.out.println(\" -h Print this message.\");\r\n\t\tSystem.out.println(\" -q Quit interactive session.\");\r\n\t\tSystem.out.println(\" -n xx Display xx number of words.\");\r\n\t\tSystem.out.println(\" -n all Display all words.\");\r\n\t\tSystem.out.println(\" -r Repeat last search.\");\r\n\t\tSystem.out.println(\" -s len Words are sorted by length.\");\r\n\t\tSystem.out.println(\" -s alpha Words are sorted alphapetically.\");\r\n\t\t// System.out.println(\"\");\r\n\t}", "private void printGoalOptions() {\n System.out.println(ANSI_PURPLE + \"CHOOSE YOUR GOALS: \" + ANSI_RESET);\n System.out.println(\"----------------------------------------------------------------------------------------------------------------\");\n System.out.println(\"1. I can be poor - I don't care about the money but I want to be as\" + ANSI_BLUE + \" happy and\" + ANSI_RESET + \" as\" + ANSI_BLUE + \" educated\" + ANSI_RESET + \" as possible.\");\n System.out.println(\"2. I want to be \" + ANSI_BLUE + \"rich and happy!\" + ANSI_RESET + \" I don't have to be educated at all.\");\n System.out.println(\"3. I want to be well \" + ANSI_BLUE + \"educated and \" + ANSI_RESET + \"I don't want be hungry ever again. Always \" + ANSI_BLUE + \"full!\" + ANSI_RESET + \" ;) \");\n System.out.println(\"4. I want to have the \" + ANSI_BLUE + \"best job\" + ANSI_RESET + \" possible and make\" + ANSI_BLUE + \" lots of money\" + ANSI_RESET + \" even if it will make me unhappy.\");\n System.out.println(\"----------------------------------------------------------------------------------------------------------------\");\n }", "public void printOptions() {\n String indent = \" \";\n System.out.println();\n System.out.println(\"+--------------------------- COMMANDS AND OPTIONS LIST ---------------------------+\");\n\n System.out.println();\n System.out.println(\"******* COMMANDS (scraper.[COMMAND]) *******\");\n System.out.println(\"The following interact with the RegistrationScraper class\");\n System.out.println();\n \n\n System.out.println();\n System.out.println(\"iterateAll() --> Scrape every SDSU department's class and store the data [Recommended before: printDepartmentCourses()]\");\n System.out.println(indent + \"@usage iterateAll()\");\n\n System.out.println();\n System.out.println(\"iterateOne() --> Scrape ONE department's class and store the data [Recommended before: printDepartmentCourses()]\");\n System.out.println(indent + \"@usage iterateOne(\\\"CS\\\")\");\n System.out.println(indent + \"@param department\");\n\n System.out.println();\n System.out.println(\"printDepartmentCourses() --> Display a formatted list of every stored class so far\");\n System.out.println(indent + \"@usage printDepartmentCourses()\");\n\n System.out.println();\n System.out.println(\"printArrListSizes() --> Display the sizes of all the data (to make sure they're all the same length)\");\n System.out.println(indent + \"@usage printArrListSizes()\");\n \n\n System.out.println();\n System.out.println(\"******* OPTIONS (custom.[COMMAND] *******\");\n System.out.println(\"The following interact with the HTML GET method\");\n System.out.println();\n \n\n System.out.println();\n System.out.println(\"setTerm() --> Set the semester term you want to search\");\n System.out.println(indent + \"@usage setTerm(\\\"Summer\\\", \\\"2017\\\")\");\n System.out.println(indent + \"@param season\");\n System.out.println(indent + indent + \"options: Fall, Spring, Winter, Summer\");\n System.out.println(indent + \"@param year\");\n System.out.println(indent + indent + \"options: 2015, 2016, 2017, etc.\");\n\n System.out.println();\n System.out.println(\"setDepartment() --> Set a single department you wish to search (use with iterateOne())\");\n System.out.println(indent + \"@usage setDepartment(\\\"CS\\\")\");\n System.out.println(indent + \"@param department\");\n System.out.println(indent + indent + \"options: AMIND, BIOL, CS, etc.\");\n\n System.out.println();\n System.out.println(\"setInstructor() --> Set the course number you want to return (ex. all \\\"xx-108\\\" classes)\");\n System.out.println(indent + \"@usage setInstructor(\\\"Kraft\\\")\");\n System.out.println(indent + \"@param last name\");\n\n System.out.println();\n System.out.println(\"setCourseNumber() --> Set the course number you want to return (ex. all \\\"xx-108\\\" classes)\");\n System.out.println(indent + \"@usage setCourseNumber(\\\"108\\\")\");\n System.out.println(indent + \"@param number\");\n\n System.out.println();\n System.out.println(\"setCourseNumber() --> Set the course number AND suffic you want to return (ex. all \\\"xx-451A\\\" classes)\");\n System.out.println(indent + \"@usage setTerm(\\\"451\\\", \\\"A\\\")\");\n System.out.println(indent + \"@param number\");\n System.out.println(indent + \"@param suffix\");\n System.out.println(indent + indent + \"options: A, B, C, etc.\");\n\n System.out.println();\n System.out.println(\"setScheduleNumber() --> Set the specific class you want to return\");\n System.out.println(indent + \"@usage setScheduleNumber(\\\"20019\\\")\");\n System.out.println(indent + \"@param number\");\n\n System.out.println();\n System.out.println(\"setUnits() --> Set the specific number of units\");\n System.out.println(indent + \"@usage setUnits(\\\"3\\\")\");\n System.out.println(indent + \"@param units\");\n\n System.out.println();\n System.out.println(\"setLocation() --> Set the facility location of the class\");\n System.out.println(indent + \"@usage setUnits(\\\"GMCS\\\")\");\n System.out.println(indent + \"@param facility\");\n\n System.out.println();\n System.out.println(\"setLocation() --> Set the facility AND room location of the class\");\n System.out.println(indent + \"@usage setUnits(\\\"GMCS\\\", \\\"311\\\")\");\n System.out.println(indent + \"@param facility\");\n System.out.println(indent + \"@param room number\");\n\n System.out.println();\n System.out.println(\"setServiceLearning() --> Toggle the 'Service Learning' option [only show Service Learning classes]\");\n System.out.println(indent + \"@usage setServiceLearning(true)\");\n System.out.println(indent + \"@param true/false\");\n\n System.out.println();\n System.out.println(\"setSpecialTopics() --> Toggle the 'Special Topics' option [only show Special Topics classes]\");\n System.out.println(indent + \"@usage setSpecialTopics(true)\");\n System.out.println(indent + \"@param true/false\");\n\n System.out.println();\n System.out.println(\"setHonors() --> Toggle the 'Honors' option [only show Honors classes]\");\n System.out.println(indent + \"@usage setHonors(true)\");\n System.out.println(indent + \"@param true/false\");\n \n System.out.println();\n System.out.println(\"setDistanceOnline() --> Toggle the 'Distance Online' option [only show Online classes]\");\n System.out.println(indent + \"@usage setDistanceOnline(true)\");\n System.out.println(indent + \"@param true/false\");\n\n System.out.println();\n System.out.println(\"setDistanceHybrid() --> Toggle the 'Distance Hybrid' option [only show Hybrid classes]\");\n System.out.println(indent + \"@usage setDistanceHybrid(true)\");\n System.out.println(indent + \"@param true/false\");\n\n System.out.println();\n System.out.println(\"setEvening() --> Toggle the 'Evening' option [only show Evening classes]\");\n System.out.println(indent + \"@usage setEvening(true)\");\n System.out.println(indent + \"@param true/false\");\n\n System.out.println();\n System.out.println(\"setMeetingType() --> Set your preferred meeting type\");\n System.out.println(indent + \"@usage setMeetingType(\\\"Lecture\\\")\");\n System.out.println(indent + \"@param type\");\n System.out.println(indent + indent + \"@options Activity, Discussion, Labratory, Lecture, \"+\n \"Nontraditional, ROTC, Seminar, Supervised\");\n \n System.out.println();\n System.out.println(\"setGenEd() --> Set the General Education requirements you want to show\");\n System.out.println(indent + \"@usage setGenEd(\\\"IIA2\\\")\");\n System.out.println(indent + \"@param true/false\");\n System.out.println(indent + indent + \"@options see general catalog\");\n\n System.out.println();\n System.out.println(\"setSession() --> Set the Summer Session you want to show\");\n System.out.println(indent + \"@usage setGenEd(\\\"S1\\\")\");\n System.out.println(indent + \"@param session\");\n System.out.println(indent + indent + \"@options S1, S2, T1\");\n\n System.out.println();\n System.out.println(\"+---------------------------------------------------------------------------------+\");\n System.out.println();\n\n }", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around in a dense woods.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "private void printOptionsForPlaylist() {\n System.out.println(\"\\n\\t0. Return to main menu \\n\\t1. print Options For Playlist \\n\\t2. Skip forward (next song) \\n\\t3. skip backwards (previous song)\" +\n \"\\n\\t4. removing song in playlist\" + \" \\n\\t5. repeat the current song\" + \" \\n\\t6. current song played\"\n + \" \\n\\t7. show list songs of playlist \");\n }", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "protected void printMenu() {\n System.out.println(\"\\nChoose an option:\");\n }", "private static String printOptionalArgs() {\n String output = \"\";\n for (int i = 0; i < MAX_OPTIONAL_ARGS; i++)\n output += \" [-\" + VALID_OPTIONAL_ARGS[i] + \"]\";\n return output + \" \";\n }", "public void printHelp() throws IOException {\n\n HelpFormatter hf = new HelpFormatter();\n hf.setShellCommand(m_name);\n hf.setGroup(m_options);\n hf.print();\n }", "public static void showUsage() {\n System.out.printf(\"java app.App (-a | -r | -c | +WORD | ?WORD)\");\n }", "public static String options(Integer option) {\n\t\tString options = \"[status] for status - [quit] to close\";\n\t\tif(option == 1)\n\t\t\tSystem.out.println(options);\n\t\treturn options;\n\t}", "private static void writeShortManual() {\n System.out.println(\"\\nPromethean CLI v1.0.0\");\n System.out.println(\"Commands:\");\n System.out.println(\"\\tplan - create (and optionally execute) a plan given input json\");\n System.out.println(\"\\ttestgen - generate a test input file given initial and goal states\");\n System.out.println(\"Run <command> --help to see all options\\n\");\n }", "public static void initDefaultOptions()\r\n\t{\n\r\n\t\taddOption(HELP, true, \"show Arguments\");\r\n\t}", "private void displayUsage() {\r\n System.err.println(\"\\nUSAGE: java -classpath ... \" + \"DiscourseImportTool\");\r\n System.err.println(\"Option descriptions:\");\r\n System.err.println(\"\\t-h\\t usage info\");\r\n System.err.println(\"\\t-e, email\\t send email if major failure\");\r\n System.err.println(\"\\t-b\\t batchSize number of items to batch during import\");\r\n System.err.println(\"\\t-discourse\\t discourse id to run the generator on\");\r\n System.err.println(\"\\t-project\\t project id to add discourse to\");\r\n }", "private static void printHelp(){\r\n System.out.println(\"\\n\\n\\t\\t\\t ----HELP---\\n\\n\" +\r\n \"\\nYou can set the length of password like this \\n\" +\r\n \"\\t java -jar nipunpassgen.jar -l (where l is length of password) \\n\\n\" +\r\n \"\\nYou can also specifiy the which type of word your want to use like this-->\\n\" +\r\n \"\\t Type java -jar nipunpassgen.jar -l -tttt \\n \" +\r\n \"Here 1st t will set uselowercase true \\t 2nd t set useUppercase true\\n\" +\r\n \"\\t 3rd t set useDigit True \\t and 4th t set useSpecial Char true\\n\" +\r\n \"You can use 't' or 'T' for setting the true and 'f' or 'F' for setting the false\\n\" +\r\n \"You can pass -c flag at the end of command for directly copy the password in your\\n\" +\r\n \"clipboard without showing in console like this \\t java -jar nipunpassgen.jar -c \\t this will copy a\\n\" +\r\n \"random 8 digit password in your clipboard .\");\r\n }", "final private static void usage_print () {\n\t\tSystem.out.println (NAME + ' ' + VERSION + ' ' + COPYRIGHT) ;\n\t\tSystem.out.println () ;\n\n\t\tSystem.out.println (\n\t\t \"Usage: java bcmixin.Main [<options>] <modelname> <equationname>\"\n\t\t) ;\n\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\"where [<options>] include any of the following:\") ;\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\" -help\") ;\n\t\tSystem.out.println (\" Prints this helpful message, then exits.\") ;\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\" where <modelname> means the model name that you want to work on.\") ;\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\"where <equationname> provides the equation name, which must end with .equation.\") ;\n\t\tSystem.out.println () ;\n }", "public static void help() {\n System.out.println(line(\"*\", 80));\n System.out.println(\"SUPPORTED COMMANDS\");\n System.out.println(\"All commands below are case insensitive\");\n System.out.println();\n System.out.println(\"\\tSELECT * FROM table_name; Display all records in the table.\");\n System.out.println(\"\\tSELECT * FROM table_name WHERE rowid = <value>; Display records whose rowid is <id>.\");\n System.out.println(\"\\tDROP TABLE table_name; Remove table data and its schema.\");\n System.out.println(\"\\tVERSION; Show the program version.\");\n System.out.println(\"\\tHELP; Show this help information\");\n System.out.println(\"\\tEXIT; Exit the program\");\n System.out.println();\n System.out.println();\n System.out.println(line(\"*\", 80));\n }", "private void help() {\n for (GameMainCommandType commandType : GameMainCommandType.values()) {\n System.out.printf(\"%-12s%s\\n\", commandType.getCommand(), commandType.getInfo());\n }\n System.out.println();\n }", "private static void printUsage()\n {\n HelpFormatter hf = new HelpFormatter();\n String header = String.format(\n \"%nAvailable commands: ring, cluster, info, cleanup, compact, cfstats, snapshot [name], clearsnapshot, bootstrap\");\n String usage = String.format(\"java %s -host <arg> <command>%n\", NodeProbe.class.getName());\n hf.printHelp(usage, \"\", options, header);\n }", "private void showCommands() {\n System.out.println(\"\\n Commands:\");\n System.out.println(\"\\t lf: List reference frames\");\n System.out.println(\"\\t af: Add a reference frame\");\n System.out.println(\"\\t rf: Remove a reference frame\");\n System.out.println(\"\\t le: List events\");\n System.out.println(\"\\t ae: Add an event\");\n System.out.println(\"\\t re: Remove an event\");\n System.out.println(\"\\t ve: View all events from a certain frame\");\n System.out.println(\"\\t li: Calculate the Lorentz Invariant of two events\");\n System.out.println(\"\\t s: Save the world to file\");\n System.out.println(\"\\t l: Load the world from file\");\n System.out.println(\"\\t exit: Exit the program\");\n }", "private static void displayHelp(){\n System.out.println(\"-host hostaddress: \\n\" +\n \" connect the host and run the game \\n\" +\n \"-help: \\n\" +\n \" display the help information \\n\" +\n \"-images: \\n\" +\n \" display the images directory \\n\" +\n \"-sound: \\n\" +\n \" display the sounds file directory \\n\"\n\n );\n }", "public PrintStreamCommandOutput()\n {\n this( System.out );\n }", "void printUsage(){\n\t\tSystem.out.println(\"Usage: RefactorCalculator [prettyPrint.tsv] [tokenfile.ccfxprep] [cloneM.tsv] [lineM.tsv]\");\n\t\tSystem.out.println(\"Type -h for help.\");\n\t\tSystem.exit(1); //error\n\t}", "public void printCommand() {\n System.out.println(\"Cette commande n'est pas supportee\");\n System.out.println(\"Quitter : \\\"quit\\\", Total: \\\"total\\\" , Liste: \\\"list\\\" ou Time: \\\"time\\\"\");\n System.out.println(\"--------\");\n }", "private SimpleCLI(Options options) {\n this.options = options;\n }", "private static void help(Options options) {\n\t\tHelpFormatter formater = new HelpFormatter();\n\n\t\tformater.printHelp(\"Main\", options);\n\t\tSystem.exit(0);\n\n\t}", "public void print() {\n System.out.println(\"Command: \" + command);\n }", "@Test\n\tpublic void testHelpOption()\n\t{\n\t\tPrintStream outBkp = System.out;\n\t\tByteArrayOutputStream outBuf = new ByteArrayOutputStream ();\n\t\tSystem.setOut ( new PrintStream ( outBuf ) );\n\n\t\tApp.main ( \"--help\" );\n\t\t\n\t\tSystem.setOut ( outBkp ); // restore the original output\n\n\t\tlog.debug ( \"CLI output:\\n{}\", outBuf.toString () );\n\t\tassertTrue ( \"Can't find CLI output!\", outBuf.toString ().contains ( \"*** Command Line Example ***\" ) );\n\t\tassertEquals ( \"Bad exit code!\", 1, App.getExitCode () );\n\t}", "public static void showParticipantDirectoryOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- View the list of all participants\")\n .add(\"2- Add a new participant\")\n .add(\"3- Update a participant\")\n .add(\"4- Remove a certain participant\")\n .add(\"5- Remove all participants\")\n .add(\"6- Return to the previous menu.\")\n .add(\"*************************\")\n );\n }", "private void initOptions() {\n\t\t// TODO: ???\n\t\t// additional input docs via --dir --includes --excludes --recursive\n\t\t// --loglevel=debug\n\t\t// --optionally validate output as well?\n\t\t\n\t\tthis.sb = new StringBuffer();\n\t\tArrayList options = new ArrayList();\n\t\toptions.add( new LongOpt(\"help\", LongOpt.NO_ARGUMENT, null, 'h') );\n\t\toptions.add( new LongOpt(\"version\", LongOpt.NO_ARGUMENT, null, 'v') );\t\t\n\t\toptions.add( new LongOpt(\"query\", LongOpt.REQUIRED_ARGUMENT, sb, 'q') );\n\t\toptions.add( new LongOpt(\"base\", LongOpt.REQUIRED_ARGUMENT, sb, 'b') );\n\t\toptions.add( new LongOpt(\"var\", LongOpt.REQUIRED_ARGUMENT, sb, 'P') );\n\t\toptions.add( new LongOpt(\"out\", LongOpt.REQUIRED_ARGUMENT, sb, 'o') );\n\t\toptions.add( new LongOpt(\"algo\", LongOpt.REQUIRED_ARGUMENT, sb, 'S') );\n\t\toptions.add( new LongOpt(\"encoding\", LongOpt.REQUIRED_ARGUMENT, sb, 'E') );\n\t\toptions.add( new LongOpt(\"indent\", LongOpt.REQUIRED_ARGUMENT, sb, 'I') );\t\n\t\toptions.add( new LongOpt(\"strip\", LongOpt.NO_ARGUMENT, null, 's') );\t\t\n\t\toptions.add( new LongOpt(\"update\", LongOpt.REQUIRED_ARGUMENT, sb, 'u') );\t\n\t\toptions.add( new LongOpt(\"xinclude\", LongOpt.NO_ARGUMENT, null, 'x') );\t\t\n\t\toptions.add( new LongOpt(\"explain\", LongOpt.NO_ARGUMENT, null, 'e') );\n\t\toptions.add( new LongOpt(\"noexternal\", LongOpt.NO_ARGUMENT, null, 'n') );\t\t\n\t\toptions.add( new LongOpt(\"runs\", LongOpt.REQUIRED_ARGUMENT, sb, 'r') );\n\t\toptions.add( new LongOpt(\"iterations\", LongOpt.REQUIRED_ARGUMENT, sb, 'i') );\n\t\toptions.add( new LongOpt(\"docpoolcapacity\", LongOpt.REQUIRED_ARGUMENT, sb, 'C') );\n\t\toptions.add( new LongOpt(\"docpoolcompression\", LongOpt.REQUIRED_ARGUMENT, sb, 'D') );\n\t\toptions.add( new LongOpt(\"nobuilderpool\", LongOpt.NO_ARGUMENT, null, 'p') );\n\t\toptions.add( new LongOpt(\"debug\", LongOpt.NO_ARGUMENT, null, 'd') );\t\t\n\t\toptions.add( new LongOpt(\"validate\", LongOpt.REQUIRED_ARGUMENT, sb, 'V') ); \n\t\toptions.add( new LongOpt(\"namespace\", LongOpt.REQUIRED_ARGUMENT, sb, 'W') ); \n\t\toptions.add( new LongOpt(\"schema\", LongOpt.REQUIRED_ARGUMENT, sb, 'w') );\n\t\toptions.add( new LongOpt(\"filterpath\", LongOpt.REQUIRED_ARGUMENT, sb, 'f') );\n\t\toptions.add( new LongOpt(\"filterquery\", LongOpt.REQUIRED_ARGUMENT, sb, 'F') );\n\t\toptions.add( new LongOpt(\"xomxpath\", LongOpt.NO_ARGUMENT, null, 'N') );\t\t\n\t\t\n////\t\toptions.add( new LongOpt(\"loglevel\", LongOpt.REQUIRED_ARGUMENT, sb, 'l') ); setLogLevels(Level.INFO);\n\t\t\t\n\t\tthis.longOpts = new LongOpt[options.size()];\n\t\toptions.toArray(this.longOpts);\t\t\n\t}", "private static String optionsListing() {\n\t\tString result = \"\\nUsage: java -jar comtor.jar -dir dirname\\n\\n\";\n\t\tresult += \"Options:\\n\";\n\t\t\n\t\tresult += \"-dir dirname\\t\\tSpecified the pathname of the directory in which COMTOR will \"; \n\t\tresult += \"search for Java source code\\n\\t\\t\\tfiles (packaged and non-packaged).\\n\\n\";\n\t\t\n\t\tresult += \"-help | --help\\t\\tThis help message\\n\";\n\t\tresult += \"\\n\\n\";\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.print(\"\\u250C\\u252C\\u2510\\n\");\r\n\t\tSystem.out.print(\"\\u251C\\u253C\\u2524\\n\");\r\n\t\tSystem.out.print(\"\\u2514\\u2534\\u2518\");\r\n\t}", "public static void showMenu(String[] options, boolean showNumbers){\n header(options[0]);\n if (showNumbers){\n for (int i = 1; i < options.length; i++)\n System.out.printf(\"|%-1s%2.2s.- %-41.41s%-1s|\" + EOF, \"\", i, options[i], \"\");\n } else {\n for (int i = 1; i < options.length; i++)\n System.out.printf(\"|%-1s%-46.46s%-1s|\" + EOF, \"\", options[i], \"\");\n } \n System.out.println(\"+================================================+\");\n }", "@Override\n public String print() {\n return this.text + \"\\n\" + \"1. \" + this.option1.text + \"\\n\" + \"2. \" + this.option2.text;\n }", "public void printAll(String cmd, String[] args){\n\t\tfor(int i = 0; i<args.length; i++){\n\t\t\t//System.out.print(args[i] + \"\\t\");\n\t\t}\n\t}", "private static void printHelp() {\n getConsole().println(\"Keycheck\\n\" +\n \"\\n\" +\n \"Usage:\\n\" +\n \" keycheck.jar parameter1 parameter2 ... file1 file2 ...\\n\" +\n \"Example:\\n\" +\n \" java -jar keycheck.jar -\" + PARAMETER_BASE + \" -\" + PARAMETER_BITS + \" file1.csv file2.csv\" +\n \"\\n\" +\n \"Parameters:\\n\" +\n \" -\" + PARAMETER_GENERATE + \" [512|1024] Generate \" + GENERATED_KEY_COUNT + \" keys\\n\" +\n \" -\" + PARAMETER_NEW_FORMAT + \" New format will be use to load keys from file\\n\" +\n \" -\" + PARAMETER_TRANSFORM + \" Transform all keys to new format to file 'CARD_ICSN.csv'\\n\" +\n \" -\" + PARAMETER_BASE + \" Check base stats of keys\\n\" +\n \" -\" + PARAMETER_BITS + \" Generate statistics for all bits\\n\" +\n \" -\" + PARAMETER_BYTES + \" Generate statistics for all bytes\\n\" +\n \" -\" + PARAMETER_DIFFERENCE + \" Check primes difference\\n\" +\n \" -\" + PARAMETER_STRENGTH + \" Check primes strength\\n\" +\n \" -\" + PARAMETER_TIME + \" Generate time statistics\\n\" +\n \" -\" + PARAMETER_ALL + \" Generate all statistics and check all tests.\\n\");\n }", "private static void usage()\n {\n System.out.println(\"usage:\");\n System.out.println(\" ??? clock [-bg color] [-f fontsize] [-fg color]\");\n System.out.println(\" ??? formats\");\n System.out.println(\" ??? print [-f fmt] time\");\n System.out.println(\" ??? now [-r] [-f fmt]\");\n System.exit(1);\n }", "private static void printUsage() {\n\t\tSystem.out.println(\"Usage: java UniqueUniqueChromosomeReconstructor [-h] input_file\");\n\t\tSystem.out.println(\" -h: Print usage information\");\n\t\tSystem.out.println(\" input_file: File containing input sequence data\");\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"\\u265A\");\n\t\tSystem.out.println(\"\\u265B\");\n\t\t\n\t\tSystem.out.println(\"\\u264A\");\n\t\tSystem.out.println(\"\\u264B\");\n\t}", "private static void displayUsage() {\n System.out.println(\"\\n MEKeyTool argument combinations:\\n\\n\" +\n \" -help\\n\" +\n \" -import [-MEkeystore <filename>] \" +\n \"[-keystore <filename>]\\n\" +\n \" [-storepass <password>] -alias <key alias> \" +\n \"[-domain <domain>]\\n\" +\n \" -list [-MEkeystore <filename>]\\n\" +\n \" -delete [-MEkeystore <filename>]\\n\" +\n \" (-owner <owner name> | -number <key number>)\\n\" +\n \"\\n\" +\n \" The default for -MEkeystore is \\\"\" + \n System.getProperty(DEFAULT_MEKEYSTORE_PROPERTY, \"appdb/_main.ks\") +\n \"\\\".\\n\" +\n \" The default for -keystore is \\\"\" + \n System.getProperty(DEFAULT_KEYSTORE_PROPERTY, \"$HOME/.keystore\") + \n \"\\\".\\n\");\n }", "public abstract void printHelp(List<String> args);", "@Override\n public void help()\n {\n System.out.println(\"\\tcd [DEST]\");\n }", "private void showHelp() {\n \tHelpFormatter formatter = new HelpFormatter();\n \tformatter.printHelp( \"java -cp moustache.jar Main\", options );\n }", "public static void showSynopsis() {\n System.out\n .println(\"Usage: findbugs [general options] -textui [command line options...] [jar/zip/class files, directories...]\");\n }", "public static void help() {\n\tSystem.out.println(\"-- Avaible options --\");\n\tSystem.out.println(\"-- [arg]: Required argument\");\n\tSystem.out.println(\"-- {arg}: Optional argument\");\n\tSystem.out.println(\"* -s {file} Save the game into a file\");\n\tSystem.out.println(\"* -r {file} Play or Replay a game from a file\");\n\tSystem.out.println(\"* -a [file] Play a binary file or a game file\");\n\tSystem.out.println(\"* -n [file] Create a random game file\");\n\tSystem.out.println(\"* -t [size] Specify the size of the board\");\n\tSystem.out.println(\"* -k Solve the game with the IA solver\");\n\tSystem.out.println(\"* -m Solve the game with the MinMax/AlphaBeta algorithm\");\n\tSystem.out.println(\"----------------------------------------------\");\n\tSystem.out.println(\". Press Enter to Start or Restart\");\n\tSystem.out.println(\". Press Z to Undo the last move\");\n\tSystem.out.println(\"\");\n }", "public static void printHelp(Parser parser) {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "public static void printHelp() {\n System.out.println(\"Usage:\");\n System.out.println(\"To create a user, post a message.\");\n System.out.println(\"<user name> [command] | <another user name>\");\n System.out.println(\"<user name> -> message - post a message\");\n System.out.println(\"<user name> - read timeline messages\");\n System.out.println(\"<user name> follows <another user name> - follow another user\");\n System.out.println(\"<user name> wall - display users wall\");\n System.out.println(\"-help - help\");\n System.out.println(\"exit - exit the program\");\n }", "private void printCRUDDoctorOption() {\n\t\tSystem.out.println(\"\\n\\n----Edit DOCTOR----\");\n\t\tSystem.out.println(\"1. Insert a new doctor\");\n\t\tSystem.out.println(\"2. List all doctors\");\n\t\tSystem.out.println(\"3. Update doctor data\");\n\t\tSystem.out.println(\"4. Remove doctor\");\n\t\tSystem.out.println(\"5. Back\");\n\t\tSystem.out.println(\"Enter your choice: \");\n\t}", "private static void help() {\n System.out.println(\"Supported Command List:\");\n System.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\");\n System.out.println(\"To draw canvas press: C <width> <height>\");\n System.out.println(\"To draw rectangle press: R <x1> <y1> <x2> <y2>\");\n System.out.println(\"To draw Line press : L <x1> <y1> <x2> <y2>\");\n System.out.println(\"To fill canvas press : B <x> <y> <c>\");\n System.out.println(\"To quit press: Q\");\n System.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\");\n System.out.println();\n }", "public void printUsage(OutputStream os) {\n // automatically generate the help statement\n HelpFormatter formatter = new HelpFormatter();\n formatter.setSyntaxPrefix(\"Usage: \");\n formatter.setOptionComparator(new OptionComparator(optList));\n formatter.printHelp(new PrintWriter(os, true), 80, cmdLineSyntax, usageHeader, activeOpts,\n 2, 2, \"\");\n }", "public static StringBuffer describeOptions( final CLOptionDescriptor[] options )\n {\n final String lSep = System.getProperty( \"line.separator\" );\n final StringBuffer sb = new StringBuffer();\n\n for ( final CLOptionDescriptor option : options )\n {\n final char ch = (char) option.getId();\n final String name = option.getName();\n String description = option.getDescription();\n int flags = option.getFlags();\n boolean argumentRequired =\n ( flags & CLOptionDescriptor.ARGUMENT_REQUIRED ) == CLOptionDescriptor.ARGUMENT_REQUIRED;\n final boolean twoArgumentsRequired =\n ( flags & CLOptionDescriptor.ARGUMENTS_REQUIRED_2 ) == CLOptionDescriptor.ARGUMENTS_REQUIRED_2;\n boolean needComma = false;\n if ( twoArgumentsRequired )\n {\n argumentRequired = true;\n }\n\n sb.append( '\\t' );\n\n if ( Character.isLetter( ch ) )\n {\n sb.append( \"-\" );\n sb.append( ch );\n needComma = true;\n }\n\n if ( null != name )\n {\n if ( needComma )\n {\n sb.append( \", \" );\n }\n\n sb.append( \"--\" );\n sb.append( name );\n }\n\n if ( argumentRequired )\n {\n sb.append( \" <argument>\" );\n }\n if ( twoArgumentsRequired )\n {\n sb.append( \"=<value>\" );\n }\n sb.append( lSep );\n\n if ( null != description )\n {\n while ( description.length() > MAX_DESCRIPTION_COLUMN_LENGTH )\n {\n final String descriptionPart =\n description.substring( 0, MAX_DESCRIPTION_COLUMN_LENGTH );\n description =\n description.substring( MAX_DESCRIPTION_COLUMN_LENGTH );\n sb.append( \"\\t\\t\" );\n sb.append( descriptionPart );\n sb.append( lSep );\n }\n\n sb.append( \"\\t\\t\" );\n sb.append( description );\n sb.append( lSep );\n }\n }\n return sb;\n }", "protected final void printOptionHelp(Map<String, String> optionDescriptions) {\n int maxOptionLength = optionDescriptions.entrySet().stream().mapToInt(e -> e.getValue() != null ? e.getKey().length() : 0).max().orElse(0);\n optionDescriptions.forEach((option, description) -> {\n if (description != null) {\n printOutput(\" %-\" + maxOptionLength + \"s %s%n\", option, description);\n } else {\n printOutput(\" ------- %s -------%n\", option);\n }\n });\n }", "public static void main(String[] args) {\n CommandCliParser cliParser = new CommandCliParser();\n cliParser.parseCommand(\"--verbose\");\n }", "private static void usage() {\n System.out.println(\"Usage: java -jar ....jar [Options]\" + LINESEP + LINESEP);\n System.out.println(\"[Options]\" + LINESEP);\n System.out.println(\"-c --config\\tconfigfile\");\n System.out.println(\"-s --spectrum\\tspectrumfile\");\n System.out.println(\"-r --resultfile\\tWhere the result has to be written to.\");\n System.out.println(\"-q --sqlfile\\tWhere the query has to be written to.\");\n System.out.println(\"-p --ppm\\tThe ppm value which should be used for the spectrum.\");\n }", "private static void help() {\n HelpFormatter formater = new HelpFormatter();\n formater.printHelp(\"SGD-SVM\", options);\n System.exit(0);\n }", "public static void help() {\n System.out.println(printLine(\"*\",120));\n System.out.println(\"SUPPORTED COMMANDS\");\n System.out.println(\"All commands below are case insensitive\");\n System.out.println();\n System.out.println(\"\\tSHOW TABLES; Display all tables in the schema.\");\n //System.out.println(\"\\tSELECT table_name FROM kavibase_tables; Display all records in the table.\");\n System.out.println(\"\\tCREATE TABLE table_name (column_name data_type [PRIMARY KEY] [NOT NULL],.); Create a table.\");\n System.out.println(\"\\tINSERT INTO TABLE (column_list) table_name VALUES (value_list); Insert a record into table.\");\n System.out.println(\"\\tDELETE FROM TABLE table_name WHERE row_id=key_value; Delete a record from a table.\");\n System.out.println(\"\\tSELECT * FROM table_name; Display all records in the table.\");\n System.out.println(\"\\tSELECT * FROM table_name WHERE rowid = <value>; Display records whose rowid is <id>.\");\n System.out.println(\"\\tDROP TABLE table_name; Remove table data and its schema.\");\n System.out.println(\"\\tVERSION; Show the program version.\");\n System.out.println(\"\\tHELP; Show this help information\");\n System.out.println(\"\\tEXIT; Exit the program\");\n System.out.println(\"\\tQUIT; Exit the program\");\n System.out.println();\n System.out.println();\n System.out.println(printLine(\"*\",120));\n }", "public void printHelpCommands(){\r\n\t\t//Construct the help command output\r\n\t\tprintAsTable(\"exit\",\t\t \t\t\t\t\"Exit the program.\");\r\n\t\tprintAsTable(\"help\",\t\t \t\t\t\t\"Print out the usage.\");\r\n\t\tprintAsTable(\"host\",\t\t\t\t\t\t\"Enumerate all hosts.\");\r\n\t\tprintAsTable(\"host hname info\", \t\t\t\"Show info of host name.\");\r\n\t\tprintAsTable(\"host hname datastore\", \t\t\"Enumerate datastores of host hname.\");\r\n\t\tprintAsTable(\"host hname network\", \t\t\t\"Enumerate networks of host hname.\");\r\n\t\tprintAsTable(\"vm\", \t\t\t\t\t\t\t\"Enumerate all virtual machines.\");\r\n\t\tprintAsTable(\"vm vname info\", \t\t\t\t\"Show info of VM vname.\");\r\n\t\tprintAsTable(\"vm vname on\", \t\t\t\t\"Power on VM vname and wait until task completes.\");\r\n\t\tprintAsTable(\"vm vname off\", \t\t\t\t\"Power off VM vname and wait until task completes.\");\r\n\t\tprintAsTable(\"vm vname shutdown\", \t\t\t\"Shutdown guest of VM vname.\");\t\t\t\r\n\t}", "public void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n System.out.println(\" go quit help\");\n }", "void help() {\n System.err.println(\"Usage: java edu.rice.cs.cunit.record.Record [options] <class> [args]\");\n System.err.println(\"[options] are:\");\n System.err.println(\" -quiet No trace output\");\n System.err.println(\" -headless No GUI\");\n System.err.println(\" -output <filename> Output trace to <filename>\");\n System.err.println(\" -auto [n] Automatically update on thread starts/stops.\");\n System.err.println(\" Optional: n=delay in ms, n>=100. Default: 1000\");\n System.err.println(\" -obj Also process object sync points\");\n System.err.println(\" -debug Process compact sync points with debug information\");\n System.err.println(\" -methoddb <filename> Specify <filename> as method database\");\n System.err.println(\" -initsp Process sync points during VM initialization\");\n System.err.println(\" -termsp Process sync points during VM termination\");\n System.err.println(\" -D <dir> Set current directory (\\\"user.dir\\\") for debug JVM\");\n System.err.println(\" -cp <classpath> Set classpath (\\\"java.class.path\\\") for debug JVM\");\n System.err.println(\" -drj <filename> Set jar file used to start DrJava\");\n System.err.println(\" -sp <sourcepath> Set source path to find source files\");\n System.err.println(\" -help Print this help message\");\n System.err.println(\" -J Pass all following options to debug JVM\");\n System.err.println(\"<class> is the program to trace\");\n System.err.println(\"[args] are the arguments to <class>\");\n }", "public static void displayOptions(Account account) {\n\t\tSystem.out.println(\"\\nOptions:\");\n\t\tSystem.out.println(\"1. Display account details\");\n\t\tSystem.out.println(\"2. Display account balance\");\n\t\tSystem.out.println(\"3. Display monthly interest\");\n\t\tSystem.out.println(\"4. Make a withdrawal\");\n\t\tSystem.out.println(\"5. Make a deposit\");\n\n\t\tif (account instanceof CheckingAccount) {\n\t\t\tSystem.out.println(\"6. Display overdraft limit\");\n\t\t\tSystem.out.println(\"7. Change overdraft limit\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\"0. To exit\");\n\t\tSystem.out.print(\"Select an option (int): \");\n\t}", "public void printHelp() {\n System.out.println(\". - jeden znak (bez znaku nowej linii)\");\n System.out.println(\".* - zero lub więcej znaków\");\n System.out.println(\"\\\\w* - zero lub więcej słów\");\n }", "public void action() {\n\t\tfor(int i=0; i<facade.getServiceOptions().getOptionsList().size();i++){\n\t\t\tReader reader= new Reader(facade.getOptionsList().get(i));\n\t\t\treader.print();\n\t\t}\n\t}", "private void quoteline(String[] args) {\r\n\t\tStringBuilder buf = new StringBuilder();\r\n\t\tif (args.length>0) buf.append(q(args[0]));\r\n\t\tint k = 1;\r\n\t\twhile(k < args.length) buf.append(delim).append(q(args[k++]));\r\n\t\tout.println(buf.toString());\r\n\t}", "void showInConsole();", "protected void help() {\n println(\"go - Begin execution at Start or resume execution from current pc location\");\n println(\"go <loc1> - Begin execution at <loc1>\");\n println(\"step - Execute next step\");\n println(\"dump <loc1> <loc2> - Dump memory locations from (including) <loc1> - <loc2>\");\n println(\"dumpr - Dump a table of registers\");\n println(\"exit - Exit debugger\");\n println(\"deas <loc1> <loc2> - Deassmble memory locations from (including) <loc1> - <loc2>\");\n println(\"brkt - List the current break point table\");\n println(\"sbrk <loc1> - Set break point at <loc1>\");\n println(\"cbrk <loc1> - Clear break point at <loc1>\");\n println(\"cbrkt - Clear breakpoint table\");\n println(\"help - Print a summary of debugger commands\");\n println(\"chngr <r#> <value> - Change the value of register <r#> to <value>\");\n println(\"chngm <loc1 <value> - Change the value of memory loaction <loc1> to <value>\");\n }", "private static void doUsage() {\r\n\t\tSystem.out.println(\"Usage: SpellChecker [-i] <dictionary> <document>\\n\"\r\n\t\t\t\t+ \" -d <dictionary>\\n\" + \" -h\");\r\n\t}", "private void printHelp() \n {\n Logger.Log(\"You have somehow ended up in this strange, magical land. But really you just want to go home.\");\n Logger.Log(\"\");\n Logger.Log(\"Your command words are:\");\n parser.showCommands();\n Logger.Log(\"You may view your inventory or your companions\");\n }" ]
[ "0.76678246", "0.7661126", "0.7566063", "0.7513509", "0.7192722", "0.7006724", "0.69816285", "0.69516754", "0.6703917", "0.66772705", "0.666598", "0.65134543", "0.650792", "0.644969", "0.64491725", "0.6419229", "0.63721615", "0.6340397", "0.62956023", "0.6279179", "0.6272822", "0.62699294", "0.62554634", "0.6252647", "0.6249491", "0.6231064", "0.6228045", "0.62272596", "0.6215537", "0.62079746", "0.61721355", "0.6163435", "0.6150653", "0.6136121", "0.6134771", "0.6130415", "0.61240435", "0.6114536", "0.60970145", "0.60718167", "0.60546684", "0.6011119", "0.5990863", "0.59905726", "0.59809524", "0.59442943", "0.59389246", "0.59372354", "0.5931964", "0.5929942", "0.59220934", "0.5915155", "0.5857417", "0.58551514", "0.58477086", "0.5846038", "0.5840585", "0.58399713", "0.5828885", "0.58210045", "0.58052707", "0.5797145", "0.57896805", "0.5781788", "0.5775068", "0.5768892", "0.57432926", "0.57313734", "0.57286966", "0.57270527", "0.5715481", "0.5711275", "0.57040477", "0.5701073", "0.5699986", "0.5694644", "0.5680816", "0.5679775", "0.5671309", "0.5665914", "0.56440926", "0.563344", "0.5629061", "0.5625335", "0.5619973", "0.5619202", "0.5614175", "0.56140405", "0.5611707", "0.5609589", "0.5591708", "0.5588305", "0.5578278", "0.5563118", "0.55568", "0.5556658", "0.5552214", "0.5552049", "0.5550042", "0.55270284" ]
0.738603
4
Print command line options synopses to stdout.
public static void showCommandLineOptions(TextUICommandLine commandLine) { commandLine.printUsage(System.out); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printOptions() {\n\t\t\n\t}", "private static void printRunOptions(){\n\t\tSystem.out.println(\"Run options:\");\n\t\tSystem.out.println(\" -simple <configFile> <pathToApplication> <synthesis(true/false)>\");\n\t\tSystem.out.println(\" -simpleSpeedup <configFile> <pathToApplication>\");\n\t\tSystem.out.println(\" -sweep <configFile> <pathToApplication> <sweepConfig> <parallelism(integer)> <synthesis(true/false)>\");\n\t\tSystem.out.println(\" -sweepRemote <configFile> <pathToApplication> <sweepConfig> <parallelism(integer)> <synthesis(true/false)> <hostAddress> <hostPort>\");\n\t\tSystem.out.println(\" -synthesize <configFile> <pathToApplication> <methodName> <scheduleCDFG(true/false)>\");\n\t\tSystem.out.println(\" -test <configFile> <pathToApplication>\");\n\t\tSystem.out.println(\" -speedup <configFile> <pathToApplication>\");\n\t\tSystem.out.println(\" -testCGRAVerilog <configFile> <pathToApplication>\");\n\t}", "public static void showOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- The participants' directory.\")\n .add(\"2- The RDVs' agenda.\")\n .add(\"3- Quit the app.\")\n .add(\"*************************\")\n );\n }", "public void printOptions(String[] options) {\n\tfor (int counter = 0; counter < options.length; counter++) {\n\t System.out.print(options[counter] + \" || \");\n\t}\n\tSystem.out.print(\"\\n\");\n }", "public static void showCommandLineOptions() {\n showCommandLineOptions(new TextUICommandLine());\n }", "private void printOptionsMessage() {\n System.out.println(\"\\n\");\n System.out.print(\"Visible arrays: \");\n if (showArray == true) {\n System.out.println(\"On\");\n } else {\n System.out.println(\"Off\");\n }\n\n System.out.println(\"Selected Algorithms: \");\n if (selected[0] == true) {\n System.out.print(\" MergeSort\");\n }\n if (selected[1] == true) {\n System.out.print(\" QuickSort\");\n }\n if (selected[2] == true) {\n System.out.print(\" HeapSort\");\n }\n\n System.out.println();\n }", "protected void printAllOptions() {\n\t\tOption op = null;\n\t\tfor (int i = 0; i < options.size(); i++) {\n\t\t\top = options.get(i);\n\t\t\tSystem.out.println(i + \". \" + op.getOptionName() + \":Price \"\n\t\t\t\t\t+ String.format(\"%.2f\", op.getPrice()));\n\t\t}\n\t}", "private void printHelp(Options options) {\n HelpFormatter formatter = new HelpFormatter();\n formatter.setWidth(79);\n formatter.setOptionComparator(Comparator.comparingInt(this::getOptionOrder));\n formatter.printHelp(\"protostuff-compiler [options] proto_files\", options);\n }", "private void displayOptions() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Main System Menu\");\n\t\tSystem.out.println(\"----------------\");\n\t\tSystem.out.println(\"A)dd polling place\");\n\t\tSystem.out.println(\"C)lose the polls\");\n\t\tSystem.out.println(\"R)esults\");\n\t\tSystem.out.println(\"P)er-polling-place results\");\n\t\tSystem.out.println(\"E)liminate lowest candidate\");\n\t\tSystem.out.println(\"?) display this menu of choices again\");\n\t\tSystem.out.println(\"Q)uit\");\n\t\tSystem.out.println();\n\t}", "public void printArgsInterpretation() {\n StringBuilder usage = new StringBuilder();\n usage.append(\"You launched the CuratorClient with the following options:\");\n usage.append(\"\\n\");\n usage.append(\"\\tCurator host: \");\n usage.append(host);\n usage.append(\"\\n\");\n usage.append(\"\\tCurator port: \");\n usage.append(port);\n usage.append(\"\\n\");\n usage.append(\"\\tInput directory: \");\n usage.append(inputDir.toString());\n usage.append(\"\\n\");\n usage.append(\"\\tOutput directory: \");\n usage.append(outputDir.toString());\n usage.append(\"\\n\");\n usage.append(\"\\tRun in testing mode? \");\n usage.append(testing ? \"Yes.\" : \"No.\");\n usage.append(\"\\n\");\n\n System.out.println( usage.toString() );\n }", "private static void printHelp(final Options options) {\n\t\tHelpFormatter formatter = new HelpFormatter();\n\t\tformatter.printHelp(\"lsc\", options);\n\t}", "private void printMenu() {\n\t\tSystem.out.println(\"Select an option :\\n----------------\");\n\t\tfor (int i = 0, size = OPTIONS.size(); i < size; i++) {\n\t\t\tSystem.out.println(OPTIONS.get(i));\n\t\t}\n\t}", "private void printUsage() {\n \n // new formatter\n HelpFormatter formatter = new HelpFormatter();\n \n // add the text and print\n formatter.printHelp(\"arara [file [--log] [--verbose] [--timeout N] [--language L] | --help | --version]\", commandLineOptions);\n }", "private void printHelp() {\n System.out.println(\"Your available command words are:\");\n parser.showCommands();\n }", "private void printHelp(Options options) {\n\t\tHelpFormatter formatter = new HelpFormatter();\r\n\t\tString header = \"CLI for Message Counter program\\n\\n\";\r\n\t\tString footer = \"End of the help\\n\";\r\n\t\tformatter.printHelp(\"ChatCounter\", header, options, footer, true);\r\n\t}", "private static void printUsage()\n {\n StringBuilder usage = new StringBuilder();\n usage.append(String.format(\"semantika %s [OPTIONS...]\\n\", Environment.QUERYANSWER_OP));\n usage.append(\" (to execute query answer)\\n\");\n usage.append(String.format(\" semantika %s [OPTIONS...]\\n\", Environment.MATERIALIZE_OP));\n usage.append(\" (to execute RDB2RDF export)\");\n String header = \"where OPTIONS include:\"; //$NON-NLS-1$\n String footer =\n \"\\nExample:\\n\" + //$NON-NLS-1$\n \" ./semantika queryanswer -c application.cfg.xml -l 100 -sparql 'SELECT ?x WHERE { ?x a :Person }'\\n\" + //$NON-NLS-1$\n \" ./semantika rdb2rdf -c application.cfg.xml -o output.n3 -f N3\"; //$NON-NLS-1$\n mFormatter.setOptionComparator(null);\n mFormatter.printHelp(400, usage.toString(), header, sOptions, footer);\n }", "private static void printHelp(CmdLineParser parser) {\n\tSystem.out.print(\"Usage: Main \");\n\tparser.printSingleLineUsage(System.out);\n\tSystem.out.println(\"\\n\");\n\tparser.printUsage(System.out);\n\tSystem.out.println(\"\");\n\treturn;\n }", "public static void showAgendaOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- View all scheduled RDVs\")\n .add(\"2- Add a new RDV\")\n .add(\"3- Show all RDVs between 2 dates (sorted).\")\n .add(\"4- Show all RDVs of a certain participant between 2 dates.\")\n .add(\"5- Remove an RDV\")\n .add(\"6- Return to the previous menu.\")\n .add(\"*************************\")\n );\n }", "private static void printUsage() {\n System.err.println(\"\\n\\nUsage:\\n\\tAnalyzeRandomizedDB [-p] [-v] [--enzyme <enzymeName> [--mc <number_of_missed_cleavages>]] <original_DB> <randomized_DB>\");\n System.err.println(\"\\n\\tFlag significance:\\n\\t - p : print all redundant sequences\\n\\t - v : verbose output (application flow and basic statistics)\\n\");\n System.exit(1);\n }", "public void printUsage() {\n printUsage(System.out);\n }", "public void showHelp() {\n\tString shortFormat = \"%16s -- %-20s %n\";\n\tString longFormat = \"%16s -- %-40s %n\";\n System.out.printf(shortFormat, \"ls\", \"list matched tariffs\");\n System.out.printf(shortFormat, \"ls all\", \"list all tariffs\");\n System.out.printf(shortFormat, \"clear\", \"reset filters\");\n System.out.printf(shortFormat, \"exit\", \"exit the program\");\n System.out.printf(longFormat, \"field min max\",\n \"filter tariffs with field having\"\n + \"value between min and max\");\n System.out.println(\"\\nList of available fields:\\n\");\n filterCommands.stream().forEach(System.out::println);\n }", "static void printGeneralOptions(){\n System.out.println(GeneralInfo.PREFIX_COMMAND_DESCRIPTION + \"NameWeapon/Powerup: read the description of that weapon/powerup\");\n }", "public static void options(){\n System.out.println(\"Choose from the following options \");\n System.out.println(\"0 Print the options again\");\n System.out.println(\"1 Create Student Records\");\n System.out.println(\"2 Create Teacher Records\");\n System.out.println(\"3 Edit the Records\");\n System.out.println(\"4 Get the Record Count\");\n System.out.println(\"5 Exit\");\n }", "public void printUsage() {\n System.out.println(\"\\nHelp Invoked on \");\n System.out.println(\"[-hfs] \");\n System.out.println(\"\");\n\n System.out.println(\"Usage: \");\n System.out.println(\"-d [true|false]\");\n System.out.println(\"-f URL-file-pathame\");\n System.out.println(\"-h: invoke help\");\n System.out.println(\"-i: URL-list-input-source [ DEFAULT | USER | FILE ]\");\n System.out.println(\"-s URL-list-separator\");\n }", "private void printHelp() \n {\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "private void print_help_and_exit() {\n System.out.println(\"A bunch of simple directus admin cli commands\");\n System.out.println(\"requires DIRECTUS_API_HOST and DIRECTUS_ADMIN_TOKEN environment variables to be set\");\n System.out.println();\n\n COMMAND_METHODS.values().forEach(c -> {\n for (String desriptionLine : c.descriptionLines) {\n System.out.println(desriptionLine);\n }\n System.out.println();\n });\n\n System.out.println();\n System.exit(-1);\n }", "private static void printUsage() {\r\n\t\t//TODO: print out clear usage instructions when there are problems with\r\n\t\t// any command line args\r\n\t\tSystem.out.println(\"This program expects three command-line arguments, in the following order:\"\r\n\t\t\t\t+ \"\\n -q for storing as a queue, -c for console output, and the input file name.\");\r\n\t}", "static void selectOptions(String[] args)\n {\n if (args.length > 0)\n {\n for (String arg : args)\n {\n switch(arg)\n {\n default:\n System.out.println(\"Usage: java PGInstance [-options]\\n\"\n + \"where options include\\n\"\n + \" <an invalid option> to print this help message\\n\"\n + \" -m -more -v -verbose to turn on verbose console messages\\n\"\n + \" -c -cheat to turn on cheats\\n\"\n + \" <no options> to run program as is\"\n );\n System.exit(0);\n break;\n\n // this silences all calls to Verbose.println()\n case \"-m\": case \"-more\": case \"-v\": case \"-verbose\":\n if (!Verbose.on)\n {\n System.out.println(\"[Verbose messages enabled.]\");\n Verbose.on = true;\n }\n break;\n\n // a Pokemon object will always output an invincible Pokemon with this option\n case \"-c\": case \"-cheat\":\n if (!Pokemon.usingCheats)\n {\n System.out.println(\"[Cheats on. (69/420/\\\"ONE PUNCH MON\\\")]\");\n Pokemon.usingCheats = true;\n }\n break;\n }\n }\n }\n }", "private static void viewOptions() {\n\t\tlog.info(\"Enter 0 to Exit.\");\n\t\tlog.info(\"Enter 1 to Login.\");\n\t}", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the prision.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n System.out.println(parser.showCommands());\n }", "private void displayMenuOptions()\n {\n // display user options menu\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n System.out.println(\"COMMAND OPTIONS:\");\n System.out.println(\"\");\n System.out.println(\" 'on' to force power controller to ON state\");\n System.out.println(\" 'off' to force power controller to OFF state\");\n System.out.println(\" 'status' to see current power controller state\");\n System.out.println(\" 'sunrise' to display sunrise time.\");\n System.out.println(\" 'sunset' to display sunset time.\");\n System.out.println(\" 'next' to display next scheduled event.\");\n System.out.println(\" 'time' to display current time.\");\n System.out.println(\" 'coord' to display longitude and latitude.\");\n System.out.println(\" 'help' to display this menu.\");\n System.out.println(\"\");\n System.out.println(\"PRESS 'CTRL-C' TO TERMINATE\");\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n }", "private static void printHelp(Options options) {\n HelpFormatter formatter = new HelpFormatter();\n String header = \"Generates the JSON file to send to Drupal.\";\n formatter.printHelp(120, \"drupal-builder\", header, options, \"\", true);\n }", "public static void printHelp(Options options) {\n HelpFormatter formatter = new HelpFormatter();\n formatter.printHelp(\"java -jar $DIR/evsrestapi-*.jar\", options);\n return;\n }", "private void printHelp() {\r\n\t\tSystem.out.println(\"Flag Param Details\");\r\n\t\tSystem.out.println(\" -f **x** Add a filter. 'x' is the board letter.\");\r\n\t\tSystem.out.println(\" Can have 0 or more stars before and after the board letter.\");\r\n\t\tSystem.out.println(\" -h Print this message.\");\r\n\t\tSystem.out.println(\" -q Quit interactive session.\");\r\n\t\tSystem.out.println(\" -n xx Display xx number of words.\");\r\n\t\tSystem.out.println(\" -n all Display all words.\");\r\n\t\tSystem.out.println(\" -r Repeat last search.\");\r\n\t\tSystem.out.println(\" -s len Words are sorted by length.\");\r\n\t\tSystem.out.println(\" -s alpha Words are sorted alphapetically.\");\r\n\t\t// System.out.println(\"\");\r\n\t}", "private void printGoalOptions() {\n System.out.println(ANSI_PURPLE + \"CHOOSE YOUR GOALS: \" + ANSI_RESET);\n System.out.println(\"----------------------------------------------------------------------------------------------------------------\");\n System.out.println(\"1. I can be poor - I don't care about the money but I want to be as\" + ANSI_BLUE + \" happy and\" + ANSI_RESET + \" as\" + ANSI_BLUE + \" educated\" + ANSI_RESET + \" as possible.\");\n System.out.println(\"2. I want to be \" + ANSI_BLUE + \"rich and happy!\" + ANSI_RESET + \" I don't have to be educated at all.\");\n System.out.println(\"3. I want to be well \" + ANSI_BLUE + \"educated and \" + ANSI_RESET + \"I don't want be hungry ever again. Always \" + ANSI_BLUE + \"full!\" + ANSI_RESET + \" ;) \");\n System.out.println(\"4. I want to have the \" + ANSI_BLUE + \"best job\" + ANSI_RESET + \" possible and make\" + ANSI_BLUE + \" lots of money\" + ANSI_RESET + \" even if it will make me unhappy.\");\n System.out.println(\"----------------------------------------------------------------------------------------------------------------\");\n }", "public void printOptions() {\n String indent = \" \";\n System.out.println();\n System.out.println(\"+--------------------------- COMMANDS AND OPTIONS LIST ---------------------------+\");\n\n System.out.println();\n System.out.println(\"******* COMMANDS (scraper.[COMMAND]) *******\");\n System.out.println(\"The following interact with the RegistrationScraper class\");\n System.out.println();\n \n\n System.out.println();\n System.out.println(\"iterateAll() --> Scrape every SDSU department's class and store the data [Recommended before: printDepartmentCourses()]\");\n System.out.println(indent + \"@usage iterateAll()\");\n\n System.out.println();\n System.out.println(\"iterateOne() --> Scrape ONE department's class and store the data [Recommended before: printDepartmentCourses()]\");\n System.out.println(indent + \"@usage iterateOne(\\\"CS\\\")\");\n System.out.println(indent + \"@param department\");\n\n System.out.println();\n System.out.println(\"printDepartmentCourses() --> Display a formatted list of every stored class so far\");\n System.out.println(indent + \"@usage printDepartmentCourses()\");\n\n System.out.println();\n System.out.println(\"printArrListSizes() --> Display the sizes of all the data (to make sure they're all the same length)\");\n System.out.println(indent + \"@usage printArrListSizes()\");\n \n\n System.out.println();\n System.out.println(\"******* OPTIONS (custom.[COMMAND] *******\");\n System.out.println(\"The following interact with the HTML GET method\");\n System.out.println();\n \n\n System.out.println();\n System.out.println(\"setTerm() --> Set the semester term you want to search\");\n System.out.println(indent + \"@usage setTerm(\\\"Summer\\\", \\\"2017\\\")\");\n System.out.println(indent + \"@param season\");\n System.out.println(indent + indent + \"options: Fall, Spring, Winter, Summer\");\n System.out.println(indent + \"@param year\");\n System.out.println(indent + indent + \"options: 2015, 2016, 2017, etc.\");\n\n System.out.println();\n System.out.println(\"setDepartment() --> Set a single department you wish to search (use with iterateOne())\");\n System.out.println(indent + \"@usage setDepartment(\\\"CS\\\")\");\n System.out.println(indent + \"@param department\");\n System.out.println(indent + indent + \"options: AMIND, BIOL, CS, etc.\");\n\n System.out.println();\n System.out.println(\"setInstructor() --> Set the course number you want to return (ex. all \\\"xx-108\\\" classes)\");\n System.out.println(indent + \"@usage setInstructor(\\\"Kraft\\\")\");\n System.out.println(indent + \"@param last name\");\n\n System.out.println();\n System.out.println(\"setCourseNumber() --> Set the course number you want to return (ex. all \\\"xx-108\\\" classes)\");\n System.out.println(indent + \"@usage setCourseNumber(\\\"108\\\")\");\n System.out.println(indent + \"@param number\");\n\n System.out.println();\n System.out.println(\"setCourseNumber() --> Set the course number AND suffic you want to return (ex. all \\\"xx-451A\\\" classes)\");\n System.out.println(indent + \"@usage setTerm(\\\"451\\\", \\\"A\\\")\");\n System.out.println(indent + \"@param number\");\n System.out.println(indent + \"@param suffix\");\n System.out.println(indent + indent + \"options: A, B, C, etc.\");\n\n System.out.println();\n System.out.println(\"setScheduleNumber() --> Set the specific class you want to return\");\n System.out.println(indent + \"@usage setScheduleNumber(\\\"20019\\\")\");\n System.out.println(indent + \"@param number\");\n\n System.out.println();\n System.out.println(\"setUnits() --> Set the specific number of units\");\n System.out.println(indent + \"@usage setUnits(\\\"3\\\")\");\n System.out.println(indent + \"@param units\");\n\n System.out.println();\n System.out.println(\"setLocation() --> Set the facility location of the class\");\n System.out.println(indent + \"@usage setUnits(\\\"GMCS\\\")\");\n System.out.println(indent + \"@param facility\");\n\n System.out.println();\n System.out.println(\"setLocation() --> Set the facility AND room location of the class\");\n System.out.println(indent + \"@usage setUnits(\\\"GMCS\\\", \\\"311\\\")\");\n System.out.println(indent + \"@param facility\");\n System.out.println(indent + \"@param room number\");\n\n System.out.println();\n System.out.println(\"setServiceLearning() --> Toggle the 'Service Learning' option [only show Service Learning classes]\");\n System.out.println(indent + \"@usage setServiceLearning(true)\");\n System.out.println(indent + \"@param true/false\");\n\n System.out.println();\n System.out.println(\"setSpecialTopics() --> Toggle the 'Special Topics' option [only show Special Topics classes]\");\n System.out.println(indent + \"@usage setSpecialTopics(true)\");\n System.out.println(indent + \"@param true/false\");\n\n System.out.println();\n System.out.println(\"setHonors() --> Toggle the 'Honors' option [only show Honors classes]\");\n System.out.println(indent + \"@usage setHonors(true)\");\n System.out.println(indent + \"@param true/false\");\n \n System.out.println();\n System.out.println(\"setDistanceOnline() --> Toggle the 'Distance Online' option [only show Online classes]\");\n System.out.println(indent + \"@usage setDistanceOnline(true)\");\n System.out.println(indent + \"@param true/false\");\n\n System.out.println();\n System.out.println(\"setDistanceHybrid() --> Toggle the 'Distance Hybrid' option [only show Hybrid classes]\");\n System.out.println(indent + \"@usage setDistanceHybrid(true)\");\n System.out.println(indent + \"@param true/false\");\n\n System.out.println();\n System.out.println(\"setEvening() --> Toggle the 'Evening' option [only show Evening classes]\");\n System.out.println(indent + \"@usage setEvening(true)\");\n System.out.println(indent + \"@param true/false\");\n\n System.out.println();\n System.out.println(\"setMeetingType() --> Set your preferred meeting type\");\n System.out.println(indent + \"@usage setMeetingType(\\\"Lecture\\\")\");\n System.out.println(indent + \"@param type\");\n System.out.println(indent + indent + \"@options Activity, Discussion, Labratory, Lecture, \"+\n \"Nontraditional, ROTC, Seminar, Supervised\");\n \n System.out.println();\n System.out.println(\"setGenEd() --> Set the General Education requirements you want to show\");\n System.out.println(indent + \"@usage setGenEd(\\\"IIA2\\\")\");\n System.out.println(indent + \"@param true/false\");\n System.out.println(indent + indent + \"@options see general catalog\");\n\n System.out.println();\n System.out.println(\"setSession() --> Set the Summer Session you want to show\");\n System.out.println(indent + \"@usage setGenEd(\\\"S1\\\")\");\n System.out.println(indent + \"@param session\");\n System.out.println(indent + indent + \"@options S1, S2, T1\");\n\n System.out.println();\n System.out.println(\"+---------------------------------------------------------------------------------+\");\n System.out.println();\n\n }", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around in a dense woods.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "private void printOptionsForPlaylist() {\n System.out.println(\"\\n\\t0. Return to main menu \\n\\t1. print Options For Playlist \\n\\t2. Skip forward (next song) \\n\\t3. skip backwards (previous song)\" +\n \"\\n\\t4. removing song in playlist\" + \" \\n\\t5. repeat the current song\" + \" \\n\\t6. current song played\"\n + \" \\n\\t7. show list songs of playlist \");\n }", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "protected void printMenu() {\n System.out.println(\"\\nChoose an option:\");\n }", "private static String printOptionalArgs() {\n String output = \"\";\n for (int i = 0; i < MAX_OPTIONAL_ARGS; i++)\n output += \" [-\" + VALID_OPTIONAL_ARGS[i] + \"]\";\n return output + \" \";\n }", "public void printHelp() throws IOException {\n\n HelpFormatter hf = new HelpFormatter();\n hf.setShellCommand(m_name);\n hf.setGroup(m_options);\n hf.print();\n }", "public static String options(Integer option) {\n\t\tString options = \"[status] for status - [quit] to close\";\n\t\tif(option == 1)\n\t\t\tSystem.out.println(options);\n\t\treturn options;\n\t}", "public static void showUsage() {\n System.out.printf(\"java app.App (-a | -r | -c | +WORD | ?WORD)\");\n }", "private static void writeShortManual() {\n System.out.println(\"\\nPromethean CLI v1.0.0\");\n System.out.println(\"Commands:\");\n System.out.println(\"\\tplan - create (and optionally execute) a plan given input json\");\n System.out.println(\"\\ttestgen - generate a test input file given initial and goal states\");\n System.out.println(\"Run <command> --help to see all options\\n\");\n }", "public static void initDefaultOptions()\r\n\t{\n\r\n\t\taddOption(HELP, true, \"show Arguments\");\r\n\t}", "private void displayUsage() {\r\n System.err.println(\"\\nUSAGE: java -classpath ... \" + \"DiscourseImportTool\");\r\n System.err.println(\"Option descriptions:\");\r\n System.err.println(\"\\t-h\\t usage info\");\r\n System.err.println(\"\\t-e, email\\t send email if major failure\");\r\n System.err.println(\"\\t-b\\t batchSize number of items to batch during import\");\r\n System.err.println(\"\\t-discourse\\t discourse id to run the generator on\");\r\n System.err.println(\"\\t-project\\t project id to add discourse to\");\r\n }", "private static void printHelp(){\r\n System.out.println(\"\\n\\n\\t\\t\\t ----HELP---\\n\\n\" +\r\n \"\\nYou can set the length of password like this \\n\" +\r\n \"\\t java -jar nipunpassgen.jar -l (where l is length of password) \\n\\n\" +\r\n \"\\nYou can also specifiy the which type of word your want to use like this-->\\n\" +\r\n \"\\t Type java -jar nipunpassgen.jar -l -tttt \\n \" +\r\n \"Here 1st t will set uselowercase true \\t 2nd t set useUppercase true\\n\" +\r\n \"\\t 3rd t set useDigit True \\t and 4th t set useSpecial Char true\\n\" +\r\n \"You can use 't' or 'T' for setting the true and 'f' or 'F' for setting the false\\n\" +\r\n \"You can pass -c flag at the end of command for directly copy the password in your\\n\" +\r\n \"clipboard without showing in console like this \\t java -jar nipunpassgen.jar -c \\t this will copy a\\n\" +\r\n \"random 8 digit password in your clipboard .\");\r\n }", "final private static void usage_print () {\n\t\tSystem.out.println (NAME + ' ' + VERSION + ' ' + COPYRIGHT) ;\n\t\tSystem.out.println () ;\n\n\t\tSystem.out.println (\n\t\t \"Usage: java bcmixin.Main [<options>] <modelname> <equationname>\"\n\t\t) ;\n\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\"where [<options>] include any of the following:\") ;\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\" -help\") ;\n\t\tSystem.out.println (\" Prints this helpful message, then exits.\") ;\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\" where <modelname> means the model name that you want to work on.\") ;\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\"where <equationname> provides the equation name, which must end with .equation.\") ;\n\t\tSystem.out.println () ;\n }", "public static void help() {\n System.out.println(line(\"*\", 80));\n System.out.println(\"SUPPORTED COMMANDS\");\n System.out.println(\"All commands below are case insensitive\");\n System.out.println();\n System.out.println(\"\\tSELECT * FROM table_name; Display all records in the table.\");\n System.out.println(\"\\tSELECT * FROM table_name WHERE rowid = <value>; Display records whose rowid is <id>.\");\n System.out.println(\"\\tDROP TABLE table_name; Remove table data and its schema.\");\n System.out.println(\"\\tVERSION; Show the program version.\");\n System.out.println(\"\\tHELP; Show this help information\");\n System.out.println(\"\\tEXIT; Exit the program\");\n System.out.println();\n System.out.println();\n System.out.println(line(\"*\", 80));\n }", "private void help() {\n for (GameMainCommandType commandType : GameMainCommandType.values()) {\n System.out.printf(\"%-12s%s\\n\", commandType.getCommand(), commandType.getInfo());\n }\n System.out.println();\n }", "private static void printUsage()\n {\n HelpFormatter hf = new HelpFormatter();\n String header = String.format(\n \"%nAvailable commands: ring, cluster, info, cleanup, compact, cfstats, snapshot [name], clearsnapshot, bootstrap\");\n String usage = String.format(\"java %s -host <arg> <command>%n\", NodeProbe.class.getName());\n hf.printHelp(usage, \"\", options, header);\n }", "private void showCommands() {\n System.out.println(\"\\n Commands:\");\n System.out.println(\"\\t lf: List reference frames\");\n System.out.println(\"\\t af: Add a reference frame\");\n System.out.println(\"\\t rf: Remove a reference frame\");\n System.out.println(\"\\t le: List events\");\n System.out.println(\"\\t ae: Add an event\");\n System.out.println(\"\\t re: Remove an event\");\n System.out.println(\"\\t ve: View all events from a certain frame\");\n System.out.println(\"\\t li: Calculate the Lorentz Invariant of two events\");\n System.out.println(\"\\t s: Save the world to file\");\n System.out.println(\"\\t l: Load the world from file\");\n System.out.println(\"\\t exit: Exit the program\");\n }", "private static void displayHelp(){\n System.out.println(\"-host hostaddress: \\n\" +\n \" connect the host and run the game \\n\" +\n \"-help: \\n\" +\n \" display the help information \\n\" +\n \"-images: \\n\" +\n \" display the images directory \\n\" +\n \"-sound: \\n\" +\n \" display the sounds file directory \\n\"\n\n );\n }", "public PrintStreamCommandOutput()\n {\n this( System.out );\n }", "void printUsage(){\n\t\tSystem.out.println(\"Usage: RefactorCalculator [prettyPrint.tsv] [tokenfile.ccfxprep] [cloneM.tsv] [lineM.tsv]\");\n\t\tSystem.out.println(\"Type -h for help.\");\n\t\tSystem.exit(1); //error\n\t}", "public void printCommand() {\n System.out.println(\"Cette commande n'est pas supportee\");\n System.out.println(\"Quitter : \\\"quit\\\", Total: \\\"total\\\" , Liste: \\\"list\\\" ou Time: \\\"time\\\"\");\n System.out.println(\"--------\");\n }", "private SimpleCLI(Options options) {\n this.options = options;\n }", "private static void help(Options options) {\n\t\tHelpFormatter formater = new HelpFormatter();\n\n\t\tformater.printHelp(\"Main\", options);\n\t\tSystem.exit(0);\n\n\t}", "public void print() {\n System.out.println(\"Command: \" + command);\n }", "@Test\n\tpublic void testHelpOption()\n\t{\n\t\tPrintStream outBkp = System.out;\n\t\tByteArrayOutputStream outBuf = new ByteArrayOutputStream ();\n\t\tSystem.setOut ( new PrintStream ( outBuf ) );\n\n\t\tApp.main ( \"--help\" );\n\t\t\n\t\tSystem.setOut ( outBkp ); // restore the original output\n\n\t\tlog.debug ( \"CLI output:\\n{}\", outBuf.toString () );\n\t\tassertTrue ( \"Can't find CLI output!\", outBuf.toString ().contains ( \"*** Command Line Example ***\" ) );\n\t\tassertEquals ( \"Bad exit code!\", 1, App.getExitCode () );\n\t}", "public static void showParticipantDirectoryOptions() {\n System.out.println(new StringJoiner(\"\\n\")\n .add(\"*************************\")\n .add(\"1- View the list of all participants\")\n .add(\"2- Add a new participant\")\n .add(\"3- Update a participant\")\n .add(\"4- Remove a certain participant\")\n .add(\"5- Remove all participants\")\n .add(\"6- Return to the previous menu.\")\n .add(\"*************************\")\n );\n }", "private void initOptions() {\n\t\t// TODO: ???\n\t\t// additional input docs via --dir --includes --excludes --recursive\n\t\t// --loglevel=debug\n\t\t// --optionally validate output as well?\n\t\t\n\t\tthis.sb = new StringBuffer();\n\t\tArrayList options = new ArrayList();\n\t\toptions.add( new LongOpt(\"help\", LongOpt.NO_ARGUMENT, null, 'h') );\n\t\toptions.add( new LongOpt(\"version\", LongOpt.NO_ARGUMENT, null, 'v') );\t\t\n\t\toptions.add( new LongOpt(\"query\", LongOpt.REQUIRED_ARGUMENT, sb, 'q') );\n\t\toptions.add( new LongOpt(\"base\", LongOpt.REQUIRED_ARGUMENT, sb, 'b') );\n\t\toptions.add( new LongOpt(\"var\", LongOpt.REQUIRED_ARGUMENT, sb, 'P') );\n\t\toptions.add( new LongOpt(\"out\", LongOpt.REQUIRED_ARGUMENT, sb, 'o') );\n\t\toptions.add( new LongOpt(\"algo\", LongOpt.REQUIRED_ARGUMENT, sb, 'S') );\n\t\toptions.add( new LongOpt(\"encoding\", LongOpt.REQUIRED_ARGUMENT, sb, 'E') );\n\t\toptions.add( new LongOpt(\"indent\", LongOpt.REQUIRED_ARGUMENT, sb, 'I') );\t\n\t\toptions.add( new LongOpt(\"strip\", LongOpt.NO_ARGUMENT, null, 's') );\t\t\n\t\toptions.add( new LongOpt(\"update\", LongOpt.REQUIRED_ARGUMENT, sb, 'u') );\t\n\t\toptions.add( new LongOpt(\"xinclude\", LongOpt.NO_ARGUMENT, null, 'x') );\t\t\n\t\toptions.add( new LongOpt(\"explain\", LongOpt.NO_ARGUMENT, null, 'e') );\n\t\toptions.add( new LongOpt(\"noexternal\", LongOpt.NO_ARGUMENT, null, 'n') );\t\t\n\t\toptions.add( new LongOpt(\"runs\", LongOpt.REQUIRED_ARGUMENT, sb, 'r') );\n\t\toptions.add( new LongOpt(\"iterations\", LongOpt.REQUIRED_ARGUMENT, sb, 'i') );\n\t\toptions.add( new LongOpt(\"docpoolcapacity\", LongOpt.REQUIRED_ARGUMENT, sb, 'C') );\n\t\toptions.add( new LongOpt(\"docpoolcompression\", LongOpt.REQUIRED_ARGUMENT, sb, 'D') );\n\t\toptions.add( new LongOpt(\"nobuilderpool\", LongOpt.NO_ARGUMENT, null, 'p') );\n\t\toptions.add( new LongOpt(\"debug\", LongOpt.NO_ARGUMENT, null, 'd') );\t\t\n\t\toptions.add( new LongOpt(\"validate\", LongOpt.REQUIRED_ARGUMENT, sb, 'V') ); \n\t\toptions.add( new LongOpt(\"namespace\", LongOpt.REQUIRED_ARGUMENT, sb, 'W') ); \n\t\toptions.add( new LongOpt(\"schema\", LongOpt.REQUIRED_ARGUMENT, sb, 'w') );\n\t\toptions.add( new LongOpt(\"filterpath\", LongOpt.REQUIRED_ARGUMENT, sb, 'f') );\n\t\toptions.add( new LongOpt(\"filterquery\", LongOpt.REQUIRED_ARGUMENT, sb, 'F') );\n\t\toptions.add( new LongOpt(\"xomxpath\", LongOpt.NO_ARGUMENT, null, 'N') );\t\t\n\t\t\n////\t\toptions.add( new LongOpt(\"loglevel\", LongOpt.REQUIRED_ARGUMENT, sb, 'l') ); setLogLevels(Level.INFO);\n\t\t\t\n\t\tthis.longOpts = new LongOpt[options.size()];\n\t\toptions.toArray(this.longOpts);\t\t\n\t}", "private static String optionsListing() {\n\t\tString result = \"\\nUsage: java -jar comtor.jar -dir dirname\\n\\n\";\n\t\tresult += \"Options:\\n\";\n\t\t\n\t\tresult += \"-dir dirname\\t\\tSpecified the pathname of the directory in which COMTOR will \"; \n\t\tresult += \"search for Java source code\\n\\t\\t\\tfiles (packaged and non-packaged).\\n\\n\";\n\t\t\n\t\tresult += \"-help | --help\\t\\tThis help message\\n\";\n\t\tresult += \"\\n\\n\";\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.print(\"\\u250C\\u252C\\u2510\\n\");\r\n\t\tSystem.out.print(\"\\u251C\\u253C\\u2524\\n\");\r\n\t\tSystem.out.print(\"\\u2514\\u2534\\u2518\");\r\n\t}", "public static void showMenu(String[] options, boolean showNumbers){\n header(options[0]);\n if (showNumbers){\n for (int i = 1; i < options.length; i++)\n System.out.printf(\"|%-1s%2.2s.- %-41.41s%-1s|\" + EOF, \"\", i, options[i], \"\");\n } else {\n for (int i = 1; i < options.length; i++)\n System.out.printf(\"|%-1s%-46.46s%-1s|\" + EOF, \"\", options[i], \"\");\n } \n System.out.println(\"+================================================+\");\n }", "@Override\n public String print() {\n return this.text + \"\\n\" + \"1. \" + this.option1.text + \"\\n\" + \"2. \" + this.option2.text;\n }", "public void printAll(String cmd, String[] args){\n\t\tfor(int i = 0; i<args.length; i++){\n\t\t\t//System.out.print(args[i] + \"\\t\");\n\t\t}\n\t}", "private static void printHelp() {\n getConsole().println(\"Keycheck\\n\" +\n \"\\n\" +\n \"Usage:\\n\" +\n \" keycheck.jar parameter1 parameter2 ... file1 file2 ...\\n\" +\n \"Example:\\n\" +\n \" java -jar keycheck.jar -\" + PARAMETER_BASE + \" -\" + PARAMETER_BITS + \" file1.csv file2.csv\" +\n \"\\n\" +\n \"Parameters:\\n\" +\n \" -\" + PARAMETER_GENERATE + \" [512|1024] Generate \" + GENERATED_KEY_COUNT + \" keys\\n\" +\n \" -\" + PARAMETER_NEW_FORMAT + \" New format will be use to load keys from file\\n\" +\n \" -\" + PARAMETER_TRANSFORM + \" Transform all keys to new format to file 'CARD_ICSN.csv'\\n\" +\n \" -\" + PARAMETER_BASE + \" Check base stats of keys\\n\" +\n \" -\" + PARAMETER_BITS + \" Generate statistics for all bits\\n\" +\n \" -\" + PARAMETER_BYTES + \" Generate statistics for all bytes\\n\" +\n \" -\" + PARAMETER_DIFFERENCE + \" Check primes difference\\n\" +\n \" -\" + PARAMETER_STRENGTH + \" Check primes strength\\n\" +\n \" -\" + PARAMETER_TIME + \" Generate time statistics\\n\" +\n \" -\" + PARAMETER_ALL + \" Generate all statistics and check all tests.\\n\");\n }", "private static void usage()\n {\n System.out.println(\"usage:\");\n System.out.println(\" ??? clock [-bg color] [-f fontsize] [-fg color]\");\n System.out.println(\" ??? formats\");\n System.out.println(\" ??? print [-f fmt] time\");\n System.out.println(\" ??? now [-r] [-f fmt]\");\n System.exit(1);\n }", "private static void printUsage() {\n\t\tSystem.out.println(\"Usage: java UniqueUniqueChromosomeReconstructor [-h] input_file\");\n\t\tSystem.out.println(\" -h: Print usage information\");\n\t\tSystem.out.println(\" input_file: File containing input sequence data\");\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"\\u265A\");\n\t\tSystem.out.println(\"\\u265B\");\n\t\t\n\t\tSystem.out.println(\"\\u264A\");\n\t\tSystem.out.println(\"\\u264B\");\n\t}", "private static void displayUsage() {\n System.out.println(\"\\n MEKeyTool argument combinations:\\n\\n\" +\n \" -help\\n\" +\n \" -import [-MEkeystore <filename>] \" +\n \"[-keystore <filename>]\\n\" +\n \" [-storepass <password>] -alias <key alias> \" +\n \"[-domain <domain>]\\n\" +\n \" -list [-MEkeystore <filename>]\\n\" +\n \" -delete [-MEkeystore <filename>]\\n\" +\n \" (-owner <owner name> | -number <key number>)\\n\" +\n \"\\n\" +\n \" The default for -MEkeystore is \\\"\" + \n System.getProperty(DEFAULT_MEKEYSTORE_PROPERTY, \"appdb/_main.ks\") +\n \"\\\".\\n\" +\n \" The default for -keystore is \\\"\" + \n System.getProperty(DEFAULT_KEYSTORE_PROPERTY, \"$HOME/.keystore\") + \n \"\\\".\\n\");\n }", "public abstract void printHelp(List<String> args);", "@Override\n public void help()\n {\n System.out.println(\"\\tcd [DEST]\");\n }", "private void showHelp() {\n \tHelpFormatter formatter = new HelpFormatter();\n \tformatter.printHelp( \"java -cp moustache.jar Main\", options );\n }", "public static void showSynopsis() {\n System.out\n .println(\"Usage: findbugs [general options] -textui [command line options...] [jar/zip/class files, directories...]\");\n }", "public static void help() {\n\tSystem.out.println(\"-- Avaible options --\");\n\tSystem.out.println(\"-- [arg]: Required argument\");\n\tSystem.out.println(\"-- {arg}: Optional argument\");\n\tSystem.out.println(\"* -s {file} Save the game into a file\");\n\tSystem.out.println(\"* -r {file} Play or Replay a game from a file\");\n\tSystem.out.println(\"* -a [file] Play a binary file or a game file\");\n\tSystem.out.println(\"* -n [file] Create a random game file\");\n\tSystem.out.println(\"* -t [size] Specify the size of the board\");\n\tSystem.out.println(\"* -k Solve the game with the IA solver\");\n\tSystem.out.println(\"* -m Solve the game with the MinMax/AlphaBeta algorithm\");\n\tSystem.out.println(\"----------------------------------------------\");\n\tSystem.out.println(\". Press Enter to Start or Restart\");\n\tSystem.out.println(\". Press Z to Undo the last move\");\n\tSystem.out.println(\"\");\n }", "public static void printHelp(Parser parser) {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "public static void printHelp() {\n System.out.println(\"Usage:\");\n System.out.println(\"To create a user, post a message.\");\n System.out.println(\"<user name> [command] | <another user name>\");\n System.out.println(\"<user name> -> message - post a message\");\n System.out.println(\"<user name> - read timeline messages\");\n System.out.println(\"<user name> follows <another user name> - follow another user\");\n System.out.println(\"<user name> wall - display users wall\");\n System.out.println(\"-help - help\");\n System.out.println(\"exit - exit the program\");\n }", "private void printCRUDDoctorOption() {\n\t\tSystem.out.println(\"\\n\\n----Edit DOCTOR----\");\n\t\tSystem.out.println(\"1. Insert a new doctor\");\n\t\tSystem.out.println(\"2. List all doctors\");\n\t\tSystem.out.println(\"3. Update doctor data\");\n\t\tSystem.out.println(\"4. Remove doctor\");\n\t\tSystem.out.println(\"5. Back\");\n\t\tSystem.out.println(\"Enter your choice: \");\n\t}", "private static void help() {\n System.out.println(\"Supported Command List:\");\n System.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\");\n System.out.println(\"To draw canvas press: C <width> <height>\");\n System.out.println(\"To draw rectangle press: R <x1> <y1> <x2> <y2>\");\n System.out.println(\"To draw Line press : L <x1> <y1> <x2> <y2>\");\n System.out.println(\"To fill canvas press : B <x> <y> <c>\");\n System.out.println(\"To quit press: Q\");\n System.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\");\n System.out.println();\n }", "public void printUsage(OutputStream os) {\n // automatically generate the help statement\n HelpFormatter formatter = new HelpFormatter();\n formatter.setSyntaxPrefix(\"Usage: \");\n formatter.setOptionComparator(new OptionComparator(optList));\n formatter.printHelp(new PrintWriter(os, true), 80, cmdLineSyntax, usageHeader, activeOpts,\n 2, 2, \"\");\n }", "public static StringBuffer describeOptions( final CLOptionDescriptor[] options )\n {\n final String lSep = System.getProperty( \"line.separator\" );\n final StringBuffer sb = new StringBuffer();\n\n for ( final CLOptionDescriptor option : options )\n {\n final char ch = (char) option.getId();\n final String name = option.getName();\n String description = option.getDescription();\n int flags = option.getFlags();\n boolean argumentRequired =\n ( flags & CLOptionDescriptor.ARGUMENT_REQUIRED ) == CLOptionDescriptor.ARGUMENT_REQUIRED;\n final boolean twoArgumentsRequired =\n ( flags & CLOptionDescriptor.ARGUMENTS_REQUIRED_2 ) == CLOptionDescriptor.ARGUMENTS_REQUIRED_2;\n boolean needComma = false;\n if ( twoArgumentsRequired )\n {\n argumentRequired = true;\n }\n\n sb.append( '\\t' );\n\n if ( Character.isLetter( ch ) )\n {\n sb.append( \"-\" );\n sb.append( ch );\n needComma = true;\n }\n\n if ( null != name )\n {\n if ( needComma )\n {\n sb.append( \", \" );\n }\n\n sb.append( \"--\" );\n sb.append( name );\n }\n\n if ( argumentRequired )\n {\n sb.append( \" <argument>\" );\n }\n if ( twoArgumentsRequired )\n {\n sb.append( \"=<value>\" );\n }\n sb.append( lSep );\n\n if ( null != description )\n {\n while ( description.length() > MAX_DESCRIPTION_COLUMN_LENGTH )\n {\n final String descriptionPart =\n description.substring( 0, MAX_DESCRIPTION_COLUMN_LENGTH );\n description =\n description.substring( MAX_DESCRIPTION_COLUMN_LENGTH );\n sb.append( \"\\t\\t\" );\n sb.append( descriptionPart );\n sb.append( lSep );\n }\n\n sb.append( \"\\t\\t\" );\n sb.append( description );\n sb.append( lSep );\n }\n }\n return sb;\n }", "protected final void printOptionHelp(Map<String, String> optionDescriptions) {\n int maxOptionLength = optionDescriptions.entrySet().stream().mapToInt(e -> e.getValue() != null ? e.getKey().length() : 0).max().orElse(0);\n optionDescriptions.forEach((option, description) -> {\n if (description != null) {\n printOutput(\" %-\" + maxOptionLength + \"s %s%n\", option, description);\n } else {\n printOutput(\" ------- %s -------%n\", option);\n }\n });\n }", "public static void main(String[] args) {\n CommandCliParser cliParser = new CommandCliParser();\n cliParser.parseCommand(\"--verbose\");\n }", "private static void usage() {\n System.out.println(\"Usage: java -jar ....jar [Options]\" + LINESEP + LINESEP);\n System.out.println(\"[Options]\" + LINESEP);\n System.out.println(\"-c --config\\tconfigfile\");\n System.out.println(\"-s --spectrum\\tspectrumfile\");\n System.out.println(\"-r --resultfile\\tWhere the result has to be written to.\");\n System.out.println(\"-q --sqlfile\\tWhere the query has to be written to.\");\n System.out.println(\"-p --ppm\\tThe ppm value which should be used for the spectrum.\");\n }", "private static void help() {\n HelpFormatter formater = new HelpFormatter();\n formater.printHelp(\"SGD-SVM\", options);\n System.exit(0);\n }", "public static void help() {\n System.out.println(printLine(\"*\",120));\n System.out.println(\"SUPPORTED COMMANDS\");\n System.out.println(\"All commands below are case insensitive\");\n System.out.println();\n System.out.println(\"\\tSHOW TABLES; Display all tables in the schema.\");\n //System.out.println(\"\\tSELECT table_name FROM kavibase_tables; Display all records in the table.\");\n System.out.println(\"\\tCREATE TABLE table_name (column_name data_type [PRIMARY KEY] [NOT NULL],.); Create a table.\");\n System.out.println(\"\\tINSERT INTO TABLE (column_list) table_name VALUES (value_list); Insert a record into table.\");\n System.out.println(\"\\tDELETE FROM TABLE table_name WHERE row_id=key_value; Delete a record from a table.\");\n System.out.println(\"\\tSELECT * FROM table_name; Display all records in the table.\");\n System.out.println(\"\\tSELECT * FROM table_name WHERE rowid = <value>; Display records whose rowid is <id>.\");\n System.out.println(\"\\tDROP TABLE table_name; Remove table data and its schema.\");\n System.out.println(\"\\tVERSION; Show the program version.\");\n System.out.println(\"\\tHELP; Show this help information\");\n System.out.println(\"\\tEXIT; Exit the program\");\n System.out.println(\"\\tQUIT; Exit the program\");\n System.out.println();\n System.out.println();\n System.out.println(printLine(\"*\",120));\n }", "public void printHelpCommands(){\r\n\t\t//Construct the help command output\r\n\t\tprintAsTable(\"exit\",\t\t \t\t\t\t\"Exit the program.\");\r\n\t\tprintAsTable(\"help\",\t\t \t\t\t\t\"Print out the usage.\");\r\n\t\tprintAsTable(\"host\",\t\t\t\t\t\t\"Enumerate all hosts.\");\r\n\t\tprintAsTable(\"host hname info\", \t\t\t\"Show info of host name.\");\r\n\t\tprintAsTable(\"host hname datastore\", \t\t\"Enumerate datastores of host hname.\");\r\n\t\tprintAsTable(\"host hname network\", \t\t\t\"Enumerate networks of host hname.\");\r\n\t\tprintAsTable(\"vm\", \t\t\t\t\t\t\t\"Enumerate all virtual machines.\");\r\n\t\tprintAsTable(\"vm vname info\", \t\t\t\t\"Show info of VM vname.\");\r\n\t\tprintAsTable(\"vm vname on\", \t\t\t\t\"Power on VM vname and wait until task completes.\");\r\n\t\tprintAsTable(\"vm vname off\", \t\t\t\t\"Power off VM vname and wait until task completes.\");\r\n\t\tprintAsTable(\"vm vname shutdown\", \t\t\t\"Shutdown guest of VM vname.\");\t\t\t\r\n\t}", "public void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n System.out.println(\" go quit help\");\n }", "void help() {\n System.err.println(\"Usage: java edu.rice.cs.cunit.record.Record [options] <class> [args]\");\n System.err.println(\"[options] are:\");\n System.err.println(\" -quiet No trace output\");\n System.err.println(\" -headless No GUI\");\n System.err.println(\" -output <filename> Output trace to <filename>\");\n System.err.println(\" -auto [n] Automatically update on thread starts/stops.\");\n System.err.println(\" Optional: n=delay in ms, n>=100. Default: 1000\");\n System.err.println(\" -obj Also process object sync points\");\n System.err.println(\" -debug Process compact sync points with debug information\");\n System.err.println(\" -methoddb <filename> Specify <filename> as method database\");\n System.err.println(\" -initsp Process sync points during VM initialization\");\n System.err.println(\" -termsp Process sync points during VM termination\");\n System.err.println(\" -D <dir> Set current directory (\\\"user.dir\\\") for debug JVM\");\n System.err.println(\" -cp <classpath> Set classpath (\\\"java.class.path\\\") for debug JVM\");\n System.err.println(\" -drj <filename> Set jar file used to start DrJava\");\n System.err.println(\" -sp <sourcepath> Set source path to find source files\");\n System.err.println(\" -help Print this help message\");\n System.err.println(\" -J Pass all following options to debug JVM\");\n System.err.println(\"<class> is the program to trace\");\n System.err.println(\"[args] are the arguments to <class>\");\n }", "public static void displayOptions(Account account) {\n\t\tSystem.out.println(\"\\nOptions:\");\n\t\tSystem.out.println(\"1. Display account details\");\n\t\tSystem.out.println(\"2. Display account balance\");\n\t\tSystem.out.println(\"3. Display monthly interest\");\n\t\tSystem.out.println(\"4. Make a withdrawal\");\n\t\tSystem.out.println(\"5. Make a deposit\");\n\n\t\tif (account instanceof CheckingAccount) {\n\t\t\tSystem.out.println(\"6. Display overdraft limit\");\n\t\t\tSystem.out.println(\"7. Change overdraft limit\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\"0. To exit\");\n\t\tSystem.out.print(\"Select an option (int): \");\n\t}", "public void printHelp() {\n System.out.println(\". - jeden znak (bez znaku nowej linii)\");\n System.out.println(\".* - zero lub więcej znaków\");\n System.out.println(\"\\\\w* - zero lub więcej słów\");\n }", "private void quoteline(String[] args) {\r\n\t\tStringBuilder buf = new StringBuilder();\r\n\t\tif (args.length>0) buf.append(q(args[0]));\r\n\t\tint k = 1;\r\n\t\twhile(k < args.length) buf.append(delim).append(q(args[k++]));\r\n\t\tout.println(buf.toString());\r\n\t}", "public void action() {\n\t\tfor(int i=0; i<facade.getServiceOptions().getOptionsList().size();i++){\n\t\t\tReader reader= new Reader(facade.getOptionsList().get(i));\n\t\t\treader.print();\n\t\t}\n\t}", "protected void help() {\n println(\"go - Begin execution at Start or resume execution from current pc location\");\n println(\"go <loc1> - Begin execution at <loc1>\");\n println(\"step - Execute next step\");\n println(\"dump <loc1> <loc2> - Dump memory locations from (including) <loc1> - <loc2>\");\n println(\"dumpr - Dump a table of registers\");\n println(\"exit - Exit debugger\");\n println(\"deas <loc1> <loc2> - Deassmble memory locations from (including) <loc1> - <loc2>\");\n println(\"brkt - List the current break point table\");\n println(\"sbrk <loc1> - Set break point at <loc1>\");\n println(\"cbrk <loc1> - Clear break point at <loc1>\");\n println(\"cbrkt - Clear breakpoint table\");\n println(\"help - Print a summary of debugger commands\");\n println(\"chngr <r#> <value> - Change the value of register <r#> to <value>\");\n println(\"chngm <loc1 <value> - Change the value of memory loaction <loc1> to <value>\");\n }", "void showInConsole();", "private static void doUsage() {\r\n\t\tSystem.out.println(\"Usage: SpellChecker [-i] <dictionary> <document>\\n\"\r\n\t\t\t\t+ \" -d <dictionary>\\n\" + \" -h\");\r\n\t}", "private void printHelp() \n {\n Logger.Log(\"You have somehow ended up in this strange, magical land. But really you just want to go home.\");\n Logger.Log(\"\");\n Logger.Log(\"Your command words are:\");\n parser.showCommands();\n Logger.Log(\"You may view your inventory or your companions\");\n }" ]
[ "0.766711", "0.76606476", "0.75652087", "0.7512951", "0.7385271", "0.7192034", "0.6980769", "0.69511986", "0.67028373", "0.6676968", "0.6665502", "0.6512336", "0.6508002", "0.64494586", "0.64484817", "0.64189345", "0.6372098", "0.63400203", "0.62957734", "0.627818", "0.62732744", "0.62695897", "0.62550896", "0.6252077", "0.62492055", "0.6230896", "0.6227838", "0.6226581", "0.6215279", "0.62073976", "0.6171007", "0.6162691", "0.6150343", "0.6136072", "0.61341345", "0.6130847", "0.61234194", "0.61143106", "0.6096405", "0.60705256", "0.6055439", "0.6010942", "0.5991197", "0.5990487", "0.59812814", "0.59444076", "0.5938943", "0.5938168", "0.59314007", "0.59301263", "0.59216857", "0.59146863", "0.5856633", "0.5854106", "0.5847395", "0.5845461", "0.58403087", "0.5839995", "0.5828721", "0.5820297", "0.580529", "0.5796768", "0.5790176", "0.578283", "0.5773908", "0.57673526", "0.574161", "0.57305604", "0.57278836", "0.572658", "0.57149583", "0.5710073", "0.570412", "0.5700385", "0.57003295", "0.5694831", "0.56812626", "0.5679983", "0.56714016", "0.5665318", "0.5644554", "0.56331867", "0.5629144", "0.5625627", "0.5620478", "0.5619331", "0.56145114", "0.56142783", "0.56118256", "0.5609482", "0.5591225", "0.5587721", "0.557741", "0.5563263", "0.55563706", "0.5556328", "0.5551124", "0.5550212", "0.55500585", "0.5526323" ]
0.7006177
6
Show the overall FindBugs command synopsis.
public static void showSynopsis() { System.out .println("Usage: findbugs [general options] -textui [command line options...] [jar/zip/class files, directories...]"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void help() {\n System.out.println(line(\"*\", 80));\n System.out.println(\"SUPPORTED COMMANDS\");\n System.out.println(\"All commands below are case insensitive\");\n System.out.println();\n System.out.println(\"\\tSELECT * FROM table_name; Display all records in the table.\");\n System.out.println(\"\\tSELECT * FROM table_name WHERE rowid = <value>; Display records whose rowid is <id>.\");\n System.out.println(\"\\tDROP TABLE table_name; Remove table data and its schema.\");\n System.out.println(\"\\tVERSION; Show the program version.\");\n System.out.println(\"\\tHELP; Show this help information\");\n System.out.println(\"\\tEXIT; Exit the program\");\n System.out.println();\n System.out.println();\n System.out.println(line(\"*\", 80));\n }", "private static void printUsage() {\n System.err.println(\"\\n\\nUsage:\\n\\tAnalyzeRandomizedDB [-p] [-v] [--enzyme <enzymeName> [--mc <number_of_missed_cleavages>]] <original_DB> <randomized_DB>\");\n System.err.println(\"\\n\\tFlag significance:\\n\\t - p : print all redundant sequences\\n\\t - v : verbose output (application flow and basic statistics)\\n\");\n System.exit(1);\n }", "private static void printUsage()\n {\n StringBuilder usage = new StringBuilder();\n usage.append(String.format(\"semantika %s [OPTIONS...]\\n\", Environment.QUERYANSWER_OP));\n usage.append(\" (to execute query answer)\\n\");\n usage.append(String.format(\" semantika %s [OPTIONS...]\\n\", Environment.MATERIALIZE_OP));\n usage.append(\" (to execute RDB2RDF export)\");\n String header = \"where OPTIONS include:\"; //$NON-NLS-1$\n String footer =\n \"\\nExample:\\n\" + //$NON-NLS-1$\n \" ./semantika queryanswer -c application.cfg.xml -l 100 -sparql 'SELECT ?x WHERE { ?x a :Person }'\\n\" + //$NON-NLS-1$\n \" ./semantika rdb2rdf -c application.cfg.xml -o output.n3 -f N3\"; //$NON-NLS-1$\n mFormatter.setOptionComparator(null);\n mFormatter.printHelp(400, usage.toString(), header, sOptions, footer);\n }", "private static void displayHelp(){\n System.out.println(\"1. (R)eport\");\n System.out.println(\"2. (M)inimum Spanning Tree\");\n System.out.println(\"3. (S)hortest Path from i j\");\n System.out.println(\"4. (D)own i j\");\n System.out.println(\"5. (U)p i j\");\n System.out.println(\"6. (C)hange Weight i j x\");\n System.out.println(\"7. (E)ulerian\");\n System.out.println(\"8. (Q)uit\");\n }", "void printHelp();", "public void showHelp();", "@Override\n public void printHelp() {\n\n }", "public abstract void printHelp(List<String> args);", "private void printUsage() {\n \n // new formatter\n HelpFormatter formatter = new HelpFormatter();\n \n // add the text and print\n formatter.printHelp(\"arara [file [--log] [--verbose] [--timeout N] [--language L] | --help | --version]\", commandLineOptions);\n }", "public String textHelp() {\t\t\n\t\tString s = \"RUN: Ejecuta todas las instrucciones\";\n\t\treturn s;\n\t}", "private void help() {\n usage(0);\n }", "public String getHelp();", "public abstract String commandDocumentation();", "private void showHelp() {\n System.out.println(\"new: \");\n System.out.println(\"new chess and throw the chess bevor away\");\n System.out.println(\"move from to:\");\n System.out.println(\"take the pawn from position from to position to \");\n System.out.println(\"print:\");\n System.out.println(\"print the chess now \");\n System.out.println(\"help:\");\n System.out.println(\"show help\");\n System.out.println(\"quit:\");\n System.out.println(\"quit out\");\n }", "public void showHelp() {\n\tString shortFormat = \"%16s -- %-20s %n\";\n\tString longFormat = \"%16s -- %-40s %n\";\n System.out.printf(shortFormat, \"ls\", \"list matched tariffs\");\n System.out.printf(shortFormat, \"ls all\", \"list all tariffs\");\n System.out.printf(shortFormat, \"clear\", \"reset filters\");\n System.out.printf(shortFormat, \"exit\", \"exit the program\");\n System.out.printf(longFormat, \"field min max\",\n \"filter tariffs with field having\"\n + \"value between min and max\");\n System.out.println(\"\\nList of available fields:\\n\");\n filterCommands.stream().forEach(System.out::println);\n }", "@Override\r\n\tprotected String getHelpInfor() {\n\t\treturn \"\";\r\n\t}", "public String showHelp() {\r\n return ctrlDomain.getHidatoDescription();\r\n }", "@Override\n public String showHelp()\n {\n return new String(ChatColour.RED + \"Usage: \" + ChatColour.AQUA + this.getName());\n }", "String getHelpString();", "private void printHelp() {\r\n\t\tSystem.out.println(\"Flag Param Details\");\r\n\t\tSystem.out.println(\" -f **x** Add a filter. 'x' is the board letter.\");\r\n\t\tSystem.out.println(\" Can have 0 or more stars before and after the board letter.\");\r\n\t\tSystem.out.println(\" -h Print this message.\");\r\n\t\tSystem.out.println(\" -q Quit interactive session.\");\r\n\t\tSystem.out.println(\" -n xx Display xx number of words.\");\r\n\t\tSystem.out.println(\" -n all Display all words.\");\r\n\t\tSystem.out.println(\" -r Repeat last search.\");\r\n\t\tSystem.out.println(\" -s len Words are sorted by length.\");\r\n\t\tSystem.out.println(\" -s alpha Words are sorted alphapetically.\");\r\n\t\t// System.out.println(\"\");\r\n\t}", "private String printHelp()//refactored\n { String result = \"\";\n result += \"\\n\";\n result += \"You are weak if you have to ask me\\n\";\n result += \"Try not to die, while i´am mocking you.\\n\";\n result += \"\\n\";\n result += \"\" + currentRoom.getDescription() + \"\\n\"; //new\n result += \"\\nExits: \" + currentRoom.getExitDescription() + \"\\n\";//new\n result += \"\\nCommand words:\\n\";\n result += ValidAction.getValidCommandWords();\n result += \"\\n\";\n \n return result;\n }", "public static void help() {\n System.out.println(printLine(\"*\",120));\n System.out.println(\"SUPPORTED COMMANDS\");\n System.out.println(\"All commands below are case insensitive\");\n System.out.println();\n System.out.println(\"\\tSHOW TABLES; Display all tables in the schema.\");\n //System.out.println(\"\\tSELECT table_name FROM kavibase_tables; Display all records in the table.\");\n System.out.println(\"\\tCREATE TABLE table_name (column_name data_type [PRIMARY KEY] [NOT NULL],.); Create a table.\");\n System.out.println(\"\\tINSERT INTO TABLE (column_list) table_name VALUES (value_list); Insert a record into table.\");\n System.out.println(\"\\tDELETE FROM TABLE table_name WHERE row_id=key_value; Delete a record from a table.\");\n System.out.println(\"\\tSELECT * FROM table_name; Display all records in the table.\");\n System.out.println(\"\\tSELECT * FROM table_name WHERE rowid = <value>; Display records whose rowid is <id>.\");\n System.out.println(\"\\tDROP TABLE table_name; Remove table data and its schema.\");\n System.out.println(\"\\tVERSION; Show the program version.\");\n System.out.println(\"\\tHELP; Show this help information\");\n System.out.println(\"\\tEXIT; Exit the program\");\n System.out.println(\"\\tQUIT; Exit the program\");\n System.out.println();\n System.out.println();\n System.out.println(printLine(\"*\",120));\n }", "private void printHelp() \n {\n Logger.Log(\"You have somehow ended up in this strange, magical land. But really you just want to go home.\");\n Logger.Log(\"\");\n Logger.Log(\"Your command words are:\");\n parser.showCommands();\n Logger.Log(\"You may view your inventory or your companions\");\n }", "private static void writeShortManual() {\n System.out.println(\"\\nPromethean CLI v1.0.0\");\n System.out.println(\"Commands:\");\n System.out.println(\"\\tplan - create (and optionally execute) a plan given input json\");\n System.out.println(\"\\ttestgen - generate a test input file given initial and goal states\");\n System.out.println(\"Run <command> --help to see all options\\n\");\n }", "@Override\n public String commandDocumentation() {\n return (\"Displays the documentation of various commands.\");\n }", "public void help() {\n\t\tString format = \"%-20s%s%n\";\n\t\tString[] commands = new String[5];\n\t\tcommands[0] = \"help\";\n\t\tcommands[1] = \"learn\";\n\t\tcommands[2] = \"alphabet:create\";\n\t\tcommands[3] = \"alphabet:destroy\";\n\t\tcommands[4] = \"alphabet:compose\";\n\n\t\tString[] explanation = new String[5];\n\t\texplanation[0] = \"display this message\";\n\t\texplanation[1] = \"starts a learning process. Note: with a large alphabet, this\\ncan take a \"\n\t\t\t\t+ \"very long time!\";\n\t\texplanation[2] = \"creates an alphabet. Currently only working for Android, the\\n\"\n\t\t\t\t+ \"creation of an iOS alphabet has to be done more or less manually\";\n\t\texplanation[3] = \"deletes an existing alphabet\";\n\t\texplanation[4] = \"composes an alphabet from existing window dumps.\";\n\n\t\tfor (int i = 0; i < commands.length; i++) {\n\t\t\tSystem.out.printf(format, commands[i], explanation[i]);\n\t\t}\n\t}", "@Override\n \t\t\t\tpublic void doHelp() {\n \n \t\t\t\t}", "private static void help() {\n System.out.println(\"usage: pgen <project name> <args>\");\n System.out.println(\"Arguments:\");\n System.out.println(\"\\t-h | -help : help menu\");\n System.out.println(\"\\t-s | -size <example file amount> : the amount of example files to create. Defaults to 2\");\n System.out.println(\"\\t-t | -template <template> : the template to use. Defaults to java_default\");\n System.out.println(\"\\t\\tValid Templates:\");\n System.out.println(\"\\t\\t\\t* java_default\");\n System.out.println(\"\\t\\t\\t* cpp_default\");\n System.out.println(\"\\t-kattis : fetches the problems from Kattis and creates a makefile and test script for them\");\n System.out.println(\"\\t-local : fetches nothing and creates empty example files\");\n System.exit(0);\n }", "public void printHelp() {\n System.out.println(\". - jeden znak (bez znaku nowej linii)\");\n System.out.println(\".* - zero lub więcej znaków\");\n System.out.println(\"\\\\w* - zero lub więcej słów\");\n }", "@Override\n public void help() {\n\n }", "String getHelpText();", "public static String sourceHelp() {\n\treturn\n\" sf@HOSTNAME:PORTNUMBER - a serial forwarder\\n\" +\n\" serial@SERIALPORT:BAUDRATE - a mote connected to a serial port\\n\" +\n\" (using TOSBase protocol)\\n\" +\n\" network@HOSTNAME:PORTNUMBER - a mote whose serial port is accessed over\\n\" +\n\" the network (using TOSBase protocol)\\n\" +\n\" old-serial@SERIALPORT[:BAUDRATE][,PACKET-SIZE]\\n\" +\n\" - a mote connected to a serial port\\n\" +\n\" (old, broken protocol - avoid if possible)\\n\" +\n\" old-network@HOSTNAME:PORTNUMBER[,PACKET-SIZE]\\n\" +\n\" - a mote whose serial port is accessed over\\n\" +\n\" the network (old, broken protocol)\\n\" +\n\" dummy - a packet sink and dummy-packet source\\n\" +\n\" tossim-serial[@HOSTNAME] - the serial port of tossim node 0\\n\"+\n\" tossim-radio[@HOSTNAME] - the radios of tossim nodes\\n\"+\n\"where BAUDRATE can be a specific baud rate or a mote model name\\n\"+\n\"(e.g., mica2 or mica2dot). Specifying a mote model name picks the standard\\n\"+\n\"baud-rate for that mote. PACKET-SIZE is the packet-size (default 36) for\\n\"+\n\"old, broken protocols.\\n\" +\n\"Examples: serial@COM1:mica2, serial@COM2:19200, sf@localhost:9000\";\n }", "protected void help() {\n println(\"go - Begin execution at Start or resume execution from current pc location\");\n println(\"go <loc1> - Begin execution at <loc1>\");\n println(\"step - Execute next step\");\n println(\"dump <loc1> <loc2> - Dump memory locations from (including) <loc1> - <loc2>\");\n println(\"dumpr - Dump a table of registers\");\n println(\"exit - Exit debugger\");\n println(\"deas <loc1> <loc2> - Deassmble memory locations from (including) <loc1> - <loc2>\");\n println(\"brkt - List the current break point table\");\n println(\"sbrk <loc1> - Set break point at <loc1>\");\n println(\"cbrk <loc1> - Clear break point at <loc1>\");\n println(\"cbrkt - Clear breakpoint table\");\n println(\"help - Print a summary of debugger commands\");\n println(\"chngr <r#> <value> - Change the value of register <r#> to <value>\");\n println(\"chngm <loc1 <value> - Change the value of memory loaction <loc1> to <value>\");\n }", "private static void doUsage() {\r\n\t\tSystem.out.println(\"Usage: SpellChecker [-i] <dictionary> <document>\\n\"\r\n\t\t\t\t+ \" -d <dictionary>\\n\" + \" -h\");\r\n\t}", "private void printHelp() \n {\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "public void help();", "@Override\n public void help()\n {\n System.out.println(\"\\tcd [DEST]\");\n }", "private void showHelp() {\n \tHelpFormatter formatter = new HelpFormatter();\n \tformatter.printHelp( \"java -cp moustache.jar Main\", options );\n }", "public abstract String getHelpInfo();", "@Override\r\n\tpublic String getHelp() {\r\n\t\treturn \"DROP | SOLTAR <id>\";\r\n\t}", "@Override\r\n\tpublic String getHelp() {\r\n\t\treturn \"DROP | SOLTAR <id>\";\r\n\t}", "public String help() {\n\t\t\treturn \"\\nc-m-n backtracking test game.\\n\"\n\t\t\t\t\t\t\t+ \"Moves are integers in the range 0..\"\n\t\t\t\t\t\t\t+ getMM()\n\t\t\t\t\t\t\t+ \"\\nFind \"\n\t\t\t\t\t\t\t+ getCC()\n\t\t\t\t\t\t\t+ \" numbers that sum to \"\n\t\t\t\t\t\t\t+ getNN()\n\t\t\t\t\t\t\t+ \"\\nIf both or neither succeed, game is a draw. 0 quits.\\n\";\n\t\t}", "private void printHelp() {\n System.out.println(\"Your available command words are:\");\n parser.showCommands();\n }", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "public static void help(){\n System.out.println(\"myRepositories USERNAME | --help\\n\");\n\n System.out.println(\"\\'myReposities\\' returns a list of repositories based on username\\n\");\n\n System.out.println(\"Version\\t: 1.0.0\");\n System.out.println(\"Author\\t: Miguel Menjivar\");\n System.out.println(\"Contact\\t: [email protected]\");\n\n }", "private void displayUsage() {\r\n System.err.println(\"\\nUSAGE: java -classpath ... \" + \"DiscourseImportTool\");\r\n System.err.println(\"Option descriptions:\");\r\n System.err.println(\"\\t-h\\t usage info\");\r\n System.err.println(\"\\t-e, email\\t send email if major failure\");\r\n System.err.println(\"\\t-b\\t batchSize number of items to batch during import\");\r\n System.err.println(\"\\t-discourse\\t discourse id to run the generator on\");\r\n System.err.println(\"\\t-project\\t project id to add discourse to\");\r\n }", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around in a dense woods.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "protected void helpPage() {\n \n System.out.println(\"Commands:\");\n System.out.println(\"\\tQ [filename]\\t\\t\\tquit and save to filename\"); \n System.out.println(\"\\t ~ is used for a space character\" ); \n System.out.println(\"\\tb [STRING] [INDEX]\\t\\tinsert [STRING] \" +\n \"before [INDEX]\");\n System.out.println(\"\\tr [START] [STOP]\\t\\tremove all charecters\" +\n \" from index start to stop\");\n System.out.println(\"\\td [CHAR]\\t\\t\\tremove all [CHAR] elements \" +\n \"in the list\");\n System.out.println(\"\\tr [CHAR1] [CHAR2]\\t\\treplace all \" + \n \"[CHAR1]'s with [CHAR2]\");\n System.out.println(\"\\tz\\t\\t\\t\\trandomly run other commands several\" +\n \" times\");\n System.out.println(\"\\tp [INDEX] [CLIPBOARD]\\t\\tpaste from \" +\n \"clipboard number [CLIPBOARD] to message index [INDEX]\");\n System.out.println(\"\\tc [START] [STOP] [CLIPBOARD]\\t\" + \n \"copy message values from index [START] to [STOP] to \" + \n \"clipboard [CLIPBOARD]\");\n System.out.println(\"\\tx [STOP] [START] [CLIPBOARD]\\tcut from \" +\n \"message index [START] to [STOP] to clipboard [CLIPBOARD]\");\n System.out.println(\"\\th\\t\\t\\t\\tmeans to show this help page\");\n }", "public String showHelp() {\n String helpMessage = \"I don't know nothin' about other commands but \"\n + \"here are the list of commands I understand!\\n\"\n + \"help: displays the list of commands available\\n\"\n + \"\\n\"\n + \"list: displays the list of tasks you have\\n\"\n + \"\\n\"\n + \"find *keyword*: displays the tasks with that keyword\\n\"\n + \"eg find karate\\n\"\n + \"\\n\"\n + \"todo *task description*: adds a task without any\\n\"\n + \"date/time attached to it\\n\" + \"eg todo scold spongebob\\n\"\n + \"\\n\"\n + \"deadline *task description* /by *date+time*: adds a\\n\"\n + \"task that needs to be done before a specific date and time\\n\"\n + \"(date and time to be written in yyyy-mm-dd HHMM format)\\n\"\n + \"eg deadline build spaceship /by 2019-10-15 2359\\n\"\n + \"\\n\"\n + \"event *task description* /at *date+time*: adds a task that\\n\"\n + \"starts at a specific time and ends at a specific time\\n\"\n + \"(date and time to be written in yyyy-mm-dd HHMM format)\\n\"\n + \"eg event karate competition /at 2019-10-15 1200\\n\"\n + \"\\n\"\n + \"done *task number*: marks the task with that number as done\\n\"\n + \"eg done 1\\n\"\n + \"\\n\"\n + \"delete *task number*: deletes the task with that number from the list\\n\"\n + \"eg delete 1\\n\"\n + \"\\n\"\n + \"update *task number* /name *task name*: updates the name of the task with \"\n + \"that number from the list\\n\" + \"update 1 /name help spongebob\\n\"\n + \"\\n\"\n + \"update *task number* /date *task date*: (only for deadline or event tasks!) \"\n + \"updates the date and time of the task with that number from the list\\n\"\n + \"update 1 /date 2020-02-20 1200\\n\"\n + \"\\n\"\n + \"bye: ends the session\";\n return helpMessage;\n }", "public void help() {\n System.out.println(\"Type 'commands' to list all \" +\n \"available commands\");\n System.out.println(\"Type 'start' to play game\");\n System.out.println(\"Player to remove the last stone loses!\");\n System.out.println();\n }", "protected void showUsage() {\n\n\tStringBuffer usage = new StringBuffer();\n\tusage.append(\"------------------------------------------------------\\n\");\n\tusage.append(\" \" + APP_NAME + \" \" + APP_VERSION + \"\\n\");\n\tusage.append(\"------------------------------------------------------\\n\");\n\tusage.append(\"Prints the Tool Kit name for the given Branch and \\n\");\n\tusage.append(\"Component.\\n\");\n\tusage.append(\"\\n\");\n\tusage.append(\"USAGE:\\n\");\n\tusage.append(\"------\\n\");\n\tusage.append(APP_NAME + \" <-c component> <-b branch> [-y] [-h] [-db dbMode]\\n\");\n\tusage.append(\"\\n\");\n\tusage.append(\" component = Component name (ess, pds, model, einstimer ...).\\n\");\n\tusage.append(\" branch = Branch name.\\n\");\n\tusage.append(\" -y = (optional) Verbose mode (echo messages to screen)\\n\");\n\tusage.append(\" dbMode = (optional) DEV | PROD (defaults to PROD)\\n\");\n\tusage.append(\" -h = Help (shows this information)\\n\");\n\tusage.append(\"\\n\");\n\tusage.append(\"Return Codes\\n\");\n\tusage.append(\"------------\\n\");\n\tusage.append(\" 0 = application ran ok\\n\");\n\tusage.append(\" 1 = application error\\n\");\n\tusage.append(\"\\n\");\n\n\tSystem.out.println(usage);\n\n }", "void help();", "private static String getUsage()\n {\n final StringBuilder usage = new StringBuilder(400);\n\n // Empty line before usage info\n usage.append(\"\\n \" \n // Describe commands/options\n + \"those <option> <command> <cmd-options> \\n\"\n + \" Options:\\n\"\n + \"\\t-v : Allows stack trace to be printed.\\n\" \n + \" Commands:\\n\"\n + getCreateUsage()\n + \" help\\n\" \n + \"\\t Displays this help message\\n\" \n + \" version\\n\" \n + \"\\t Displays the SDK version and supported Core APIs\\n\");\n\n return usage.toString();\n }", "@Override\n\tpublic String getHelp()\n\t{\n\t\treturn \"<html>Enter two before values and one after value<br>\"\n\t\t\t\t+ \"from the solution. Click the calculate button<br>\"\n\t\t\t\t+ \"to find the remaining after value.</html>\";\n\t}", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the prision.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n System.out.println(parser.showCommands());\n }", "public static void printHelpGuide() {\n printDivider();\n System.out.println(\"Help arrives!\\n\");\n printUserGuide();\n printDivider();\n }", "private void help() {\n System.out.println(\"PLACE X,Y,F #Placing the robot in (X,Y) facing F. \\n\" +\n \"\\tX and Y are numbers between 0 AND 5, F is NORTH, EAST, WEST, SOUTH directions\\n\" +\n \"MOVE #Move one position towards the current direction\\n\" +\n \"LEFT #Turn left\\n\" +\n \"RIGHT #Turn right\\n\" +\n \"REPORT #Prints current position and the direction\\n\" +\n \"HELP #Help menu\");\n }", "public static void showUsage() {\n System.out.printf(\"java app.App (-a | -r | -c | +WORD | ?WORD)\");\n }", "final private static void usage_print () {\n\t\tSystem.out.println (NAME + ' ' + VERSION + ' ' + COPYRIGHT) ;\n\t\tSystem.out.println () ;\n\n\t\tSystem.out.println (\n\t\t \"Usage: java bcmixin.Main [<options>] <modelname> <equationname>\"\n\t\t) ;\n\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\"where [<options>] include any of the following:\") ;\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\" -help\") ;\n\t\tSystem.out.println (\" Prints this helpful message, then exits.\") ;\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\" where <modelname> means the model name that you want to work on.\") ;\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\"where <equationname> provides the equation name, which must end with .equation.\") ;\n\t\tSystem.out.println () ;\n }", "private static void help() {\n\t\t\n\t\tTask[] taskList = createTaskList();\n\t\t\n\t\tSystem.out.println(\"\\n---------------------------------[ HELP ]--------\"\n\t\t\t\t+ \"------------------------------\\n\");\n\t\t\n\t\t// Post1 Display help (Polymorphism)\n\t\tfor (Task task : taskList) {\n\t\t\ttask.displayHelp();\n\t\t}\n\t\t\n\t}", "public static void showUsage() {\n System.out.println(\"Usage:\");\n System.out.println(\"java -jar jira-changelog-builder.jar <JIRA_URL> <JIRA_username> <JIRA_password> <JIRA_project_key> <version> <template_list> [<flags>]\");\n System.out.println(\"<JIRA_URL>: The URL of the JIRA instance (e.g. https://somecompany.atlassian.net).\");\n System.out.println(\"<JIRA_username>: The username used to log into JIRA.\");\n System.out.println(\"<JIRA_password>: The password used to log into JIRA.\");\n System.out.println(\"<JIRA_project_key>: The key of the project in JIRA.\");\n System.out.println(\"<version>: Specifies up to which version the changelog should be generated.\");\n System.out.println(\"<template_root>: The path on disk to the directory that contains the template files.\");\n System.out.println(\"<template_list>: A CSV list of template file names. Each templated changelog is saved into a new file which can be processed at a later stage.\");\n System.out.println(\"<flags> (optional): One or more of the following flags:\");\n // TODO: If this JQL causes no issues to be returned, it causes a hard\n // error. Handle this more nicely.\n System.out.println(\"\\t--jql 'some arbitrary JQL': Append the given JQL to the issue filter. eg 'status = \\\"Ready for Build\\\"'\");\n System.out.println(\"\\t--object-cache-path /some/path: The path on disk to the cache, if you do not use this, no cache will be used. Using a cache is highly recommended.\");\n System.out.println(\"\\t--debug: Print debug/logging information to standard out. This will also force errors to go to the standard out and exit with code 0 rather than 1.\");\n System.out.println(\"\\t--changelog-description-field 'field_name': The name of the field in JIRA you wish to use as the changelog description field. If you do not use this, it will default to the summary field.\");\n System.out.println(\"\\t--eol-style (NATIVE|CRLF|LF): The type of line endings you wish the changelog files to use. Valid values are NATIVE (system line endings), CRLF (Windows line endings) or LF (UNIX line endings). If you do not use this, the changelogs will use the default system line endings.\");\n System.out.println(\"\\t--version-starts-with 'Version name prefix': Only display versions in the changelog that have a name starting with 'Version name prefix'. This cannot be used with --version-less-than-or-equal. This is useful for restricting what goes in the changelog if you are producing different version side-by-side.\");\n System.out.println(\"\\t--version-less-than-or-equal 'Version name': Only display versions in the changelog that have a name less than or equal to 'Version name'. This cannot be used with --version-starts-with. This uses a Java string comparison. This is useful for restricting what goes in the changelog if you are producing different version side-by-side.\");\n }", "private static void DisplayHelp() {\r\n System.out.println();\r\n System.out.println(\"Usage: Consumes messages from a topic/queue\");\r\n System.out.println();\r\n System.out.println(\" SampleConsumerJava [ < response_file ]\");\r\n System.out.println();\r\n return;\r\n }", "@Override\r\n\tpublic String getHelp() {\n\t\treturn \"QUIT|SALIR\";\r\n\t}", "public String getUsage() {\n return \"robot repair --input <file> \" + \"--output <file> \" + \"--output-iri <iri>\";\n }", "private static void printUsage() {\n\t\tSystem.out.println(\"Usage: java UniqueUniqueChromosomeReconstructor [-h] input_file\");\n\t\tSystem.out.println(\" -h: Print usage information\");\n\t\tSystem.out.println(\" input_file: File containing input sequence data\");\n\t}", "private static void help() {\n System.out.println(USAGE); \n System.exit(0);\n }", "@Override\n public Optional<Text> getShortDescription(CommandSource source) {\n return desc;\n }", "public String usage()\n {\n return (\"Common [optional] options supported by Minitest:\\n\"\n + \"(Note: assumes inputDir=.\\\\tests\\\\api)\\n\"\n + super.usage()); // Grab our parent classes usage as well\n }", "private static void printUsage()\n {\n HelpFormatter hf = new HelpFormatter();\n String header = String.format(\n \"%nAvailable commands: ring, cluster, info, cleanup, compact, cfstats, snapshot [name], clearsnapshot, bootstrap\");\n String usage = String.format(\"java %s -host <arg> <command>%n\", NodeProbe.class.getName());\n hf.printHelp(usage, \"\", options, header);\n }", "private void print_help_and_exit() {\n System.out.println(\"A bunch of simple directus admin cli commands\");\n System.out.println(\"requires DIRECTUS_API_HOST and DIRECTUS_ADMIN_TOKEN environment variables to be set\");\n System.out.println();\n\n COMMAND_METHODS.values().forEach(c -> {\n for (String desriptionLine : c.descriptionLines) {\n System.out.println(desriptionLine);\n }\n System.out.println();\n });\n\n System.out.println();\n System.exit(-1);\n }", "private void printHelp(Options options) {\n HelpFormatter formatter = new HelpFormatter();\n formatter.setWidth(79);\n formatter.setOptionComparator(Comparator.comparingInt(this::getOptionOrder));\n formatter.printHelp(\"protostuff-compiler [options] proto_files\", options);\n }", "void printUsage(){\n\t\tSystem.out.println(\"Usage: RefactorCalculator [prettyPrint.tsv] [tokenfile.ccfxprep] [cloneM.tsv] [lineM.tsv]\");\n\t\tSystem.out.println(\"Type -h for help.\");\n\t\tSystem.exit(1); //error\n\t}", "@Override\n\tpublic String textHelp() {\n\t\treturn \" HELP: Muestra esta ayuda.\"+\n\t\t\t\tSystem.getProperty(\"line.separator\");\n\t}", "private void printHelp()//Method was given\n {\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "public void displayHelp() {\n io.println(\"To insert a new CNF use the following format: \\n1 2; -1 2; 3 1; -3 2\");\n io.println(\"Where each number represents a variable. If the number has a minus sign in front it means it is the negation of that variable.\");\n io.println(\"Each disjunction pair is separated by a semicolon so for example above looks in mathematical form:\");\n io.println(\"(x\" + UnicodeUtil.numbers[1] + \" \" + UnicodeUtil.disjunction + \" x\" + UnicodeUtil.numbers[2] + \") \" + UnicodeUtil.conjunction + \" (\" + UnicodeUtil.negation\n + \"x\" + UnicodeUtil.numbers[1] + \" \" + UnicodeUtil.disjunction + \" x\" + UnicodeUtil.numbers[2] + \") \" + UnicodeUtil.conjunction + \" (x\" + UnicodeUtil.numbers[3] + \" \"\n + UnicodeUtil.disjunction + \" x\" + UnicodeUtil.numbers[1] + \") \" + UnicodeUtil.conjunction + \" (\" + UnicodeUtil.negation + \"x\" + UnicodeUtil.numbers[3] + \" \" + UnicodeUtil.disjunction + \" x\" + UnicodeUtil.numbers[2] + \")\");\n io.println(\"Note that this is a 2SAT-solver so each disjunction can hold just two variables.\");\n }", "private static void printCliHelp(String message) {\n \t\tSystem.out.println(message);\n \t\tHelpFormatter formatter = new HelpFormatter();\n\t\tformatter.printHelp(\"java -jar OsmPbfMetadata.jar\", createOptions());\n \t\tSystem.exit(-1);\n \t}", "public void printUsage() {\n System.out.println(\"\\nHelp Invoked on \");\n System.out.println(\"[-hfs] \");\n System.out.println(\"\");\n\n System.out.println(\"Usage: \");\n System.out.println(\"-d [true|false]\");\n System.out.println(\"-f URL-file-pathame\");\n System.out.println(\"-h: invoke help\");\n System.out.println(\"-i: URL-list-input-source [ DEFAULT | USER | FILE ]\");\n System.out.println(\"-s URL-list-separator\");\n }", "@Override\n public Optional<Text> getHelp(CommandSource source) {\n return help;\n }", "public String getHelp() {\r\n String res = \"You can use the following commands:\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"north\\\" to go towards the north\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"south\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"east\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"west\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"attack\\\" to attack a monster\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"look\\\" to look around in the room\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"search\\\" to search the room for treasure\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"use\\\" to use somthing in your inventory\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"gear\\\" to see what gear you got equipped\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"inventory\\\" to see what gear you have in your inventory\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"savegame\\\" to save your progress\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"stop\\\" to quit the game.\" + System.lineSeparator();\r\n return res;\r\n }", "@Override\n public String getHelp() {\n return name;\n }", "public static String helpText() {\n return \"Company options:\\n\"\n + String.format(\"%-80s %s\\n\", \"list\", \"Lists whole company\")\n + String.format(\"%-80s %s\\n\", \"add [first name] [surname] [male|female] [birth date (dd.mm.yyyy)] [position]\", \"Creates new employee\")\n + String.format(\"%-80s %s\\n\", \"delete [id]\", \"Deletes employee with specified id\")\n + String.format(\"%-80s %s\\n\", \"sort --first_name\", \"Sort employees by first name\")\n + String.format(\"%-80s %s\\n\", \"sort --age\", \"Sort employees by age\")\n + String.format(\"%-80s %s\\n\", \"export\", \"Export current state of company to YAML file\")\n + String.format(\"%-80s %s\\n\", \"exit\", \"Exit the program\")\n + String.format(\"%-80s %s\\n\", \"help\", \"Show this help text\");\n }", "private void help() {\n for (GameMainCommandType commandType : GameMainCommandType.values()) {\n System.out.printf(\"%-12s%s\\n\", commandType.getCommand(), commandType.getInfo());\n }\n System.out.println();\n }", "private static void printUsage(){\n\t\tprintLine(USAGE_STRING);\n\t}", "public void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n System.out.println(\" go quit help\");\n }", "public String getLongDescription()\n {\n return description + \".\\n\" + getExitString();\n }", "private static void help() {\n HelpFormatter formater = new HelpFormatter();\n formater.printHelp(\"SGD-SVM\", options);\n System.exit(0);\n }", "public String textHelp() {\r\n\t\t\r\n\t\treturn \" QUIT: Fin del programa \" + System.getProperty(\"line.separator\");\r\n\t}", "Argument help(String help);", "private static void printUsage() \r\n\t{\r\n\t\tSystem.err.println(\"Usage: java GeneBankSearch \"\r\n\t\t\t\t+ \"<0/1(no/with Cache)> <btree file> <query file> \"\r\n\t\t\t\t+ \"[<cache size>] [<debug level>]\\n\");\r\n\t\tSystem.exit(1); \r\n\t}", "private static void displayHelp(){\n System.out.println(\"-host hostaddress: \\n\" +\n \" connect the host and run the game \\n\" +\n \"-help: \\n\" +\n \" display the help information \\n\" +\n \"-images: \\n\" +\n \" display the images directory \\n\" +\n \"-sound: \\n\" +\n \" display the sounds file directory \\n\"\n\n );\n }", "protected String getHelpText() {\n return \"\";\n }", "@Override\n\tpublic String getDescription() {\n\t\treturn \"?\";\n\t}", "private static void printHelp() {\n getConsole().println(\"Keycheck\\n\" +\n \"\\n\" +\n \"Usage:\\n\" +\n \" keycheck.jar parameter1 parameter2 ... file1 file2 ...\\n\" +\n \"Example:\\n\" +\n \" java -jar keycheck.jar -\" + PARAMETER_BASE + \" -\" + PARAMETER_BITS + \" file1.csv file2.csv\" +\n \"\\n\" +\n \"Parameters:\\n\" +\n \" -\" + PARAMETER_GENERATE + \" [512|1024] Generate \" + GENERATED_KEY_COUNT + \" keys\\n\" +\n \" -\" + PARAMETER_NEW_FORMAT + \" New format will be use to load keys from file\\n\" +\n \" -\" + PARAMETER_TRANSFORM + \" Transform all keys to new format to file 'CARD_ICSN.csv'\\n\" +\n \" -\" + PARAMETER_BASE + \" Check base stats of keys\\n\" +\n \" -\" + PARAMETER_BITS + \" Generate statistics for all bits\\n\" +\n \" -\" + PARAMETER_BYTES + \" Generate statistics for all bytes\\n\" +\n \" -\" + PARAMETER_DIFFERENCE + \" Check primes difference\\n\" +\n \" -\" + PARAMETER_STRENGTH + \" Check primes strength\\n\" +\n \" -\" + PARAMETER_TIME + \" Generate time statistics\\n\" +\n \" -\" + PARAMETER_ALL + \" Generate all statistics and check all tests.\\n\");\n }", "@Override\r\n\tprotected String getProjectHelpId() {\n\t\treturn null;\r\n\t}", "public static void mainText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'STU' 3.'FAC' 4.SQL query 5.'MORE' -for more detail about options\");\n\t}", "private static void printHelp(Options options) {\n HelpFormatter formatter = new HelpFormatter();\n String header = \"Generates the JSON file to send to Drupal.\";\n formatter.printHelp(120, \"drupal-builder\", header, options, \"\", true);\n }", "void showFullDesc(String desc, String title);", "public String getDescription()\r\n {\r\n return \"Approver of the task \"+taskName();\r\n }", "private void helpCommand() {\n output.println(\"HELP COMMAND\");\n output.println(\"read tasks: 'r all/today/before/after', write new task: 'w dd/mm/yyyy taskName' (wrong format of date -> default today date)\");\n }", "private void printHelp(Options options) {\n\t\tHelpFormatter formatter = new HelpFormatter();\r\n\t\tString header = \"CLI for Message Counter program\\n\\n\";\r\n\t\tString footer = \"End of the help\\n\";\r\n\t\tformatter.printHelp(\"ChatCounter\", header, options, footer, true);\r\n\t}" ]
[ "0.6590335", "0.65696126", "0.65671605", "0.65531576", "0.65358853", "0.6501784", "0.64890885", "0.64616996", "0.64579993", "0.64411384", "0.64304924", "0.641874", "0.6385058", "0.6378507", "0.6352272", "0.6351224", "0.6341673", "0.6329368", "0.6327404", "0.63151044", "0.63074005", "0.6281227", "0.62782395", "0.6276811", "0.62629044", "0.62193835", "0.6213836", "0.62113196", "0.6203554", "0.62003946", "0.6182834", "0.6166948", "0.616659", "0.6158241", "0.615526", "0.615521", "0.61542034", "0.61520875", "0.6146708", "0.6141547", "0.6141547", "0.6141434", "0.61364275", "0.6132798", "0.61298794", "0.6126054", "0.6117101", "0.6115228", "0.61118466", "0.6108396", "0.60990834", "0.60977614", "0.6084888", "0.60825646", "0.6081906", "0.608108", "0.6073098", "0.60729915", "0.60448754", "0.6038038", "0.60373104", "0.603399", "0.60128087", "0.60014194", "0.59940183", "0.5993682", "0.59753656", "0.59638625", "0.5963153", "0.5959788", "0.59584147", "0.59525543", "0.5950203", "0.593771", "0.59300655", "0.59265286", "0.59235513", "0.5922362", "0.5910369", "0.59016526", "0.5892911", "0.5875344", "0.5864163", "0.58632445", "0.5859429", "0.58520526", "0.5838707", "0.5819715", "0.581784", "0.5805845", "0.57999384", "0.5789358", "0.5778847", "0.57738006", "0.57666624", "0.5764854", "0.5759423", "0.5750348", "0.5748514", "0.57451314" ]
0.8395888
0
Configure the (bug instance) Filter for the given DelegatingBugReporter.
public static BugReporter configureFilter(BugReporter bugReporter, String filterFileName, boolean include) throws IOException, FilterException { Filter filter = new Filter(filterFileName); return new FilterBugReporter(bugReporter, filter, include); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init(FilterConfig config) {}", "@Override\n public void init(FilterConfig config) {\n }", "private void attachFilter(Appender<ILoggingEvent> appender, FilterInfo fi){\n if(!appender.getCopyOfAttachedFiltersList().contains(fi.filter)){\n appender.addFilter(fi.filter);\n }\n }", "public void addFilter(final Filter filter) {\n privateConfig.config.addLoggerFilter(this, filter);\n }", "@Override\n\tpublic void init(FilterConfig filterConfig) {\n\n\t}", "public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }", "public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }", "public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }", "public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }", "public void init(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }", "private LogFilter() {\n\t\tacceptedEventTypes = new HashMap<String, Integer>();\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\tthis.config = filterConfig;\n\t}", "private void populateFilter() throws TransformerConfigurationException\r\n\t{\r\n\t\tthis.filter = new AddressSet(\"./filtered.xml\");\r\n\t\tthis.filter.addElement(\"postmaster\");\r\n\t\tthis.filter.addElement(\"uucp\");\r\n\t\tthis.filter.addElement(\"mailer-daemon\");\r\n\t\tthis.filter.addElement(\"maildaemon\");\r\n\t\tthis.filter.addElement(\"majordomo\");\r\n\t\tthis.filter.addElement(\"mailerdaemon\");\r\n\t\tthis.filter.addElement(\"abuse@\");\r\n\t\tthis.filter.addElement(\"-relay\");\r\n\t\tthis.filter.addElement(\"-request@\");\r\n\t}", "@Inject\n\tpublic Filters(CORSFilter corsFilter) {\n\t\tsuper(corsFilter);\n\t}", "void setFilter(Filter f);", "void setFilter(final PropertiedObjectFilter<O> filter);", "public void init(FilterConfig filterConfig) throws ServletException {\r\n }", "private void createDelegate() throws ServletException {\n if (enabled == null || !enabled) {\n log.info(\"CORS support is disabled.\");\n return;\n }\n\n // Get the allowed origins from the backend configuration:\n final String allowedOriginsConfig = (String) getBackendParameter(ConfigValues.CORSAllowedOrigins);\n final Set<String> allowedDefaultOrigins = getDefaultAllowedOrigins();\n final String allowedOrigins = mergeOrigins(allowedOriginsConfig, allowedDefaultOrigins);\n if (StringUtils.isEmpty(allowedOrigins)) {\n log.warn(\n \"The CORS support has been enabled, but the list of allowed origins is empty. This means that CORS \" +\n \"support will actually be disabled.\"\n );\n return;\n }\n log.info(\"CORS support is enabled for origins \\\"{}\\\".\", allowedOrigins);\n\n if (delegate == null || !allowedDefaultOrigins.equals(oldAllowedOrigins)) {\n // Create new CORSFilter() only if needed\n oldAllowedOrigins = allowedDefaultOrigins;\n\n // Populate the parameters for the delegate:\n final Map<String, String> parameters = new HashMap<>();\n parameters.put(CORSFilter.PARAM_CORS_ALLOWED_METHODS, \"GET,POST,PUT,DELETE\");\n parameters.put(CORSFilter.PARAM_CORS_ALLOWED_HEADERS, \"Accept,Authorization,Content-Type\");\n parameters.put(CORSFilter.PARAM_CORS_ALLOWED_ORIGINS, allowedOrigins);\n\n // Add all the parameters of this filter to those passed to the delegate, so that the user can override the\n // configuration modifying the web.xml file:\n final Enumeration<String> names = config.getInitParameterNames();\n while (names.hasMoreElements()) {\n final String name = names.nextElement();\n final String value = config.getInitParameter(name);\n parameters.put(name, value);\n }\n\n // Create the delegate and initialize with the prepared parameters:\n delegate = new CORSFilter();\n delegate.init(\n new FilterConfig() {\n @Override\n public String getFilterName() {\n return config.getFilterName();\n }\n\n @Override\n public ServletContext getServletContext() {\n return config.getServletContext();\n }\n\n @Override\n public String getInitParameter(String name) {\n return parameters.get(name);\n }\n\n @Override\n public Enumeration<String> getInitParameterNames() {\n return Collections.enumeration(parameters.keySet());\n }\n }\n );\n }\n }", "public void init(FilterConfig config) {\n\t\tthis.config = config;\n\t\tSystem.out.println(\"init method of the \" + this.config.getFilterName() + \" filter is invoked.\");\n\t}", "@Override\n\tpublic void init(FilterConfig config) throws ServletException {\n\t\tthis.filterConfig=config;\n\t}", "@Override\n\tpublic void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void addFilter(MessageFilter filter);", "protected void postInit(Dispatcher dispatcher, FilterConfig filterConfig) {\n }", "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }", "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }", "public void init(FilterConfig filterConfig) throws ServletException {\n\r\n\t}", "public void init(FilterConfig filterConfig) throws ServletException {\n\r\n\t}", "void addDocumentFilter(DocumentFilter documentFilter) {\r\n\t\t((AbstractDocument) document).setDocumentFilter(documentFilter);\r\n\t}", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\r\n\t}", "public void addBusinessFilterToCreator(ViewerFilter filter);", "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }", "@Override\r\n public void init(FilterConfig filterConfig) throws ServletException {\n }", "public void addBusinessFilterToAnotations(ViewerFilter filter);", "public void addBusinessFilterToAnotations(ViewerFilter filter);", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t}", "public ValidatorFilter() {\n\n\t}", "public ExceptionFilter$$anonfun$doFilter$10(ExceptionFilter $outer, ObjectRef cause$1) {}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n\n }", "@Required\n public void setXmlFilterFactory(XmlFilterFactory xmlFilterFactory) {\n this.xmlFilterFactory = xmlFilterFactory;\n }", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "protected void configureViewer(final TreeViewer treeViewer) {\n \t\tconfigureViewerFilter(treeViewer);\n \t}", "public void addFilterToAnotations(ViewerFilter filter);", "public void addFilterToAnotations(ViewerFilter filter);", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\r\n\t}", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\r\n\t}", "interface WithFilter {\n /**\n * Specifies the filter property: Information about the filter for the event channel..\n *\n * @param filter Information about the filter for the event channel.\n * @return the next definition stage.\n */\n WithCreate withFilter(EventChannelFilter filter);\n }", "public void addBusinessFilterToMethodArguments(ViewerFilter filter);", "public void init(FilterConfig filterConfig) { \n this.filterConfig = filterConfig;\n if (filterConfig != null) {\n if (DEBUG) { \n log(\"HttpsRedirectFilter:Initializing filter\");\n Debug.println(\"HttpsRedirectFilter:Initializing filter\");\n }\n }\n }", "FilterInfo setCanaryFilter(String filter_id, int revision);", "public LogFilter() {}", "public void setContactFilter(Filter filter);", "@Override\n\tpublic void init(FilterConfig config) throws ServletException {\n\n\t}", "public static BugReporter configureBaselineFilter(BugReporter bugReporter, String baselineFileName) throws IOException,\n DocumentException {\n return new ExcludingHashesBugReporter(bugReporter, baselineFileName);\n }", "public void init(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n if (filterConfig != null) {\n if (debug) {\n log(\"RequestQueryFilter:Initializing filter\");\n }\n }\n }", "@Override\r\n\t\tpublic void setColorFilter(ColorFilter cf)\r\n\t\t{\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\r\n\t}", "void registerFilterListener(FilterListener listener);", "public PreOauth2SSOGatewayFilter() {\n super(Config.class);\n }", "public ChainFilterFactory(FilterFactory... factories) {\n this.chainedFactories = ImmutableList.copyOf(factories);\n }", "public void init(FilterConfig config) throws ServletException {\n }", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\tint corePoolSize=3; //最小线程数目\n\t\tint maximumPoolSize=10; //最大线程数\n\t\t//loggerThreadPool=new ThreadPoolExecutor(corePoolSize, maximumPoolSize, 60, TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(1000));\n\t\tif(logService==null){\n\t\t\t WebApplicationContext webApplicationContext =ContextLoader.getCurrentWebApplicationContext(); \n\t\t\t logService= (UserOperationLogService) webApplicationContext.getBean(UserOperationLogService.class);\n\t\t}\n\t\t\n\t\t\n\t\t//初始化一些不用拦截的url\n\t\tif(noInterceptUrlRegxList==null){\n\t\t\tnoInterceptUrlRegxList=new ArrayList<Pattern>();\n\t\t\tString noInterceptUrl=filterConfig.getInitParameter(\"noInterceptUrlRegx\");\n\t\t\tString[] noInterceptUrlArr=noInterceptUrl.split(\",\");\n\t\t\tfor (String patternStr: noInterceptUrlArr) {\n\t\t\t\tPattern pattern=Pattern.compile(patternStr);\n\t\t\t\tnoInterceptUrlRegxList.add(pattern);\n\t\t\t}\n\t\t}\n\n\t}", "public void addFilterToCreator(ViewerFilter filter);", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "public void init(FilterConfig arg0) throws ServletException {\n\t\t\n }", "@Override\n public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, Filter filter) {\n return null;\n }", "void addRecipeFilter(RecipeFilter recipeFilter);", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t}" ]
[ "0.5617145", "0.551376", "0.54580456", "0.5450719", "0.54025954", "0.53629166", "0.53629166", "0.53629166", "0.53629166", "0.5311046", "0.530764", "0.5279454", "0.522974", "0.520982", "0.5174118", "0.51336426", "0.512299", "0.5120708", "0.50677925", "0.50603706", "0.5038529", "0.50361645", "0.5029801", "0.501604", "0.501604", "0.5012599", "0.5012599", "0.5008678", "0.5005846", "0.50057155", "0.50057155", "0.50057155", "0.50057155", "0.49915102", "0.49883586", "0.49820125", "0.49698538", "0.49698538", "0.4958211", "0.49542385", "0.49520263", "0.4947431", "0.4947431", "0.4947431", "0.4947431", "0.4947431", "0.4947431", "0.4947431", "0.4947431", "0.4947431", "0.4947431", "0.49469146", "0.49364373", "0.4935688", "0.4928072", "0.4928072", "0.49188644", "0.49188644", "0.49188644", "0.49188644", "0.49188644", "0.49188644", "0.49188644", "0.49188644", "0.49188644", "0.49135756", "0.49103183", "0.49103183", "0.4904689", "0.4904689", "0.49016672", "0.48752472", "0.4871814", "0.48472503", "0.48409462", "0.48373252", "0.48363018", "0.48254743", "0.4820883", "0.4819291", "0.4818235", "0.48077682", "0.48070967", "0.48047408", "0.4803016", "0.48012942", "0.4800381", "0.4794817", "0.4794817", "0.4794817", "0.4794817", "0.4794817", "0.4794817", "0.4794817", "0.4794817", "0.4794817", "0.47929665", "0.4792688", "0.47918504", "0.47905558" ]
0.6418222
0
Configure a baseline bug instance filter.
public static BugReporter configureBaselineFilter(BugReporter bugReporter, String baselineFileName) throws IOException, DocumentException { return new ExcludingHashesBugReporter(bugReporter, baselineFileName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void init(FilterConfig config) {\n }", "@Override\n\t\t\tpublic void setColorFilter(ColorFilter cf) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\tpublic void setColorFilter(ColorFilter cf)\r\n\t\t{\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) {\n\n\t}", "@Override\n\tpublic void setColorFilter(ColorFilter cf) {\n\n\t}", "void setFilter(Filter f);", "private void setEdgeFilter() {\n FilterPostProcessor fpp = new FilterPostProcessor(assetManager);\n CartoonEdgeFilter toon = new CartoonEdgeFilter();\n toon.setEdgeWidth(2);\n fpp.addFilter(toon);\n this.getViewPort().addProcessor(fpp);\n \n }", "public void init(FilterConfig config) {}", "public Filter () {\n\t\tsuper();\n\t}", "@Override\n public void setColorFilter(ColorFilter colorFilter) {}", "public void setEdgeAttributeFilter( AttributeFilter filter )\n \t{\n \t\tedgeAttributeFilter = filter;\n \t}", "public LancasterFilterFactory(Map<String, String> args) {\n super(args);\n\n }", "public void setFilter(String filter)\n {\n filteredFrames.add(\"at \" + filter);\n }", "void setSampleFiltering(boolean filterFlag, float cutoffFreq) {\n }", "public LogFilter() {}", "public void init(FilterConfig config) {\n\t\tthis.config = config;\n\t\tSystem.out.println(\"init method of the \" + this.config.getFilterName() + \" filter is invoked.\");\n\t}", "public DOMBreakpointCustomizer() {\n this (createBreakpoint ());\n createBreakpoint = true;\n }", "public PreOauth2SSOGatewayFilter() {\n super(Config.class);\n }", "public ExternalFilter() {\n\t\treset();\n\t\tenable_filter(true);\n\t\tset_sampling_parameter(15915.6);\n\t\tset_chip_model(ISIDDefs.chip_model.MOS6581);\n\t}", "public void setPointAttributeFilter( AttributeFilter filter )\n \t{\n \t\tpointAttributeFilter = filter;\n \t}", "public void doInitFilterPattern() {\n if (includeRegex != null) {\n includePattern = Pattern.compile(includeRegex);\n }\n }", "public DefaultVideoFrameRenderFilter() {\n this(null);\n }", "public ValidatorFilter() {\n\n\t}", "@Test\n @DisplayName(\"Test appending configuration with filter.\")\n void testAppendConfigWithFilter() throws Exception {\n logger.info(\"Testing appending configuration containing filters \");\n List<String> checkIncluded = new ArrayList<>();\n checkIncluded.add(\"app=\\\"myear1\\\"\");\n List<String> checkExcluded = new ArrayList<>();\n checkExcluded.add(\"app=\\\"wls-exporter\\\"\");\n\n replaceConfigurationWithFilter(RESOURCE_DIR\n + \"/exporter/rest_filter_excluded_webapp_name.yaml\",checkIncluded, checkExcluded);\n appendConfiguration(RESOURCE_DIR\n + \"/exporter/rest_filter_excluded_servlet_name.yaml\");\n logger.info(\"Verify metrics configuration has not change\");\n checkIncluded.add(\"servletName=\\\"JspServlet\\\"\");\n verifyMetrics(checkIncluded, checkExcluded);\n }", "public PipelineFilter()\n {\n }", "public void setFilter(Filter f){\r\n\t\tthis.filtro = new InputFilter(f);\r\n\t}", "FeatureHolder filter(FeatureFilter filter);", "protected void setUp() {\r\n columnNames = new HashMap();\r\n columnNames.put(DbBaseFilterFactory.CREATION_DATE_COLUMN_NAME, \"creation_date\");\r\n columnNames.put(DbBaseFilterFactory.MODIFICATION_DATE_COLUMN_NAME, \"modification_date\");\r\n columnNames.put(DbBaseFilterFactory.CREATION_USER_COLUMN_NAME, \"creation_user\");\r\n columnNames.put(DbBaseFilterFactory.MODIFICATION_USER_COLUMN_NAME, \"modification_user\");\r\n\r\n instance = new DbBaseFilterFactory(columnNames);\r\n }", "@Override\r\n\tpublic void init(FilterConfig arg0) throws ServletException {\r\n\t\tSystem.out.println(\"[\" + Calendar.getInstance().getTime() + \"] Iniciando filter\");\r\n\t}", "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }", "@Override\n\tpublic void init(FilterConfig fConfig) throws ServletException {\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\tthis.config = filterConfig;\n\t}", "public ExtensibleMatchFilter()\n {\n super();\n }", "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }", "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }", "public void init(FilterConfig filterConfig) throws ServletException {\r\n }", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\r\n\t}", "@Override\r\n public void init(FilterConfig filterConfig) throws ServletException {\n }", "private FilterBar() {\n\t\t\n\t\tsuper(15);\n\t\tthis.setStyle(\"-fx-background-color: #FFFFFF;\");\n\t\tthis.setPadding(new Insets(25, 25, 25, 25));\n\t\t\n\t\taddNodes();\n\t\taddListeners();\n\t\t\n\t}", "FilterInfo setCanaryFilter(String filter_id, int revision);", "public void init(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }", "private RuntimeFilterBDef(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\r\n\t}", "public Filters() {\n }", "public GraphEdgeFilter() {\r\n this(true);\r\n }", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\t\n\t}", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t}", "@Override\n\tpublic void filterChange() {\n\t\t\n\t}", "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 }", "CompiledFilter() {\n }", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "public void addFilterToCreator(ViewerFilter filter);", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\tSystem.out.println(\"╔˙│╔filter\");\n\t}", "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n\n }", "@Override\r\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\r\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\tSystem.out.print(\"过滤器初始化\");\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\t\n\t}", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\r\n\t}", "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\r\n\t}", "public static BugReporter configureFilter(BugReporter bugReporter, String filterFileName, boolean include)\n throws IOException, FilterException {\n Filter filter = new Filter(filterFileName);\n return new FilterBugReporter(bugReporter, filter, include);\n\n }", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "public void addFilterToAnotations(ViewerFilter filter);", "public void addFilterToAnotations(ViewerFilter filter);", "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\tSystem.out.print(\"过滤初始\");\n\t}", "@Override\n public void setFilterBitmap(boolean filter) {\n patternDrawable.setFilterBitmap(filter);\n super.setFilterBitmap(filter);\n }", "FilterInfo setFilterActive(String filter_id, int revision) throws Exception;", "public void init(FilterConfig filterConfig) throws ServletException {\n\r\n\t}", "public void init(FilterConfig filterConfig) throws ServletException {\n\r\n\t}", "public native void setFilter(int filter) throws MagickException;", "public void addBusinessFilterToCreator(ViewerFilter filter);" ]
[ "0.5609066", "0.55403817", "0.54551554", "0.5445116", "0.542127", "0.54132557", "0.53788584", "0.53618693", "0.5345053", "0.5306118", "0.52662605", "0.52583724", "0.52452725", "0.5236118", "0.5218175", "0.5210644", "0.521042", "0.5198641", "0.5120524", "0.51074344", "0.51032084", "0.5075458", "0.5071154", "0.50675935", "0.50402516", "0.5014881", "0.5001281", "0.49988145", "0.4995355", "0.49893498", "0.49814042", "0.49812788", "0.49720776", "0.49609697", "0.49609697", "0.49548632", "0.49471653", "0.49471653", "0.49471653", "0.49471653", "0.49350548", "0.49334088", "0.4931563", "0.4926843", "0.49195856", "0.49156398", "0.49124062", "0.49096373", "0.490783", "0.490783", "0.4901583", "0.4899943", "0.48972696", "0.4894973", "0.4894828", "0.4894828", "0.4894828", "0.4894828", "0.4894828", "0.4894828", "0.4894828", "0.4894828", "0.4894828", "0.48942375", "0.4892122", "0.48867196", "0.48840907", "0.48675722", "0.48664594", "0.48527318", "0.48527318", "0.48527318", "0.48527318", "0.48527318", "0.48527318", "0.48527318", "0.48527318", "0.48527318", "0.48506668", "0.48506668", "0.48504338", "0.48501894", "0.48501894", "0.48501894", "0.48501894", "0.48501894", "0.48501894", "0.48501894", "0.48501894", "0.48501894", "0.48501894", "0.4847571", "0.4847571", "0.4847171", "0.4846803", "0.48461488", "0.4837707", "0.4837707", "0.48372644", "0.48307723" ]
0.60425705
0
Configure the BugCollection (if the BugReporter being used is constructing one).
public static void configureBugCollection(IFindBugsEngine findBugs) { BugCollection bugs = findBugs.getBugReporter().getBugCollection(); if (bugs != null) { bugs.setReleaseName(findBugs.getReleaseName()); Project project = findBugs.getProject(); String projectName = project.getProjectName(); if (projectName == null) { projectName = findBugs.getProjectName(); project.setProjectName(projectName); } long timestamp = project.getTimestamp(); if (FindBugs.validTimestamp(timestamp)) { bugs.setTimestamp(timestamp); bugs.getProjectStats().setTimestamp(timestamp); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDetectorFactoryCollection(DetectorFactoryCollection detectorFactoryCollection) {\n this.detectorFactoryCollection = detectorFactoryCollection;\n }", "public void setBugs(double bugs) {\r\n this.bugs = bugs;\r\n }", "public BugExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private OIFitsCollectionManager() {\n super();\n\n this.jf = JAXBFactory.getInstance(OIFITS_EXPLORER_MODEL_JAXB_PATH);\n\n logger.debug(\"OIFitsCollectionManager: JAXBFactory: {}\", this.jf);\n\n this.oiFitsCollectionManagerEventNotifierMap = new EnumMap<OIFitsCollectionManagerEventType, EventNotifier<OIFitsCollectionManagerEvent, OIFitsCollectionManagerEventType, Object>>(OIFitsCollectionManagerEventType.class);\n\n int priority = 0;\n EventNotifier<OIFitsCollectionManagerEvent, OIFitsCollectionManagerEventType, Object> eventNotifier;\n\n for (OIFitsCollectionManagerEventType eventType : OIFitsCollectionManagerEventType.values()) {\n // false argument means allow self notification:\n final boolean skipSourceListener = (eventType != OIFitsCollectionManagerEventType.COLLECTION_CHANGED);\n\n eventNotifier = new EventNotifier<OIFitsCollectionManagerEvent, OIFitsCollectionManagerEventType, Object>(eventType.name(), priority, skipSourceListener);\n\n this.oiFitsCollectionManagerEventNotifierMap.put(eventType, eventNotifier);\n priority += 10;\n }\n\n // listen for COLLECTION_CHANGED event to analyze collection and fire initial events:\n getOiFitsCollectionChangedEventNotifier().register(this);\n\n // reset anyway:\n reset();\n }", "public void setUpData(final FeatureCollection collection) {\n if (map == null) {\n return;\n }\n featureCollection = collection;\n setupSource();\n setUpImage();\n setUpMarkerLayer();\n // setupClusterSource();\n setUpInfoWindowLayer();\n\n }", "public void setBugCategory(String bugCategory) {\n\t\tthis.bugCategory = bugCategory;\n\t}", "@Override\n protected List<ConfigIssue> init() {\n List<ConfigIssue> issues = super.init();\n\n // Connect to Couchbase DB\n LOG.info(\"Connecting to Couchbase \" + config.version + \" with details: \" + config.URL + \" \" + config.bucket);\n\n // Check Couchbase Version\n try {\n if (config.version == CouchbaseVersionTypes.VERSION4) {\n connector = CouchbaseConnector.getInstance(\n config.URL,\n config.bucket,\n config.bucketPassword.get()\n );\n } else {\n connector = CouchbaseConnector.getInstance(\n config.URL,\n config.bucket,\n config.userName.get(),\n config.userPassword.get()\n );\n }\n } catch (StageException e) {\n issues.add(getContext().createConfigIssue(\n \"CONNECTION\",\n \"config.URL\",\n Errors.ERROR_03,\n e.toString(),\n e\n ));\n }\n\n //Data Generator for JSON Objects to Couchbase\n DataGeneratorFactoryBuilder builder = new DataGeneratorFactoryBuilder(\n getContext(),\n DataFormat.JSON.getGeneratorFormat()\n );\n builder.setCharset(StandardCharsets.UTF_8);\n builder.setMode(Mode.MULTIPLE_OBJECTS);\n generatorFactory = builder.build();\n\n // If issues is not empty, the UI will inform the user of each configuration issue in the list.\n return issues;\n }", "BugFactory getBugFactory();", "public void setCollectionInfo(CollectionInfo collectionInfo) {\n/* 1105 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public static BugReporter configureFilter(BugReporter bugReporter, String filterFileName, boolean include)\n throws IOException, FilterException {\n Filter filter = new Filter(filterFileName);\n return new FilterBugReporter(bugReporter, filter, include);\n\n }", "public FeatureCollection() {\n//\t\tif (featureTypes!=null) {\n//\t\t\tavailableFeatureTypes = featureTypes;\n//\t\t}\n\t}", "public HeapSet (Collection<T> collection) {\r\n\t\tsuper (collection);\r\n\t\tHeapSet.heapify (this);\r\n\t}", "protected ChunkDataSetBuilder(boolean bugfixesIncluded) {\n\t\tsuper();\n\t\tthis.bugfixesIncluded = bugfixesIncluded;\n\t\tthis.resultBuffer = new LinkedList<Instance>();\n\t\tthis.measures = new LinkedList<BugPronenessMeasure>();\n\t}", "public void setBugDescription(String bugDescription) {\n\t\tthis.bugDescription = bugDescription;\n\t}", "public void setup() {\r\n\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tthis.bag.add(new Gem(1));\r\n\t\t}\r\n\t\tthis.bag.add(new Crash());\r\n\t}", "public CollectionDataStore(FeatureCollection<SimpleFeatureType,SimpleFeature> collection) {\n this.collection = collection;\n if (collection.size() == 0) {\n this.featureType = FeatureTypes.EMPTY;\n } else {\n this.featureType = collection.getSchema();\n }\n }", "public void init(String collectionName) {\n\r\n }", "@Nonnull\n public com.microsoft.graph.requests.ServiceHealthIssueCollectionRequestBuilder issues() {\n return new com.microsoft.graph.requests.ServiceHealthIssueCollectionRequestBuilder(getRequestUrlWithAdditionalSegment(\"issues\"), getClient(), null);\n }", "void setNewCollectionPanel();", "protected void configureFopFactory() {\n //Subclass and override this method to perform additional configuration\n }", "public TestBugReports(String name) {\n super(name);\n }", "public void setUp() {\n _notifier = new EventNotifier();\n _doc = new DefinitionsDocument(_notifier);\n }", "public void createCollection(IndexBenchmark.Setup setup, String collectionName, String configsetName) throws Exception {\n\t try (HttpSolrClient hsc = createClient()) {\n\t\t Create create;\n\t\t if (setup.replicationFactor != null) {\n\t\t\t create = Create.createCollection(collectionName, configsetName, setup.shards, setup.replicationFactor);\n\t\t\t create.setMaxShardsPerNode(setup.shards*(setup.replicationFactor));\n\t\t } else {\n\t\t\t create = Create.createCollection(collectionName, configsetName, setup.shards,\n\t\t\t\t\t setup.nrtReplicas, setup.tlogReplicas, setup.pullReplicas);\n\t\t\t create.setMaxShardsPerNode(setup.shards\n\t\t\t\t\t * ((setup.pullReplicas==null? 0: setup.pullReplicas)\n\t\t\t\t\t + (setup.nrtReplicas==null? 0: setup.nrtReplicas)\n\t\t\t\t\t + (setup.tlogReplicas==null? 0: setup.tlogReplicas)));\n\t\t }\n\t\t CollectionAdminResponse resp;\n\t\t if (setup.collectionCreationParams != null && setup.collectionCreationParams.isEmpty()==false) {\n\t\t\t resp = new CreateWithAdditionalParameters(create, collectionName, setup.collectionCreationParams).process(hsc);\n\t\t } else {\n\t\t\t resp = create.process(hsc);\n\t\t }\n\t\t log.info(\"Collection created: \"+ resp.jsonStr());\n }\n\t colls.add(setup.collection);\n }", "public void configure() throws Exception\n {\n // Do nothing by default, this method is supposed to be overridden if needed.\n }", "public String getBugCategory() {\n\t\treturn bugCategory;\n\t}", "public GameConfigure()\n {\n trackItems = new Stack<String>();\n random = new Random();\n visits = new Stack<Room>();\n items = new ArrayList<Item>(); \n rooms = new ArrayList<Room>(); \n characters = new ArrayList<Person>();\n\n // Creates all the items, people, rooms and the player.\n resetGame();\n }", "protected void initializePopulation () {\n\t\tfor (int i = 0; i < this.speciesSize; i++) {\n\t\t\tthis.detectors.add(DetectorFactory.makeDetector(this.featuresLength, this.typeBias, this.generalityBias));\n\t\t}\n\t}", "private void init() {\n filmCollection = new FilmCollection();\n cameraCollection = new CameraCollection();\n }", "public void setBugEngine(java.lang.String mBugEngine) {\n bugQuery.setBugEngine(mBugEngine);\n }", "public WECollection()\n {\n }", "public void setup() {\r\n\t\ttry {\r\n\t\t\trecentFiles = new RecentFilesHandler();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tsetupRecentFiles();\r\n\t}", "public ConfigurationHandlerImpl(BugzillaTaskRepositoryProvider bugzillaTaskRepositoryProvider) {\n this();\n this.repositoryProvider = bugzillaTaskRepositoryProvider;\n }", "public Collection() {\n this.collection = new ArrayList<>();\n }", "public FindBugsCommandLine() {\n super();\n project = new Project();\n startOptionGroup(\"General FindBugs options:\");\n addOption(\"-project\", \"project\", \"analyze given project\");\n addOption(\"-home\", \"home directory\", \"specify FindBugs home directory\");\n addOption(\"-pluginList\", \"jar1[\" + File.pathSeparator + \"jar2...]\", \"specify list of plugin Jar files to load\");\n addSwitchWithOptionalExtraPart(\"-effort\", \"min|less|default|more|max\", \"set analysis effort level\");\n addSwitch(\"-adjustExperimental\", \"lower priority of experimental Bug Patterns\");\n addSwitch(\"-workHard\", \"ensure analysis effort is at least 'default'\");\n addSwitch(\"-conserveSpace\", \"same as -effort:min (for backward compatibility)\");\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 }", "@Override\n public void init(final DocletEnvironment env, final jdk.javadoc.doclet.Doclet doclet) {\n reporter = ((Doclet) doclet).reporter;\n }", "public FeatureFixingSet(int feature, Set<Integer> fixingSet, long elapsedTime, boolean isFixing, int numberCommonFeatures) {\r\n\t\tthis.feature = feature;\r\n\t\tthis.fixingSet= fixingSet;\r\n\t\tthis.elapsedTime = elapsedTime;\r\n\t\tthis.isFixing = isFixing;\r\n\t\tthis.numberCommonFeatures = numberCommonFeatures;\r\n\t}", "private void initialize() {\n this.docTypeList = new ArrayList<>();\n this.problemTypeList = new ArrayList<>();\n\n // The add() function should be called in the order specified since together\n // they form a mapping mechanism,\n // for example 'ENCAPSULATED' before 'POSTSCRIPT' and 'RICH' before 'TEXT'.\n\n this.docTypeList.add(\"ENCAPSULATED\");\n this.problemTypeList.add(ProblemType.NON_ENCAPSULATED_POSTSCRIPT_FILE);\n\n this.docTypeList.add(\"EXCEL\");\n this.problemTypeList.add(ProblemType.NON_MSEXCEL_FILE);\n\n this.docTypeList.add(\"GIF\");\n this.problemTypeList.add(ProblemType.NON_GIF_FILE);\n\n this.docTypeList.add(\"HTML\");\n this.problemTypeList.add(ProblemType.NON_HTML_FILE);\n\n this.docTypeList.add(\"LATEX\");\n this.problemTypeList.add(ProblemType.NON_LATEX_FILE);\n\n this.docTypeList.add(\"MPEG\");\n this.problemTypeList.add(ProblemType.NON_MP4_FILE);\n\n this.docTypeList.add(\"POSTSCRIPT\");\n this.problemTypeList.add(ProblemType.NON_POSTSCRIPT_FILE);\n\n this.docTypeList.add(\"TIFF\");\n this.problemTypeList.add(ProblemType.NON_TIFF_FILE);\n\n this.docTypeList.add(\"WORD\");\n this.problemTypeList.add(ProblemType.NON_MSWORD_FILE);\n\n this.classInitialized = true;\n\n LOG.debug(\"initialize:this.docTypeList.size {}\", this.docTypeList.size());\n LOG.debug(\"initialize:this.problemTypeList.size {}\", this.problemTypeList.size());\n }", "public static void contributeFactoryDefaults(MappedConfiguration<String, String> contribution)\n {\n contribution.add(ChenilleKitMailConstants.SMTP_HOST, \"localhost\");\n contribution.add(ChenilleKitMailConstants.SMTP_PORT, \"25\");\n contribution.add(ChenilleKitMailConstants.SMTP_USER, \"\");\n contribution.add(ChenilleKitMailConstants.SMTP_PASSWORD, \"\");\n contribution.add(ChenilleKitMailConstants.SMTP_DEBUG, \"false\");\n contribution.add(ChenilleKitMailConstants.SMTP_SSL, \"false\");\n contribution.add(ChenilleKitMailConstants.SMTP_TLS, \"false\");\n contribution.add(ChenilleKitMailConstants.SMTP_SSLPORT, \"465\");\n }", "public void setCollection(ArrayList<Fonds> collection){\r\n this.collection = collection;\r\n }", "public CollectionDataStore(SimpleFeatureType schema) {\n this.collection = new DefaultFeatureCollection();\n this.featureType = schema;\n }", "@Before\n public void setUp() {\n baseConfig.setString(\"cache\", \"changes\", \"memoryLimit\", \"0\");\n baseConfig.setString(\"cache\", \"projects\", \"memoryLimit\", \"0\");\n }", "@Override\n\tpublic ProblemCollection<?> getProblemCollection() {\n\t\treturn null;\n\t}", "public static void setupNewBugAttributes(String repositoryUrl, Proxy proxySettings, String userName,\n \t\t\tString password, NewBugzillaReport newReport, String characterEncoding) throws IOException,\n \t\t\tKeyManagementException, GeneralSecurityException, NoSuchAlgorithmException, BugzillaException {\n \n \t\tnewReport.removeAllAttributes();\n \n \t\tRepositoryConfiguration repositoryConfiguration = BugzillaCorePlugin.getRepositoryConfiguration(false,\n \t\t\t\trepositoryUrl, proxySettings, userName, password, characterEncoding);\n \n \t\tRepositoryTaskAttribute a = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.PRODUCT);\n \t\tList<String> optionValues = repositoryConfiguration.getProducts();\n \t\tCollections.sort(optionValues);\n \t\t// for (String option : optionValues) {\n \t\t// a.addOptionValue(option, option);\n \t\t// }\n \t\ta.setValue(newReport.getProduct());\n \t\ta.setReadOnly(true);\n \t\tnewReport.addAttribute(BugzillaReportElement.PRODUCT.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.BUG_STATUS);\n \t\toptionValues = repositoryConfiguration.getStatusValues();\n \t\tfor (String option : optionValues) {\n \t\t\ta.addOptionValue(option, option);\n \t\t}\n \t\ta.setValue(IBugzillaConstants.VALUE_STATUS_NEW);\n \t\tnewReport.addAttribute(BugzillaReportElement.BUG_STATUS.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.VERSION);\n \t\toptionValues = repositoryConfiguration.getVersions(newReport.getProduct());\n \t\tCollections.sort(optionValues);\n \t\tfor (String option : optionValues) {\n \t\t\ta.addOptionValue(option, option);\n \t\t}\n \t\tif (optionValues != null && optionValues.size() > 0) {\n \t\t\ta.setValue(optionValues.get(optionValues.size() - 1));\n \t\t}\n \t\tnewReport.addAttribute(BugzillaReportElement.VERSION.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.COMPONENT);\n \t\toptionValues = repositoryConfiguration.getComponents(newReport.getProduct());\n \t\tCollections.sort(optionValues);\n \t\tfor (String option : optionValues) {\n \t\t\ta.addOptionValue(option, option);\n \t\t}\n \t\tif (optionValues != null && optionValues.size() > 0) {\n \t\t\ta.setValue(optionValues.get(0));\n \t\t}\n \t\tnewReport.addAttribute(BugzillaReportElement.COMPONENT.getKeyString(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.REP_PLATFORM);\n \t\toptionValues = repositoryConfiguration.getPlatforms();\n \t\tCollections.sort(optionValues);\n \t\tfor (String option : optionValues) {\n \t\t\ta.addOptionValue(option, option);\n \t\t}\n \t\tif (optionValues != null && optionValues.size() > 0) {\n \t\t\ta.setValue(optionValues.get(0));\n \t\t}\n \t\tnewReport.addAttribute(BugzillaReportElement.REP_PLATFORM.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.OP_SYS);\n \t\toptionValues = repositoryConfiguration.getOSs();\n \t\tfor (String option : optionValues) {\n \t\t\ta.addOptionValue(option, option);\n \t\t}\n \t\tif (optionValues != null && optionValues.size() > 0) {\n \t\t\ta.setValue(optionValues.get(optionValues.size() - 1));\n \t\t}\n \t\tnewReport.addAttribute(BugzillaReportElement.OP_SYS.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.PRIORITY);\n \t\toptionValues = repositoryConfiguration.getPriorities();\n \t\tfor (String option : optionValues) {\n \t\t\ta.addOptionValue(option, option);\n \t\t}\n \t\ta.setValue(optionValues.get((optionValues.size() / 2)));\n \t\tnewReport.addAttribute(BugzillaReportElement.PRIORITY.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.BUG_SEVERITY);\n \t\toptionValues = repositoryConfiguration.getSeverities();\n \t\tfor (String option : optionValues) {\n \t\t\ta.addOptionValue(option, option);\n \t\t}\n \t\ta.setValue(optionValues.get((optionValues.size() / 2)));\n \t\tnewReport.addAttribute(BugzillaReportElement.BUG_SEVERITY.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\t// a = new\n \t\t// RepositoryTaskAttribute(BugzillaReportElement.TARGET_MILESTONE);\n \t\t// optionValues =\n \t\t// BugzillaPlugin.getDefault().getProductConfiguration(serverUrl).getTargetMilestones(\n \t\t// newReport.getProduct());\n \t\t// for (String option : optionValues) {\n \t\t// a.addOptionValue(option, option);\n \t\t// }\n \t\t// if(optionValues.size() > 0) {\n \t\t// // new bug posts will fail if target_milestone element is included\n \t\t// // and there are no milestones on the server\n \t\t// newReport.addAttribute(BugzillaReportElement.TARGET_MILESTONE, a);\n \t\t// }\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.ASSIGNED_TO);\n \t\ta.setValue(\"\");\n \t\ta.setReadOnly(false);\n \t\tnewReport.addAttribute(BugzillaReportElement.ASSIGNED_TO.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\ta = BugzillaServerFacade.makeNewAttribute(BugzillaReportElement.BUG_FILE_LOC);\n \t\ta.setValue(\"http://\");\n \t\ta.setHidden(false);\n \t\tnewReport.addAttribute(BugzillaReportElement.BUG_FILE_LOC.getKeyString(), a);\n \t\t// attributes.put(a.getName(), a);\n \n \t\t// newReport.attributes = attributes;\n \t}", "public boolean isCollectingBugReport() {\n return mIsCollectingBugReport.get();\n }", "private void setUpGui() {\n \n // make sure that the scroll panes are see-through\n qualityFiltersTableScrollPane.getViewport().setOpaque(false);\n\n // disable column reordering\n qualityFiltersTable.getTableHeader().setReorderingAllowed(false);\n\n // set the validation combo box\n validationLevelJComboBox.setRenderer(new AlignedListCellRenderer(SwingConstants.CENTER));\n validationLevelJComboBox.setEditable(false);\n\n // set up the table header tooltips\n validationTableToolTips = new ArrayList<>(3);\n validationTableToolTips.add(null);\n validationTableToolTips.add(\"Quality Test\");\n validationTableToolTips.add(\"Passed\");\n }", "private void initConfiguration() {\n\t\tseedList = new ArrayList<String>();\n\t\t// TODO: add other initialization here...\n\t}", "@Override\n public void setupConfiguration(Configuration config)\n {\n\n }", "protected void setUp() {\r\n columnNames = new HashMap();\r\n columnNames.put(DbBaseFilterFactory.CREATION_DATE_COLUMN_NAME, \"creation_date\");\r\n columnNames.put(DbBaseFilterFactory.MODIFICATION_DATE_COLUMN_NAME, \"modification_date\");\r\n columnNames.put(DbBaseFilterFactory.CREATION_USER_COLUMN_NAME, \"creation_user\");\r\n columnNames.put(DbBaseFilterFactory.MODIFICATION_USER_COLUMN_NAME, \"modification_user\");\r\n\r\n instance = new DbBaseFilterFactory(columnNames);\r\n }", "@Override\n\tpublic void setChangesetCollectionId(long changesetCollectionId) {\n\t\t_changesetEntry.setChangesetCollectionId(changesetCollectionId);\n\t}", "@Test\r\n public void testSetFilterCheque() {\r\n System.out.println(\"setFilterCheque\");\r\n List<Cheque> filterCheque = null;\r\n chequeBeans instance = new chequeBeans();\r\n instance.setFilterCheque(filterCheque);\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 }", "private void collectBugReport() {\n connectToCarServiceSync();\n\n if (Build.IS_USERDEBUG || Build.IS_ENG) {\n mSingleThreadExecutor.schedule(\n this::grabBtSnoopLog, ACTIVITY_FINISH_DELAY_MILLIS, TimeUnit.MILLISECONDS);\n }\n mSingleThreadExecutor.schedule(\n this::saveBugReport, ACTIVITY_FINISH_DELAY_MILLIS, TimeUnit.MILLISECONDS);\n }", "private void checkCollection(SnmpCollection collection) {\n if (collection.getSystems() == null)\n collection.setSystems(new Systems());\n if (collection.getGroups() == null)\n collection.setGroups(new Groups());\n }", "private PotentialErrorDatabaseConfiguration setUpConfig() throws ConfigurationException {\n return helper.setUpConfig(PotentialErrorDatabaseConfiguration.class);\n }", "public void setUp()\r\n {\r\n board = new MineSweeperBoard(4, 4, 1);\r\n }", "@Before\n public void setup()\n {\n\t\t// Create a new instance of the NumCommentsCheck class.\n\t\tut = new NumCommentsCheck();\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 public void configure() {\n }", "public MYCollection() throws UnknownHostException, IOException, ClassNotFoundException {\r\n\t\tinitComponents();\r\n\r\n\t\t/*处理页面美化*/\r\n\t\tthis.drawCollection();\r\n\r\n\t\t/*显示所有收藏*/\r\n\t\tthis.showCollection();\r\n\r\n\t\tjScrollPane1\r\n\t\t\t\t.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n\t\tthis.setDefaultCloseOperation(this.DISPOSE_ON_CLOSE);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\r\n\t}", "abstract public void setLogCollectionPath(String path);", "public static void add(Collection collection) {\n\t\t\n\t}", "private void config() {\n\t}", "void configureComboViewer(ComboViewer comboViewer, EStructuralFeature feature);", "public void setup(){\r\n\r\n\t\t\tlogger.info(\"begin setting up the patches\");\r\n\r\n\t\t\t//Initialize the patches in the world.\r\n\t\t\tpatches = new Patch[numOfPathes][numOfPathes];\r\n\t\t\tfor(int i = 0; i < patches.length; i ++){\r\n\t\t\t\tfor(int j = 0; j < patches[i].length; j ++){\r\n\t\t\t\t\tpatches[i][j] = new Patch(i,j);\r\n\t\t\t\t\t//logger.info(\"generated x = \" + i + \"y = \" + j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tlogger.info(\"begin setting up the agents\");\r\n\r\n\t\t\t//Generate agents and cops.\r\n\t\t\tagents = new Agent[numOfAgents];\r\n\t\t\tfor(int k = 0; k < numOfAgents; k ++){\r\n\t\t\t\tagents[k] = generateAgent();\r\n\t\t\t}\r\n\r\n\t\t\tlogger.info(\"finished setting up the agents\");\r\n\r\n\t\t\tlogger.info(\"begin setting up the cops\");\r\n\t\t\tcops = new Cop[numOfCops];\r\n\t\t\tfor(int k = 0; k < numOfCops; k ++){\r\n\t\t\t\tcops[k] = generateCop();\r\n\t\t\t}\r\n\r\n\t\t\tlogger.info(\"finished setting up the cops\");\r\n\r\n\t\t}", "@Before\r\n public void setUp() {\r\n queue = new LinkedQueue<String> (initCapacity);\r\n }", "@Test\r\n public void testSetListCheque() {\r\n System.out.println(\"setListCheque\");\r\n List<Cheque> listCheque = null;\r\n chequeBeans instance = new chequeBeans();\r\n instance.setListCheque(listCheque);\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 setBeanFactory(BeanFactory beanFactory)\r\n/* 35: */ {\r\n/* 36: 77 */ this.beanFactory = beanFactory;\r\n/* 37: */ }", "public MazeBug() {\n\t\tsetColor(Color.GREEN);\n\n\t\tisVisited = new boolean[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\tisVisited[i][j] = false;\n\t\t\t}\n\t\t}\n\n\t\tpath = new ArrayList<Location>();\n\t\tpath.add(getLocation());\n\t}", "@Override\n public void setBeanFactory(BeanFactory beanFactory) throws BeansException {\n System.out.println(\"## setBeanFactory(beanFactory) Bean Factory has been set!\");\n }", "public void init() {\n\t\tcfg = new Configuration(Configuration.VERSION_2_3_25);\r\n\r\n\t\t// Specify the source where the template files come from.\r\n\t\tcfg.setServletContextForTemplateLoading(getServletContext(), templateDir);\r\n\r\n\t\t// Sets how errors will appear.\r\n\t\t// During web page *development* TemplateExceptionHandler.HTML_DEBUG_HANDLER is better.\r\n\t\t// This handler outputs the stack trace information to the client, formatting it so \r\n\t\t// that it will be usually well readable in the browser, and then re-throws the exception.\r\n\t\t//\t\tcfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);\r\n\t\tcfg.setTemplateExceptionHandler(TemplateExceptionHandler.HTML_DEBUG_HANDLER);\r\n\r\n\t\t// Don't log exceptions inside FreeMarker that it will thrown at you anyway:\r\n\t\t// Specifies if TemplateException-s thrown by template processing are logged by FreeMarker or not. \r\n\t\t//\t\tcfg.setLogTemplateExceptions(false);\r\n\t}", "@BeforeEach\n void setup() {\n queue = new StringQueue(6);\n }", "@Override\n\t\t\tprotected void configure() {\n\t\t\t}", "public synchronized void initReporter(Reporter reporter) {\n this.reporter = reporter;\n }", "public void configure(ConfigurationObject config) {\r\n ExceptionUtils.checkNull(config, null, null, \"The parameter 'config' should not be null.\");\r\n\r\n // create log\r\n String loggerName = Helper.getPropertyValue(config, Helper.LOGGER_NAME_KEY, false, false);\r\n this.log = (loggerName == null) ? null : LogManager.getLog(loggerName);\r\n\r\n this.connectionName = Helper.getPropertyValue(config, CONNECTION_NAME_KEY, false, false);\r\n\r\n // Create database connection factory using the extracted configuration\r\n dbConnectionFactory = createDBConnectionFactory(config);\r\n\r\n // Get notification deliverable IDs string from config\r\n String notificationDeliverableIdsStr = Helper.getPropertyValue(config,\r\n MISSED_DEADLINE_NOTIFICATION_DELIVERABLE_IDS, false, true);\r\n // Create set for parsed notification deliverable IDs\r\n missedDeadlineNotificationDeliverableIds = new HashSet<Long>();\r\n\r\n // Split ID substrings in the comma separated string\r\n if ((notificationDeliverableIdsStr != null) && (notificationDeliverableIdsStr.trim().length() > 0)) {\r\n String[] notificationDeliverableIdsArray = notificationDeliverableIdsStr.split(Helper.COMMA);\r\n\r\n for (String notificationDeliverableIdStr : notificationDeliverableIdsArray) {\r\n // Parse and add ID to the set\r\n missedDeadlineNotificationDeliverableIds.add(Helper.parseLong(notificationDeliverableIdStr,\r\n MISSED_DEADLINE_NOTIFICATION_DELIVERABLE_IDS, 1));\r\n }\r\n }\r\n\r\n // Create map for Missed Deadline email subject templates:\r\n missedDeadlineEmailSubjectTemplateTexts = new HashMap<Long, String>();\r\n // Create map for Missed Deadline email body templates\r\n missedDeadlineEmailBodyTemplatePaths = new HashMap<Long, String>();\r\n\r\n String[] allKeys = getAllKeys(config);\r\n\r\n for (String propertyKey : allKeys) {\r\n initMap(config, missedDeadlineEmailSubjectTemplateTexts, propertyKey, MISSED_DEADLINE_EMAIL_SUBJECT_PREFIX);\r\n initMap(config, missedDeadlineEmailBodyTemplatePaths, propertyKey, MISSED_DEADLINE_EMAIL_BODY_PREFIX);\r\n }\r\n\r\n // Get default email subject template from config\r\n defaultMissedDeadlineEmailSubjectTemplateText = Helper.getPropertyValue(config,\r\n DEFAULT_MISSED_DEADLINE_EMAIL_SUBJECT_TEMPLATE_TEXT, true, true);\r\n // Get default email body template path from config\r\n defaultMissedDeadlineEmailBodyTemplatePath = Helper.getPropertyValue(config,\r\n DEFAULT_MISSED_DEADLINE_EMAIL_BODY_TEMPLATE_PATH, true, false);\r\n\r\n rejectedFinalFixEmailSubjectTemplateText = Helper.getPropertyValue(config,\r\n REJECTED_FF_EMAIL_SUBJECT_TEMPLATE_TEXT, true, true);\r\n rejectedFinalFixEmailBodyTemplatePath = Helper.getPropertyValue(config,\r\n REJECTED_FF_EMAIL_BODY_TEMPLATE_PATH, true, false);\r\n\r\n // Get email sender from config\r\n String emailSender = Helper.getPropertyValue(config, EMAIL_SENDER_KEY, true, false);\r\n // Create email sending utility\r\n emailSendingUtility = new EmailSendingUtility(emailSender, log);\r\n\r\n // create object factory\r\n ObjectFactory objectFactory = Helper.createObjectFactory(config);\r\n\r\n // Create resource manager with OF\r\n resourceManager = Helper.createObject(config, objectFactory, RESOURCE_MANAGER_KEY,\r\n ResourceManager.class);\r\n\r\n // Create user retrieval with OF\r\n userRetrieval = Helper.createObject(config, objectFactory, USER_RETRIEVAL_KEY,\r\n UserRetrieval.class);\r\n\r\n // Get timestamp format to be used in the email\r\n timestampFormat = getTimestampFormat(config);\r\n\r\n // Read notification interval\r\n notificationInterval = getNotificationInterval(config);\r\n\r\n // Read and parse explanation deadline interval:\r\n explanationDeadlineIntervalInHours = getExplanationDeadlineInterval(config);\r\n\r\n lateDeliverableTypeIds = getLateDeliverableTypeIds(config);\r\n\r\n // Get the value indicating whether notifications must be sent for Rejected Final Fix late deliverables:\r\n sendRejectedFinalFixNotifications = getSendRejectedFinalFixNotifications(config);\r\n }", "public void setUp() {\r\n\t\tsynchronized(phys) {\r\n\t\t\r\n\t\tReactionSystem reactions = new ReactionSystem();\r\n\t\tphys.getParticles().clear();\r\n\t\tphys.compounds.clear();\r\n\t\tphys.particlecount.clear();\r\n\t\t\r\n\t\t//Add new compounds\r\n\t\t\r\n\t\tfor (Compound c: rm.compounds) {\r\n\t\t\tphys.addCompound(c);\r\n\t\t}\r\n\t\t\r\n\t\t//Add new reactions\r\n\t\t\r\n\t\tfor (CompoundReaction rx: rm.reactions) {\r\n\t\t\trx.convertToReactions(reactions.getReactions());\r\n\t\t}\r\n\t\t\r\n\t\tphys.reactions = reactions;\r\n\t\tphys.calculateAvgMass();\r\n\t\tphys.calculateAvgRadius();\r\n\t\r\n\t\t\r\n\t\tfor (Reaction r: phys.reactions.getReactions()) {\r\n\r\n\t\t\tSystem.out.println(r);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//Add graphs\r\n\t\tscale.reset();\r\n\t\tphys.graphs.clear();\r\n\t\tfor (Compound c: phys.compounds) {\r\n\t\t\tphys.graphs.add(new ConcentrationDataCollector(300, c, scale));\t\r\n\t\t}\r\n\t\t\r\n\t\tphys.time = 0;\r\n\t\tphys.nextcollection = phys.collectioninterval;\r\n\t\tphys.bondenergy = 0;\r\n\t\t}\r\n\t}", "public AbstractCollectionMetaData()\n {\n }", "public void setUp()\n {\n map = new Map(5, 5, null);\n }", "public BugInfoWindow(Bug aBug) {\n\t\ttheBug = aBug;\n\tthis.display();\n }", "@Before\r\n\tpublic void setup() {\r\n\t\t\r\n\t\tcustFact = new CustomerFactory();\t\t\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t}", "public void postInitAfterConfiguration() {\n\t\t// each configuration are only supporting one log handler\n\t\tcrawlerRecordHandler = new CrawlerRecord(this);\n\t\t// TODO: other configurations needs to be added after all configurations are set\n\t}", "public void setAddressCollection(Collection<Address> addressCollection){\r\n\t\tthis.addressCollection = addressCollection;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n public SortedOrderedBag(Collection<E> coll) {\n this.comp = (Comparator<E>) DEFAULT_COMPARATOR;\n this.addAll(coll);\n }", "private void postLoadOIFitsCollection(final File file, final OiDataCollection oiDataCollection, final OIFitsChecker checker) {\n for (SubsetDefinition subsetDefinition : oiDataCollection.getSubsetDefinitions()) {\n // fix OIDataFile reference:\n for (SubsetFilter filter : subsetDefinition.getFilters()) {\n for (TableUID tableUID : filter.getTables()) {\n tableUID.setFile(getOIDataFile(tableUID.getFile().getId()));\n // if missing, remove ?\n }\n }\n addSubsetDefinitionRef(subsetDefinition);\n }\n\n // then add PlotDefinition:\n for (PlotDefinition plotDefinition : oiDataCollection.getPlotDefinitions()) {\n addPlotDefinitionRef(plotDefinition);\n }\n\n // TODO: check subset and plot definition references in Plot ?\n // then add Plot:\n for (Plot plot : oiDataCollection.getPlots()) {\n this.addPlotRef(plot);\n }\n\n if (logger.isDebugEnabled()) {\n logger.debug(\"subsetDefinitions {}\", getSubsetDefinitionList());\n }\n\n // after loadOIDataCollection as it calls reset():\n setOiFitsCollectionFile(file);\n\n // add given file to Open recent menu\n RecentFilesManager.addFile(file);\n }", "protected void addChangeListeners() {\n\t\tif (this.getChangeListenersAdded()) {\n\t\t\t// TODO don\\u00b4t throw an exception yet. CR has to fix another problem. then the exception is the right thing.\n\t\t\t// But what problem?! Should we just try this? UA\n\t\t\treturn;//throw new IllegalStateException();\n\t\t}\n\t\tthis.addCollectableComponentModelListeners();\n\t\tthis.addAdditionalChangeListeners();\n\t\tthis.bChangeListenersAdded = true;\n\n\t\tassert this.getChangeListenersAdded();\n\t}", "public ConfigurationMaintainer() {\n\t}", "protected void setHistoryCollection(HistoryCollection historyCollection) {\n if (this.historyCollection == null)\n this.historyCollection = historyCollection;\n }", "public void assignCalSuites(Collection<BwCalSuite> val) {\n calSuites = val;\n }", "@Override\n\tpublic void configure() {\n\t\t\n\t}", "private void initalizeFigure() {\n\t\tdouble centerX = (centerCircle.getWidth() / 2.0) + centerCircle.getX();\n\t\tdouble centerY = (centerCircle.getHeight() / 2.0) + centerCircle.getY();\n\t\tfigureList.add(new GEpicycloid(centerCircle, outerCircle, armLine, markerCircle, rIsNegative));\n\t\tadd(figureList.get(figureTracker), centerX, centerY);\n\t\tremove(centerCircle);\n\t\tremove(outerCircle);\n\t\tremove(armLine);\n\t\tremove(markerCircle);\n\t}", "public void setBugTitle(String bugTitle) {\n\t\tthis.bugTitle = bugTitle;\n\t}", "public abstract void setSubIssues(List<? extends IssueAbstract> issues);", "public void setCollectionFormat(CollectionFormat collectionFormat) {\n this.collectionFormat = collectionFormat;\n }", "public void setCollectionClass(Class collectionClass) {\n \t\tthis.collectionClass = collectionClass;\n \t}", "@Override\n public void init() throws Exception {\n config = new Config();\n }", "public void initPopulation() throws JMException, ClassNotFoundException {\n population_ = new SolutionSet[problemSet_.size()];\n for (int i = 0; i < problemSet_.size(); i++){\n population_[i] = new SolutionSet(populationSize_);\n }\n\n for (int j = 0; j < problemSet_.size(); j++){\n for (int i = 0; i < populationSize_; i++) {\n Solution newSolution = new Solution(problemSet_);\n problemSet_.get(j).evaluate(newSolution);\n problemSet_.get(j).evaluateConstraints(newSolution);\n population_[j].add(newSolution);\n } // for\n }\n\n }", "protected void setUp() throws Exception {\n super.setUp();\n\n sub = new Submission();\n }", "public Collection() {\n }", "@Override\n protected void configure() {\n }", "private void setCollection(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n collection_ = value;\n }", "@Before\n public void setUp() {\n Log.getFindings().clear();\n Log.enableFailQuick(false);\n }" ]
[ "0.5544356", "0.55368775", "0.53615034", "0.52165216", "0.5098461", "0.5070917", "0.4993478", "0.49745712", "0.49409255", "0.49380618", "0.49335405", "0.4900413", "0.4854188", "0.48503482", "0.4847273", "0.4798175", "0.47758278", "0.47582716", "0.47377357", "0.4734737", "0.47304365", "0.47267073", "0.4685353", "0.4676442", "0.46616134", "0.46615216", "0.46603647", "0.4647487", "0.46432272", "0.4642673", "0.46342272", "0.46308985", "0.46253031", "0.46154052", "0.4611822", "0.4604864", "0.4596353", "0.45857075", "0.4564465", "0.4554485", "0.4547821", "0.4540318", "0.45320123", "0.45280927", "0.45176375", "0.45167205", "0.45100844", "0.45084473", "0.4508427", "0.4499542", "0.44986638", "0.44949335", "0.44920227", "0.44876707", "0.44863486", "0.4477068", "0.44762418", "0.44734997", "0.44600037", "0.44572067", "0.44405416", "0.4439157", "0.44379246", "0.4436513", "0.44293034", "0.44292668", "0.4425969", "0.44239208", "0.4420519", "0.44133458", "0.44126675", "0.44112015", "0.44110286", "0.44073477", "0.44062358", "0.44053012", "0.43996122", "0.4398338", "0.43961847", "0.43933633", "0.43928334", "0.4391865", "0.4390527", "0.43793744", "0.4378663", "0.43729872", "0.43714216", "0.43671292", "0.43650725", "0.43599316", "0.43546322", "0.43543065", "0.43459556", "0.43442237", "0.4343711", "0.43417138", "0.434148", "0.4340677", "0.43405223", "0.43393072" ]
0.68754464
0
Creates new form InterfaceProdutos
public InterfaceProdutos() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CadastroProdutoNew() {\n initComponents();\n }", "public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }", "public CrearProductos() {\n initComponents();\n }", "public void agregar(Producto producto) throws BusinessErrorHelper;", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "public com.alain.puntocoma.model.Catalogo create(long catalogoId);", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "private static void cadastroProduto() {\n\n\t\tString nome = Entrada(\"PRODUTO\");\n\t\tdouble PrecoComprado = Double.parseDouble(Entrada(\"VALOR COMPRA\"));\n\t\tdouble precoVenda = Double.parseDouble(Entrada(\"VALOR VENDA\"));\n String informacaoProduto = Entrada(\"INFORMAÇÃO DO PRODUTO\");\n String informacaoTecnicas = Entrada(\"INFORMAÇÕES TÉCNICAS\");\n\n\t\tProduto produto = new Produto(nome, PrecoComprado, precoVenda, informacaoProduto,informacaoTecnicas);\n\n\t\tListaDProduto.add(produto);\n\n\t}", "public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }", "public void setCodProd(IProduto codigo);", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "public CadastrarProduto() {\n initComponents();\n }", "public void insertNewProduto(ProdutoTO produto){\n\t\ttry {\n\t\t\tmodelProduto.insertNewProduto(produto);\n\t\t\tsuper.updateViewPrincipal(viewPrincipal);\n\t\t} catch (ProdutoException e) {\n\t\t\te.printStackTrace();\n\t\t\tgetControllerError().initialize(e);\n\t\t}\n\t}", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public Productos() {\n super();\n // TODO Auto-generated constructor stub\n }", "public VendasProdutos() {\n initComponents();\n }", "@FXML\n\tpublic void createProduct(ActionEvent event) {\n\t\tif (!txtProductName.getText().equals(\"\") && !txtProductPrice.getText().equals(\"\")\n\t\t\t\t&& ComboSize.getValue() != null && ComboType.getValue() != null && selectedIngredients.size() != 0) {\n\n\t\t\tProduct objProduct = new Product(txtProductName.getText(), ComboSize.getValue(), txtProductPrice.getText(),\n\t\t\t\t\tComboType.getValue(), selectedIngredients);\n\n\t\t\ttry {\n\t\t\t\trestaurant.addProduct(objProduct, empleadoUsername);\n\n\t\t\t\ttxtProductName.setText(null);\n\t\t\t\ttxtProductPrice.setText(null);\n\t\t\t\tComboSize.setValue(null);\n\t\t\t\tComboType.setValue(null);\n\t\t\t\tChoiceIngredients.setValue(null);\n\t\t\t\tselectedIngredients.clear();\n\t\t\t\tproductOptions.clear();\n\t\t\t\tproductOptions.addAll(restaurant.getStringReferencedIdsProducts());\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben de ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar los datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "Compuesta createCompuesta();", "public Producto() {\r\n }", "Operacion createOperacion();", "@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }", "public VentanaCrearProducto(ControladorProducto controladorProducto) {\n initComponents();\n this.controladorProducto=controladorProducto;\n txtCodigoCrearProducto.setText(String.valueOf(this.controladorProducto.getCodigo()));\n this.setSize(1000,600);\n }", "public static Producto insertProducto(int codProd,String nomb_modelo,Cliente cliente){\n Producto prod = new Producto(codProd,nomb_modelo,cliente);\n try {\n prod.registrarProducto();\n } catch (SQLException ex) {\n // En caso de haber una excepcion se imprime el mensaje\n System.err.println(ex.getMessage());\n }\n return prod;\n }", "public Registrar_Producto() {\n this.setContentPane(fondo);\n initComponents();\n llenaArr();\n llenaCB();\n soloLetras(rp_tx_nombre);\n soloNumeros(rp_tx_cantidad);\n soloNumeros(rp_tx_precio);\n soloLetras(rp_tx_descripcion);\n }", "public String crearProducto(String id, String nombre, String precio, String idCategoria, \n String estado, String descripcion) {\n \n String validacion = \"\";\n if (verificarCamposVacios(id, nombre, precio, idCategoria, estado, descripcion) == false) {\n //Se crea en EntityManagerFactory con el nombre de nuestra unidad de persistencia\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"SG-RESTPU\");\n //se crea un objeto producto y se le asignan sus atributos\n if (verificarValoresNum(id,precio,idCategoria)) {\n //Se crea el controlador de la categoria del producto\n CategoriaProductoJpaController daoCategoriaProducto = new CategoriaProductoJpaController(emf);\n CategoriaProducto categoriaProducto = daoCategoriaProducto.findCategoriaProducto(Integer.parseInt(idCategoria));\n //se crea el controlador del producto \n ProductoJpaController daoProducto = new ProductoJpaController(emf);\n Producto producto = new Producto(Integer.parseInt(id), nombre);\n producto.setPrecio(Long.parseLong(precio));\n producto.setIdCategoria(categoriaProducto);\n producto.setDescripcion(descripcion);\n producto.setFotografia(copiarImagen());\n if (estado.equalsIgnoreCase(\"Activo\")) {\n producto.setEstado(true);\n } else {\n producto.setEstado(false);\n }\n try {\n if (ExisteProducto(nombre) == false) {\n daoProducto.create(producto);\n deshabilitar();\n limpiar();\n validacion = \"El producto se agrego exitosamente\";\n } else {\n validacion = \"El producto ya existe\";\n }\n } catch (NullPointerException ex) {\n limpiar();\n } catch (Exception ex) {\n Logger.getLogger(Gui_empleado.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n validacion = \"El campo id, precio, idCategoria deben ser numéricos\";\n }\n } else {\n validacion = \"Llene los datos obligatorios\";\n }\n return validacion;\n }", "public static Posee insertPosee(Date fecha_inicio,ServicioAdicional serv_adicional,\n Producto producto){\n Posee miPosee = new Posee(fecha_inicio,serv_adicional,producto);\n miPosee.registrarPosee();\n \n return miPosee;\n }", "@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}", "public CrearPedidos() {\n initComponents();\n }", "public void salvarProdutos(Produto produto){\n }", "public interface NuevoTesauroForm\r\n{\r\n}", "public void crearCompraComic(CompraComicDTO compraComicDTO);", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public Producto (){\n\n }", "public boolean añadirproducto(ProductoDTO c) {/* */\r\n try {\r\n\r\n try {\r\n try {\r\n PreparedStatement ps;\r\n ps = conn.getConn().prepareStatement(SQL_INSERT);\r\n ps.setInt(1, c.getId());\r\n ps.setString(2, c.getDescripcion());\r\n ps.setString(3, c.getFechaproducto());\r\n ps.setInt(4, c.getStock());\r\n ps.setInt(5, c.getPrecio());\r\n ps.setString(6, c.getNombre());\r\n ps.setString(7, c.getFechacaducidad());\r\n ps.setString(8, c.getFechaelaboracion());\r\n ps.setString(9, c.getNombrecategoria());\r\n\r\n if (ps.executeUpdate() > 0) {\r\n\r\n JOptionPane.showMessageDialog(null, \"Producto registrado correctamente\");\r\n return true;\r\n }\r\n } catch (MysqlDataTruncation ef) {\r\n JOptionPane.showMessageDialog(null, \"Formato de fecha debe ser MM/DD/AAAA\");\r\n }\r\n\r\n } catch (MySQLIntegrityConstraintViolationException e) {\r\n JOptionPane.showMessageDialog(null, \"codigo ya existe\");\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProductoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n conn.cerrarconexion();\r\n }\r\n JOptionPane.showMessageDialog(null, \"no se ha podido registrar\");\r\n return false;\r\n\r\n }", "OperacionColeccion createOperacionColeccion();", "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}", "public FrmImprimirEtiqueta(java.awt.Frame parent, boolean modal, Produto produto) {\n super(parent, modal);\n initComponents();\n \n BufferedImage image = null;\n try {\n image = ImageIO.read(this.getClass().getResource(\"/images/printer.png\"));\n } catch (IOException e) {\n \n }\n this.setIconImage(image); \n \n try {\n Horus.atualizarComboBox(cbProdutos, ManterProdutoController.getInstance().getProdutos());\n } catch (Exception e){\n JOptionPane.showMessageDialog(null, \"Erro ao carregar Produtos!\");\n } \n \n spQtd.setValue(1);\n \n if (produto!=null){\n int achou = 0;\n for (int i=1;i<cbProdutos.getItemCount();i++){\n if (((Produto)(cbProdutos.getItemAt(i))).getId().equals(produto.getId())){\n cbProdutos.setSelectedIndex(i);\n achou =1;\n break;\n }\n }\n \n if (achou==1){\n txtDescricao.setText(produto.getNome());\n txtPreco.setText(NumberFormat.getCurrencyInstance().format(produto.getValorSaida()));\n }\n }\n }", "public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema(equipo, this.problema, true,fecha);\n f.registrarReporte(this.prob);\n \n }", "public Producto() {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tnombre = \"\";\r\n\t\tvendedor = \"\";\r\n\t\tprecio = 0;\r\n\t\tcantidad = 0;\r\n\t\tenVenta = false;\r\n\t\tdescripcion = \"\";\r\n\t\tcategorias = new Categoria();\r\n\t\tcaracteristicas = null;//TODO CORREGIR\r\n\t}", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "public ProductCreate() {\n initComponents();\n }", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }", "public Producto_Insertar() {\n initComponents();\n this.setLocationRelativeTo(null);\n setResizable(false);\n actualizarJTabale();\n }", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "public ActualizarProducto() {\n initComponents();\n }", "@RequestMapping(\"/leggi-catalogo\")\n @ResponseBody\n \n public ListaProdottiDto inserisciContatto(@RequestBody leggiCatalogoCompleto dto) {\n Prodotto c = dto.getContatto();\n // inserisco il contatto su DB e ottengo il DB aggiornato\n List<Prodotto> lista = CatalogoService.inserisciArticolo();\n // creo un nuovo DTO per la risposta\n ListaProdottiDto risp = new ListaProdottiDto(lista);\n // ritorno il DTO\n return risp;\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "public static void crearequipo(String nombre,String ciudad,String pais) {\r\n\r\n\t\t\tConnection c = ConnectionDB.conectarMySQL();\r\n\t\t\ttry {\r\n\t\t\t\tPreparedStatement stmt = c\r\n\t\t\t\t\t\t.prepareStatement(\"INSERT INTO equipo (nombre , ciudad ,pais ) Values('\"+ nombre + \"','\" + ciudad + \"','\" + pais + \"')\");\r\n\t\t\t\tstmt.executeUpdate();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}", "public ConsultaPNporproducto() {\n initComponents();\n ListarPro();\n }", "private void addInstituicao() {\n\n if (txtNome.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Nome Invalido\");\n txtNome.grabFocus();\n return;\n } else if (txtNatureza.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Natureza Invalido\");\n txtNatureza.grabFocus();\n return;\n }\n if ((instituicao == null) || (instituicaoController == null)) {\n instituicao = new Instituicao();\n instituicaoController = new InstituicaoController();\n }\n instituicao.setNome(txtNome.getText());\n instituicao.setNatureza_administrativa(txtNatureza.getText());\n if (instituicaoController.insereInstituicao(instituicao)) {\n limpaCampos();\n JOptionPane.showMessageDialog(null, \"Instituicao Cadastrada com Sucesso\");\n }\n }", "public void validaCadastro(List<ProdutoModel> produto) {\n\n if (produto.size() == 0) {\n cadastraProduto();\n } else {\n JOptionPane.showMessageDialog(null, \"Produto existente\");\n jtf_nome.requestFocus();\n }\n }", "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 void insert(HttpServletRequest request)throws Exception {\n\t\tPedido p = new Pedido();\r\n\t\tCliente c = new Cliente();\r\n\t\tCancion ca = new Cancion();\r\n\t\tp.setCod_pedido(request.getParameter(\"codigo\"));\r\n\t\tca.setCod_cancion(request.getParameter(\"cod_cancion\"));\r\n\t\tc.setCod_cliente(request.getParameter(\"cod_cliente\"));\r\n\t\tp.setCan(ca);\r\n\t\tp.setCl(c);\r\n\t\t\r\n\t\tpdmodel.RegistrarPedido(p);\r\n\t\t\r\n\t}", "public CrearQuedadaVista() {\n }", "@PostMapping(\"/productos\")\n @Timed\n public ResponseEntity<Producto> createProducto(@RequestBody Producto producto) throws URISyntaxException {\n log.debug(\"REST request to save Producto : {}\", producto);\n if (producto.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new producto cannot already have an ID\")).body(null);\n }\n Producto result = productoRepository.save(producto);\n return ResponseEntity.created(new URI(\"/api/productos/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "public frmCadastrarProduto() {\n initComponents();\n\n this.cmbCategoria.setEnabled(false);\n this.cmbFornecedor.setEnabled(false);\n this.txtNome.setEnabled(false);\n this.txtDescricao.setEnabled(false);\n this.txtEstoque.setEnabled(false);\n this.txtId.setEnabled(false);\n this.txtPreco.setEnabled(false);\n this.txtPrecoCusto.setEnabled(false);\n this.txtCodBarras.setEnabled(false);\n\n }", "public void agregarDatosProductoText() {\n if (cantidadProducto != null && cantidadProducto > 0) {\n //agregando detalle a la Lista de Detalle\n listDetalle.add(new Detallefactura(null, this.producto.getCodBarra(),\n this.producto.getNombreProducto(), cantidadProducto, this.producto.getPrecioVenta(),\n this.producto.getPrecioVenta().multiply(new BigDecimal(cantidadProducto))));\n \n //Seteamos el producto al item del detalle\n //Accedemos al ultimo Item agregado a la lista\n listDetalle.get(listDetalle.size()-1).setCodProducto(producto);\n \n //Seteamos la factura al item del detalle\n //Accedemos al ultimo Item agregado a la lista \n // listDetalle.get(listDetalle.size()-1).setCodFactura(factura);\n \n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Invocamos al metodo que calcula el Total de la Venta para la factura\n totalFacturaVenta();\n\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n //Mensaje de confirmacion de exito de la operacion \n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\", \"Producto agregado correctamente!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n } else {\n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n }\n\n }", "public FormInserir() {\n initComponents();\n }", "public void agregarMarcayPeso() {\n int id_producto = Integer.parseInt(TextCodProduct.getText());\n String Descripcion_prod = TextDescripcion.getText();\n double Costo_Venta_prod = Double.parseDouble(TextCostoproduc.getText());\n double Precio_prod = Double.parseDouble(TextPrecio.getText());\n int Codigo_proveedor = ((Proveedor) LitsadeProovedores.getSelectedItem()).getIdProveedor();\n double ivaproducto = Double.parseDouble(txtIvap.getText());\n Object tipodelproducto = jcboxTipoProducto.getSelectedItem();\n\n //Captura el tipo del producto\n //Se crea un nuevo objeto de tipo producto para hacer el llamado al decorador\n Producto p;\n //Switch para Ingresar al tipo de producto deseado \n switch ((String) tipodelproducto) {\n case \"Alimentos\":\n log(String.valueOf(tipodelproducto));\n //Creamos un nuevo producto de tipo en este caso comida y le enviamois\n //el id y el tipo de producto\n p = new Producto_tipo_comida(id_producto, (String) tipodelproducto);\n //el producto p , ahora tendra una adicion de marca del producto\n //ingreso\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n //ingreso\n break;\n case \"Ropa\":\n p = new Producto_tipo_ropa(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Automotor\":\n p = new Producto_tipo_automotor(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Electronico\":\n p = new Producto_tipo_electronico(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n }\n\n }", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "public void ingresarproducto() {\r\n String Error;//C.P.M Creamos una variable para obtener algun error \r\n /*Preguntamos si todos los campos estan llenos sino lo notificamos*/\r\n if (vistaaltaproducto.jTnombre.getText().equals(\"\") || vistaaltaproducto.jTyyyy.getText().equals(\"\") || vistaaltaproducto.jTprecio.getText().equals(\"\")\r\n || vistaaltaproducto.jTexistencia.getText().equals(\"\") || vistaaltaproducto.jTdescripcion.getText().equals(\"\") || vistaaltaproducto.jTespecificaciones.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan datos: No puede dejar cuadros en blanco\");\r\n } else {\r\n modelo.setCodigobarras(vistaaltaproducto.jTcodigobarras.getText());//C.P.M enviamos todos los datos a el modelo\r\n modelo.setNombre(vistaaltaproducto.jTnombre.getText());\r\n modelo.setCaducidad(vistaaltaproducto.jTyyyy.getText() + \"-\" + vistaaltaproducto.jTmm.getText() + \"-\" + vistaaltaproducto.jTdd.getText());\r\n modelo.setExistencia(vistaaltaproducto.jTexistencia.getText());\r\n modelo.setPrecio(vistaaltaproducto.jTprecio.getText());\r\n modelo.setDescripcion(vistaaltaproducto.jTdescripcion.getText());\r\n modelo.setEspecifica(vistaaltaproducto.jTespecificaciones.getText());\r\n Error = modelo.insertar();//C.P.M ejecutamos el metodo del modelo para insertar y esperamos algn error\r\n if (Error.equals(\"\")) {//C.P.M si error llega vacio es que todo salio bien\r\n JOptionPane.showMessageDialog(null, \"Producto: \" + vistaaltaproducto.jTnombre.getText() + \" agregado.\");//C.P.M lo notificamos\r\n vistaaltaproducto.jTnombre.setText(\"\");//C.P.M limpiamos los campos \r\n vistaaltaproducto.jTcodigobarras.setText(\"\");\r\n vistaaltaproducto.jTprecio.setText(\"\");\r\n vistaaltaproducto.jTyyyy.setText(\"\");\r\n vistaaltaproducto.jTmm.setText(\"\");\r\n vistaaltaproducto.jTdd.setText(\"\");\r\n vistaaltaproducto.jTexistencia.setText(\"\");\r\n vistaaltaproducto.jTdescripcion.setText(\"\");\r\n vistaaltaproducto.jTespecificaciones.setText(\"\");\r\n vistaaltaproducto.jTnombre.requestFocus();//C.P.M y ponemos el foco en el primer componente\r\n } else {\r\n JOptionPane.showMessageDialog(null, Error);//C.P.M de lo contrario notificamos el error\r\n }\r\n }\r\n }", "public DetalleProducto() {\n initComponents();\n }", "public ProductoNoElaborado() {\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void crearDisco( ){\r\n boolean parameter = true;\r\n String artista = panelDatos.darArtista( );\r\n String titulo = panelDatos.darTitulo( );\r\n String genero = panelDatos.darGenero( );\r\n String imagen = panelDatos.darImagen( );\r\n\r\n if( ( artista.equals( \"\" ) || titulo.equals( \"\" ) ) || ( genero.equals( \"\" ) || imagen.equals( \"\" ) ) ) {\r\n parameter = false;\r\n JOptionPane.showMessageDialog( this, \"Todos los campos deben ser llenados para crear el disco\" );\r\n }\r\n if( parameter){\r\n boolean ok = principal.crearDisco( titulo, artista, genero, imagen );\r\n if( ok )\r\n dispose( );\r\n }\r\n }", "public interface CRUDProduto {\r\n \r\n public boolean save(Produto produto);\r\n\r\n public boolean update(Produto produto);\r\n\r\n public boolean delete(Produto produto);\r\n\r\n public Produto get(long id);\r\n\r\n public List<Produto> getAll();\r\n}", "public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }", "public VistaProductos() {\n setUndecorated(true);\n initComponents();\n ValidadSoloNumeros(TextCodProduct);\n ValidadCaracteres(TextDescripcion);\n ValidadSoloNumeros(TextPrecio);\n ValidadSoloNumeros(TextCostoproduc);\n ValidadSoloNumeros(txtIvap);\n cn = Conexion.getConn();\n cargar();\n\n LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(cc.listaProvee().toArray()));\n\n obj = ControllerSql.getInstancia();\n proveedores = cc.listaProvee();\n // LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(proveedores.toArray()));\n LitsadeProovedores.setSelectedIndex(-1);\n }", "public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }", "public void ajouterChambreDeCommerce(){\n }", "public DCrearDisco( InterfazDiscotienda id ){\r\n super( id, true );\r\n principal = id;\r\n\r\n panelDatos = new PanelCrearDisco( );\r\n panelBotones = new PanelBotonesDisco( this );\r\n\r\n getContentPane( ).add( panelDatos, BorderLayout.CENTER );\r\n getContentPane( ).add( panelBotones, BorderLayout.SOUTH );\r\n\r\n setTitle( \"Crear Disco\" );\r\n pack();\r\n }", "public ProductosInventario(String codigoDeBarras, String nombre, Empresa empresa, int presentacion, int iva, int costo, int cantidad, String tipo, int precio) {\n\t\tthis.producto = new Producto(codigoDeBarras, nombre, empresa, presentacion, iva, costo,precio);\n\t\tthis.cantidad = 0;\n\t\tsetCantidad(cantidad);\n\t\tthis.tipo = tipo;\n\t}", "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 }", "@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }", "Compleja createCompleja();", "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 }", "@Override //inserisce un viaggio nel db // \r\n\tpublic boolean create(Viaggio viaggio) {\r\n\t\tboolean esito=false;\r\n\t\tif(viaggio==null) {\r\n\t\t\tSystem.out.println( \"insert(): failed to insert a null entry\");\r\n\t\t\t}\r\n\t\ttry {\r\n\t\t\tPreparedStatement prep_stmt = conn.prepareStatement(MssqlViaggioDAO.insert);\r\n\t\t\tprep_stmt.clearParameters();\r\n\t\t\t//prep_stmt.setInt(1,viaggio.getIdViaggio());\r\n\t\t\tint i=1;\r\n\t\t\tprep_stmt.setInt(i++,viaggio.getCreatore().getId());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getTitolo());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getDestinazione());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getDescrizione());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getLingua());\r\n\t\t\tprep_stmt.setInt(i++,viaggio.getBudget());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getLuogopartenza());\r\n\t\t\tprep_stmt.setInt(i++,viaggio.getStato().ordinal());\r\n\t\t\tprep_stmt.setDate(i++,viaggio.getDatainizio());\r\n\t\t\tprep_stmt.setDate(i++,viaggio.getDatafine());\r\n\t\t\tprep_stmt.setString(i++,viaggio.getImmaginiProfilo());\t\t\r\n\t\t\tif(prep_stmt.executeUpdate()>0) esito= true;\r\n\t\t\telse esito= false;\r\n\t\t\tprep_stmt.close();\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tSystem.out.println(\"create(): failed to insert entry: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\ttry {\r\n\t\t\t\tconn.close();\r\n\t\t\t\treturn esito;\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public PlanoSaude create(long plano_id);", "@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}", "private void agregarProducto(HttpServletRequest request, HttpServletResponse response) throws SQLException {\n\t\tString codArticulo = request.getParameter(\"CArt\");\n\t\tString seccion = request.getParameter(\"seccion\");\n\t\tString nombreArticulo = request.getParameter(\"NArt\");\n\t\tSimpleDateFormat formatoFecha = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate fecha = null;\n\t\ttry {\n\t\t\tfecha = formatoFecha.parse(request.getParameter(\"fecha\"));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdouble precio = Double.parseDouble(request.getParameter(\"precio\"));\n\t\tString importado = request.getParameter(\"importado\");\n\t\tString paisOrigen = request.getParameter(\"POrig\");\n\t\t// Crear un objeto del tipo producto\n\t\tProducto producto = new Producto(codArticulo, seccion, nombreArticulo, precio, fecha, importado, paisOrigen);\n\t\t// Enviar el objeto al modelo e insertar el objeto producto en la BBDD\n\t\tmodeloProductos.agregarProducto(producto);\n\t\t// Volver al listado de productos\n\t\tobtenerProductos(request, response);\n\n\t}", "@Override\n void create(Cliente cliente);", "void crearCampania(GestionPrecioDTO campania);", "@Override\r\n\tpublic MensajeBean inserta(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.inserta(nuevo);\r\n\t}", "public IProduto getCodProd();", "public BuscarProducto(AgregandoProductos ventanaPadre) {\n this.daoProductos = new ProductoJpaController();\n this.ventanaPadre = ventanaPadre;\n initComponents();\n this.setupComponents();\n }", "@FXML\n\tpublic void buttonCreateProductType(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString name = txtProductTypeName.getText();\n\t\tif (!name.equals(empty)) {\n\t\t\tProductType obj = new ProductType(txtProductTypeName.getText());\n\t\t\ttry {\n\t\t\t\tboolean found = restaurant.addProductType(obj, empleadoUsername); // Se añade a la lista de tipos de\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// producto DEL RESTAURANTE\n\t\t\t\tif (found == false) {\n\t\t\t\t\ttypeOptions.add(name);// Se añade a la lista de tipos de producto para ser mostrada en los combobox\n\t\t\t\t}\n\t\t\t\ttxtProductTypeName.setText(\"\");\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"El tipo de producto a crear debe tener un nombre \");\n\t\t\tdialog.setTitle(\"Error, Campo sin datos\");\n\t\t\tdialog.show();\n\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jToggleButton1 = new javax.swing.JToggleButton();\n jTabbedPane1 = new javax.swing.JTabbedPane();\n PanelProdutoPes = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n TextPesquisaProd = new javax.swing.JTextField();\n ButtonPesquisar = new javax.swing.JButton();\n ButtonAdicionar = new javax.swing.JButton();\n ButtonListar = new javax.swing.JButton();\n ComboFiltro = new javax.swing.JComboBox();\n PanelCadastro = new javax.swing.JPanel();\n PanelDados = new javax.swing.JPanel();\n ComboStatus = new javax.swing.JComboBox();\n ButtonNewSub = new javax.swing.JButton();\n LabelDataCad = new javax.swing.JLabel();\n TextCodigo = new javax.swing.JTextField();\n ComboSubGrupo = new javax.swing.JComboBox();\n LabelDescricao = new javax.swing.JLabel();\n ComboGrupo = new javax.swing.JComboBox();\n LabelCodigo = new javax.swing.JLabel();\n LabelStatus = new javax.swing.JLabel();\n LabelGrupo = new javax.swing.JLabel();\n ButtonNewGrupo = new javax.swing.JButton();\n TextDescricao = new javax.swing.JTextField();\n LabelSubgrupo = new javax.swing.JLabel();\n LabelFornecedor = new javax.swing.JLabel();\n ButtonNewForn = new javax.swing.JButton();\n LabelDescriçaoECF = new javax.swing.JLabel();\n TextDescricaoECF = new javax.swing.JTextField();\n LabelUnidade = new javax.swing.JLabel();\n ComboUnidade = new javax.swing.JComboBox();\n ButtonNewUni = new javax.swing.JButton();\n LabelCodBarras = new javax.swing.JLabel();\n TextCodBarras = new javax.swing.JTextField();\n LabelModelo = new javax.swing.JLabel();\n TextModelo = new javax.swing.JTextField();\n LabelMarca = new javax.swing.JLabel();\n TextMarca = new javax.swing.JTextField();\n ButtonNovo = new javax.swing.JButton();\n ButtonExcluir = new javax.swing.JButton();\n ButtonEditar = new javax.swing.JButton();\n ButtonSalvar = new javax.swing.JButton();\n ButtonCancelar = new javax.swing.JButton();\n DateCadastro = new com.toedter.calendar.JDateChooser();\n TextCodigo2 = new javax.swing.JTextField();\n LabelGrupo1 = new javax.swing.JLabel();\n TextCodigo3 = new javax.swing.JTextField();\n ButtonNewForn1 = new javax.swing.JButton();\n ButtonNewForn2 = new javax.swing.JButton();\n TextCodigo11 = new javax.swing.JTextField();\n ButtonNewUni1 = new javax.swing.JButton();\n jTabbedPane8 = new javax.swing.JTabbedPane();\n PanelFinanceiro4 = new javax.swing.JPanel();\n LabelModelo12 = new javax.swing.JLabel();\n TextModelo12 = new javax.swing.JTextField();\n TextModelo13 = new javax.swing.JTextField();\n LabelModelo13 = new javax.swing.JLabel();\n LabelModelo14 = new javax.swing.JLabel();\n TextModelo14 = new javax.swing.JTextField();\n TextModelo15 = new javax.swing.JTextField();\n LabelModelo15 = new javax.swing.JLabel();\n TextModelo16 = new javax.swing.JTextField();\n LabelModelo16 = new javax.swing.JLabel();\n LabelModelo17 = new javax.swing.JLabel();\n TextModelo17 = new javax.swing.JTextField();\n TextModelo18 = new javax.swing.JTextField();\n LabelModelo18 = new javax.swing.JLabel();\n TextModelo19 = new javax.swing.JTextField();\n LabelModelo19 = new javax.swing.JLabel();\n TextModelo20 = new javax.swing.JTextField();\n LabelModelo20 = new javax.swing.JLabel();\n LabelModelo21 = new javax.swing.JLabel();\n TextModelo21 = new javax.swing.JTextField();\n jPanel13 = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n AreaObs2 = new javax.swing.JTextArea();\n LabelObservacao2 = new javax.swing.JLabel();\n PanelImagem2 = new javax.swing.JPanel();\n LabelImagem2 = new javax.swing.JLabel();\n jPanel14 = new javax.swing.JPanel();\n ButtonNewPromo13 = new javax.swing.JButton();\n jPanel15 = new javax.swing.JPanel();\n TextValorCusto28 = new javax.swing.JTextField();\n LabelValorCus22 = new javax.swing.JLabel();\n TextValorCusto29 = new javax.swing.JTextField();\n LabelValorCus23 = new javax.swing.JLabel();\n TextValorCusto30 = new javax.swing.JTextField();\n LabelValorCus24 = new javax.swing.JLabel();\n TextValorCusto31 = new javax.swing.JTextField();\n LabelValorCus25 = new javax.swing.JLabel();\n TextValorCusto32 = new javax.swing.JTextField();\n LabelValorCus26 = new javax.swing.JLabel();\n PanelEstoque = new javax.swing.JPanel();\n LabelImEstoque = new javax.swing.JLabel();\n PanelTextEstoq = new javax.swing.JPanel();\n LabelEstoque = new javax.swing.JLabel();\n LabelAtual = new javax.swing.JLabel();\n LabelMax = new javax.swing.JLabel();\n CheckBoxLimite = new javax.swing.JCheckBox();\n TextAtual = new javax.swing.JTextField();\n TextMax = new javax.swing.JTextField();\n LabelMax1 = new javax.swing.JLabel();\n TextMax1 = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n LabelCodigo1 = new javax.swing.JLabel();\n TextCodigo1 = new javax.swing.JTextField();\n ButtonNewUni2 = new javax.swing.JButton();\n jPanel21 = new javax.swing.JPanel();\n jScrollPane6 = new javax.swing.JScrollPane();\n jTableSubGrupo1 = new javax.swing.JTable();\n ButtonCancelar2 = new javax.swing.JButton();\n ButtonCancelar3 = new javax.swing.JButton();\n jSeparator2 = new javax.swing.JSeparator();\n jTabbedPane7 = new javax.swing.JTabbedPane();\n jPanel11 = new javax.swing.JPanel();\n ButtonNewPromo10 = new javax.swing.JButton();\n LabelValorCus16 = new javax.swing.JLabel();\n TextValorCusto20 = new javax.swing.JTextField();\n TextValorCusto21 = new javax.swing.JTextField();\n LabelValorCus17 = new javax.swing.JLabel();\n TextValorCusto22 = new javax.swing.JTextField();\n ButtonNewPromo11 = new javax.swing.JButton();\n TextValorCusto23 = new javax.swing.JTextField();\n ButtonNewPromo12 = new javax.swing.JButton();\n jSeparator7 = new javax.swing.JSeparator();\n jPanel8 = new javax.swing.JPanel();\n TextValorCusto24 = new javax.swing.JTextField();\n LabelValorCus18 = new javax.swing.JLabel();\n TextValorCusto25 = new javax.swing.JTextField();\n LabelValorCus19 = new javax.swing.JLabel();\n ComboUnidade6 = new javax.swing.JComboBox();\n LabelUnidade6 = new javax.swing.JLabel();\n ComboUnidade7 = new javax.swing.JComboBox();\n LabelUnidade7 = new javax.swing.JLabel();\n ComboUnidade8 = new javax.swing.JComboBox();\n LabelUnidade8 = new javax.swing.JLabel();\n ComboUnidade9 = new javax.swing.JComboBox();\n LabelUnidade9 = new javax.swing.JLabel();\n jPanel12 = new javax.swing.JPanel();\n TextValorCusto26 = new javax.swing.JTextField();\n LabelValorCus20 = new javax.swing.JLabel();\n TextValorCusto27 = new javax.swing.JTextField();\n LabelValorCus21 = new javax.swing.JLabel();\n\n jToggleButton1.setText(\"jToggleButton1\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"3D - Soluções Tecnológicas - Produto\");\n\n jTabbedPane1.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n\n jTable1.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {\"0000010102\", null, \"Desktop\", null, \"Pauta\", \"100\", \"ATIVO\"}\n },\n new String [] {\n \"Código\", \"Código de Barras\", \"Descrição Completa\", \"Grupo\", \"Fornecedor\", \"Estoque\", \"Status\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jTable1.setMaximumSize(new java.awt.Dimension(2147483647, 200));\n jTable1.setMinimumSize(new java.awt.Dimension(770, 800));\n jTable1.setRowHeight(20);\n jTable1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jTable1.getTableHeader().setReorderingAllowed(false);\n jScrollPane1.setViewportView(jTable1);\n if (jTable1.getColumnModel().getColumnCount() > 0) {\n jTable1.getColumnModel().getColumn(0).setMinWidth(100);\n jTable1.getColumnModel().getColumn(0).setPreferredWidth(100);\n jTable1.getColumnModel().getColumn(0).setMaxWidth(100);\n jTable1.getColumnModel().getColumn(1).setMinWidth(120);\n jTable1.getColumnModel().getColumn(1).setPreferredWidth(120);\n jTable1.getColumnModel().getColumn(1).setMaxWidth(120);\n jTable1.getColumnModel().getColumn(2).setMinWidth(300);\n jTable1.getColumnModel().getColumn(2).setPreferredWidth(300);\n jTable1.getColumnModel().getColumn(2).setMaxWidth(300);\n jTable1.getColumnModel().getColumn(3).setMinWidth(200);\n jTable1.getColumnModel().getColumn(3).setPreferredWidth(200);\n jTable1.getColumnModel().getColumn(3).setMaxWidth(200);\n jTable1.getColumnModel().getColumn(4).setMinWidth(200);\n jTable1.getColumnModel().getColumn(4).setPreferredWidth(200);\n jTable1.getColumnModel().getColumn(4).setMaxWidth(200);\n jTable1.getColumnModel().getColumn(5).setMinWidth(100);\n jTable1.getColumnModel().getColumn(5).setPreferredWidth(100);\n jTable1.getColumnModel().getColumn(5).setMaxWidth(100);\n jTable1.getColumnModel().getColumn(6).setMinWidth(100);\n jTable1.getColumnModel().getColumn(6).setPreferredWidth(100);\n jTable1.getColumnModel().getColumn(6).setMaxWidth(100);\n }\n\n TextPesquisaProd.setFont(new java.awt.Font(\"Arial\", 0, 20)); // NOI18N\n TextPesquisaProd.setForeground(new java.awt.Color(153, 153, 153));\n TextPesquisaProd.setText(\"Selecione uma das opções de pesquisa ...\");\n TextPesquisaProd.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextPesquisaProd.setPreferredSize(new java.awt.Dimension(500, 25));\n TextPesquisaProd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextPesquisaProdActionPerformed(evt);\n }\n });\n\n ButtonPesquisar.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonPesquisar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/search.png\"))); // NOI18N\n ButtonPesquisar.setText(\"Pesquisar Produto\");\n ButtonPesquisar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonPesquisarActionPerformed(evt);\n }\n });\n\n ButtonAdicionar.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonAdicionar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add.png\"))); // NOI18N\n ButtonAdicionar.setText(\"Adicionar \");\n ButtonAdicionar.setMaximumSize(new java.awt.Dimension(300, 25));\n ButtonAdicionar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonAdicionarActionPerformed(evt);\n }\n });\n\n ButtonListar.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonListar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/abrircli.png\"))); // NOI18N\n ButtonListar.setText(\"Listar Produtos\");\n ButtonListar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonListarActionPerformed(evt);\n }\n });\n\n ComboFiltro.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n ComboFiltro.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Código Interno\", \"Código Externo\", \"Código de Barras\", \"Descrição\", \"Grupo\", \"Subgrupo\", \"Data de Cadastro\" }));\n\n javax.swing.GroupLayout PanelProdutoPesLayout = new javax.swing.GroupLayout(PanelProdutoPes);\n PanelProdutoPes.setLayout(PanelProdutoPesLayout);\n PanelProdutoPesLayout.setHorizontalGroup(\n PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelProdutoPesLayout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1295, Short.MAX_VALUE)\n .addGroup(PanelProdutoPesLayout.createSequentialGroup()\n .addComponent(TextPesquisaProd, javax.swing.GroupLayout.DEFAULT_SIZE, 540, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ComboFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ButtonPesquisar, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3)\n .addComponent(ButtonListar)\n .addGap(2, 2, 2)\n .addComponent(ButtonAdicionar, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(5, 5, 5))\n );\n PanelProdutoPesLayout.setVerticalGroup(\n PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelProdutoPesLayout.createSequentialGroup()\n .addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelProdutoPesLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)\n .addComponent(ButtonListar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(ButtonAdicionar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(ButtonPesquisar)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelProdutoPesLayout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addGroup(PanelProdutoPesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TextPesquisaProd, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ComboFiltro, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(3, 3, 3)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 531, Short.MAX_VALUE)\n .addGap(5, 5, 5))\n );\n\n jTabbedPane1.addTab(\"Pesquisar Produto\", PanelProdutoPes);\n\n PanelDados.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n ComboStatus.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n ComboStatus.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Ativo\", \"Bloqueado\", \"Inativo\" }));\n ComboStatus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboStatusActionPerformed(evt);\n }\n });\n\n ButtonNewSub.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add2.png\"))); // NOI18N\n ButtonNewSub.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewSubActionPerformed(evt);\n }\n });\n\n LabelDataCad.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelDataCad.setText(\"Data de cadastro:\");\n\n TextCodigo.setEditable(false);\n TextCodigo.setBackground(new java.awt.Color(255, 255, 255));\n TextCodigo.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextCodigo.setForeground(new java.awt.Color(153, 153, 153));\n TextCodigo.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextCodigo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextCodigoActionPerformed(evt);\n }\n });\n\n ComboSubGrupo.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n\n LabelDescricao.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelDescricao.setText(\"Descrição:\");\n\n ComboGrupo.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n\n LabelCodigo.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelCodigo.setText(\"Código:\");\n\n LabelStatus.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelStatus.setText(\"Status:\");\n\n LabelGrupo.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelGrupo.setText(\"Grupo:\");\n\n ButtonNewGrupo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add2.png\"))); // NOI18N\n ButtonNewGrupo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewGrupoActionPerformed(evt);\n }\n });\n\n TextDescricao.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextDescricao.setForeground(new java.awt.Color(153, 153, 153));\n TextDescricao.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextDescricao.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextDescricaoActionPerformed(evt);\n }\n });\n\n LabelSubgrupo.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelSubgrupo.setText(\"Subgrupo:\");\n\n LabelFornecedor.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelFornecedor.setText(\"Fornecedor:\");\n\n ButtonNewForn.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add2.png\"))); // NOI18N\n ButtonNewForn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewFornActionPerformed(evt);\n }\n });\n\n LabelDescriçaoECF.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelDescriçaoECF.setText(\"Descrição PDV:\");\n\n TextDescricaoECF.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextDescricaoECF.setForeground(new java.awt.Color(153, 153, 153));\n TextDescricaoECF.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextDescricaoECF.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextDescricaoECFActionPerformed(evt);\n }\n });\n\n LabelUnidade.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelUnidade.setText(\"Unidade:\");\n\n ComboUnidade.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n ComboUnidade.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboUnidadeActionPerformed(evt);\n }\n });\n\n ButtonNewUni.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add2.png\"))); // NOI18N\n ButtonNewUni.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewUniActionPerformed(evt);\n }\n });\n\n LabelCodBarras.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelCodBarras.setText(\"Cód. Barras:\");\n\n TextCodBarras.setEditable(false);\n TextCodBarras.setBackground(new java.awt.Color(255, 255, 255));\n TextCodBarras.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextCodBarras.setForeground(new java.awt.Color(153, 153, 153));\n TextCodBarras.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextCodBarras.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextCodBarrasActionPerformed(evt);\n }\n });\n\n LabelModelo.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo.setText(\"Modelo:\");\n\n TextModelo.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModeloActionPerformed(evt);\n }\n });\n\n LabelMarca.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelMarca.setText(\"Marca:\");\n\n TextMarca.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextMarca.setForeground(new java.awt.Color(153, 153, 153));\n TextMarca.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextMarca.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextMarcaActionPerformed(evt);\n }\n });\n\n ButtonNovo.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonNovo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add.png\"))); // NOI18N\n ButtonNovo.setText(\"Novo Produto\");\n\n ButtonExcluir.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonExcluir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/editar.png\"))); // NOI18N\n ButtonExcluir.setText(\"Editar Cadastro\");\n ButtonExcluir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonExcluirActionPerformed(evt);\n }\n });\n\n ButtonEditar.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonEditar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/close24x24.png\"))); // NOI18N\n ButtonEditar.setText(\"Excluir Cadastro\");\n ButtonEditar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonEditarActionPerformed(evt);\n }\n });\n\n ButtonSalvar.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonSalvar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/Save.png\"))); // NOI18N\n ButtonSalvar.setText(\"Salvar Cadastro\");\n ButtonSalvar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonSalvarActionPerformed(evt);\n }\n });\n\n ButtonCancelar.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/cancelarCli.png\"))); // NOI18N\n ButtonCancelar.setText(\"Cancelar\");\n ButtonCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonCancelarActionPerformed(evt);\n }\n });\n\n DateCadastro.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n DateCadastro.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/Calendar.png\")));\n\n TextCodigo2.setEditable(false);\n TextCodigo2.setBackground(new java.awt.Color(255, 255, 255));\n TextCodigo2.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextCodigo2.setForeground(new java.awt.Color(153, 153, 153));\n TextCodigo2.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextCodigo2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextCodigo2ActionPerformed(evt);\n }\n });\n\n LabelGrupo1.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelGrupo1.setText(\"NCM/SH:\");\n\n TextCodigo3.setEditable(false);\n TextCodigo3.setBackground(new java.awt.Color(255, 255, 255));\n TextCodigo3.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextCodigo3.setForeground(new java.awt.Color(153, 153, 153));\n TextCodigo3.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextCodigo3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextCodigo3ActionPerformed(evt);\n }\n });\n\n ButtonNewForn1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/pesquisarncm.png\"))); // NOI18N\n ButtonNewForn1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewForn1ActionPerformed(evt);\n }\n });\n\n ButtonNewForn2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/print.png\"))); // NOI18N\n ButtonNewForn2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewForn2ActionPerformed(evt);\n }\n });\n\n TextCodigo11.setEditable(false);\n TextCodigo11.setBackground(new java.awt.Color(255, 255, 255));\n TextCodigo11.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextCodigo11.setForeground(new java.awt.Color(153, 153, 153));\n TextCodigo11.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextCodigo11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextCodigo11ActionPerformed(evt);\n }\n });\n\n ButtonNewUni1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add2.png\"))); // NOI18N\n ButtonNewUni1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewUni1ActionPerformed(evt);\n }\n });\n\n jTabbedPane8.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \" Dados Complementares \", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Arial\", 0, 14))); // NOI18N\n jTabbedPane8.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n\n PanelFinanceiro4.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n\n LabelModelo12.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo12.setText(\"Valor Compra:\");\n\n TextModelo12.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo12.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo12.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo12.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo12ActionPerformed(evt);\n }\n });\n\n TextModelo13.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo13.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo13.setText(\"100000,00\");\n TextModelo13.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo13.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo13ActionPerformed(evt);\n }\n });\n\n LabelModelo13.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo13.setText(\"Valor Venda:\");\n\n LabelModelo14.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo14.setText(\"Preço Venda Min.:\");\n\n TextModelo14.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo14.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo14.setText(\"100000,00\");\n TextModelo14.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo14.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo14ActionPerformed(evt);\n }\n });\n\n TextModelo15.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo15.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo15.setText(\"100000,00\");\n TextModelo15.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo15.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo15ActionPerformed(evt);\n }\n });\n\n LabelModelo15.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo15.setText(\"Preço Sugerido:\");\n\n TextModelo16.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo16.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo16.setText(\"100000,00\");\n TextModelo16.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo16.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo16ActionPerformed(evt);\n }\n });\n\n LabelModelo16.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo16.setText(\"Custo Medio Liq.:\");\n\n LabelModelo17.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo17.setText(\"Preço Lucro Zero:\");\n\n TextModelo17.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo17.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo17.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo17.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo17ActionPerformed(evt);\n }\n });\n\n TextModelo18.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo18.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo18.setText(\"100000,00\");\n TextModelo18.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo18.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo18ActionPerformed(evt);\n }\n });\n\n LabelModelo18.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo18.setText(\"Preço Lucro Max.:\");\n\n TextModelo19.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo19.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo19.setText(\"100000,00\");\n TextModelo19.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo19.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo19ActionPerformed(evt);\n }\n });\n\n LabelModelo19.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo19.setText(\"Preço Lucro Min.:\");\n\n TextModelo20.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo20.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo20.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo20.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo20ActionPerformed(evt);\n }\n });\n\n LabelModelo20.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo20.setText(\"Markup:\");\n\n LabelModelo21.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelModelo21.setText(\"Valor Promocional:\");\n\n TextModelo21.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextModelo21.setForeground(new java.awt.Color(153, 153, 153));\n TextModelo21.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextModelo21.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextModelo21ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout PanelFinanceiro4Layout = new javax.swing.GroupLayout(PanelFinanceiro4);\n PanelFinanceiro4.setLayout(PanelFinanceiro4Layout);\n PanelFinanceiro4Layout.setHorizontalGroup(\n PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(LabelModelo12)\n .addGap(24, 24, 24))\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(TextModelo12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(1, 1, 1)))\n .addGap(6, 6, 6)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(TextModelo13, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelModelo13, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(LabelModelo14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TextModelo14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelModelo15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TextModelo15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(LabelModelo17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TextModelo17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(TextModelo18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(LabelModelo19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(LabelModelo18)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(LabelModelo20, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(TextModelo19, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextModelo20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelModelo16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TextModelo16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addGap(1, 1, 1)\n .addComponent(TextModelo21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(LabelModelo21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n PanelFinanceiro4Layout.setVerticalGroup(\n PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(LabelModelo16)\n .addGap(1, 1, 1)\n .addComponent(TextModelo16, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(LabelModelo15)\n .addGap(1, 1, 1)\n .addComponent(TextModelo15, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(LabelModelo14)\n .addGap(1, 1, 1)\n .addComponent(TextModelo14, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(TextModelo13, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelModelo12)\n .addComponent(LabelModelo13))\n .addGap(1, 1, 1)\n .addComponent(TextModelo12, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelModelo17)\n .addComponent(LabelModelo19)\n .addComponent(LabelModelo18)\n .addComponent(LabelModelo20))\n .addGap(1, 1, 1)\n .addGroup(PanelFinanceiro4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TextModelo17, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextModelo18, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextModelo19, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextModelo20, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(PanelFinanceiro4Layout.createSequentialGroup()\n .addComponent(LabelModelo21)\n .addGap(1, 1, 1)\n .addComponent(TextModelo21, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(16, 16, 16))\n );\n\n jTabbedPane8.addTab(\" Valores Principais \", PanelFinanceiro4);\n\n AreaObs2.setColumns(1);\n AreaObs2.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n AreaObs2.setLineWrap(true);\n AreaObs2.setRows(1);\n AreaObs2.setPreferredSize(null);\n jScrollPane5.setViewportView(AreaObs2);\n\n LabelObservacao2.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelObservacao2.setText(\"Observação:\");\n\n PanelImagem2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n LabelImagem2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n LabelImagem2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/ProdutoFoto.png\"))); // NOI18N\n LabelImagem2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n LabelImagem2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n\n javax.swing.GroupLayout PanelImagem2Layout = new javax.swing.GroupLayout(PanelImagem2);\n PanelImagem2.setLayout(PanelImagem2Layout);\n PanelImagem2Layout.setHorizontalGroup(\n PanelImagem2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelImagem2Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addComponent(LabelImagem2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n PanelImagem2Layout.setVerticalGroup(\n PanelImagem2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelImagem2Layout.createSequentialGroup()\n .addComponent(LabelImagem2)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);\n jPanel13.setLayout(jPanel13Layout);\n jPanel13Layout.setHorizontalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelObservacao2)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 493, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(PanelImagem2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel13Layout.setVerticalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()\n .addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(PanelImagem2, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addComponent(LabelObservacao2)\n .addGap(1, 1, 1)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(5, 5, 5))\n );\n\n jTabbedPane8.addTab(\" Observação / Imagem Produto\", jPanel13);\n\n ButtonNewPromo13.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonNewPromo13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/promoção.png\"))); // NOI18N\n ButtonNewPromo13.setText(\"Adicionar Uma Promoção ao Produto\");\n ButtonNewPromo13.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewPromo13ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);\n jPanel14.setLayout(jPanel14Layout);\n jPanel14Layout.setHorizontalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(ButtonNewPromo13, javax.swing.GroupLayout.DEFAULT_SIZE, 756, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel14Layout.setVerticalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(ButtonNewPromo13, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(70, Short.MAX_VALUE))\n );\n\n jTabbedPane8.addTab(\" Promoção \", jPanel14);\n\n TextValorCusto28.setEditable(false);\n TextValorCusto28.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto28.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto28.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto28.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto28.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto28ActionPerformed(evt);\n }\n });\n\n LabelValorCus22.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus22.setText(\"Codigo Balança:\");\n\n TextValorCusto29.setEditable(false);\n TextValorCusto29.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto29.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto29.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto29.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto29.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto29ActionPerformed(evt);\n }\n });\n\n LabelValorCus23.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus23.setText(\"Peso:\");\n\n TextValorCusto30.setEditable(false);\n TextValorCusto30.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto30.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto30.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto30.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto30.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto30ActionPerformed(evt);\n }\n });\n\n LabelValorCus24.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus24.setText(\"Porcento Comissao:\");\n\n TextValorCusto31.setEditable(false);\n TextValorCusto31.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto31.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto31.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto31.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto31.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto31ActionPerformed(evt);\n }\n });\n\n LabelValorCus25.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus25.setText(\"Ponto Pedido:\");\n\n TextValorCusto32.setEditable(false);\n TextValorCusto32.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto32.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto32.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto32.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto32.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto32ActionPerformed(evt);\n }\n });\n\n LabelValorCus26.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus26.setText(\"Lote Economico Compra:\");\n\n javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);\n jPanel15.setLayout(jPanel15Layout);\n jPanel15Layout.setHorizontalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelValorCus26)\n .addComponent(TextValorCusto32, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelValorCus24)\n .addComponent(TextValorCusto30, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelValorCus25)\n .addComponent(TextValorCusto31, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelValorCus22)\n .addComponent(TextValorCusto28, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelValorCus23)\n .addComponent(TextValorCusto29, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(316, Short.MAX_VALUE))\n );\n jPanel15Layout.setVerticalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(LabelValorCus22)\n .addGap(1, 1, 1)\n .addComponent(TextValorCusto28, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(LabelValorCus23)\n .addGap(1, 1, 1)\n .addComponent(TextValorCusto29, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(LabelValorCus26)\n .addGap(1, 1, 1)\n .addComponent(TextValorCusto32, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(LabelValorCus25)\n .addGap(1, 1, 1)\n .addComponent(TextValorCusto31, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(LabelValorCus24)\n .addGap(1, 1, 1)\n .addComponent(TextValorCusto30, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))))\n );\n\n jTabbedPane8.addTab(\" Dados Complementares \", jPanel15);\n\n javax.swing.GroupLayout PanelDadosLayout = new javax.swing.GroupLayout(PanelDados);\n PanelDados.setLayout(PanelDadosLayout);\n PanelDadosLayout.setHorizontalGroup(\n PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createSequentialGroup()\n .addComponent(LabelCodigo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextCodigo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(LabelCodBarras)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextCodBarras, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ButtonNewForn2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(LabelStatus)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ComboStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(PanelDadosLayout.createSequentialGroup()\n .addComponent(LabelDescricao)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(TextDescricao, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(PanelDadosLayout.createSequentialGroup()\n .addComponent(ButtonNovo, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3)\n .addComponent(ButtonExcluir)\n .addGap(3, 3, 3)\n .addComponent(ButtonEditar)\n .addGap(3, 3, 3)\n .addComponent(ButtonSalvar)\n .addGap(3, 3, 3)\n .addComponent(ButtonCancelar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createSequentialGroup()\n .addComponent(LabelFornecedor)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextCodigo11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ButtonNewForn, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(LabelDataCad)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(DateCadastro, javax.swing.GroupLayout.PREFERRED_SIZE, 164, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createSequentialGroup()\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup()\n .addComponent(LabelModelo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(LabelMarca)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextMarca, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup()\n .addComponent(LabelGrupo1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextCodigo2, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(1, 1, 1)\n .addComponent(TextCodigo3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup()\n .addComponent(LabelDescriçaoECF)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextDescricaoECF, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(LabelUnidade)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ComboUnidade, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, PanelDadosLayout.createSequentialGroup()\n .addComponent(LabelGrupo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ComboGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ButtonNewGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(LabelSubgrupo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ComboSubGrupo, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ButtonNewUni, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonNewSub, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addComponent(ButtonNewForn1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(ButtonNewUni1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jTabbedPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap())\n );\n PanelDadosLayout.setVerticalGroup(\n PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(TextCodBarras, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ComboStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelCodigo)\n .addComponent(TextCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelStatus)\n .addComponent(LabelCodBarras)))\n .addComponent(ButtonNewForn2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TextCodigo2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelGrupo1)\n .addComponent(TextCodigo3, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(ButtonNewForn1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelDescricao)\n .addComponent(TextDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TextModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelModelo)\n .addComponent(LabelMarca))\n .addComponent(TextMarca, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(ButtonNewUni1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TextDescricaoECF, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelDescriçaoECF)\n .addComponent(LabelUnidade)\n .addComponent(ComboUnidade, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(ButtonNewUni, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(ButtonNewSub, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonNewGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ComboSubGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelSubgrupo)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ComboGrupo, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelGrupo)))\n .addGap(11, 11, 11)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(LabelDataCad, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(DateCadastro, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(ButtonNewForn, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelFornecedor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TextCodigo11, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTabbedPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 179, Short.MAX_VALUE)\n .addGap(5, 5, 5)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(ButtonNovo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(PanelDadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ButtonSalvar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(ButtonCancelar)\n .addComponent(ButtonEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(ButtonExcluir))\n .addGap(5, 5, 5))\n );\n\n PanelEstoque.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n LabelImEstoque.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/shipping-icon.png\"))); // NOI18N\n LabelImEstoque.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n LabelImEstoque.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n LabelImEstoqueMouseClicked(evt);\n }\n });\n\n PanelTextEstoq.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n LabelEstoque.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelEstoque.setText(\"Estoque do Produto\");\n\n javax.swing.GroupLayout PanelTextEstoqLayout = new javax.swing.GroupLayout(PanelTextEstoq);\n PanelTextEstoq.setLayout(PanelTextEstoqLayout);\n PanelTextEstoqLayout.setHorizontalGroup(\n PanelTextEstoqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelTextEstoqLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(LabelEstoque)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n PanelTextEstoqLayout.setVerticalGroup(\n PanelTextEstoqLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelTextEstoqLayout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addComponent(LabelEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3))\n );\n\n LabelAtual.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelAtual.setText(\"Estoque Atual:\");\n\n LabelMax.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelMax.setText(\"Minimo:\");\n\n CheckBoxLimite.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n CheckBoxLimite.setText(\"Aviso de Limites\");\n\n TextAtual.setEditable(false);\n TextAtual.setBackground(new java.awt.Color(204, 204, 204));\n TextAtual.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n TextAtual.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\n TextMax.setEditable(false);\n TextMax.setBackground(new java.awt.Color(204, 204, 204));\n TextMax.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n TextMax.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\n LabelMax1.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelMax1.setText(\"Maximo:\");\n\n TextMax1.setEditable(false);\n TextMax1.setBackground(new java.awt.Color(204, 204, 204));\n TextMax1.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n TextMax1.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\n LabelCodigo1.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelCodigo1.setText(\"Almoxarifado:\");\n\n TextCodigo1.setEditable(false);\n TextCodigo1.setBackground(new java.awt.Color(255, 255, 255));\n TextCodigo1.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextCodigo1.setForeground(new java.awt.Color(153, 153, 153));\n TextCodigo1.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextCodigo1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextCodigo1ActionPerformed(evt);\n }\n });\n\n ButtonNewUni2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add2.png\"))); // NOI18N\n\n javax.swing.GroupLayout PanelEstoqueLayout = new javax.swing.GroupLayout(PanelEstoque);\n PanelEstoque.setLayout(PanelEstoqueLayout);\n PanelEstoqueLayout.setHorizontalGroup(\n PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(LabelMax)\n .addGap(54, 54, 54)\n .addComponent(TextMax))\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addComponent(PanelTextEstoq, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(1, 1, 1)\n .addComponent(CheckBoxLimite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(3, 3, 3))\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addGap(8, 8, 8)\n .addComponent(LabelAtual)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(TextAtual))\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(LabelMax1)\n .addGap(50, 50, 50)\n .addComponent(TextMax1)))\n .addGap(5, 5, 5)\n .addComponent(LabelImEstoque))\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addComponent(jSeparator1)\n .addGap(1, 1, 1))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelEstoqueLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(LabelCodigo1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextCodigo1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(3, 3, 3)\n .addComponent(ButtonNewUni2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n PanelEstoqueLayout.setVerticalGroup(\n PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelEstoqueLayout.createSequentialGroup()\n .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(PanelTextEstoq, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(CheckBoxLimite, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(TextAtual, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(LabelAtual, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelMax, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextMax, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5)\n .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelMax1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextMax1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(LabelImEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelEstoqueLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelCodigo1)\n .addComponent(TextCodigo1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonNewUni2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5))\n );\n\n jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \" Lotes do Produto \", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Arial\", 0, 14))); // NOI18N\n\n jTableSubGrupo1.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n jTableSubGrupo1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null, null}\n },\n new String [] {\n \"Código Lote\", \"Código da NF\", \"Data Entrada\", \"Data de Fabricação\", \"Data de Validade\", \"Quantidade\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, true, false, true, false, true\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jTableSubGrupo1.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n jTableSubGrupo1.setMaximumSize(new java.awt.Dimension(2147483647, 200));\n jTableSubGrupo1.setMinimumSize(new java.awt.Dimension(770, 800));\n jTableSubGrupo1.setRowHeight(20);\n jTableSubGrupo1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n jTableSubGrupo1.getTableHeader().setReorderingAllowed(false);\n jScrollPane6.setViewportView(jTableSubGrupo1);\n if (jTableSubGrupo1.getColumnModel().getColumnCount() > 0) {\n jTableSubGrupo1.getColumnModel().getColumn(0).setMinWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(0).setPreferredWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(0).setMaxWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(1).setMinWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(1).setPreferredWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(1).setMaxWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(2).setMinWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(2).setPreferredWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(2).setMaxWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(3).setMinWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(3).setPreferredWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(3).setMaxWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(4).setMinWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(4).setPreferredWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(4).setMaxWidth(120);\n jTableSubGrupo1.getColumnModel().getColumn(5).setMinWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(5).setPreferredWidth(100);\n jTableSubGrupo1.getColumnModel().getColumn(5).setMaxWidth(100);\n }\n\n ButtonCancelar2.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonCancelar2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/pesquisarncm.png\"))); // NOI18N\n ButtonCancelar2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonCancelar2ActionPerformed(evt);\n }\n });\n\n ButtonCancelar3.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonCancelar3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/add2.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);\n jPanel21.setLayout(jPanel21Layout);\n jPanel21Layout.setHorizontalGroup(\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel21Layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addGap(2, 2, 2)\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ButtonCancelar2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonCancelar3, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(2, 2, 2))\n );\n jPanel21Layout.setVerticalGroup(\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel21Layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel21Layout.createSequentialGroup()\n .addComponent(ButtonCancelar2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)\n .addComponent(ButtonCancelar3, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jTabbedPane7.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \" Fiscal \", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Arial\", 0, 14))); // NOI18N\n jTabbedPane7.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n\n ButtonNewPromo10.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonNewPromo10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/promoção.png\"))); // NOI18N\n ButtonNewPromo10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewPromo10ActionPerformed(evt);\n }\n });\n\n LabelValorCus16.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus16.setText(\"Grupo Tributario:\");\n\n TextValorCusto20.setEditable(false);\n TextValorCusto20.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto20.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto20.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto20.setText(\"1\");\n TextValorCusto20.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto20.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto20ActionPerformed(evt);\n }\n });\n\n TextValorCusto21.setEditable(false);\n TextValorCusto21.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto21.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n TextValorCusto21.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto21.setText(\"PRODUTO FABRICACAO PROPRIA SUJEITO AO ICMS ST\");\n TextValorCusto21.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto21.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto21ActionPerformed(evt);\n }\n });\n\n LabelValorCus17.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus17.setText(\"ICMS Customizado:\");\n\n TextValorCusto22.setEditable(false);\n TextValorCusto22.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto22.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto22.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto22.setText(\"1\");\n TextValorCusto22.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto22.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto22ActionPerformed(evt);\n }\n });\n\n ButtonNewPromo11.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonNewPromo11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/promoção.png\"))); // NOI18N\n ButtonNewPromo11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewPromo11ActionPerformed(evt);\n }\n });\n\n TextValorCusto23.setEditable(false);\n TextValorCusto23.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto23.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n TextValorCusto23.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto23.setText(\"PRODUTO FABRICACAO PROPRIA SUJEITO AO ICMS ST\");\n TextValorCusto23.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto23.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto23ActionPerformed(evt);\n }\n });\n\n ButtonNewPromo12.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n ButtonNewPromo12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/promoção.png\"))); // NOI18N\n ButtonNewPromo12.setText(\"Gerenciador Tributario\");\n ButtonNewPromo12.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ButtonNewPromo12ActionPerformed(evt);\n }\n });\n\n jSeparator7.setOrientation(javax.swing.SwingConstants.VERTICAL);\n\n javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(TextValorCusto21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(TextValorCusto22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(3, 3, 3)\n .addComponent(ButtonNewPromo11, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(TextValorCusto23, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(LabelValorCus16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(105, 105, 105))\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(TextValorCusto20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ButtonNewPromo10, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(7, 7, 7)))\n .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ButtonNewPromo12))\n .addComponent(LabelValorCus17, javax.swing.GroupLayout.PREFERRED_SIZE, 435, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(LabelValorCus16)\n .addGap(1, 1, 1)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ButtonNewPromo10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TextValorCusto20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ButtonNewPromo12, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(1, 1, 1)\n .addComponent(TextValorCusto21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(LabelValorCus17)\n .addGap(1, 1, 1)\n .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ButtonNewPromo11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TextValorCusto22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(1, 1, 1)\n .addComponent(TextValorCusto23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(18, Short.MAX_VALUE))\n );\n\n jTabbedPane7.addTab(\" Tributações \", jPanel11);\n\n TextValorCusto24.setEditable(false);\n TextValorCusto24.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto24.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto24.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto24.setText(\"1\");\n TextValorCusto24.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto24.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto24ActionPerformed(evt);\n }\n });\n\n LabelValorCus18.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus18.setText(\"Ex Tipi:\");\n\n TextValorCusto25.setEditable(false);\n TextValorCusto25.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto25.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto25.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto25.setText(\"1\");\n TextValorCusto25.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto25.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto25ActionPerformed(evt);\n }\n });\n\n LabelValorCus19.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus19.setText(\"Codigo Lst:\");\n\n ComboUnidade6.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n ComboUnidade6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboUnidade6ActionPerformed(evt);\n }\n });\n\n LabelUnidade6.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelUnidade6.setText(\"Iat:\");\n\n ComboUnidade7.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n ComboUnidade7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboUnidade7ActionPerformed(evt);\n }\n });\n\n LabelUnidade7.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelUnidade7.setText(\"Ippt:\");\n\n ComboUnidade8.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n ComboUnidade8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboUnidade8ActionPerformed(evt);\n }\n });\n\n LabelUnidade8.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelUnidade8.setText(\"Tipo Item Sped:\");\n\n ComboUnidade9.setFont(new java.awt.Font(\"Arial\", 0, 15)); // NOI18N\n ComboUnidade9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboUnidade9ActionPerformed(evt);\n }\n });\n\n LabelUnidade9.setFont(new java.awt.Font(\"Arial\", 0, 16)); // NOI18N\n LabelUnidade9.setText(\"Tipo:\");\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()\n .addComponent(LabelUnidade8)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(ComboUnidade6, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TextValorCusto24, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(LabelUnidade7)\n .addGap(194, 194, 194)\n .addComponent(LabelUnidade9))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(LabelUnidade6)\n .addGap(130, 130, 130)\n .addComponent(LabelValorCus18)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(LabelValorCus19)\n .addGap(0, 78, Short.MAX_VALUE))\n .addComponent(TextValorCusto25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(ComboUnidade7, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ComboUnidade8, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(ComboUnidade9, 0, 435, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelValorCus18)\n .addComponent(LabelUnidade6)\n .addComponent(LabelValorCus19))\n .addGap(1, 1, 1)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(ComboUnidade6, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextValorCusto24, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextValorCusto25, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelUnidade7)\n .addComponent(LabelUnidade9))\n .addGap(2, 2, 2)\n .addComponent(ComboUnidade7, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(ComboUnidade8, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(LabelUnidade8)\n .addGap(1, 1, 1)\n .addComponent(ComboUnidade9, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n jTabbedPane7.addTab(\" Dados Complementares \", jPanel8);\n\n TextValorCusto26.setEditable(false);\n TextValorCusto26.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto26.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto26.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto26.setText(\"1\");\n TextValorCusto26.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto26.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto26ActionPerformed(evt);\n }\n });\n\n LabelValorCus20.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus20.setText(\"Aliquota ICMS PAF:\");\n\n TextValorCusto27.setEditable(false);\n TextValorCusto27.setBackground(new java.awt.Color(255, 255, 255));\n TextValorCusto27.setFont(new java.awt.Font(\"Arial\", 0, 17)); // NOI18N\n TextValorCusto27.setForeground(new java.awt.Color(153, 153, 153));\n TextValorCusto27.setText(\"1\");\n TextValorCusto27.setMaximumSize(new java.awt.Dimension(1000, 10000));\n TextValorCusto27.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TextValorCusto27ActionPerformed(evt);\n }\n });\n\n LabelValorCus21.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n LabelValorCus21.setText(\"Aliquota ISSQN PAF:\");\n\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\n jPanel12.setLayout(jPanel12Layout);\n jPanel12Layout.setHorizontalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(LabelValorCus20, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TextValorCusto26, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(LabelValorCus21, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 90, Short.MAX_VALUE))\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(TextValorCusto27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())))\n );\n jPanel12Layout.setVerticalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(LabelValorCus20)\n .addComponent(LabelValorCus21))\n .addGap(1, 1, 1)\n .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(TextValorCusto26, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)\n .addComponent(TextValorCusto27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jTabbedPane7.addTab(\" Aliquotas Paf \", jPanel12);\n\n javax.swing.GroupLayout PanelCadastroLayout = new javax.swing.GroupLayout(PanelCadastro);\n PanelCadastro.setLayout(PanelCadastroLayout);\n PanelCadastroLayout.setHorizontalGroup(\n PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelCadastroLayout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addComponent(PanelDados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(PanelEstoque, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTabbedPane7))\n .addGap(5, 5, 5))\n );\n PanelCadastroLayout.setVerticalGroup(\n PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelCadastroLayout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addGroup(PanelCadastroLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(PanelDados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(PanelCadastroLayout.createSequentialGroup()\n .addComponent(PanelEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(2, 2, 2)\n .addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTabbedPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 237, Short.MAX_VALUE)))\n .addGap(4, 4, 4))\n );\n\n jTabbedPane1.addTab(\"Cadastro de Produto\", PanelCadastro);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1310, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane1)\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "private static void CrearVenda (BaseDades bd, int idproducte, int quantitat) {\n Producte prod = bd.consultarUnProducte(idproducte);\n java.sql.Date dataActual = getCurrentDate();//Data SQL\n if (prod != null) {\n if (bd.actualitzarStock(prod, quantitat, dataActual)>0) {//Hi ha estoc\n String taula = \"VENDES\";\n int idvenda = bd.obtenirUltimID(taula);\n Venda ven = new Venda(idvenda, prod.getIdproducte(), dataActual, quantitat);\n \n if (bd.inserirVenda(ven)>0)\n System.out.println(\"VENDA INSERIDA...\");\n } else\n System.out.println(\"NO ES POT FER LA VENDA, NO HI HA ESTOC...\");\n \n } else {\n System.out.println(\"NO HI HA EL PRODUCTE\");\n }\n }", "@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}", "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 }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n envio = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n nombreEmpleado = new javax.swing.JTextField();\n jLabel19 = new javax.swing.JLabel();\n cedulaEmpleado = new javax.swing.JTextField();\n nombre1 = new javax.swing.JTextField();\n jPanel4 = new javax.swing.JPanel();\n jLabel5 = new javax.swing.JLabel();\n tipoBusquedaCliente = new javax.swing.JComboBox();\n txtIngresoDatoCliente = new javax.swing.JTextField();\n buscar = new javax.swing.JButton();\n newCliente = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n nombreCliente = new javax.swing.JTextField();\n jLabel16 = new javax.swing.JLabel();\n cedulaCliente = new javax.swing.JTextField();\n jLabel17 = new javax.swing.JLabel();\n telefonoCliente = new javax.swing.JTextField();\n jLabel18 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n apellidoCliente = new javax.swing.JTextField();\n celularCliente = new javax.swing.JTextField();\n jPanel5 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n txtIngresoDatosPro = new javax.swing.JTextField();\n buscar1 = new javax.swing.JButton();\n tipoBusquedaProducto = new javax.swing.JComboBox();\n jLabel10 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n cantidadCompraPro = new javax.swing.JTextField();\n jLabel22 = new javax.swing.JLabel();\n nombrePro = new javax.swing.JTextField();\n jLabel23 = new javax.swing.JLabel();\n precioUnitarioPro = new javax.swing.JTextField();\n jLabel24 = new javax.swing.JLabel();\n ivaPro = new javax.swing.JTextField();\n jLabel25 = new javax.swing.JLabel();\n stockPro = new javax.swing.JTextField();\n jLabel26 = new javax.swing.JLabel();\n codBarrasPro = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n pct_descuentoPro = new javax.swing.JTextField();\n jLabel28 = new javax.swing.JLabel();\n uniCompraPro = new javax.swing.JTextField();\n jLabel29 = new javax.swing.JLabel();\n uniVentaPro = new javax.swing.JTextField();\n jPanel6 = new javax.swing.JPanel();\n jScrollPane3 = new javax.swing.JScrollPane();\n tablaDetalles = new javax.swing.JTable();\n jPanel7 = new javax.swing.JPanel();\n btnQuitar = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n subtotalTotal = new javax.swing.JTextField();\n descuentoTotal = new javax.swing.JTextField();\n totalFac = new javax.swing.JTextField();\n jPanel9 = new javax.swing.JPanel();\n rbtnSi = new javax.swing.JRadioButton();\n jLabel14 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n direccionEnvio = new javax.swing.JButton();\n rtbnNo = new javax.swing.JRadioButton();\n jPanel8 = new javax.swing.JPanel();\n jLabel15 = new javax.swing.JLabel();\n txttotalPagar = new javax.swing.JTextField();\n btnRecetaMedica = new javax.swing.JButton();\n jPanel10 = new javax.swing.JPanel();\n jButton6 = new javax.swing.JButton();\n\n setClosable(true);\n setMaximizable(true);\n setResizable(true);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Datos de la Factura\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 13), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Datos de Factura\"));\n\n jLabel2.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setText(\"Número de Factura\");\n\n jTextField2.setEditable(false);\n jTextField2.setBackground(new java.awt.Color(255, 255, 255));\n jTextField2.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jTextField2.setForeground(new java.awt.Color(51, 51, 51));\n jTextField2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jTextField2.setEnabled(false);\n\n jLabel3.setBackground(new java.awt.Color(255, 255, 255));\n jLabel3.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel3.setText(\"Fecha de Venta\");\n\n jLabel7.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"Nombre del Empleado: \");\n\n nombreEmpleado.setEditable(false);\n nombreEmpleado.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombreEmpleado.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombreEmpleado.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n nombreEmpleado.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombreEmpleadoActionPerformed(evt);\n }\n });\n\n jLabel19.setBackground(new java.awt.Color(0, 102, 204));\n jLabel19.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel19.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel19.setText(\"Cedula del Empleado:\");\n\n cedulaEmpleado.setEditable(false);\n cedulaEmpleado.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n cedulaEmpleado.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cedulaEmpleado.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n nombre1.setEditable(false);\n nombre1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombre1.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombre1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n nombre1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombre1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel19, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGap(37, 37, 37)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField2)\n .addComponent(nombreEmpleado)\n .addComponent(cedulaEmpleado)\n .addComponent(nombre1))\n .addGap(18, 18, 18))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(nombre1, javax.swing.GroupLayout.DEFAULT_SIZE, 37, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombreEmpleado, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cedulaEmpleado, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel4.setBackground(new java.awt.Color(255, 255, 255));\n jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Cliente\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jLabel5.setBackground(new java.awt.Color(255, 255, 255));\n jLabel5.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"Buscar por: \");\n\n tipoBusquedaCliente.setForeground(new java.awt.Color(0, 102, 204));\n tipoBusquedaCliente.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Cedula\", \"Nombre\" }));\n tipoBusquedaCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n tipoBusquedaCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tipoBusquedaClienteActionPerformed(evt);\n }\n });\n\n txtIngresoDatoCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txtIngresoDatoCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtIngresoDatoCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n buscar.setBackground(new java.awt.Color(255, 255, 255));\n buscar.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n buscar.setForeground(new java.awt.Color(0, 102, 204));\n buscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/lupa.png\"))); // NOI18N\n buscar.setText(\"Buscar\");\n buscar.setBorder(null);\n buscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buscarActionPerformed(evt);\n }\n });\n\n newCliente.setBackground(new java.awt.Color(255, 255, 255));\n newCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n newCliente.setForeground(new java.awt.Color(0, 102, 204));\n newCliente.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n newCliente.setText(\"¿Desea almacenar un nuevo cliente? click aqui\");\n newCliente.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n newCliente.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n newClienteMouseClicked(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setText(\"Nombre: \");\n\n nombreCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombreCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombreCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n nombreCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nombreClienteActionPerformed(evt);\n }\n });\n\n jLabel16.setBackground(new java.awt.Color(0, 102, 204));\n jLabel16.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel16.setText(\"Cedula:\");\n\n cedulaCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n cedulaCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cedulaCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel17.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel17.setText(\" Telefono \");\n\n telefonoCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n telefonoCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n telefonoCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel18.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel18.setText(\"Apellido:\");\n\n jLabel20.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel20.setText(\"Celular:\");\n\n apellidoCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n apellidoCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n apellidoCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n celularCliente.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n celularCliente.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n celularCliente.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n celularCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n celularClienteActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(tipoBusquedaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17)\n .addComponent(txtIngresoDatoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)\n .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(telefonoCliente, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)\n .addComponent(cedulaCliente, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nombreCliente, javax.swing.GroupLayout.Alignment.LEADING))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(newCliente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(109, 109, 109))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(buscar, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel18, javax.swing.GroupLayout.DEFAULT_SIZE, 123, Short.MAX_VALUE)\n .addComponent(jLabel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(apellidoCliente, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE)\n .addComponent(celularCliente))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtIngresoDatoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tipoBusquedaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(buscar))\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombreCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addGap(0, 1, Short.MAX_VALUE)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(apellidoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cedulaCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(celularCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(telefonoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(newCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(1, 1, 1))\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n jPanel5.setBackground(new java.awt.Color(255, 255, 255));\n jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Buscar Producto\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 13), new java.awt.Color(102, 102, 102))); // NOI18N\n\n jLabel1.setBackground(new java.awt.Color(255, 255, 255));\n jLabel1.setFont(new java.awt.Font(\"Calibri\", 0, 16)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(51, 51, 51));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Buscar\");\n\n txtIngresoDatosPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txtIngresoDatosPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txtIngresoDatosPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n buscar1.setBackground(new java.awt.Color(255, 255, 255));\n buscar1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n buscar1.setForeground(new java.awt.Color(0, 102, 204));\n buscar1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/lupa.png\"))); // NOI18N\n buscar1.setText(\"Buscar\");\n buscar1.setBorder(null);\n buscar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buscar1ActionPerformed(evt);\n }\n });\n\n tipoBusquedaProducto.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n tipoBusquedaProducto.setForeground(new java.awt.Color(0, 102, 204));\n tipoBusquedaProducto.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Codigo de Barras\", \"Nombre\" }));\n tipoBusquedaProducto.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 102, 204)));\n tipoBusquedaProducto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tipoBusquedaProductoActionPerformed(evt);\n }\n });\n\n jLabel10.setBackground(new java.awt.Color(255, 255, 255));\n jLabel10.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(0, 102, 204));\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel10.setText(\"Ingresar Cantidad a Comprar\");\n\n jButton1.setBackground(new java.awt.Color(255, 255, 255));\n jButton1.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jButton1.setForeground(new java.awt.Color(0, 102, 204));\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/compra.png\"))); // NOI18N\n jButton1.setText(\"Añadir\");\n jButton1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n cantidadCompraPro.setEditable(false);\n cantidadCompraPro.setFont(new java.awt.Font(\"Calibri\", 0, 12)); // NOI18N\n cantidadCompraPro.setForeground(new java.awt.Color(0, 102, 204));\n cantidadCompraPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cantidadCompraPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(102, 102, 102)));\n\n jLabel22.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel22.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel22.setText(\"Nombre: \");\n\n nombrePro.setEditable(false);\n nombrePro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n nombrePro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n nombrePro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel23.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel23.setText(\"Código de Barras:\");\n\n precioUnitarioPro.setEditable(false);\n precioUnitarioPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n precioUnitarioPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n precioUnitarioPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel24.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel24.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel24.setText(\"IVA: \");\n\n ivaPro.setEditable(false);\n ivaPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n ivaPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ivaPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel25.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel25.setText(\"Stock:\");\n\n stockPro.setEditable(false);\n stockPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n stockPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n stockPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel26.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel26.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel26.setText(\"Precio Unitario:\");\n\n codBarrasPro.setEditable(false);\n codBarrasPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n codBarrasPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n codBarrasPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel27.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel27.setText(\"Porcentaje de Descuento\");\n\n pct_descuentoPro.setEditable(false);\n pct_descuentoPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n pct_descuentoPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pct_descuentoPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n pct_descuentoPro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pct_descuentoProActionPerformed(evt);\n }\n });\n\n jLabel28.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel28.setText(\"Unidad de Compra\");\n\n uniCompraPro.setEditable(false);\n uniCompraPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n uniCompraPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n uniCompraPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n jLabel29.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel29.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel29.setText(\"Unidad de Venta\");\n\n uniVentaPro.setEditable(false);\n uniVentaPro.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n uniVentaPro.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n uniVentaPro.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel22, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(nombrePro, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniCompraPro, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniVentaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(jLabel25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(7, 7, 7)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ivaPro, javax.swing.GroupLayout.DEFAULT_SIZE, 268, Short.MAX_VALUE)\n .addComponent(precioUnitarioPro)\n .addComponent(stockPro))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addComponent(tipoBusquedaProducto, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(txtIngresoDatosPro, javax.swing.GroupLayout.PREFERRED_SIZE, 234, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(buscar1, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE)))\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, 212, Short.MAX_VALUE)\n .addComponent(jLabel27, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel23, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(codBarrasPro)\n .addComponent(pct_descuentoPro)\n .addComponent(cantidadCompraPro, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE))))\n .addGap(22, 22, 22))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(tipoBusquedaProducto, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(precioUnitarioPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nombrePro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(17, 17, 17)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ivaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniCompraPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(8, 8, 8)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(stockPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(uniVentaPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtIngresoDatosPro, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(buscar1)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(codBarrasPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(pct_descuentoPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cantidadCompraPro, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n\n jPanel6.setBackground(new java.awt.Color(255, 255, 255));\n jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Detalle de la Factura\"));\n\n jScrollPane3.setBackground(new java.awt.Color(255, 255, 255));\n jScrollPane3.setBorder(null);\n\n tablaDetalles.setBackground(new java.awt.Color(0, 102, 204));\n tablaDetalles.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n tablaDetalles.setForeground(new java.awt.Color(255, 255, 255));\n tablaDetalles.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null},\n {null, null, null, null, null}\n },\n new String [] {\n \"Cantidad\", \"Producto\", \"Precio Unitario\", \"Subtotal\", \"Descuento por Producto\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.Integer.class, java.lang.String.class, java.lang.Double.class, java.lang.Double.class, java.lang.Double.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, true, true\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tablaDetalles.setRowHeight(25);\n tablaDetalles.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tablaDetallesMouseClicked(evt);\n }\n });\n jScrollPane3.setViewportView(tablaDetalles);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 845, Short.MAX_VALUE)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 845, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 227, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 25, Short.MAX_VALUE)))\n );\n\n jPanel7.setBackground(new java.awt.Color(255, 255, 255));\n jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Opciones\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n btnQuitar.setBackground(new java.awt.Color(255, 255, 255));\n btnQuitar.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n btnQuitar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/eliminar.png\"))); // NOI18N\n btnQuitar.setText(\"Quitar\");\n btnQuitar.setEnabled(false);\n btnQuitar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnQuitarActionPerformed(evt);\n }\n });\n\n jLabel9.setText(\"Subtotal:\");\n\n jLabel12.setText(\"Descuento Total:\");\n\n jLabel13.setText(\"Total:\");\n\n subtotalTotal.setEditable(false);\n subtotalTotal.setBackground(new java.awt.Color(255, 255, 255));\n subtotalTotal.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n descuentoTotal.setEditable(false);\n descuentoTotal.setBackground(new java.awt.Color(255, 255, 255));\n descuentoTotal.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n totalFac.setEditable(false);\n totalFac.setBackground(new java.awt.Color(255, 255, 255));\n totalFac.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnQuitar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(subtotalTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(descuentoTotal)\n .addComponent(totalFac))))\n .addContainerGap())\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnQuitar, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(subtotalTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(descuentoTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(totalFac, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(32, Short.MAX_VALUE))\n );\n\n jPanel9.setBackground(new java.awt.Color(255, 255, 255));\n jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Envio\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 12), new java.awt.Color(51, 51, 51))); // NOI18N\n\n envio.add(rbtnSi);\n rbtnSi.setText(\"Si\");\n rbtnSi.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n rbtnSiMouseClicked(evt);\n }\n });\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/dinero.png\"))); // NOI18N\n jLabel14.setText(\"Precio de envio\");\n\n jTextField7.setEditable(false);\n jTextField7.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n jTextField7.setText(\"$ 2.00\");\n\n direccionEnvio.setBackground(new java.awt.Color(255, 255, 255));\n direccionEnvio.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n direccionEnvio.setForeground(new java.awt.Color(0, 102, 204));\n direccionEnvio.setText(\"Añadir direccion de Envio del cliente\");\n direccionEnvio.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n direccionEnvio.setEnabled(false);\n direccionEnvio.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n direccionEnvioActionPerformed(evt);\n }\n });\n\n envio.add(rtbnNo);\n rtbnNo.setSelected(true);\n rtbnNo.setText(\"No\");\n rtbnNo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n rtbnNoMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(rbtnSi)\n .addComponent(rtbnNo))\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(58, 58, 58)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(direccionEnvio, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(14, 14, 14)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rbtnSi)\n .addComponent(jLabel14)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rtbnNo)\n .addComponent(direccionEnvio, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21))\n );\n\n jPanel8.setBackground(new java.awt.Color(255, 255, 255));\n jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Servicios\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jLabel15.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/cobro.png\"))); // NOI18N\n jLabel15.setText(\"Total a Pagar:\");\n\n txttotalPagar.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n txttotalPagar.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n txttotalPagar.setEnabled(false);\n txttotalPagar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txttotalPagarActionPerformed(evt);\n }\n });\n\n btnRecetaMedica.setBackground(new java.awt.Color(255, 255, 255));\n btnRecetaMedica.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n btnRecetaMedica.setForeground(new java.awt.Color(0, 102, 204));\n btnRecetaMedica.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/receta.png\"))); // NOI18N\n btnRecetaMedica.setText(\"Agregar Receta Medica\");\n btnRecetaMedica.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRecetaMedicaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(txttotalPagar)\n .addGap(23, 23, 23))\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(btnRecetaMedica, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txttotalPagar, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnRecetaMedica, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(21, 21, 21))\n );\n\n jPanel10.setBackground(new java.awt.Color(255, 255, 255));\n jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)), \"Generar Factura\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Calibri\", 0, 14), new java.awt.Color(51, 51, 51))); // NOI18N\n\n jButton6.setBackground(new java.awt.Color(255, 255, 255));\n jButton6.setFont(new java.awt.Font(\"Calibri\", 0, 14)); // NOI18N\n jButton6.setForeground(new java.awt.Color(0, 102, 204));\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes/impresora.png\"))); // NOI18N\n jButton6.setText(\"Imprimir Factura\");\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton6MouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, 361, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(23, 23, 23))\n );\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "@PostMapping(\"/selo-cartaos\")\n public ResponseEntity<SeloCartao> createSeloCartao(@Valid @RequestBody SeloCartao seloCartao) throws URISyntaxException {\n log.debug(\"REST request to save SeloCartao : {}\", seloCartao);\n if (seloCartao.getId() != null) {\n throw new BadRequestAlertException(\"A new seloCartao cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n SeloCartao result = seloCartaoService.save(seloCartao);\n return ResponseEntity.created(new URI(\"/api/selo-cartaos/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public JuegoCarta() {\n initComponents();\n dibujarPuntuaciones();\n }", "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 }", "Documento createDocumento();", "private void insertData() {\n\n cliente = factory.manufacturePojo(ClienteEntity.class);\n em.persist(cliente);\n for (int i = 0; i < 3; i++) {\n FormaPagoEntity formaPagoEntity = factory.manufacturePojo(FormaPagoEntity.class);\n formaPagoEntity.setCliente(cliente);\n em.persist(formaPagoEntity);\n data.add(formaPagoEntity);\n }\n }" ]
[ "0.6807102", "0.6597859", "0.65838253", "0.65450644", "0.65166104", "0.65011877", "0.64996207", "0.64983803", "0.6456064", "0.6422654", "0.6418937", "0.6412497", "0.641248", "0.6400954", "0.6391795", "0.6338761", "0.6294624", "0.6294355", "0.62877715", "0.6285887", "0.6282405", "0.62556857", "0.6202354", "0.61974216", "0.618505", "0.61839765", "0.6178269", "0.61774886", "0.61737555", "0.61668247", "0.6165541", "0.61300355", "0.61218536", "0.6111636", "0.6108649", "0.6094569", "0.6094383", "0.609163", "0.60834754", "0.6079728", "0.6077158", "0.60627735", "0.6055861", "0.60443443", "0.6034379", "0.6020512", "0.6017838", "0.60008174", "0.59986347", "0.5997357", "0.5996188", "0.59930116", "0.59633124", "0.59616756", "0.59492767", "0.5943781", "0.59312254", "0.59243935", "0.5917642", "0.5908051", "0.5897716", "0.58895904", "0.5889242", "0.5888474", "0.58819234", "0.58799124", "0.58753717", "0.58682406", "0.5867663", "0.585914", "0.58519214", "0.584988", "0.5848159", "0.58405566", "0.58356446", "0.583267", "0.5830466", "0.58195895", "0.58160186", "0.58156264", "0.58131105", "0.5811318", "0.57999444", "0.5789093", "0.57874584", "0.5776433", "0.5776413", "0.5776155", "0.57735103", "0.57650185", "0.5763237", "0.5751803", "0.57510847", "0.57509625", "0.57486403", "0.57485116", "0.5746403", "0.5745095", "0.5742361", "0.57419354" ]
0.6987906
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); tableProdutos = new javax.swing.JTable(); subProdutos = new javax.swing.JButton(); setLocation(new java.awt.Point(100, 100)); setMaximumSize(new java.awt.Dimension(620, 350)); setMinimumSize(new java.awt.Dimension(620, 350)); setPreferredSize(new java.awt.Dimension(620, 350)); setResizable(false); setSize(new java.awt.Dimension(620, 350)); addWindowListener(new java.awt.event.WindowAdapter() { public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } }); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 20)); // NOI18N jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabel1.setText("PRODUTOS"); jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0))); tableProdutos.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Produtos", "Montar?" } ) { Class[] types = new Class [] { java.lang.Object.class, java.lang.Boolean.class }; boolean[] canEdit = new boolean [] { false, true }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jScrollPane1.setViewportView(tableProdutos); if (tableProdutos.getColumnModel().getColumnCount() > 0) { tableProdutos.getColumnModel().getColumn(0).setMinWidth(500); tableProdutos.getColumnModel().getColumn(0).setPreferredWidth(500); tableProdutos.getColumnModel().getColumn(0).setMaxWidth(500); tableProdutos.getColumnModel().getColumn(1).setMinWidth(70); tableProdutos.getColumnModel().getColumn(1).setPreferredWidth(70); tableProdutos.getColumnModel().getColumn(1).setMaxWidth(70); } javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 620, Short.MAX_VALUE) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 445, Short.MAX_VALUE) ); subProdutos.setText("OK"); subProdutos.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { subProdutosActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addGap(264, 264, 264) .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(subProdutos, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1) .addComponent(subProdutos)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.6945632", "0.6943359", "0.69363457", "0.6931661", "0.6927987", "0.6925778", "0.6925381", "0.69117576", "0.6911631", "0.68930036", "0.6892348", "0.6890817", "0.68904495", "0.6889411", "0.68838716", "0.6881747", "0.6881229", "0.68778914", "0.6876094", "0.6874808", "0.68713", "0.6859444", "0.6856188", "0.68556464", "0.6855074", "0.68549985", "0.6853093", "0.6853093", "0.68530816", "0.6843091", "0.6837124", "0.6836549", "0.6828579", "0.68282986", "0.68268806", "0.682426", "0.6823653", "0.6817904", "0.68167645", "0.68102163", "0.6808751", "0.680847", "0.68083245", "0.6807882", "0.6802814", "0.6795573", "0.6794048", "0.6792466", "0.67904556", "0.67893785", "0.6789265", "0.6788365", "0.67824304", "0.6766916", "0.6765524", "0.6765339", "0.67571205", "0.6755559", "0.6751974", "0.67510027", "0.67433685", "0.67390305", "0.6737053", "0.673608", "0.6733373", "0.67271507", "0.67262334", "0.67205364", "0.6716807", "0.67148036", "0.6714143", "0.67090863", "0.67077154", "0.67046666", "0.6701339", "0.67006236", "0.6699842", "0.66981244", "0.6694887", "0.6691074", "0.66904294" ]
0.0
-1
for loop Start at 0
public static void main(String[]args){ for(int i = 0 ; i <= 5;i++){ System.out.println("*"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void loop() {\r\n\r\n\t\tfor (int i =1; i<=10; i++) { \r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}", "@Override public void init_loop() {\n loop_cnt_++;\n }", "private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }", "public void resetIteration(){\n\t\titeration = 0;\n\t}", "public abstract int start(int i);", "public static void main(String[] args) {\n\t\t\nfor(int contador=1;contador<=100;contador+=1)\n{\n\tSystem.out.println(contador);\n}\n\t}", "private static void test() {\n\t\tint i = 0;\n\t\tArrays.fill(arr, -1);\n\t\tarr[++i] = 0;\n\t\tprintArray(arr);\n\t\ti = 0;\n\t\tArrays.fill(arr, -1);\n\t\tarr[i++] = 0;\n\t\tprintArray(arr);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint loopidx = 1\r\n\t\tint sum =0;\r\n\t\tfinal LAST_loop_IDX =10;\r\n\t}", "public static void main (String[]args) {\n for (int i = 10; i >= 1; i--) {\n System.out.println(i);\n }\n }", "@Override\r\n\tpublic void run() {\n\t\tfor(int i =1; i<=lastNum;i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(\" \"+i);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void run() {\n\t\tfor(int i=0;i<10;i++) {\n\t\t\tl.addElement(1);\n\t\t}\n\t}", "private void fletcher_loop(){\r\n\t\tfor(; i.getPosition() < array1.getLength(); i.increment(null, duration)){\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(2,3);\r\n\t\t\tshowCalc_1(sum1.get(), array1.getData(i.getPosition()));\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum1.add(array1.getData(i.getPosition())); sum1.mod(255); sum1.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(3,4);\r\n\t\t\tsum1.switchHighlight(); \r\n\t\t\tshowCalc_1(sum2.get(), sum1.get());\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum2.add(sum1.get()); sum2.mod(255); sum2.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsum2.switchHighlight();\r\n\t\t\tsc.toggleHighlight(4,2);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t\tfor(int i = 0 ;i<10;i++){\n\t\t\tSystem.out.println(\"Runner \"+i);\n\t\t}\n\t}", "@Override\r\n\tpublic void run() {\r\n\t\tfor ( int i = 0; i < 10; i++ ) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(900);\r\n\t\t\t}catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void forLoop() {\n // In this case, we have the raw score results of students.\n // In a test they took with 67 questions, we have recorded\n // how many they got correct.\n int[] testScores = {57, 65, 53, 34};\n\n // Our goal is to go through each score and convert that score into\n // a percentage score.\n // The overall flow of the code goes as follows.\n // 1) Initially, create a variable, i, and set it to 0. -> 2\n // 2) if i < testScores.length, then step 3. Otherwise, Step 5\n // 3) execute the body of code below. -> 4\n // 4) Once done executing the body, increment i by 1. -> 2.\n // 5) We're out of the loop!\n for (int i = 0; i < testScores.length; i++) {\n System.out.println(\"Test Score initially \" + testScores[i]);\n testScores[i] = (testScores[i] * 100) / 67;\n System.out.println(\"Test Score now \" + testScores[i]);\n System.out.println(\"==================\");\n }\n }", "public int getIteration();", "public void incrementLoopCount() {\n this.loopCount++;\n }", "public void run() {\n\t\tsynchronized (this) {\n\t\t\twhile(i > 0) {\n\t\t\t\ti--;\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\tpublic void reset(int iteration) {\n\t\t\t\n\t\t}", "public static void main(String[] args) {\n Runnable run = new Runnable() {\n private int origin = 0;\n @Override\n public void run() {\n for (int i=0;i<2;i++) {\n int value = ++(origin);\n try {\n TimeUnit.SECONDS.sleep(2);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n System.out.print(Thread.currentThread().getId()+\":\"+value+\"\\n\");\n }\n }\n };\n for(int i=0;i<100;i++){\n new Thread(run).start();\n }\n }", "@Override\n\tpublic void reset(int iteration) {\n\n\t}", "For(int first, int last, int step) {\n\t\tthis.first = first;\n\t\tthis.step = step;\n\t\tthis.last = last;\n\t\tcountFor++;\n\t}", "@Override\n\tpublic void run() {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tSystem.out.println(\"uzay \" + i);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void processingTotal(int i);", "public void nextIteration() {t++;}", "@Override\n\tpublic void run() {\n\t\tfor(int i = 1; i<=5; i++) {\n\t\t\tdata.up();\n\t\t}\n\t}", "public void nextIteration()\n {\n actuelIteration++;\n }", "public void startNumberMethod(int startNumber) {\n for (int i = startNumber; i <= 100; i++) {\n System.out.println(i);\n }\n }", "public static void main(String[] args) {\n\t\tfor (int i=0; i<=10; i++) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Value of i is \" +i);\r\n\t\t}\r\n\t}", "public void loop(){\n \n \n }", "@Override\r\n public void run() {\n super.run();\r\n for (int i = 0; i < 50000; i++) {\r\n System.out.println(\"i=\" + (i + 1));\r\n }\r\n }", "public void loop(){\n\t\t\n\t}", "public void enhancedForLoop() {\n int[] numbers = {77,2,66,4,5,543,7,-9876,9,10};\n for (int i = 0; i < numbers.length ; i++) {\n System.out.println(i + \" \" + numbers[i]);\n }\n \n for (int number: numbers) {\n System.out.println(\"number = \" + number);\n }\n }", "public static void main(String[] args) {\nfor(int i=0;i<5;i++)\n{\n\tSystem.out.println(i);\n}\n\t}", "@Override\n\tpublic int getIterationsNumber() {\n\t\treturn 0;\n\t}", "private static void iterator() {\n\t\t\r\n\t}", "public static void main(String[] args) {\nint i=1;\nwhile(i<=10)\n{\n\tSystem.out.println(i+\"raj\");//display nos from 1 to 10 and raj \n\ti=i+1;\n}\n\t}", "public static void main(String[] args) {\n\r\n int sum = 0;\r\n\r\n for (int i = 0; i <=10 ; i++) {\r\n sum += i;\r\n }\r\n System.out.println(sum);\r\n\r\n }", "private void calculate() throws InterruptedException {\n\tfor (int i = 1; i <= 100; i++) {\n\t Thread.sleep(100);\n\t update(i);\n\t}\n }", "public static void iterate(){\n int[] array={1,3,5,7,9,13};\n for (int i = 0; i < array.length; i++) {\n int x = array[i];\n System.out.println(x + \" \");\n\n }\n }", "public static void main(String[] args) {\n\n for(int i=1;i<0;i++)\n {\n System.out.println(i);\n }\n\n System.out.println(\"program ended\");\n\n // int i=1;\n // System.out.println(i);\n // i++;\n\n // System.out.println(i);\n // i++;\n\n // System.out.println(i);\n // i++;\n\n // System.out.println(i);\n // i++;\n\n // System.out.println(i);\n }", "public void iterate() {\n\t\tfor (int i = 0; i < this.getRemainingAmount(); i++) {\n\t\t\t// O(1) getter of the Circular Vector.\n\t\t\tCarAndTime temp = mVehicles.getIndex(i);\n\t\t\t// to increment the travel time of the car self\n\t\t\ttemp.getCar().incrementTravelTime(1);\n\t\t\t// to decrement the travel time of the car in the pair(in the\n\t\t\t// street)\n\t\t\ttemp.setTime(temp.getTime() - 1);\n\t\t}\n\n\t}", "int fillCount();", "public void run() {\n for (int i = start; i <= end; i++) {\n //reset output variable\n output = 1;\n array[i] = computeFactorial(array[i]);\n }\n }", "@Override\r\n\tpublic void run() {\n\t\tfor(int i = 0; i < 100; i++){\r\n\t\t\taccount.addAmount(1000);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void run() {\n\t\tresult =\n\t\t\tStream.iterate(new int[]{0, 1}, s -> new int[]{s[1], s[0] + s[1]})\n\t\t\t\t.limit(limit)\n\t\t\t\t.map(n -> n[0])\n\t\t\t\t.collect(toList());\n\n\t}", "public static void main(String[] args) {\n\n\t\tfor (int i=0;i<10;i++){\n\n\t\t\tInteger a = 0;\n\t\t\tfor (int j =0;j<3;j++){\n\t\t\t\tSystem.out.println(a);\n\t\t\t\ta++;\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tlong milli1 = System.currentTimeMillis();\n\t\t\tint[] algoriteOne = fillArray(80000000);\n\t\t\tlong milli2 = System.currentTimeMillis();\n\t\t\tSystem.out.println(\"Test \" + (i+1) + \" milis: \" + (milli2 - milli1));\n\t\t}\n\t}", "public void setUp2( )\n\t{\n\t\tfor( int i = 0; i < 1000; i++ )\n\t\t{\n\t\t\tlista.append( \"\" + i );\n\t\t}\n\t}", "static void increment() {\r\n\t\tfor (double i =2.4; i<=8.8; i=i+0.2) { \r\n\t\t\tSystem.out.format(\"%.1f %n \",i); //%.1f: to 1 decimal place. %n: print on a new line\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}", "public static void main(String[] args) {\r\n\t\r\n\tfor(int i =10;i>=1;i--)\r\n\t{\r\n\t\tSystem.out.println(i);\r\n\t\t\r\n\t\r\n\t}\r\n\t\r\n\tSystem.out.println(\"Happy New Year!\");\r\n\t\r\n\t\r\n\t\r\n\t}", "public void run() {\n\t\tArrayList<Integer> array = new ArrayList<>();\n\t\tfor (int i = 2; i <= 1000; i ++) {\n\t\t\tarray.add(i);\n\t\t}\n\t\tfor (int i = 0; i < array.size(); i++) {\n\t\t\tdeleteMultiple(array, i);\n\t\t}\n\t\t/* print array */\n\t\tfor (int i = 0; i < array.size(); i++) {\n\t\t\tprint(array.get(i) + \",\");\n\t\t\tif (i % 20 == 0) print(\"\\n\");\n\t\t}\n\t\t\n\t}", "public void start()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t{\n\t\t\t\tcost[i][j] = temp[i][j];\n\t\t\t\tmatrix[i][j]=0;\n\t\t\t}\n\t\t}\n\t\n\t\tfor(int k=0;k<n;k++)\n\t\t{\n\t\t\trowLabelMultiple[k]=0;\n\t\t\tcolumnLabelMultiple[k]=0;\n\t\t}\t\t\t\n\t}", "protected void iteration() {\n\t\t\tmHandler.removeCallbacks(mIteration);\n\t\t\tif (mVisible) {\n\t\t\t\tmHandler.postDelayed(mIteration, 1000 / 25);\n\t\t\t}\n\t\t}", "@Override\r\n public void run() {\n try {\r\n for (int x = 1; x <= 10500; x++) {\r\n System.out.println(x);\r\n sleep(5000);\r\n if (x % 50 == 0) {\r\n System.out.println(\"counting\");\r\n }\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public static void main(String[] args) {\n\t\tint sum=0;\n\t\tfor(int i=0; i<11; i++) {\n\t\t\tSystem.out.println(\"sum till \" +i+ \" \" + (sum = sum + i));\n\t\t\t\n\t\t}\n\t\tsum = 0;\n\t\tfor(int i=10; i>=0; i--) {\n\t\t\tSystem.out.println(\"sum till \" +i+ \" \" + (sum = sum + i));\n\t\t\t\n\t\t\n\t}\n\t}", "public void exercise_4_31()\n {\n int index = 0;\n int sum = 0;\n \n while (index < 10) {\n index++;\n sum += index;\n }\n System.out.println(sum);\n }", "public static void main(String[] args) {\n\t\tfor (int number = 20;number <= 100; number=number+2) {\n\t\t\tSystem.out.println(number);\n\t\t}\n\t}", "public void nextIterate() {\n\tdd1[0] = POW2_53 * d1;\n\tdd1[1] = 0.0;\n\tdddivd(dd1, POW3_33, dd2);\n\tddmuldd(POW3_33, Math.floor(dd2[0]), dd2);\n\tddsub(dd1, dd2, dd3);\n\td1 = dd3[0];\n\tif (d1 < 0.0) {\n\t d1 += POW3_33;\n\t}\n }", "public void setIteratorBegin() {\n iter = (next > 0 ? 0 : -1);\n }", "@Override\n\tpublic int sequence() {\n\t\treturn 0;\n\t}", "@Override\n protected void runOneIteration() throws Exception {\n }", "public static void main(String[] args) {\n\tint i = 1\n\t\tint Obergrenze = 789\n\t\t\t\tfor (int = 1; i < Obergrenze; i = i + 2) {\n\t}", "public static void main(String[] args) {\n\t\t int i=1; \n\t\t while(i<=10){ \n\t\t System.out.println(i); \n\t\t i++; \n\t\t } \n\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmLc.iterate() ;\n\t\t\t\t}", "@Override\n\tpublic Integer call() {\n\t\tint count = ThreadLocalRandom.current().nextInt(1, 11);\n\n\t\tfor (int i = 1; i <= count; i++) {\n\t\t\tSystem.out.println(\"Running...\" + i);\n\t\t}\n\n\t\treturn count;\n\t}", "@Override\n\t\t\tpublic Iterator<Integer> iterator() {\n\t\t\t\treturn new Iterator<Integer>() {\n\n\t\t\t\t\tint index = -1;\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void remove() {\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Integer next() {\n\t\t\t\t\t\tif (index >= length)\n\t\t\t\t\t\t\tthrow new RuntimeException();\n\t\t\t\t\t\treturn offset + index * delta;\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean hasNext() {\n\t\t\t\t\t\treturn ++index < length;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}", "public static void main(String[] args) {\n\t\tint i=1;\r\n\t\t/*while (i<=10){\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ti=i+1;\r\n\t\t}\r\n\t\tint j=10;\r\n\t\twhile (j>1){\r\n\t\t\tSystem.out.println(j);\r\n\t\t\tj=j-1;\r\n\t\t\t\r\n\t\t}*/\r\n\t\t\r\n\t\tfor (i=0;i<10;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t\tfor (int j=10;j>=1;j--)\r\n\t\t{\r\n\t\t\tSystem.out.println(j);\r\n\t\t}\r\n\r\n\t}", "public void run( ) {\n long sum = 0;\n for (int i = 0; i < 1000; i++) {\n sum += i;\n }\n System.out.println(sum);\n }", "public void reset() {\n index = 0;\n }", "void test(int loop){\n\t\tfor(int i=0; i<loop; i++){\n\t\t\ttest(loop / 2);\n\t\t}\n//\t\tSystem.out.printf(\"loop done: %d\\n\", loop);\n//\t\tlong end = System.nanoTime();\n\t}", "@Override\n\tpublic void run() {\n\t\tfor(int i = 1; i<=5; i++) {\n\t\t\tdata.down();\n\t\t}\n\t}", "public void loop(){\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint i=0;//initialize\n\t\twhile(i<=10)//Condtiion\n\t\t{\n\t\t\tSystem.out.println(i);\n\t\t\ti++;//increment\n\t\t}\n\t\tSystem.out.println(\"Out of Loop\");\n\t\t\n\t}", "@Override\r\n\tpublic void run() {\n\t\tfor (int i = 6; i <= 10; i++) {\r\n System.out.println(Thread.currentThread().getName() + \": \" + i); \t\r\n\r\n}\r\n\t}", "public void run() {\n\t\t\t\tfor(int i = 0;i<=50;i++){\n\t\t\t\tbussiness.sub(i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "public void iterate() {\n\n\t\tArrayList<int[]> pts = new ArrayList<int[]>();\n\t\tfor (int i = 0; i < POINTS_PER_ITER; i++) {\n\t\t\tint x = Window.mathRandom.nextInt(width);\n\t\t\tint y = Window.mathRandom.nextInt(width);\n\t\t\tpts.add(new int[] { x, y });\n\t\t}\n\n\t\tint[] bestPoint = new int[] {};\n\t\tdouble maxDist = 0;\n\t\tfor (int[] point : pts) {\n\t\t\tdouble dist = getDistFromOthers(point);\n\t\t\tif (dist > maxDist) {\n\t\t\t\tmaxDist = dist;\n\t\t\t\tbestPoint = point;\n\t\t\t}\n\t\t}\n\t\tif (check(bestPoint)) {\n\t\t\tpoints.add(bestPoint);\n\t\t} else {\n\t\t\tremainingPoints += 1;\n\t\t}\n\t}", "@Override\n public void loop()\n {\n }", "public void runOneIteration() {\n // Update user latent vectors\n\n //IntStream.range(0,userCount).peek(i->update_user(i)).forEach(j->{});\n\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n\n // Update item latent vectors\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n }", "@Test //loop test 0 passes\n\tpublic void testLoop0pass() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = -100;\n\t\tif(! items.isEmpty()) { //check if items is empty, if not get the first item's quality\n\t\t\titems.get(0).getQuality();\n\t\t}\n\t\t//assert quality is -100\n\t\tassertEquals(\"Quality -100 with 0 loop passes\", -100, quality);\n\t}", "public static void main(String[] args){\n int i = 0;\n int sum = 0;\n while (sum <= 10){\n i++;\n sum += i;\n System.out.println(i+ \",\" + sum);\n }\n }", "ListIter (int index){\n int blockNum=0;\n int aggSize=0;\n while (aggSize+dataBlocks[blockNum].getSize() <= index){\n aggSize+=dataBlocks[blockNum].getSize();\n blockNum++;\n }\n cursorBlock = blockNum;\n cursorElement = index-aggSize;\n cursor = index;\n }", "public static void main(String[] args) {\n\tint i=1;\n\tdo\n\t{\n\t\tSystem.out.println(i);\n\t\ti++;\n\t}\n\twhile(i<=10);\n\t\n}", "@Override\r\n\tpublic void run() {\n\t\t\r\n\t\tfor(int i=0;i<=4;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Hii ....\");\r\n\t\t\ttry {\r\n\t\t\t\tThread.currentThread().sleep(1000);\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 run(){\n\t\ttry {\n\t\t\tint i = 0;\n\t\t\twhile (rn_array[i] != 0) i++;\n\t\t\trn_array[i] = r.nextInt(100)+1;\n\t\t\t\n\t\t\t/*switch (index){\n\t\t\tcase 0:\n\t\t\t\trn1 = r.nextInt(100)+1;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\trn2 = r.nextInt(100)+1;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\trn3 = r.nextInt(100)+1;\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\trn4 = r.nextInt(100)+1;\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\trn5 = r.nextInt(100)+1;\n\t\t\t\tbreak;\n\t\t\t}*/\n\t\t\tThread.sleep(100);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\tpublic void run() {\n\r\n\t\tfor (int i = 0; i < 20; i++) {\r\n\t\t\ttry {\r\n\t\t\t\tsleep(1000);\r\n\t\t\t\tSystem.out.println(\"TTT\"+i);\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\t\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n int i = 1; //循环次数\r\n while (i<=100 ) {\r\n System.out.println(\"这是我第\" + i + \"次鼓励:好好学习\");\r\n i++; // 循环次数+1,维持i的意义(循环次数)正确,循环不变量,不变的是意义,数值发生变化为了使意义正确\r\n }\r\n }", "protected void end() {\n \tclimber.ascend(0, 0);\n }", "public static void main(String[] args) {\n\t\tint start = 100;\r\n\t\tint end = 1;\r\n\t\t//int add = 1;\r\n\t\twhile (start>=end) {\r\n\t\t\tSystem.out.println(start);\r\n\t\t\t//start = start - add;\r\n\t\t\tstart--;\r\n\t\t}\r\n\t}", "public void resetLoop(){\n\t\tloopTime = 0;\n\t}", "@Override\n\tpublic void run() {\n\t\tfor(int i = 0;i < 100;i++){\n\t\t\tif(i % 20 == 0){\n\t\t\t\tThread.yield();\n\t\t\t}\n\t\t\tSystem.out.println(Thread.currentThread().getName()+\"---->\"+i);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tfor(int i =1;i <=100;i++){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}", "@Override\n\t\tpublic int nextIndex() {\n\t\t\treturn 0;\n\t\t}", "public void DiezDias()\n {\n for (int i = 0; i < 10; i++) {\n UnDia();\n }\n }", "@Override public void loop() {\n }", "ForLoopRule createForLoopRule();", "public static void main(String[] args) {\n\t\tint i= 1; // initialization \r\n\t\twhile(i<=10) { // conditional \r\n\t\t\tSystem.out.println(i);\r\n\t\t\ti=i+1; // incremental/decrement\r\n\t\t}\r\n\t\tSystem.out.println(\"************\");\r\n\t\t// print 1 to 10\r\n\t\t// for loop \r\n\t\t// j++ means j=j+1\r\n\t\tfor(int j= 1; j<=10; j++) {\r\n\t\t\tSystem.out.println(j);\r\n\t\t}\r\n\t\tSystem.out.println(\"************\");\r\n\t\t // print 10 to 1\r\n\t\t//10 9 8 7 6 5 4 3 2 1\r\n\t\tfor( int k=10; k>=1;k--) {\r\n\t\t\tSystem.out.println(k);\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\nint ans=1;\n\t\tfor(int i=0;i>=0;i++)\n{System.out.println(\"loop\");\n\t\t\tans*=100; \t\nif(i==100)\n{\n\tans=1;}\n}\n\t}", "public static void metodo01 ( int x )\r\n {\r\n // repetir enquanto valor maior que zero\r\n while ( x > 0 )\r\n {\r\n // mostrar valor\r\n IO.println ( \"Valor = \" + x );\r\n // passar ao próximo\r\n x = x - 1;\r\n } // fim se\r\n }" ]
[ "0.6685014", "0.65503436", "0.6350495", "0.6247451", "0.6210582", "0.61444277", "0.60897034", "0.5933226", "0.59185123", "0.59167016", "0.5914037", "0.59132636", "0.58977836", "0.58934194", "0.5889701", "0.5879566", "0.58744925", "0.58400595", "0.5807579", "0.5801462", "0.5782442", "0.575757", "0.57261175", "0.57167536", "0.57161134", "0.57146883", "0.56915927", "0.5678476", "0.5653229", "0.5648326", "0.56473786", "0.5641823", "0.56076634", "0.5601265", "0.55963117", "0.55949485", "0.55801463", "0.557976", "0.5578907", "0.55765784", "0.55742794", "0.55698335", "0.555776", "0.5539596", "0.553823", "0.55339503", "0.5524883", "0.552133", "0.5518654", "0.55066425", "0.5501266", "0.54923356", "0.5485733", "0.5475762", "0.547505", "0.5471967", "0.54697233", "0.546952", "0.54672617", "0.5457982", "0.54490006", "0.5445535", "0.54438895", "0.54404354", "0.54387194", "0.5438053", "0.5435776", "0.5433343", "0.54295146", "0.5427796", "0.54250556", "0.5413678", "0.5410847", "0.5405584", "0.5397721", "0.53880566", "0.5385306", "0.5385234", "0.5383177", "0.53783137", "0.5376051", "0.53738576", "0.5371838", "0.5369167", "0.53572506", "0.535476", "0.53496027", "0.53484225", "0.5347594", "0.5347222", "0.5347128", "0.53462523", "0.53448254", "0.53427285", "0.53424543", "0.53318435", "0.53312796", "0.5328648", "0.53264004", "0.5316226", "0.5311408" ]
0.0
-1
Set the content view and display the current image
@Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); uri = getIntent().getStringExtra("uri"); imageArray = getIntent().getStringArrayListExtra("array"); getIntent().getParcelableArrayListExtra("array"); setContentView(R.layout.image_view_main); imageView = (ImageView) findViewById(R.id.imageView); Picasso.with(this).load(uri).into(imageView); index = getIntent().getIntExtra("index", 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showView() {\n\t\tfinal ImageView image = (ImageView) findViewById(R.id.image); \n\t\t//screen.addView(image);\n\t\t//image.setImageResource(images[0]);\n\n\t\tString fileName = getFilesDir().getPath() + \"/\" + FILE_NAME;\n\t\t//System.out.println(fileName);\n\t\tBitmap bm = BitmapFactory.decodeFile(fileName); \n\t\t\n\t\timage.setImageBitmap(bm); \n\t\t\n\t\t//System.out.println(\"show done!\\n\");\t\t\n\t\t\n\t}", "private void displayCurrentPicture() {\r\n\t\tglobalContainer.setWidget(0, 0, getCurrentPicture());\r\n\t}", "public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }", "public void displayNewImage() {\n\t\tthis.canvas.display();\n\t}", "private void showBitmap() {\n Bitmap bitmap = BitmapFactory.decodeByteArray(mImgData, 0, mImgData.length);\n mImgView.setImageBitmap(bitmap);\n }", "public static void menu_viewimageinbrowser(ActionContext actionContext){\n Thing currentThing = actionContext.getObject(\"currentThing\");\n \n String url = XWorkerUtils.getWebUrl() + \"do?sc=xworker.ide.worldexplorer.swt.http.SwtImage\";\n url = url + \"&control=\" + currentThing.getMetadata().getPath();\n \n XWorkerUtils.ideOpenUrl(url); \n }", "@Override\n protected void loadViewLayout() {\n setContentView(R.layout.ui_imgs_graffit);\n }", "@Override\n\tprotected void initView() {\n\t\tiv_content = (ImageView) findViewById(R.id.music_content);\n\t\tiv_music = (ImageView) findViewById(R.id.music_me_iv);\n\t\tiv_queen = (ImageView) findViewById(R.id.music_queen_iv);\n\t\ttv_music = (TextView) findViewById(R.id.music_me_tv);\n\t\ttv_queen = (TextView) findViewById(R.id.music_queen_tv);\n\t\tiv_music.setOnClickListener(this);\n\t\tiv_queen.setOnClickListener(this);\n\t\t\n\t\tbitmap=DisplayUtil.readBitMap(getApplicationContext(), R.drawable.music_part1);\n\t\tiv_content.setImageBitmap(bitmap);\n\n\t}", "private void updateContent() {\n imageLoading.setVisibility(View.VISIBLE);\n content.setText(ContentFactory.pages.get(currentPage).getContent());\n title.setText(ContentFactory.pages.get(currentPage).getTitle());\n\n Picasso picasso = new Picasso.Builder(getApplicationContext()).listener(new Picasso.Listener() {\n\n @Override\n public void onImageLoadFailed(Picasso picasso, Uri uri, Exception exception) {\n if (exception instanceof IOException)\n picasso.load(R.drawable.missingimage).fit().centerCrop().into(image);\n }\n\n }).build();\n\n picasso.load(ContentFactory.pages.get(currentPage).getImageURL()).fit().centerCrop().into(image, new Callback() {\n @Override\n public void onSuccess() {\n imageLoading.setVisibility(View.INVISIBLE);\n }\n\n @Override\n public void onError() {\n imageLoading.setVisibility(View.INVISIBLE);\n }\n });\n\n }", "private void setGalleryDisplay() {\n // ArrayList<model.Photo> photos = model.DirectoryManager.getTree().getDir().getPhotos();\n ArrayList<Photo> photos = User.getGalleryPhotos();\n if (photos != null) {\n for (model.Photo photo : photos) {\n Image imageOrigin = new Image(\"File:\" + photo.getPath());\n ImageView displayImage = new ImageView(imageOrigin);\n displayImage.setId(photo.getPath());\n\n double imageHeight = imageOrigin.getHeight();\n double imageWidth = imageOrigin.getWidth();\n displayImage.setPreserveRatio(true);\n if (imageHeight <= imageWidth) {\n displayImage.setFitWidth(190);\n } else if (imageHeight > imageWidth) {\n displayImage.setFitHeight(120);\n }\n\n displayImage.setFitWidth(190);\n displayImage.getStyleClass().add(\"photoElement\");\n displayImage.setOnMouseClicked(\n (MouseEvent e) -> {\n model.User.setPhoto(model.PhotoManager.getPhoto(displayImage.getId()));\n try {\n loadNextScene(rootPane, \"/views/focusPhotoPane.fxml\");\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n });\n galleryDisplay.getChildren().add(displayImage);\n }\n }\n }", "public void displayImage() {\n RealImage real = new RealImage(url);\n real.displayImage();\n }", "@Override\n public void run() {\n Mat frame = grabFrame();\n // convert and show the frame\n Image imageToShow = FXDIPUtils.mat2Image(frame);\n updateImageView(getCurrentFrame(), imageToShow);\n }", "private void setPic() {\n int targetW = imageView.getWidth();\n int targetH = imageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageView.setImageBitmap(bitmap);\n imageView.invalidate();\n }", "private void setPic() {\n int targetW = mainImageView.getWidth();\n int targetH = mainImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n// bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mainImageView.setImageBitmap(bitmap);\n\n// bmOptions.inBitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n// mainImageView.setImageBitmap(bmOptions.inBitmap);\n }", "private void setImageOnGUI() {\n\n // Capture position and set to the ImageView\n if (AppConstants.fullScreenBitmap != null) {\n fullScreenSnap.setImageBitmap(AppConstants.fullScreenBitmap);\n }\n\n }", "@Override\r\n\tpublic void setContent() {\n\t\tsetContentView(R.layout.mjson_layout);\r\n\t}", "private void displayImage() {\n if (currentPhotoPath != null) {\n // checkPicture = true; depreciated, try catch to catch if photo exists\n Bitmap temp = fixOrientation(BitmapFactory.decodeFile(currentPhotoPath));\n bitmapForAnalysis = temp;\n imageView.setImageBitmap(temp);\n } else {\n Toast.makeText(this, \"Image Path is null\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\r\n\t\tsetContentView(R.layout.act_imageview_src);\r\n\t\t\r\n\t\tinitLayout();\r\n\t\tinitListener();\r\n\t}", "@Override\n public void baseSetContentView() {\n View layout = View.inflate(this,\n R.layout.ac_ext_sharedfilesd_grouphome, mContentLayout);\n // mContentLayout.addView(layout);\n intent1 = getIntent();\n context = this;\n\n }", "@Override\n\tprotected void initContentView() {\n\t\t\n\t}", "private void setupView() {\n view.setName(advertisement.getTitle());\n view.setPrice(advertisement.getPrice());\n view.setDescription(advertisement.getDescription());\n view.setDate(advertisement.getDatePublished());\n view.setTags(advertisement.getTags());\n setCondition();\n if (advertisement.getImageUrl() != null) { //the url here is null right after upload\n view.setImageUrl(advertisement.getImageUrl());\n }\n }", "@Override\n public void render() {\n DepictedItem item = getContent();\n checkedView.setChecked(item.isSelected());\n depictsLabel.setText(item.getName());\n description.setText(item.getDescription());\n final String imageUrl = item.getImageUrl();\n if (TextUtils.isEmpty(imageUrl)) {\n imageView.setImageURI(UriUtil.getUriForResourceId(R.drawable.ic_wikidata_logo_24dp));\n } else {\n imageView.setImageURI(Uri.parse(imageUrl));\n }\n }", "private void screenshotView() {\n // Only take a screenshot if the activity is not finishing\n if (getContext() instanceof Activity && ((Activity) getContext()).isFinishing()) return;\n\n Bitmap screenshot = getScreenshotBitmap();\n if (screenshot == null) return;\n\n screenshotView = new ImageView(getContext());\n screenshotView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));\n screenshotView.setClickable(true);\n screenshotView.setImageBitmap(screenshot);\n screenshotOrientation = getOrientation();\n\n addView(screenshotView);\n\n TurbolinksLog.d(\"Screenshot taken\");\n }", "public void drawImage() {\n ImageView imageView = (ImageView) findViewById(R.id.photo);\n imageView.setVisibility(View.VISIBLE);\n Glide.with(MainActivity.this).load(iURI).fitCenter().into(imageView);\n }", "@Override\r\n\tpublic View makeView() {\n\t\tImageView image = new ImageView(this);\r\n\t\t// cente会让居中显示并缩放\r\n\t\timage.setScaleType(ScaleType.FIT_CENTER);\r\n\t\treturn image;\r\n\t}", "private void setupView() {\n\t\timg=(ImageView) findViewById(R.id.imageView1);\n\t}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tMat frame = grabFrame();\n\t\t\t\t\t\t// convert and show the frame\n\t\t\t\t\t\tImage imageToShow = Utils.mat2Image(frame);\n\t\t\t\t\t\tupdateImageView(imgPanel, imageToShow);\n\t\t\t\t\t}", "@Override\n public void baseSetContentView() {\n View layout = View.inflate(this, R.layout.crm_vistor_signaddinfo, mContentLayout);\n mContext = this;\n }", "public void showContentView() {\n mStateView.showContent();\n }", "private void setPic() {\n int targetW = imageIV.getWidth();\n int targetH = imageIV.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageIV.setImageBitmap(bitmap);\n }", "public void displayGivenImage() {\n\t\tthis.image.display();\n\t}", "@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\timgView.setImageBitmap(pngBM);\n\t\t\t\t\t\t}", "private void showImageDetail() {\n }", "private void setContent(){\n nama.setText(Prefs.getString(PrefsClass.NAMA, \"\"));\n// txt_msg_nama.setText(Prefs.getString(PrefsClass.NAMA,\"\"));\n\n //set foto di header navbar\n Utils.LoadImage(MainActivity.this, pb, Prefs.getString(PrefsClass.FOTO,\"\"),foto);\n addItemSpinner();\n\n setActionBarTitle(\"\");\n\n }", "@Override\n public void run() {\n imageView.setImageBitmap(photo);\n }", "private void updateViews() {\n titleTextView.setText(currentVolume.getTitle());\n descTextView.setText(Html.fromHtml(currentVolume.getDesc(), Html.FROM_HTML_MODE_COMPACT));\n authorsTextView.setText(currentVolume.getAuthors());\n\n retrieveImage();\n }", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n// Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "public void act() {\n setImage(myGif.getCurrentImage());\n }", "@Override\r\n\tpublic void setupView() {\n\t\tbitmapUtils.configDefaultBitmapConfig(Config.RGB_565);//设置图片压缩类型\r\n\t\tbitmapUtils.configDefaultLoadingImage(R.drawable.test_default_wait_img);// 默认背景图片\r\n\t\tbitmapUtils.configDefaultLoadFailedImage(R.drawable.test_default_wait_img);// 加载失败图片\r\n\t\t\r\n\t\t// 获取数据\r\n\t\tintent = getIntent();\r\n\t\tBlogsInfoEntity entity = (BlogsInfoEntity) intent.getSerializableExtra(\"entity\");\r\n\t\tlist_images = entity.getImg_attachment();\r\n\t\tint position = intent.getIntExtra(\"position\", 0);\r\n\t\tleft_btn = (ImageView) findViewById(R.id.left_btn);\r\n\t\tleft_btn.setOnClickListener(l);\r\n\t\tcenter_content = (TextView) findViewById(R.id.center_content);\r\n\t\tcenter_content.setText(String.valueOf(position + 1) + \"/\"+ String.valueOf(list_images.size()));\r\n\t\tmViewPager = (CustomViewPager) findViewById(R.id.pager);\r\n\t\tmViewPager.setScanScroll(true);\r\n\t\tSamplePagerAdapter adapter = new SamplePagerAdapter();// 声明适配器\r\n\t\tmViewPager.setAdapter(adapter);// 绑定\r\n\t\tmViewPager.setCurrentItem(position);\r\n\t\tmViewPager.setOnPageChangeListener(new OnPageChangeListener() {\r\n\t\t\t// 页面更变\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageSelected(int position) {\r\n\t\t\t\tcenter_content.setText(String.valueOf(position + 1) + \"/\"+ String.valueOf(list_images.size()));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int state) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageScrolled(int position, float positionOffset,\r\n\t\t\t\t\tint positionOffsetPixels) {\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public synchronized void showPage() {\n final ShowPageImage viewer = new ShowPageImage();\n\n if (SwingUtilities.isEventDispatchThread()) {\n viewer.run();\n } else {\n SwingUtilities.invokeLater(viewer);\n }\n }", "public void displayImage() {\n JLabel picLabel = new JLabel(new ImageIcon(this.bi));\n JPanel jp = new JPanel();\n jp.add(picLabel);\n\n JFrame f = new JFrame();\n f.setSize(this.width, this.height);\n f.add(jp);\n f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n f.setVisible(true);\n\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n f.setLocation(dim.width/2-f.getSize().width/2, dim.height/2-f.getSize().height/2);\n\n }", "private void setContent(String content) {\n \t\tthis.mContent.setText(content);\n \t\tint index = 0;\n \t\t/*\n \t\t * //图片路径数组 ArrayList<String> images = this.mNoteItemModel.getImages();\n \t\t * if(images.isEmpty()) return ; for(String image : images){ Bitmap\n \t\t * bitmap = this.mNoteItemModel.getBitmapByTag(image);\n \t\t * //根据Bitmap对象创建ImageSpan对象 ImageSpan imageSpan = new\n \t\t * ImageSpan(this.getContext(), bitmap);\n \t\t * //创建一个SpannableString对象,以便插入用ImageSpan对象封装的图像 SpannableString\n \t\t * spannableString = new SpannableString(image); // 用ImageSpan对象替换face\n \t\t * spannableString.setSpan(imageSpan, 0, spannableString.length(),\n \t\t * Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); //将选择的图片追加到EditText中光标所在位置\n \t\t * Editable edit_text = this.mContent.getEditableText();\n \t\t * edit_text.delete(content.indexOf(image),\n \t\t * content.indexOf(image)+image.length()); index =\n \t\t * content.indexOf(image); if(index <0 || index >= content.length()){\n \t\t * edit_text.append(spannableString); }else{ edit_text.insert(index,\n \t\t * spannableString); } }\n \t\t */\n \n \t\twhile (content.indexOf(\"[0x64\", index) >= 0) {\n \t\t\tindex = content.indexOf(\"[0x64\", index);\n \t\t\tint start = index + 5;\n \t\t\tint end = content.indexOf(\"]\", start);\n \t\t\tFile root = this.getContext().getExternalFilesDir(\n \t\t\t\t\tEnvironment.DIRECTORY_PICTURES);\n \t\t\tString filePath = root.getAbsolutePath()\n \t\t\t\t\t+ content.substring(start, end);\n \t\t\tLog.d(TAG, \"\" + content.subSequence(index, end + 1));\n \t\t\tLog.d(TAG, \"\" + filePath);\n \t\t\tBitmap bitmap = BitmapFactory.decodeFile(filePath);\n \t\t\t// 根据Bitmap对象创建ImageSpan对象\n \t\t\tImageSpan imageSpan = new ImageSpan(this.getContext(), bitmap);\n \t\t\t// 创建一个SpannableString对象,以便插入用ImageSpan对象封装的图像\n \t\t\tSpannableString spannableString = new SpannableString(\n \t\t\t\t\tcontent.subSequence(index, end + 1));\n \t\t\t// 用ImageSpan对象替换face\n \t\t\tspannableString.setSpan(imageSpan, 0, spannableString.length(),\n \t\t\t\t\tSpannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n \t\t\t// 将选择的图片追加到EditText中光标所在位置\n \t\t\tEditable edit_text = this.mContent.getEditableText();\n \t\t\tedit_text.delete(index, end + 1);\n \t\t\tif (index < 0 || index >= content.length()) {\n \t\t\t\tedit_text.append(spannableString);\n \t\t\t} else {\n \t\t\t\tedit_text.insert(index, spannableString);\n \t\t\t}\n \t\t\tindex += 1;\n \t\t}\n \n \t}", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 1;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n\t\t/* Associate the Bitmap to the ImageView */\n mImageView.setImageBitmap(bitmap);\n mTextView.setText(mCurrentPhotoPath);\n\n // SendImage(mCurrentPhotoPath);\n\n // AsyncCallWS task = new AsyncCallWS();\n // Call execute\n // task.execute();\n }", "protected ImageView imageView( final int childViewIndex )\n {\n return updater.imageView( childViewIndex );\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\timageView.setImageBitmap(bitmap);\n\t\t\t\t\t}", "public void setImageView(ImageView imageView){\r\n _imageView = imageView;\r\n }", "public void setImageView(ImageView imageView){\r\n _imageView = imageView;\r\n }", "private void runSlideshow(ActionEvent actionEvent) {\n Picture pictureToDisplay = getNextPicture();\n try {\n InputStream inputStream = new FileInputStream(pictureToDisplay.getAbsolutePath());\n BufferedImage bufferedImage = ImageIO.read(inputStream);\n Image image = SwingFXUtils.toFXImage(bufferedImage, null);\n\n this.imageView.setImage(image);\n inputStream.close();\n } catch (IOException ignored) {\n }\n }", "public void initView(Context context) {\n this.imageView = new ImageView(context);\n this.imageView.setPadding(22, 22, 22, 22);\n this.imageView.setImageResource(R.mipmap.start_circle3x);\n addView(this.imageView);\n }", "@Override\n\tprotected void onFinishInflate() {\n\t\tsuper.onFinishInflate();\n\t\tSehenswuerdigkeit ziel = Spiel.getInstance().getSpielerAnDerReihe().getZiel();\n\t\tthis.setImageResource(getResources().getIdentifier(ziel.getMotivURL(), \"drawable\", \"com.dhbw.dvst\"));\n\t\t\n\t}", "@Override\n public void loadImage(@Nullable String url) {\n if (view != null) {\n if (url == null) {\n view.exit();\n return;\n }\n view.showImage(url);\n }\n }", "private void setCredentialView() {\n //get user information\n String name = currentUser.getDisplayName();\n String email = currentUser.getEmail();\n Uri photoUrl = currentUser.getPhotoUrl();\n\n //set text in header in navigation view\n userNameHandler.setText(name);\n emailHandler.setText(email);\n\n //Picasso turns photoUrl to bitmap\n //then changes the pic in header in navigation view\n Picasso.get().load(photoUrl).into(imgHandler);\n }", "@Override\r\n\tpublic View getContentView() {\n\t\treturn contentView;\r\n\t}", "@FXML\n void changeToDetailsView(PhotoUnit photoUnit) throws IOException {\n\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/Views/photoView.fxml\"));\n Parent root = loader.load();\n\n Scene scene = new Scene(root);\n\n scene.getStylesheets().add(\"Views/styles.css\");\n Stage primaryStage = (Stage) listView.getScene().getWindow();\n primaryStage.setScene(scene);\n\n //access the controller\n PhotoViewController controller = loader.getController();\n controller.initData(photoUnit);\n\n Image icon = new Image(\"/img/mars.png\");\n primaryStage.getIcons().add(icon);\n primaryStage.setTitle(\" MARS \");\n primaryStage.show();\n\n\n }", "private void initialize() {\n setImageResource(R.drawable.content);\n }", "public void display_content(gui_display_pkg content) throws Exception{\n\t\n\t\tif(activate_hyperlinks) // Add links if necessary\n\t\t\tbrowser.setText(content.content_linked);\n\t\telse browser.setText(content.content);\n\t\tbrowser.setCaretPosition(0); // Scroll to top of pane\n\t\tthis.cur_content = content;\n\t}", "private void actionViewOriginalImage ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t\tif (tableSize != 0)\r\n\t\t\t{\r\n\t\t\t\tint imagIndex = mainFormLink.getComponentPanelLeft().getComponentComboboxFileName().getSelectedIndex();\r\n\r\n\t\t\t\t//---- Get path to the original image\r\n\t\t\t\tString filePath = DataController.getTable().getElement(imagIndex).getDataFile().getFilePath();\r\n\r\n\t\t\t\t//---- Load the image into the image viewer\r\n\t\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().displayPolygonStop();\r\n\t\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().loadImage(filePath);\r\n\r\n\t\t\t\t//---- Change button icon\r\n\t\t\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_ORIGINAL_IMAGE);\r\n\r\n\t\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewImage().setIcon(iconButton);\r\n\t\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewImage().setActionCommand(FormMainHandlerCommands.AC_VIEW_CELL);\r\n\t\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewImage().setToolTipText(\"View cells\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tcatch (ExceptionMessage exception)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(exception);\r\n\t\t}\r\n\t}", "private void setPic() {\n int targetW =20;// mImageView.getWidth();\n int targetH =20;// mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;//设置仅加载位图边界信息(相当于位图的信息,但没有加载位图)\n\n //返回为NULL,即不会返回bitmap,但可以返回bitmap的横像素和纵像素还有图片类型\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "@Override\r\n public void run() {\n imageView1.setImageBitmap(bitmap);\r\n }", "@Override\n\tprotected void setView() {\n\t\tsetContentView(R.layout.activity_main);\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_image_show);\n\t\tinitView();\n\t\tinitData();\n\t\tinitEvent();\n\t}", "private void initViews() {\n /* Intent get data handler */\n fullScreenSnap = (ImageView) findViewById(R.id.fullScreenSnap);\n mToolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(mToolbar);\n getSupportActionBar().setTitle(AppConstants.imageName);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n mToolbar.setNavigationIcon(R.drawable.back_button);\n }", "private void setContentView(View view) {\n mContentView = view;\n }", "private void setPic() {\n int targetW = img_clip.getWidth();\n int targetH = img_clip.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n img_clip.setImageBitmap(bitmap);\n }", "public void setView(List<String> listImage, int position){\n selectedImage = position;\n this.listImage = listImage;\n\n /*Glide.with(this).load(listImage.get(selectedImage)).\n apply(new RequestOptions().override(imgWidth, imgHeight)).into(img_galeri_selected);*/\n Glide.with(this).load(listImage.get(selectedImage)).into(img_galeri_selected);\n layout_zoom.zoomTo(1, false);\n layout_overlay.setVisibility(View.VISIBLE);\n detail = true;\n\n layout_galeri_selected.startAnimation(anim_popin);\n //img_galeri_selected.startAnimation(anim_popin);\n }", "@FXML\r\n public void imageButtonClicked() {\r\n File file = fileChooser.showOpenDialog(viewHandler.getPrimaryStage());\r\n if (file != null) {\r\n try {\r\n viewModel.setImageurl(ImageConverter.ImageToByte(file));\r\n Image img = new Image(new ByteArrayInputStream(viewModel.getImageurl()));\r\n dogPicture.setFill(new ImagePattern(img));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "private void switchToContentView() {\n no_content.setVisibility(View.GONE);\n mRecyclerView.setVisibility(View.VISIBLE);\n }", "private ImageView setStartMenuImage() {\r\n Image image = null;\r\n try {\r\n image = new Image(new FileInputStream(\"images/icon1.png\"));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n ImageView imageView = new ImageView(image);\r\n imageView.setFitHeight(HEIGHT / 4);\r\n imageView.setPreserveRatio(true);\r\n return imageView;\r\n }", "@Override\n\t\t\t\tpublic void onObtainBitmap(Bitmap bitmap, ImageView imageView) {\n\t\t\t\t\timageView.setImageBitmap(bitmap);\n\t\t\t\t}", "public void setImageView(ImageView imageView) {\r\n _imageView = imageView;\r\n }", "private void setQuestionView() {\n\n if (currentQ.getIsImageQuestion()) {\n\n radioGroup.clearCheck();\n\n byte [] imageInByte = questionList.get(qid).getImageResource();\n\n ByteArrayInputStream imageStream = new ByteArrayInputStream(imageInByte);\n Bitmap theImage = BitmapFactory.decodeStream(imageStream);\n imageView.setImageBitmap(theImage);\n imageView.setVisibility(View.VISIBLE);\n\n txtQuestionNumber.setText(\"Question \" + (qid + 1));\n question.setText(currentQ.getQuestion());\n radio0.setText(currentQ.getA1());\n radio1.setText(currentQ.getA2());\n radio2.setText(currentQ.getA3());\n radio3.setText(currentQ.getA4());\n\n qid++;\n\n }else {\n\n radioGroup.clearCheck();\n\n imageView.setVisibility(View.GONE);\n\n txtQuestionNumber.setText(\"Question \" + (qid + 1));\n question.setText(currentQ.getQuestion());\n radio0.setText(currentQ.getA1());\n radio1.setText(currentQ.getA2());\n radio2.setText(currentQ.getA3());\n radio3.setText(currentQ.getA4());\n\n qid++;\n\n\n }\n }", "public void setMainImage(int resource) {\n this.imgMain.setImageResource(resource);\n }", "public void display() {\n startPreview();\n }", "private void setUI () {\n currentIndex = INITIAL_INDEX;\n setImagemAtual(currentIndex);\n mFoto.setColorFilter(Color.BLUE, PorterDuff.Mode.LIGHTEN);\n\n mCarregandoBarra.setVisibility(View.GONE);\n mCarregandoImagem.setVisibility(View.GONE);\n }", "public void setActiveImage() {\n\t\tsetGraphic(new ImageView(activePiece));\n\t\tisActiveImageOn = true;\t\t\n\t}", "public void getImage(View view)\n {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE);\n\n }", "public void updateDisplay() {\n\t\t\n\t\tif (!this.isAdded()) return;\n\t\t\n\t\tthis.layout.removeAllViews();\n\t\t\n\t\t/* Set the background parameters. */\n\t\tthis.layout.setBackgroundColor(this.appearance.getBackColour());\n\t\tif(this.appearance.getBackImage() != null)\n\t\t\tthis.layout.setBackground(this.appearance.getBackImage());\n\t\t\n\t\tif (url != null) {\n\t\t\tthis.webView.loadUrl(url);\n\t\t} else {\n\t\t\tthis.webView.loadData(html, \"text/html; charset=utf-8\", null);\n\n\t\t}\t\t\n\t\t\n\t\tthis.layout.addView(webView);\n\t\tthis.getActivity().setTitle(title);\n\t\t\t\t\n\t}", "@Override\n public void loadImage(String url, ImageView imageView) {\n ImageLoader.getInstance().displayImage(url, imageView);\n }", "@FXML\n public void pickOwnPicture(ActionEvent event) {\n FileChooser fc = new FileChooser();\n fc.getExtensionFilters().addAll(new FileChooser.ExtensionFilter(\"Image Files\", \"*.jpg\", \"*.png\"));\n File selectedFile = fc.showOpenDialog(null);\n\n\n if (selectedFile != null) {\n pathToFile = selectedFile.getAbsolutePath();\n ;\n Image img = new Image(selectedFile.toURI().toString());\n\n ImageView mainImageView = new ImageView(img);\n mainImageView.setPreserveRatio(true);\n mainImageView.setFitWidth(imageStackPane.getWidth());\n mainImageView.setFitHeight(imageStackPane.getHeight());\n imageStackPane.getChildren().clear();\n imageStackPane.getChildren().add(mainImageView);\n\n\n }\n }", "@Override\n\tprotected void setContentView() {\n\t\tsetContentView(R.layout.common_webview);\n\t}", "private void setPic() {\n\t\tint targetW = Constant.sRealWidth;\n\t\tint targetH = Constant.sRealHeight;\n\n\t\t/* Get the size of the image */\n\t\tBitmapFactory.Options bmOptions = new BitmapFactory.Options();\n\t\tbmOptions.inJustDecodeBounds = true;\n\t\tBitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\tint photoW = bmOptions.outWidth;\n\t\tint photoH = bmOptions.outHeight;\n\t\t\n\t\t/* Figure out which way needs to be reduced less */\n\t\tint scaleFactor = 1;\n\t\tif ((targetW > 0) || (targetH > 0)) {\n\t\t\tscaleFactor = Math.min(photoW/targetW, photoH/targetH);\t\n\t\t}\n\n\t\t/* Set bitmap options to scale the image decode target */\n\t\tbmOptions.inJustDecodeBounds = false;\n\t\tbmOptions.inSampleSize = scaleFactor;\n\t\tbmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n\t\tBitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\t\n\t\tint rotate = ViewUtils.handleRotateBitmap(mCurrentPhotoPath);\n\t\tif (rotate != 0) {\n\t\t\tbitmap = ViewUtils.rotaingBitmap(\n\t\t\t\t\trotate, bitmap);\n\t\t}\n\t\t/* Associate the Bitmap to the ImageView */\n\t\tmPictureView.setImageBitmap(bitmap);\n\t}", "public void setContents()\r\n\t{\r\n\t\t// contents.widthProperty().bind(this.prefWidthProperty());\r\n\t\t// contents.heightProperty().bind(this.prefHeightProperty());\r\n\t\t// contents.resize(width, height);\r\n\t\t// contents.relocate(width/4, height/4);\r\n\r\n\t}", "@Override\r\n public void run() {\n Mat frame = grabFrame();\r\n\r\n//\t\t\t\t\t\t// convert and show the frame\r\n//\t\t\t\t\t\tImage imageToShow = Utils.mat2Image(frame);\r\n//\t\t\t\t\t\tupdateImageView(currentFrame, imageToShow);\r\n }", "public void saveAsImage(){\n\t\tif(currentView == null){\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A tab must be open before an image can be saved\", \"Information\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcurrentView.saveAsImage();\r\n\t}", "protected void onReloadImage() {\n String url = DataProvider.SCREEN + DataProvider.SCREEN_INDEX + mScreenId + \"&time=\" + System.currentTimeMillis();\n image.setUrl(url); //just to avoid caching\n loadTree();\n }", "private void setPic() {\n int targetW = 210;\n int targetH = 320;\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n bitmap = RotateBitmap(bitmap,270);\n preview.setImageBitmap(bitmap);\n }", "private void setImageDynamic(){\n questionsClass.setQuestions(currentQuestionIndex);\n String movieName = questionsClass.getPhotoName();\n ImageView ReferenceToMovieImage = findViewById(R.id.Movie);\n int imageResource = getResources().getIdentifier(movieName, null, getPackageName());\n Drawable img = getResources().getDrawable(imageResource);\n ReferenceToMovieImage.setImageDrawable(img);\n }", "public void loadCurrentArtwork(final ImageView imageView) {\n loadImage(getCurrentCacheKey(), MusicUtils.getArtistName(), MusicUtils.getAlbumName(),\n MusicUtils.getCurrentAlbumId(), imageView, ImageType.ALBUM);\n }", "protected void setPic() {\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n ImageView image = (ImageView) findViewById(R.id.imageView1);\n \n image.setImageURI((Uri) getIntent().getExtras().get(Intent.EXTRA_STREAM)); \n }", "@Override\n public void setPhotoDetails() {\n mView.loadPhoto();\n mView.setPhotoDescription();\n }", "public void updateImage() {\n \t\tAnimation anim = this.animationCollection.at(\n \t\t\t\tfak.getCurrentAnimationTextualId());\n \n \t\t// if animation is set to something bad, then set it to back to initial\n \t\tif(anim==null)\n \t\t{\n \t\t\tfak.setCurrentAnimationTextualId(ConstantsForAPI.INITIAL);\n \t\t\tanim = this.animationCollection.at(\n \t\t\t\t\tfak.getCurrentAnimationTextualId());\n \t\t}\n \n \t\tif(anim==null)\n \t\t{\n \t\t\tanim = this.animationCollection.at(0);\n \t\t\tfak.setCurrentAnimationTextualId(anim.getTextualId());\n \t\t}\n \n \t\tif (anim != null) {\n \t\t\tif (fak.getCurrentFrame()\n \t\t\t\t\t>= anim.getLength()) {\n \t\t\t\tfak.setCurrentFrame(\n \t\t\t\t\t\tanim.getLength() - 1);\n \t\t\t}\n \n \t\t\tcom.github.a2g.core.objectmodel.Image current = anim.getImageAndPosCollection().at(\n \t\t\t\t\tfak.getCurrentFrame());\n \n \t\t\t// yes current can equal null in some weird cases where I place breakpoints...\n \t\t\tif (current != null\n \t\t\t\t\t&& !current.equals(this)) {\n \t\t\t\tif (this.currentImage != null) {\n \t\t\t\t\tthis.currentImage.setVisible(\n \t\t\t\t\t\t\tfalse, new Point(this.left,this.top));\n \t\t\t\t}\n \t\t\t\tthis.currentImage = current;\n \t\t\t}\n \t\t}\n \t\t// 2, but do this always\n \t\tif (this.currentImage != null) {\n \t\t\tthis.currentImage.setVisible(\n \t\t\t\t\tthis.visible, new Point(this.left,\n \t\t\t\t\t\t\tthis.top));\n \t\t}\n \n \t}", "void setImage(IViewModel image);", "private void displayImage(Uri uri)\t{\n\t\tLog.d(TAG, \"displayImage\");\n\t\tint width = getWindow().getWindowManager().getDefaultDisplay().getWidth();\n\t\tint height = getWindow().getWindowManager().getDefaultDisplay().getHeight();\n\t\tString imageWidth = \"\\\" width=\\\"\" + width;\n\t\tString imageHeight = \"\\\" height=\\\"\" + height;\n\t\t\n\t\tif (width < height) //use width but not height, so set height to null\n\t\t\timageHeight = \"\";\n\t\telse //use height not width, so set width to null\n\t\t\timageWidth = \"\";\n\t\t\t\t\n\t\tString imageUrl = \"file://\" + uri.getPath();\n\t\tLog.d(TAG, \"Loading image...\");\n\t\tmCropView.loadData(\"<html><head>\" +\n\t\t\t\t\"<meta name=\\\"viewport\\\" content=\\\"width=device-width\\\"/>\" +\n\t\t\t\t\t\t\"</head><body><center><img src=\\\"\"+uri.toString() + imageWidth + imageHeight +\n\t\t\t\t\t\t\"\\\"></center></body></html>\",\n\t\t\t\t\t\t\"text/html\", \"UTF-8\");\n\t\tmCropView.getSettings().setBuiltInZoomControls(true);\n\t\tmCropView.setBackgroundColor(0);\n\t\tmCropView.getSettings().setUseWideViewPort(true);\n\t\tmCropView.setInitialScale(1);\n\t\tmCropView.getSettings().setLoadWithOverviewMode(true);\n\t\tLog.d(TAG, imageUrl);\n\t\tLog.d(TAG, uri.toString());\n\t}", "private void showPreview() {\n Glide.with(this)\n .load(imageUri)\n .into(imagePreview);\n imagePreviewLayout.setVisibility(View.VISIBLE);\n imageOriginOptionsLayout.setVisibility(View.GONE);\n }", "private void displayImage(String url, ImageView image){\n Ion.with(image)\n .placeholder(R.drawable.fgclogo)\n .error(R.drawable.fgclogo)\n .load(url);\n }", "public void setImageView(double x, double y) {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image);\n \tboss.setTranslateX(x);\n \tboss.setTranslateY(y);\n }", "private void setPic() {\n int targetW = imageView.getMaxWidth();\n int targetH = imageView.getMaxHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\n bitmap = Bitmap.createScaledBitmap(bitmap, 1280, 960,false);\n Log.d(\"demo\", \"setPic: \"+ bitmap.getWidth()+\" \"+bitmap.getHeight());\n Log.d(\"demo\", \"setPic: \"+ bitmap.getByteCount()/1000);\n imageView.setImageBitmap(bitmap);\n }", "void setImageProperty() {\n\t\t imgView.setImageResource(R.drawable.weathericon);\n\t\tMatrix matrix = new Matrix();\n\t\trotate += 30;\n\t\tif (rotate == 360) {\n\t\t\trotate = 0;\n\t\t}\n\t\tfloat centerX = imgView.getWidth() / 2;\n\t\tfloat centerY = imgView.getHeight() / 2;\n\t\tmatrix.setRotate(rotate, centerX, centerY);\n\t\t//matrix.setTranslate(10, 20);\n\t\timgView.setImageMatrix(matrix); \n\t\t//ScaleType type = ScaleType.\n\t\t\n\t\t//imgView.setScaleType(scaleType);\n\t \n\t}", "@Override \r\n\t\t public boolean setViewValue(View view, Object data, \r\n\t\t String textRepresentation) {\n\t\t if(view instanceof ImageView && data instanceof Bitmap){ \r\n\t\t ImageView i = (ImageView)view; \r\n\t\t i.setImageBitmap((Bitmap) data); \r\n\t\t return true; \r\n\t\t } \r\n\t\t return false; \r\n\t\t }", "private void changeToPhotoIdleView(boolean bl) {\n this.changeLayoutTo(DefaultLayoutPattern.PREVIEW);\n if (!this.isHeadUpDesplayReady()) {\n return;\n }\n super.changeScreenButtonImage(BaseFastViewFinder.HeadUpDisplaySetupState.PHOTO_STANDBY, false);\n if (bl) {\n this.mFocusRectangles.clearExceptTouchFocus();\n } else {\n this.mFocusRectangles.onUiComponentRemoved();\n }\n this.mFocusRectangles.onRecordingStop();\n if (this.mCameraDevice.getCameraId() == 0) {\n super.setSceneIndicatorVisibleAllNotificationIndicators(1);\n }\n this.getBaseLayout().showLeftIconContainer();\n this.setOrientation(this.getOrientation());\n }" ]
[ "0.71655256", "0.67687225", "0.6500114", "0.6437658", "0.6315127", "0.6309069", "0.62970257", "0.6258791", "0.625813", "0.6208997", "0.6201422", "0.61783147", "0.614541", "0.61170226", "0.61131585", "0.6080412", "0.6077667", "0.6072797", "0.6061365", "0.6030042", "0.60203177", "0.600994", "0.6009164", "0.59946305", "0.59876215", "0.59795916", "0.59681815", "0.59382683", "0.59307486", "0.5929266", "0.59223616", "0.59171563", "0.5911376", "0.59111035", "0.5910809", "0.5901207", "0.5883929", "0.5874246", "0.58737725", "0.5844909", "0.58412653", "0.5836344", "0.5812104", "0.5808755", "0.5796525", "0.5783369", "0.5783369", "0.57830024", "0.57647365", "0.5763446", "0.5756658", "0.57529736", "0.5752142", "0.5750401", "0.5744249", "0.573628", "0.5724162", "0.57138216", "0.570935", "0.5708994", "0.5696895", "0.56898284", "0.5688549", "0.5687633", "0.5680701", "0.5664846", "0.56620204", "0.5660512", "0.5653109", "0.56518036", "0.5650872", "0.5646027", "0.56438136", "0.56283426", "0.5621213", "0.56043726", "0.56033206", "0.5602106", "0.5585943", "0.55781156", "0.557589", "0.557442", "0.557343", "0.5572889", "0.5569887", "0.5567947", "0.55671996", "0.55667526", "0.5565675", "0.55652106", "0.5564468", "0.556266", "0.5562288", "0.5554063", "0.5548022", "0.5542862", "0.5539511", "0.5532309", "0.5530942", "0.5526458", "0.5522926" ]
0.0
-1
Catch an user interaction
@Override public boolean onTouchEvent(MotionEvent event){ switch(event.getAction()){ case MotionEvent.ACTION_DOWN: x1 = event.getX(); break; case MotionEvent.ACTION_UP: x2 = event.getX(); float deltaX = x2 - x1; if (Math.abs(deltaX) > MIN_DISTANCE){ if(x2 > x1){ // left swipe imageLeft(); }else{ // right swipe imageRight(); } } break; } return super.onTouchEvent(event); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void userInteraction() {\n\t\tSystem.out.println(\"Starting user Interaction\");\n\t\twhile (true) {\n\t\t\tint input = Integer.parseInt(getUserInput(\"1 - Read, 2 - Send Email, Any other number - Exit...\"));\n\t\t\tswitch (input) {\n\t\t\tcase 1:\n\t\t\t\tcheckMails(getUserInput(\"Type Folder Name to view details : \"));\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tsendEmail();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}", "public void handleUserInput() {\n mouseProcessor.handleUserInput();\n }", "public void handleInput(InputEvent e);", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n if (input.toLowerCase().equals(\"bye\")) {\n String response = cait.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getCaitDialog(response, caitImage)\n );\n userInput.clear();\n Platform.exit();\n }\n String response = cait.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getCaitDialog(response, caitImage)\n );\n userInput.clear();\n }", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = duke.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userIcon),\n DialogBox.getDukeDialog(response, mrRobotIcon)\n );\n userInput.clear();\n if (response.equals(\"Goodbye friend.\")) {\n Platform.exit();\n }\n }", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = mug.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getMugDialog(response, mugImage)\n );\n userInput.clear();\n if (input.toUpperCase().equals(\"BYE\")) {\n PauseTransition delay = new PauseTransition(Duration.seconds(1));\n delay.setOnFinished(event -> {\n Platform.exit();\n System.exit(0);\n });\n delay.play();\n }\n }", "public void onInteract() {\n }", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n CommandResult dukeResponse;\n try {\n dukeResponse = duke.getResponse(input);\n runDialogContainer(input, dukeResponse);\n if (dukeResponse.isExit()) {\n runExitDialogContainer();\n }\n } catch (DukeException e) {\n runDialogContainer(input, e.getMessage());\n }\n userInput.clear();\n }", "public abstract void handleInput();", "public void doInteract()\r\n\t{\n\t}", "private void handleInput() {\n if (UserInput.isDown(UserInput.UP) || UserInput.isDown(UserInput.DOWN)) {\n setSelection(UserInput.isDown(UserInput.UP));\n }\n if (UserInput.isDown(UserInput.JUMP_BUTTON)) {\n if (mControlsStageActorsArray.contains(mWhiteDotControllerControls)) {\n //TODO switch mCurrentTexture\n }\n else if (mControlsStageActorsArray.contains(mWhiteDotKeyboardControls)) {\n //TODO switch mCurrentTexture\n }\n else if (mControlsStageActorsArray.contains(mWhiteDotBack)) {\n mControlsScreen.goBackToStartScreen();\n }\n }\n\n //reset toggle flag\n if (!UserInput.isDown(UserInput.UP)\n && !UserInput.isDown(UserInput.DOWN)) {\n mToggleSelectionFlag = false;\n }\n }", "public void input(){\n\t\tboolean[] inputKeyArray = inputHandler.processKeys();\n\t\tint[] inputMouseArray = inputHandler.processMouse();\n\t\tcurrentLevel.userInput(inputKeyArray, inputMouseArray);\n\t}", "public abstract void onInput();", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = getResponse(input);\n if (response.equals(ExitCommand.COMMAND_WORD)) {\n handleExit();\n }\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getDukeDialog(response, dukeImage)\n );\n userInput.clear();\n }", "@Override\n public void onUserInteraction() {\n super.onUserInteraction();\n stopHandler();\n startHandler();\n }", "@Override\n public void onInteract() {\n }", "@Override\n\tpublic void handleInput() {\n\t\t\n\t}", "@FXML\n private void handleUserInput() {\n Parser parser = new Parser();\n String input = userInput.getText();\n String response;\n if (input.equals(\"bye\")) {\n response = ui.ending();\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getDukeDialog(response, dukeImage)\n );\n userInput.clear();\n\n } else {\n response = parser.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getDukeDialog(response, dukeImage)\n );\n\n }\n userInput.clear();\n\n\n }", "@Override\r\n\tpublic void userInputOccurred(InputEvent e) {\n\t\tif (e.getType() == (InputEvent.TEXT)) {\r\n\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tString input = new String(e.getInput());\r\n\t\t\t// If it's a clear command\r\n\t\t\tif (e.getInput().equals(\"/clear\")) {\r\n\t\t\t\tclearTerminal();\r\n\t\t\t} else {\r\n\t\t\t\tif (e.getSource() == myTerminal) {\r\n\t\t\t\t\t// System.out.println(\"Terminal says: \"+input);\r\n\t\t\t\t\tthis.cmd_string(input);\r\n\t\t\t\t} else if (e.getSource() == this) {\r\n\t\t\t\t\tmyTerminal.write(input);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"Unknown src detected: \" + e.getSource());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (current_state == EXIT) {\r\n\t\t\t\tquit();\r\n\t\t\t}\r\n\r\n\t\t\t// Otherwise it's a up/down/left/right/esc command\r\n\t\t} else if (e.getType() == (InputEvent.KEY_PRESS)) {\r\n\r\n\t\t\tthis.cmd_key(e.getInput());\r\n\r\n\t\t}\r\n\r\n\t}", "@FXML\n private void handleUserInput() {\n String input = userInput.getText().strip();\n String response = \" \";\n\n DialogBox userDb = null;\n DialogBox dukeDb = null;\n\n try {\n response = this.getResponse(input);\n userDb = DialogBox.getUserDialog(input, userImage);\n dukeDb = DialogBox.getDukeDialog(response, dukeImage);\n } catch (DukeException e) {\n userDb = DialogBox.getUserDialog(input, userImage);\n dukeDb = DialogBox.getDukeDialog(GUI.sendErrorMessage(e), dukeImage);\n dukeDb.modifyColorForError();\n }\n\n dialogContainer.getChildren().addAll(\n userDb,\n dukeDb\n );\n\n userInput.clear();\n\n // Exit window once duke chatbot is closed\n if (isClosed(response)) {\n System.exit(0);\n }\n }", "private void handleUserInput() throws IOException {\n KeyStroke stroke = screen.pollInput();\n\n if (stroke == null) {\n return;\n }\n\n if (stroke.getCharacter() != null) {\n return;\n }\n\n Direction dir = directionFrom(stroke.getKeyType());\n\n if (dir == null) {\n return;\n }\n\n game.getSnake().setDirection(dir);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t}\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n dialogContainer.getChildren().add(DialogBox.getUserDialog(input, userImage));\n if (duke.getResponse(input)) {\n CompletableFuture<Void> completableFuture = CompletableFuture.runAsync(() -> {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n });\n completableFuture.thenRun(() -> Platform.exit());\n }\n userInput.clear();\n }", "public void interact() {\r\n\t\t\r\n\t}", "public void onClick(DialogInterface dialog, int id) {\n Log.d(\"Message\", userInput.getText().toString());\n r.stop();\n goToHomeActivity();\n }", "@FXML\n private void handleUserInput() {\n if (userInput.getText().trim().length() != 0) {\n String input = userInput.getText();\n String response = ailurus.getResponse(input);\n assert response.length() != 0 : \"response should not be empty\";\n assert userImage != null : \"userImage should not be null\";\n assert ailurusImage != null : \"ailurusImage should not be null\";\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getAilurusDialog(response, ailurusImage)\n );\n userInput.clear();\n if (Ailurus.isExit()) {\n userInput.setDisable(true);\n new Timer().schedule(new TimerTask() {\n @Override\n public void run() {\n Platform.exit();\n System.exit(0);\n }\n }, 1000);\n }\n } else {\n userInput.clear();\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t\tinput_from_user.requestFocusInWindow(); //gets focus back on the field\n\t\t\t\t}\n\t\t\t}", "@Override\r\n\tpublic boolean handleEvent(Event e) {\n\t\tConnection connection = (Connection) e.get(\"connection\");\r\n\t\tClient client = (Client) connection.getService();\r\n\t\tclient.clientTimeout.interrupt();\r\n\t\tString response = (String) e.get(\"response\");\r\n\r\n\t\tswitch (response) {\r\n\t\tcase \"blank_user\":\r\n\t\t\tService.logInfo(\"Please enter a username\");\r\n\t\t\tbreak;\r\n\t\tcase \"login_success\":\r\n\t\t\tclient.setPerson((Voter) e.get(\"person\"));\r\n\t\t\tclient.setCandidates((ArrayList<Candidate>) e.get(\"candidates\"));\r\n\t\t\tclient.vote();\r\n\t\t\tbreak;\r\n\t\tcase \"incorrect_password\":\r\n\t\t\tService.logInfo(\"Bad password\");\r\n\t\t\tbreak;\r\n\t\tcase \"registered_user\":\r\n\t\t\tService.logInfo(\"registered with server.\");\r\n\t\t\tbreak;\r\n\t\tcase \"user_unregistered\":\r\n\t\t\tService.logInfo(\"Please register with server.\");\r\n\t\t\tclient.enableReg();\r\n\t\t\tbreak;\r\n\t\tcase \"already_voted\":\r\n\t\t\tService.logInfo(\"You have already voted.\");\r\n\t\t\tbreak;\n\t\tcase \"district_mismatch\":\r\n\t\t\tService.logInfo(\"Attempt to log into incorrect district\");\r\n\t\t\tbreak;\n\t\tcase \"election_not_started\":\r\n\t\t\tService.logInfo(\"Election has not started\");\r\n\t\t\tbreak;\r\n\t\tcase \"election_ended\":\r\n\t\t\tService.logInfo(\"Election has ended\");\r\n\t\t\tbreak;\t\n\t\tdefault:\r\n\t\t\tService.logWarn(\"Unknown Login Response: \" + response);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "public abstract boolean listenerUserInput();", "public void takeUserInput() {\n\t\t\r\n\t}", "void input(Window window, InputHandler inputHandler) throws Exception;", "@Override\r\n\t\tpublic void handle(Event e) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tlogger.error(\"Error: handle never pressed. \");\r\n\t\t}", "public void handleThrowDices(ActionEvent event){\n sender.sendInput(\"throw dices\");\n }", "public void doInteract(int interactionId)\r\n\t{\r\n\t\tif (interactionId == PlayerCharacter.MAIN_INTERACTION)\r\n\t\t{\r\n\t\t\tdialog.showDialog();\r\n\t\t}\r\n\t}", "private UserInteraction() {\n\t\tthis.elevatorManager = ElevatorManager.getInstance();\n\t}", "@Override\n\t\t\tpublic void onUserInteraction() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tsuper.onUserInteraction();\n\t\t\t\tTruMobiTimerClass.userInteractedTrigger();\n\t\t\t}", "@Override\n public void inputHandling() {\n if (input.clickedKeys.contains(InputHandle.DefinedKey.ESCAPE.getKeyCode())\n || input.clickedKeys.contains(InputHandle.DefinedKey.RIGHT.getKeyCode())) { \n if (sourceMenu != null) {\n exit();\n sourceMenu.activate(); \n return;\n }\n }\n \n if (input.clickedKeys.contains(InputHandle.DefinedKey.UP.getKeyCode())) { \n if (selection > 0) {\n selection--;\n }\n }\n \n if (input.clickedKeys.contains(InputHandle.DefinedKey.DOWN.getKeyCode())) { \n if (selection < choices.size() - 1) {\n selection++;\n } \n }\n \n if (input.clickedKeys.contains(InputHandle.DefinedKey.ENTER.getKeyCode())) {\n if (choices.size() > 0) {\n use();\n }\n exit(); \n }\n }", "void handleActionEvent(ActionEvent event);", "@Override\n\t\t\tpublic void handle(MouseEvent e){\n\t\t\t\tAlert confirmation = new Alert(AlertType.CONFIRMATION);\n\t\t\t\tconfirmation.setTitle(\"Start game?\");\n\t\t\t\tconfirmation.setHeaderText(\"Do you wish to start the game on \" + difficultyChoices.getValue() + \" difficulty?\");\n\n\t\t\t\t//The Alert window has two buttons, an OK button and a cancel button. This variable is\n\t\t\t\t//created to store which button was clicked on by the player.\n\t\t\t\tOptional<ButtonType> result = confirmation.showAndWait();\n\t\t\t\t\n\t\t\t\t//If the player clicked on the OK button, this if statement is used.\n\t\t\t\tif(result.get() == ButtonType.OK) {\n\n\t\t\t\t\t//A switch statement checks the choice selected from the drop down menu\n\t\t\t\t\tswitch(difficultyChoices.getValue()) {\n\t\t\t\t\t//Depending on which difficulty was chosen, the difficultyGuesses int variable is\n\t\t\t\t\t//set to the maximum amount of guesses that the player is allowed, and debug messages\n\t\t\t\t\t//are displayed on the console. If the player was somehow able to reach this point\n\t\t\t\t\t//without selecting one of the options, the program closes, to prevent any issues later.\n\t\t\t\t\tcase \"Easy\" : difficultyGuesses = 7;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Easy mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Medium\" : difficultyGuesses = 5;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Medium mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Hard\" : difficultyGuesses = 3;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Hard mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault \t : System.out.println(\"For some reason, we didn't get a difficulty setting.\");\n\t\t\t\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Using the PrintWriter, a message is sent to the server. StartUpGame acts like a \n\t\t\t\t\t//keyword so that the server can access the right area of the code to use the \n\t\t\t\t\t//second parameter correctly.\n\t\t\t\t\tout.println(\"StartUpGame \" + difficultyGuesses);\n\t\t\t\t\t\n\t\t\t\t\t//A boolean is created and set to false. It is used as a crude way of waiting for a\n\t\t\t\t\t//response from the server. The while loop afterwards continues for as long as the\n\t\t\t\t\t//boolean remains false. When the correct message is received from the server, it\n\t\t\t\t\t//will set the boolean to true, which will end the while loop and continue with the\n\t\t\t\t\t//code afterwards. \n\t\t\t\t\tboolean connectionCheck = false;\n\t\t\t\t\twhile(!connectionCheck) {\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconnectionCheck = Boolean.parseBoolean(in.readLine());\n\t\t\t\t\t\t}catch(IOException ioe) {\n\t\t\t\t\t\t\t//If nothing is received, do nothing. The loop will continue as the boolean\n\t\t\t\t\t\t\t//remains false. May need to be refined in some way to determine whether no\n\t\t\t\t\t\t\t//message was received because the server's message hasn't arrived yet, or\n\t\t\t\t\t\t\t//because the connection has been completely lost and act accordingly.\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//The Alert window can now be closed\n\t\t\t\t\tconfirmation.close();\n\t\t\t\t\t\n\t\t\t\t\t//Call the game method, passing over the stage so that it can be redesigned\n\t\t\t\t\tgame(stage);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void handle(ActionEvent event) {\n if (appUser != null) {\n \tAnalyticsOutput analyticsOutput = new AnalyticsOutput();\n \tanalyticsOutput.generateOutput(conn, appUser.getUserID());\n }else {\n \tSystem.out.println(\"You have to be signed in to get analytics\");\n }\n }", "public void act()\n {\n // handle key events\n String key = Greenfoot.getKey();\n if (key != null)\n {\n handleKeyPress(key);\n } \n\n // handle mouse events\n if (startGameButton.wasClicked())\n {\n handleStartGame();\n }\n }", "protected void handleAlert(Alert alert) {\n if (LOGGEER.isDebugEnabled()) {\n LOGGEER.debug(\"Accepting alert box with message: {}\", alert.getText());\n }\n alert.accept();\n }", "public String onInputMessage(String userInput) throws QuitException{\n if (!userInput.equals(\"\"))\n System.out.println(userInput);\n\n //Enter data using BufferReader \n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); \n \n // Reading data using readLine\n String input; \n try {\n input = reader.readLine();\n } catch (IOException e) {\n return null;\n }\n if (input.equals(\"sortir\"))\n throw new QuitException();\n\n // Printing the read line \n return input;\n }", "@Override\n\tpublic void handle(ActionEvent event) {\n\t\tSystem.out.println(\"Error- ActionEvent not Handled: \" + event.getSource());\n\t}", "public void actionPerformed(ActionEvent event)\r\n\t{\r\n\t\tObject trigerObject = event.getSource();\r\n\r\n\t\tif (trigerObject == this.cmdLogin || trigerObject == this.txtUsername || trigerObject == this.txtPassword)\r\n\t\t\tlogin();\r\n\t\telse\r\n\t\t\tJOptionPane.showMessageDialog(this, \"This option is temporarily unavailable.\", Application.NAME, JOptionPane.INFORMATION_MESSAGE);\r\n\t}", "@FXML\n private void handleUserInput() {\n String input = userInput.getText();\n String response = duke.getResponse(input);\n dialogContainer.getChildren().addAll(\n DialogBox.getUserDialog(input, userImage),\n DialogBox.getDukeDialog(response, dukeImage)\n );\n userInput.clear();\n }", "@FXML\n private void handleUserInput() {\n String input = inputTextField.getText();\n storeUserInputHistory(input);\n try {\n Command command = ParserFactory.parse(input);\n command.execute(tasks, storage, history);\n } catch (ChronologerException e) {\n e.printStackTrace();\n }\n printUserMessage(\" \" + input);\n printChronologerMessage(UiMessageHandler.getOutputForGui());\n inputTextField.clear();\n }", "public void interact(Human user)\n {\n System.out.println(\"You will have to talk to the Starbucks(c) cashier to get a cup of COFFEE\"); \n }", "public void actionPerformed(ActionEvent e)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t\tcatch_up_thread.runCatchUp();\r\n\t\t\t}", "@Override public void handle(ActionEvent e)\n\t {\n\t }", "void requestInput();", "boolean onInteracted(GameCharacter source);", "public void handleEvent(Message event)\r\n {\r\n m_tsm.handleEvent(event);\r\n\r\n String msg = event.getMessage().toLowerCase();\r\n\r\n String name = m_botAction.getPlayerName(event.getPlayerID());\r\n\r\n if(event.getMessageType() == Message.PRIVATE_MESSAGE && m_opList.isER(name))\r\n {\r\n if(msg.equals(\"!safeson\"))\r\n {\r\n c_Activate(name, true);\r\n }\r\n else if(msg.equals(\"!safesoff\"))\r\n {\r\n c_Activate(name, false);\r\n m_entryTimes.clear();\r\n } else if(msg.startsWith(\"!default\")) {\r\n cmd_default(name, msg);\r\n }\r\n }\r\n }", "abstract public boolean onPositiveClicked(String userInput);", "public void execute() {\n\t\tString userID = clientMediator.getUserName();\n\t\tString id = reactToController.communicateWith(userID);\n\t\tif(id != null){\n\t\t\tclientMediator.setReactTo(id);\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tString message = reactToController.reactToEntity(id,userID);\n\t\t\tString result = \"You just interacted with \" + id + \", so you \" + message + \" at \" + df.format(new Date()).toString();\n\t\t\tclientMediator.setReactResult(result);\n\t\t\tclientMediator.getEventQueue().add(new ReactToEvent(id,userID));\n\t\t}\n\t}", "public void interactWhenSteppingOn() {\r\n\t\t\r\n\t}", "public void runInUi(ElexisEvent ev){}", "@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}", "@Override\n public void interact() {\n System.out.print(\"Halo aku ikan di bawah laut dalam lho, aku punya lampu supaya aku\" \n + \"bisa tetap melihat di kegelapan\");\n }", "public abstract void handle(Object event);", "public void handleEvent(PlayerEntered event) {\r\n if( isEnabled )\r\n m_botAction.sendPrivateMessage(event.getPlayerName(), \"Autopilot is engaged. PM !info to me to see how *YOU* can control me. (Type :\" + m_botAction.getBotName() + \":!info)\" );\r\n }", "void action(String response, GameChatEvent cause) throws InterruptedException, IOException;", "@Override\n\tpublic void doUser(UserInfo ui) {\n\n\t}", "@Override\n\tpublic boolean handleUiEvent(String action, View view) {\n\t\treturn false;\n\t}", "@Override\n\t\tpublic void actionPerformed(final ActionEvent arg0)\n\t\t{\n\t\t\tfinal String ipString = serverIPTextField.getText();\n\t\t\tfinal String userNameString = userNameTextField.getText();\n\t\t\tfinal String port = serverPortTextField.getText();\n\t\t\tsetConnected(true);\n\t\t\tmessageTextArea.setEnabled(false);\n\t\t\tsendMessageButton.setEnabled(false);\n\t\t\tlogoutButton.setEnabled(false);\n\t\t\tprint(\"\\nWaiting for answer from server...\\n\");\n\t\t\ttry\n\t\t\t{\n\t\t\t\teventsBlockingQueue.put(\n\t\t\t\t\t\tnew LogInEvent(userNameString, ipString, port));\n\t\t\t}\n\t\t\tcatch (final InterruptedException e)\n\t\t\t{\n\t\t\t\tsetConnected(false);\n\t\t\t}\n\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n handleAction();\n }", "@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}", "@Override\n\tpublic void handle(T event) {\n\t\tString messageFromClient;\n\t\tmessageFromClient = breakOut.getView().getInputTextfield().getText();\n\t\ttry {\n\t\t\tbreakOut.getClient().getWriter().println(messageFromClient);\n\t\t\tbreakOut.getClient().getWriter().flush();\n\t\t\tbreakOut.getView().getInputTextfield().clear();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"No reachable Server\");\n\t\t}\n\t}", "public void handle(Event arg0) {\n\t\t\t\tif (running == false) {\r\n\t\t\t\t\t// Check if the inputs are valid\r\n\t\t\t\t\tboolean valid = validateForm();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// If the inputs are valid\r\n\t\t\t\t\tif (valid) {\r\n\t\t\t\t\t\t// Hide any showing error message\r\n\t\t\t\t\t\tsetErrorMessage(\"\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Set running to true to prevent multiple launches\r\n\t\t\t\t\t\trunning = true;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Add the display to the UI\r\n\t\t\t\t\t\tborder.setCenter(simulationDisplay());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Create object of simulation options to be passed to agents\r\n\t\t\t\t\t\tObject[] setup = getOptions(gui);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Try to create a new parent carpark agent\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tagent = container.createNewAgent(\"Carpark\", \"CarparkAgent\", setup);\r\n\t\t\t\t\t\t\tagent.start();\r\n\t\t\t\t\t\t} catch (StaleProxyException e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\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}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}", "@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}", "public void handleAction(Action action){\n\t\tSystem.out.println(action.getActionType().getName() + \" : \" + action.getValue());\n\t\tDroneClientMain.runCommand(\"python george_helper.py \" + action.getActionType().getName().toLowerCase() + \" \" + action.getValue());\n\t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent e)\r\n\t{\r\n\t\t\r\n\r\n\t\t// Get input from GUI window\r\n\t\tString input = m_GUI.getInput();\r\n\r\n\t\tif (input.isEmpty())\r\n\t\t\treturn;\r\n\r\n\t\tString message = new String();\r\n\r\n\t\tif (input.startsWith(\"/\"))\r\n\t\t{\r\n\t\t\t// Input is a command\r\n\t\t\tString command = new String(input.split(\" \")[0].trim().toLowerCase());\r\n\r\n\t\t\tswitch (command)\r\n\t\t\t{\r\n\t\t\tcase \"/connect\":\r\n\t\t\tcase \"/c\":\r\n\t\t\t\tString hostname = input.split(\" \")[1];\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tm_connection.connect(hostname);\r\n\t\t\t\t} catch (IOException e1)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.err.println(\"Error: IO exception when conencting to server\");\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"/disconnect\":\r\n\t\t\tcase \"/dc\":\r\n\t\t\t\tm_connection.disconnect();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"/whisper\":\r\n\t\t\tcase \"/w\":\r\n\t\t\t\tString recepient = input.split(\" \")[1];\r\n\t\t\t\tmessage = input.split(\" \", 3)[2];\r\n\t\t\t\tm_connection.whisper(recepient, message);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"/list\":\r\n\t\t\tcase \"/l\":\r\n\t\t\t\tm_connection.list();\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} else\r\n\t\t{\r\n\t\t\t// Type is broadcast\r\n\t\t\tmessage = input;\r\n\t\t\tm_connection.broadcast(message);\r\n\t\t}\r\n\t\tm_GUI.clearInput();\r\n\t}", "protected abstract void highLightPrompt();", "private void inputHandler(String input) throws Exception{\n\n switch (input) {\n\n case \"/quit\":\n done = true;\n break;\n\n default:\n PduMess mess = new PduMess(input);\n outStream.writeToServer(mess.getByteArray());\n break;\n }\n }", "void answerButton_actionPerformed(ActionEvent evt)\n\t{\n\t\talertManager.stopAllAlerts();\n\t\tif (interlocutors.getRowCount() < 1) {\n\t\t\treturn;\n\t\t}\n\t\tint selectedRow = phoneFrame.participantsTable.getSelectedRow();\n\t\tif (selectedRow < 0 || selectedRow > interlocutors.getRowCount() - 1) {\n\t\t\treturn;\n\t\t}\n\t\tInterlocutorUI inter = interlocutors.getInterlocutorAt(selectedRow);\n\t\tUserCallControlEvent commEvt = new UserCallControlEvent(inter);\n\t\tfor (int i = listeners.size() - 1; i >= 0; i--) {\n\t\t\t( (UserActionListener) listeners.get(i)).handleAnswerRequest(\n\t\t\t\t\tcommEvt);\n\t\t}\n\t}", "public void waitForUserClick(Player player){\n Log.d(getClass().toString(),\"wait for user click???\");\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tclient.sendMessage(txtUserInput.getText().trim()+\".\");\r\n\t\t\t\ttxtUserInput.setText(\"\");\r\n\t\t\t}", "@Override\n public void interact() {\n System.out.println(\"Hi I'm Kingfisher Bird! \");\n System.out.println(\"I can fly at 40km/h top speed \");\n }", "@Override\n public void interact(){\n if(System.currentTimeMillis() - lastInteraction < 200){\n return;\n }\n\n // Set new lastInterTime\n lastInteraction = System.currentTimeMillis();\n\n // Code\n try {\n System.out.println(getPlayer().getJoueur().getPosition());\n getPlayer().getCollisionner().getInteractiveObject(getPlayer().getJoueur().getVisual()).interact(getPlayer());\n } catch (InstanceNotFoundException e) {\n System.out.println(e.getMessage());\n return;\n }\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\tpublic void handle(ActionEvent event) {\n\n\t}", "public void handleInput(KeyEvent kEvent, MouseEvent mEvent, ViewController viewController) {\n Game game = Game.getInstance();\n switch (game.getGameState()) {\n case GAME_SCREEN:\n if (kEvent != null) {\n if (!game.isGameStarted() && !game.isPlayerDead()) {\n if (game.startGame()) {\n viewController.isDeathAnimPlaying = false;\n viewController.isDeathAnimFinished = true;\n }\n }\n if (kEvent.getCode().equals(inputsMap.get(Input.UP_P1)))\n game.setNextPlayerAction(Movement.UP, 0);\n if (kEvent.getCode().equals(inputsMap.get(Input.DOWN_P1)))\n game.setNextPlayerAction(Movement.DOWN, 0);\n if (kEvent.getCode().equals(inputsMap.get(Input.RIGHT_P1)))\n game.setNextPlayerAction(Movement.RIGHT, 0);\n if (kEvent.getCode().equals(inputsMap.get(Input.LEFT_P1)))\n game.setNextPlayerAction(Movement.LEFT, 0);\n\n if (kEvent.getCode().equals(inputsMap.get(Input.UP_P2)))\n game.setNextPlayerAction(Movement.UP, 1);\n if (kEvent.getCode().equals(inputsMap.get(Input.DOWN_P2)))\n game.setNextPlayerAction(Movement.DOWN, 1);\n if (kEvent.getCode().equals(inputsMap.get(Input.RIGHT_P2)))\n game.setNextPlayerAction(Movement.RIGHT, 1);\n if (kEvent.getCode().equals(inputsMap.get(Input.LEFT_P2)))\n game.setNextPlayerAction(Movement.LEFT, 1);\n\n if (kEvent.getCode().equals(inputsMap.get(Input.ENTER)))\n if (game.isGameFinished() && game.isPlayerDead() && viewController.isDeathAnimFinished) {\n viewController.initButtons();\n game.runLater(() -> game.setGameState(GameState.MENU_SCREEN));\n Menu.getInstance().setTab(MenuTab.HIGHSCORE_ENTER);\n }\n }\n break;\n case MENU_SCREEN:\n switch (Menu.getInstance().getTab()) {\n case MAIN:\n if (mEvent != null) {\n Point mouseCoords = new Point((int) (mEvent.getSceneX() / ViewController.SCALE), (int) (mEvent.getSceneY() / ViewController.SCALE));\n if (Utils.isInside(mouseCoords, MenuTab.MAIN.getButton(\"1-player\").getHitbox())) {\n game.runLater(() -> game.setGameState(GameState.GAME_SCREEN));\n game.setNbPlayer(1);\n viewController.resetSprites();\n viewController.whenToStopDeathAnim = System.currentTimeMillis() - 1;\n viewController.whenToStopScoreAnim = System.currentTimeMillis() - 1;\n viewController.audioController.canPlayIntro(true);\n }\n if (Utils.isInside(mouseCoords, MenuTab.MAIN.getButton(\"2-players\").getHitbox())) {\n game.runLater(() -> game.setGameState(GameState.GAME_SCREEN));\n game.setNbPlayer(2);\n viewController.resetSprites();\n viewController.whenToStopDeathAnim = System.currentTimeMillis() - 1;\n viewController.whenToStopScoreAnim = System.currentTimeMillis() - 1;\n viewController.audioController.canPlayIntro(true);\n }\n if (Utils.isInside(mouseCoords, MenuTab.MAIN.getButton(\"controls\").getHitbox()))\n Menu.getInstance().setTab(MenuTab.CONTROLS);\n if (Utils.isInside(mouseCoords, MenuTab.MAIN.getButton(\"highscore\").getHitbox()))\n Menu.getInstance().setTab(MenuTab.HIGHSCORE);\n if (Utils.isInside(mouseCoords, MenuTab.MAIN.getButton(\"editor\").getHitbox())) {\n game.setGameState(GameState.LEVEL_EDITOR);\n if (!editorLaunched) {\n Runnable runnable = () -> {\n try {\n EditorViewController editorController = new EditorViewController();\n editorController.setInputController(this);\n editorController.start(new Stage());\n } catch (IOException e) {\n e.printStackTrace();\n }\n };\n Platform.runLater(runnable);\n editorLaunched = true;\n }\n }\n }\n break;\n case CONTROLS:\n boolean isButtonFocused = false;\n Input selectedInput = null;\n for (String id : MenuTab.CONTROLS.getButtonList())\n if (MenuTab.CONTROLS.getButton(id).isSelected()) {\n isButtonFocused = true;\n selectedInput = Input.valueOf(id);\n }\n if (mEvent != null) {\n Point mouseCoords = new Point((int) (mEvent.getSceneX() / ViewController.SCALE), (int) (mEvent.getSceneY() / ViewController.SCALE));\n if (!isButtonFocused) {\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(\"back\").getHitbox()))\n Menu.getInstance().setTab(MenuTab.MAIN);\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.UP_P1.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.UP_P1.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.UP_P1);\n }\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.DOWN_P1.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.DOWN_P1.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.DOWN_P1);\n }\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.RIGHT_P1.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.RIGHT_P1.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.RIGHT_P1);\n }\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.LEFT_P1.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.LEFT_P1.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.LEFT_P1);\n }\n\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.UP_P2.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.UP_P2.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.UP_P2);\n }\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.DOWN_P2.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.DOWN_P2.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.DOWN_P2);\n }\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.RIGHT_P2.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.RIGHT_P2.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.RIGHT_P2);\n }\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(Input.LEFT_P2.toString()).getHitbox())) {\n MenuTab.CONTROLS.getButton(Input.LEFT_P2.toString()).setSelected(true);\n currentCode = inputsMap.get(Input.LEFT_P2);\n }\n }\n }\n if (kEvent != null) {\n if (isButtonFocused && selectedInput != null) {\n if (currentCode == kEvent.getCode() || !inputsMap.containsValue(kEvent.getCode())) {\n setKey(selectedInput, kEvent.getCode());\n MenuTab.CONTROLS.getButton(selectedInput.toString()).setSelected(false);\n MenuTab.CONTROLS.getButton(selectedInput.toString()).setText(kEvent.getCode().getName());\n Loader.getInstance().saveConfigs(inputsMap);\n currentCode = null;\n } else\n audioController.warning();\n }\n }\n break;\n case HIGHSCORE:\n if (mEvent != null) {\n Point mouseCoords = new Point((int) (mEvent.getSceneX() / ViewController.SCALE), (int) (mEvent.getSceneY() / ViewController.SCALE));\n if (Utils.isInside(mouseCoords, MenuTab.CONTROLS.getButton(\"back\").getHitbox()))\n Menu.getInstance().setTab(MenuTab.MAIN);\n }\n break;\n case HIGHSCORE_ENTER:\n if (kEvent != null) {\n Button button = MenuTab.HIGHSCORE_ENTER.getButton(\"name\");\n if ((kEvent.getCode().isLetterKey() || kEvent.getCode().isDigitKey())&& (button.getText().length() < 5))\n button.setText(button.getText() + kEvent.getText());\n else if (kEvent.getCode() == KeyCode.BACK_SPACE && button.getText().length() >= 1)\n button.setText(button.getText().substring(0, button.getText().length() - 1));\n else if (kEvent.getCode().equals(inputsMap.get(Input.ENTER)) && button.getText().length() > 0) {\n game.runLater(() -> game.addHighscore(new Score(game.getScoreToSave(), button.getText())));\n Loader.getInstance().saveHighscore(game.getHighscores());\n Menu.getInstance().setTab(MenuTab.MAIN);\n }\n }\n }\n break;\n }\n }", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "public void fireInteraction() {\n Callback callback = this.mCallback;\n if (callback != null) {\n callback.onInteraction();\n }\n }", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "public void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tlogin();\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "public final void handle() {\n runHandler();\n }", "@FXML\n public void handleEventButton() {\n try {\n this.executeCommand(\"list e\");\n } catch (CommandException | ParseException e) {\n logger.info(\"Invalid command: list e\");\n resultDisplay.setFeedbackToUser(e.getMessage());\n }\n }", "@Override\n public void userRequestedAction()\n {\n inComm = true;\n view.disableAction();\n\n // switch to loading ui\n view.setActionText(\"Loading...\");\n view.setStatusText(loadingMessages[rand.nextInt(loadingMessages.length)]);\n view.setStatusColor(COLOR_WAITING);\n view.loadingAnimation();\n\n // switch the status of the system\n if (isArmed) disarmSystem();\n else armSystem();\n isArmed = !isArmed;\n\n // notify PubNub\n }", "@FXML\n private void handleButtonAction(ActionEvent event){\n try {\n HandleFormEvents events = new HandleFormEvents();\n events.checkEventType(event, (isLoginable) events);\n } catch (IOException ex) {\n System.out.println(ex.getMessage());\n }\n }", "@FXML\n\tprivate void enterPressedChat(ActionEvent event) throws InterruptedException {\n\t\tString message = chatBox.getText();\n\t\tif (botCheckBox.isSelected()){\n\t\t\tAnswers sassiAnswer = new Answers();\n\t\t\tif (message.toLowerCase().contains(\"why\")){\n\t\t\t\tappend(message, client.username);\n\t\t\t\tappend(sassiAnswer.getWhy(), \"SASSIBOT\");\n\t\t\t}\n\t\t\telse if (message.toLowerCase().contains(\"how\")){\n\t\t\t\tappend(message, client.username);\n\t\t\t\tappend(sassiAnswer.getHow(), \"SASSIBOT\");\n\t\t\t}\n\t\t\telse if (message.toLowerCase().contains(\"what\")){\n\t\t\t\tappend(message, client.username);\n\t\t\t\tappend(sassiAnswer.getWhat(), \"SASSIBOT\");\n\t\t\t}\n else if (message.toLowerCase().contains(\"where\")){\n\t\t\t\tappend(message, client.username);\n\t\t\t\tappend(sassiAnswer.getWhere(), \"SASSIBOT\");\n\t\t\t}\n else if (message.toLowerCase().contains(\"who\")){\n\t\t\t\tappend(message, client.username);\n\t\t\t\tappend(sassiAnswer.getWho(), \"SASSIBOT\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tappend(message, client.username);\n\t\t\t\tappend(sassiAnswer.getOther(), \"SASSIBOT\");\n\t\t\t}\n\t\t} else {\n\t\t\tString catchPhrase = \"@task \";\n\t\t\tif (message.contains(catchPhrase)) {\n\t\t\t\tString task = message.replace(\"@task \", \"\");\n\t\t\t\tString task_split[] = task.split(\" \", 2);\n\t\t\t\ttaskList.getItems().add(\"@\" + task_split[0] + \": \" + task_split[1] + \"\\n\");\n\t\t\t\tchatBox.setText(\"\");\n\t\t\t\tclient.sendTaskToGroup(task_split[1], task_split[0]);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tclient.sendMessageToGroup(message);\n\t\t\t\tappend(chatBox.getText(), client.username);\n\t\t\t}\n\n\t\t\tchatBox.setText(\"\");\n\n\t\t}\n\t}", "@FXML\r\n private void HandleEvents(MouseEvent event) {\n if (user_comment.getText().isEmpty() || user_rating.getText().isEmpty() ) {\r\n \tAlert alert = new Alert(Alert.AlertType.ERROR);\r\n\t\t\talert.setHeaderText(\"Submit Review\");\r\n\t\t\talert.setContentText(\"Please fill in all fields!\");\r\n\t\t\talert.show();\r\n } else {\r\n saveData();\r\n }\r\n\r\n }", "@Override\n\t\t\tpublic void clicked(InputEvent event, float x, float y) {\n\t\t\t\tif (Constants.userID == 0) { // If no one is signed in\n\t\t\t\t\tdispose();\n\t\t\t\t\tgame.setScreen(new UserInfoScreen(game));\n\t\t\t\t} else { // If a user is currently signed in\n\t\t\t\t\tConstants.userID = 0;\n\t\t\t\t\tConstants.user = \"Temporary User\";\n\t\t\t\t\tcreate();\n\t\t\t\t}\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tclient.sendMessage(txtUserInput.getText().trim());\r\n\t\t\t\ttxtUserInput.setText(\"\");\r\n\t\t\t}", "@Override\r\n public void handle(ActionEvent e) {\n if (inputDatabase(txtPassword.getText())) {\r\n\r\n confirmUserStage.close();\r\n\r\n }\r\n \r\n }", "boolean handleMessage(Controller handler, RemoteViewHandler view, User user);", "public void interact(Context context)\n {\n switch (defaultItemInteraction)\n {\n case PICKUP:\n pickUp(context);\n break;\n case LOOK:\n look(context);\n break;\n case USE:\n use(context);\n break;\n }\n }", "private void handleCommandEntered(String input) {\n try {\n commandExecutor.execute(input);\n commandTextField.commitAndFlush();\n } catch (CommandException | ParseException | UnmappedPanelException e) {\n setStyleToIndicateCommandFailure();\n }\n }" ]
[ "0.6762737", "0.65430826", "0.6433247", "0.636081", "0.6352296", "0.6344947", "0.6290834", "0.62665457", "0.6235511", "0.619944", "0.617564", "0.6157464", "0.6156431", "0.615359", "0.61283916", "0.61188763", "0.6114657", "0.61065775", "0.6104858", "0.6016587", "0.6012515", "0.5995126", "0.59944195", "0.59639996", "0.59631217", "0.5889559", "0.58777314", "0.58632946", "0.58236337", "0.5814053", "0.5804261", "0.5789957", "0.57787657", "0.5775628", "0.57411957", "0.5725182", "0.57046914", "0.57034427", "0.56762326", "0.5669634", "0.5662489", "0.565111", "0.56411517", "0.56211054", "0.56009054", "0.55999523", "0.55809146", "0.55641115", "0.55617046", "0.5558838", "0.5544368", "0.5534985", "0.55300075", "0.55271745", "0.55234617", "0.5506233", "0.5497893", "0.54947776", "0.5471346", "0.54709405", "0.5470561", "0.544689", "0.54416895", "0.5441381", "0.5414018", "0.54122186", "0.5411462", "0.5408392", "0.53856933", "0.53588295", "0.5358772", "0.5354764", "0.5347755", "0.5345427", "0.5344909", "0.5344309", "0.53435636", "0.53431624", "0.53420496", "0.5336501", "0.53349984", "0.5334791", "0.5333006", "0.53328514", "0.53328514", "0.53254306", "0.5322833", "0.5317227", "0.5306551", "0.53008246", "0.5300606", "0.52939075", "0.5284442", "0.52801365", "0.527808", "0.5261143", "0.5256291", "0.52547073", "0.525373", "0.5250266", "0.5237838" ]
0.0
-1
Find the image on the left of the current one
public void imageLeft(){ if(index == 0) { index = imageArray.size() - 1; }else { index--; } String url = imageArray.get(index); Picasso.with(this).load(url).into(imageView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getLeftImageId() {\n return leftImageId;\n }", "public void scrollLeft() {\r\n for(int i = 0; i < grid.getNumRows(); i++) {\r\n for(int j = 0; j < grid.getNumCols(); j++) {\r\n if(grid.getImage(i, j) == avoidImg) {\r\n if(j != 0) {\r\n grid.setImage(i, j, null);\r\n grid.setImage(i, j - 1, avoidImg);\r\n } else {\r\n grid.setImage(i, j, null);\r\n }\r\n } else if(grid.getImage(i, j) == getImg) {\r\n if(j != 0) {\r\n grid.setImage(i, j, null);\r\n grid.setImage(i, j - 1, getImg);\r\n } else {\r\n grid.setImage(i, j, null);\r\n }\r\n }\r\n }\r\n }\r\n \r\n handleCollision(userRow, 1);\r\n }", "public Pixel downLeft() {\n if (this.down == null) {\n return null;\n }\n else {\n return this.down.left;\n }\n }", "public Point getLeft(BufferedImage dest_image, Point centroid, Point begin, Point end) {\n\n\n int xc = centroid.x;\n\n int x = begin.x;\n int y = begin.y;\n\n int x_sumL = 0;\n int y_sumL = 0;\n\n int countL = 0;\n for (y = begin.y; y < end.y; y++) {\n for (x = begin.x; x <= xc; x++) {\n\n if (image_dest.getRGB(x, y) != -1) {\n x_sumL += x;\n y_sumL += y;\n countL++;\n //\t\t\t\t System.out.print(\"0\");\n } else {\n //\t\t\t\tSystem.out.print(\"1\");\n }\n }\n //\t\tSystem.out.println(\"\");\n\n }\n//\t\tSystem.out.println(\"xsumL : \"+x_sumL);\n//\t\tSystem.out.println(\"ysumL : \"+y_sumL);\n//\t\tSystem.out.println(\"CountL :\"+countL);\n int x_left = 0;\n int y_left = 0;\n if (countL == 0) {\n //JOptionPane.showMessageDialog(null, \"Kiri count 0 \"+fname );\n x_left = 0;\n y_left = 0;\n } else {\n double d_yLeft = Double.valueOf(df.format(new Double(y_sumL).doubleValue() / new Double(countL).doubleValue()));\n double d_xLeft = Double.valueOf(df.format(new Double(x_sumL).doubleValue() / new Double(countL).doubleValue()));\n y_left = (int) Math.round(new Double(d_yLeft));\n x_left = (int) Math.round(new Double(d_xLeft));\n\n//\t\t\tx_left = (int)Math.round(new Double(x_sumL)/new Double(countL));\n//\t\t\ty_left = (int)Math.round(new Double(y_sumL)/new Double(countL));\n }\n return new Point(x_left, y_left);\n\n }", "public void moveLeft()\n {\n if (!this.search_zone.isLeftBorder(this.x_position))\n {\n this.x_position = (this.x_position - 1);\n }\n }", "public Pixel topLeft() {\n if (this.up == null) {\n return null;\n }\n else {\n return this.up.left;\n }\n }", "private static Position getLeftNeighbor(Position curr, int side) {\n int newX = curr.getX() - getNumElement(0, side) - getNumSpacePerSide(0, side) - 1;\n int newY = curr.getY() - side;\n return new Position(newX, newY);\n }", "public ImageObj prevImage() {\n if (position != 0) {\n position--;\n }\n else {\n position = model.getImageList().size() - 1;\n }\n\n return model.getImageList().get(position);\n }", "double leftmost_alien_x() {\n double min_x = scene_width;\n for (Alien alien : aliens) {\n if (alien.x_position < min_x) {\n min_x = alien.x_position;\n }\n }\n return min_x;\n }", "public Dir moveLeft() {\n\t\t\tint newDir = (this.ordinal() + SIZE - 1) % SIZE;\n\t\t\treturn dirArray[newDir];\n\t\t}", "public boolean lastHitLeft()\n\t{\n\t\treturn lastBorderHit[0];\n\t}", "@SuppressWarnings(\"static-method\")\n\tprivate int getXmin(BufferedImage img) {\n\t\tint height = img.getHeight();\n\t\tint width = img.getWidth();\n\t\tint trimmedWidth = width;\n\t\t// returns right border\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (img.getRGB(j, i) != Color.WHITE.getRGB() && j < trimmedWidth) {\n\t\t\t\t\ttrimmedWidth = j;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn trimmedWidth;\n\t}", "private int transformXStart(int x)\r\n\t{\r\n\t\treturn (int) Math.floor((x-0.5)/referenceImage.getWidth() * displayedImage.getWidth());\r\n\t}", "private int getLeftOf(int i) {\n \t\t// TODO Complete this method!\n \t\treturn 2*i;\n \t}", "public void moveLeft() {\n this.accelerateXL();\n this.moveX(this.getxSpeed());\n this.setPicX(0);\n this.setPicY(141);\n this.setLoopCells(true);\n }", "public ArrayList<Point> getLeftZone(BufferedImage image_dest, Point divider) {\n int count = 0;\n int x_sum = 0;\n int y_sum = 0;\n\n int w = image_dest.getWidth();\n int h = image_dest.getHeight();\n int xLeftCentroid = 0;\n int yLeftCentroid = 0;\n\n Point point1 = null; //right \t-A\n Point point2 = null; //left\t\t-B\n Point point3 = null; //centroid\t-C\n\n ArrayList<Point> points = new ArrayList<Point>();\n\n //\tint y_divider = divider.y;\n\n for (int y = 0; y < h; y++) {\n for (int x = 0; x <= divider.x; x++) {\n if (image_dest.getRGB(x, y) != -1) {\n\n x_sum += x;\n y_sum += y;\n count++;\n\n //\tSystem.out.print(\"0\");\n } else {\n\n //\t\tSystem.out.print(\"1\");\n }\n\n }\n //\tSystem.out.println(\"\");\n }\n //\tSystem.out.println(\"\\n\\n\");\n\n if (count == 0) {\n //JOptionPane.showMessageDialog(null, \"No black pixels exist\");\n point1 = new Point(0, 0);\n point2 = new Point(0, 0);\n point3 = new Point(0, 0);\n } else {\n double d_yLeftCentroid = Double.valueOf(df.format(new Double(y_sum).doubleValue() / new Double(count).doubleValue()));\n double d_xLeftCentroid = Double.valueOf(df.format(new Double(x_sum).doubleValue() / new Double(count).doubleValue()));\n yLeftCentroid = (int) Math.round(new Double(d_yLeftCentroid));\n xLeftCentroid = (int) Math.round(new Double(d_xLeftCentroid));\n\n\n point3 = new Point(xLeftCentroid, yLeftCentroid);\n\n Point begin = new Point(0, 0);\n Point end = new Point(divider.x, h);\n\n\n point2 = getLeft(image_dest, point3, begin, end);\n //System.out.println(\"Point 2 :\"+point2);\n\n begin.x = xLeftCentroid;//�\n begin.y = 0;\n\n end.x = divider.x;\n end.y = h;\n\n point1 = getRight(image_dest, point3, begin, end);\n\n }\n points.add(point1);\n points.add(point2);\n points.add(point3);\n return points;\n }", "public int leftPosion (double degLon){\n double scale = pictureSizePixels/worlSizeMeters;\n return (int) Math.round(xCoordinate(degLon)\n *scale\n +(pictureSizePixels/2));\n }", "private static Image getMovePoint()\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + move));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}", "public void animateMovementLeft()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (leftMvt.length);\n setImage(leftMvt[imageNumber]);\n }\n }", "private int getLeftOf(int index) {\n // TODO: YOUR CODE HERE\n return index * 2;\n }", "public float getLeftRectF () { return atomSpriteBoundary.left; }", "public int getLeftX() {\n\t\treturn 0;\r\n\t}", "public BoardCoordinate getLeft() {\n return new BoardCoordinate(x-1, y);\n }", "private void animateLeft(){\n if(frame == 1){\n setImage(run1_l);\n }\n else if(frame == 2){\n setImage(run2_l);\n }\n else if(frame == 3){\n setImage(run3_l);\n }\n else if(frame == 4){\n setImage(run4_l);\n }\n else if(frame == 5){\n setImage(run5_l);\n }\n else if(frame == 6){\n setImage(run6_l);\n }\n else if(frame == 7){\n setImage(run7_l);\n }\n else if(frame == 8){\n setImage(run8_l);\n frame =1;\n return;\n }\n frame ++;\n }", "public MutableImage rotateLeft() {\n return rotate(-90);\n }", "public int getLeft(){\n\t\treturn platformHitbox.x;\n\t}", "private int leftIndex(int i) {\n return i * 2;\n }", "public float getX(){\n return hitBox.left;\n }", "public Coords getLowerLeft()\r\n {\r\n return new Coords(x, y + height);\r\n }", "private int left(int parent) {\n\t\treturn (parent*2)+1;\n\t}", "public void adjustLeft() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].x = tiles[x][y].x - 4;\n backGroundTiles[x][y].x = backGroundTiles[x][y].x - 4;\n grassTiles[x][y].x = grassTiles[x][y].x - 4;\n }\n }", "public int getXLeft() {\n return xLeft;\n }", "private int getLeftIdx(int pos) {\n return 2 * pos + 1;\n }", "public Vertex moveLeft() {\n for (Edge e : current.outEdges) {\n move(e.to.x == current.x - 1, e);\n }\n return current;\n }", "public static Image movePoint()\n\t{\n\t\treturn movePoint;\n\t}", "public void setBitmapLeft(Bitmap b){\n\t\timgLeft = b;\n\t\tleft.setBitmap(b);\n\t\tinvalidate();\n\t}", "@Override\n\tpublic int getFirstVisiblePosition() {\n\t\treturn mLeftViewIndex < 0 ? 0 : mLeftViewIndex + 1;\n\t}", "public Image getMinimUp();", "void findLeft(Board board) {\n if (tile.getColPos() != 0) {\n Tile leftTile = board.getTileObjByPosition(tile.getRowPos(), tile.getColPos() - 1);\n if (leftTile != null) {\n if (RailroadInk.areConnectedNeighbours(tile.getPlacementStr(), leftTile.getPlacementStr())) {\n Node leftNode;\n if ((leftTile.graphId > 0) || ((leftTile.graphId == -1) && (leftTile.leftId == graphId))) {\n leftNode = nodeMap.get(leftTile.pos);\n } else {\n leftNode = new Node(leftTile);\n if (leftTile.name.equals(\"B2\")) {\n leftTile.rightId = graphId;\n }\n nodeMap.put(leftTile.pos, leftNode);\n }\n\n // Update the connection relationship.\n this.left = leftNode;\n leftNode.right = this;\n if (this.tile.name.equals(\"B2\")) {\n this.tile.leftId = graphId;\n }\n\n if ((!leftTile.name.equals(\"B2\")) && (leftNode.up == null)) {\n leftNode.findUp(board);\n }\n if ((!leftTile.name.equals(\"B2\")) && (leftNode.down == null)) {\n leftNode.findDown(board);\n }\n if (leftNode.left == null) {\n leftNode.findLeft(board);\n }\n }\n }\n }\n }", "private Image getCurrentPicture(){\r\n\t\tif (i >= images.size()) {\r\n\t\t\ti = 0;\r\n\t\t}else if(i<0){\r\n\t\t\ti = images.size() -1;\r\n\t\t}\r\n\t\treturn new Image(images.get(i).getUrl());\r\n\t}", "protected long getLeftPosition() {\n return leftPosition;\n }", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "private int left(int index) {\r\n\t\treturn 2 * index + 1;\r\n\t}", "public Integer checkLeft()\r\n\t{\r\n\t\treturn this.X - 1;\r\n\t}", "protected int left(int i ) { return 2 * i + 1; }", "private Location getLeftHandPos() {\r\n\t\treturn GeneralMethods.getLeftSide(this.player.getLocation(), .34).add(0, 1.5, 0);\r\n\t}", "public void moveLeft() {\n Coordinate leftCoord = new Coordinate(getX() - 1, getY());\n handleMove(leftCoord, InteractionHandler.LEFT);\n }", "public void moveLeft() {\n if (rec.getUpperLeft().getX() - 5 < leftBorder) {\n rec.getUpperLeft().setX(leftBorder);\n } else {\n rec.getUpperLeft().setX(rec.getUpperLeft().getX() - 5);\n }\n\n }", "private int leftChild ( int pos )\n\t{\n\t\treturn -1; // replace this with working code\n\t}", "public void alignSelectedFurnitureOnLeft() {\n alignSelectedFurniture(new AlignmentAction() {\n public void alignFurniture(AlignedPieceOfFurniture [] alignedFurniture, \n HomePieceOfFurniture leadPiece) {\n float minXLeadPiece = getMinX(leadPiece);\n for (AlignedPieceOfFurniture alignedPiece : alignedFurniture) {\n HomePieceOfFurniture piece = alignedPiece.getPieceOfFurniture();\n float minX = getMinX(piece);\n piece.setX(piece.getX() + minXLeadPiece - minX);\n }\n }\n });\n }", "private @Nullable Integer getFirstNullImageIndex() {\n\n Integer foundIndex = null;\n\n for (int i = 0; i < MAX_IMAGES && foundIndex == null; i++) {\n\n if (imageFilesToUpload[i] == null)\n foundIndex = i;\n }\n\n return foundIndex;\n }", "public float getLowerLeftX()\n {\n return ((COSNumber)rectArray.get(0)).floatValue();\n }", "public double getLeftX(){\r\n\t\treturn adjustInput(driverLeft.getX());\r\n\t}", "public void rotateLeft(Image im, int x, int y, int pixels, GraphicsContext gc2) {\n //permite que la imagen se pueda editar\n imageView = new ImageView(im);\n //selecciona el bloque que se va a rotar\n snapshot.setViewport(new Rectangle2D(x, y, pixels, pixels));\n im = imageView.snapshot(snapshot, null);\n imageView.setImage(im);\n //rota la imagen\n imageView.setRotate(imageView.getRotate() - 90);\n\n //coloca la imagen en el mismo lugar donde fue seleccionada\n SnapshotParameters params = new SnapshotParameters();\n params.setFill(Color.TRANSPARENT);\n Image rotatedImage = imageView.snapshot(params, null);\n gc2.drawImage(rotatedImage, x, y);\n\n imagePiece = null;\n imageView = null;\n }", "private void moveLeft(GObject bottom) {\r\n\t\tif(facingEast) {\r\n\t\t\tdouble x = player.getX();\r\n\t\t\tdouble y = player.getY();\r\n\t\t\tremove(player);\r\n\t\t\tplayer = new GImage(\"PlayerWest.png\");\r\n\t\t\tplayer.scale(.75);\r\n\t\t\tadd(player, x, y);\r\n\t\t\tfacingEast = false;\r\n\t\t}\r\n\t\tif(player.getX() > 5 && bottom != null)\r\n\t\t\tplayer.move(-PLAYER_X_MOTION, 0);\r\n\t}", "public Location getLeft()\n\t{\n\t\tif(checkLeft())\n\t\t{\n\t\t\treturn new Location(row,col-1);\n\t\t}\n\t\treturn this;\n\t}", "public Location left() {\n return new Location(row, column - 1);\n }", "protected static int left(int i){\n return 2*i+1;\n }", "public float getLeftX() {\n\t\treturn leftX;\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}", "public Entity getShoulderEntityLeft ( ) {\n\t\treturn extract ( handle -> handle.getShoulderEntityLeft ( ) );\n\t}", "public Sprite getCurrentSprite() {\n\t\tif (this.getVx() <= 0) {\n\t\t\treturn getImages()[0];\n\t\t}\n\t\treturn getImages()[1];\n\t}", "private int leftChild(int pos)\n {\n return (2 * pos);\n }", "@DISPID(-2147417104)\n @PropGet\n int offsetLeft();", "private int left(int i) {\r\n\t\treturn 2 * i + 1;\r\n\t}", "public static int getFirstNotBlackX(int x, int y, Photo photo){\n\n\t\tint curX = x;\n\n\t\twhile (photo.getPixelValue(curX, y) < BLACKVALUE){\n\t\t\tcurX++;\n\n\t\t\tif (curX >= photo.getWidth())\n\t\t\t\treturn photo.getWidth() - 1;\n\t\t}\n\n\t\treturn curX;\n\t}", "private static int getLeft(int index) {\n\t\treturn (index + 1) * 2 - 1;\n\t}", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "private Location[] overrunLeft () {\n Location nextLocation;\n Location nextCenter;\n // exact calculation for exact 90 degree heading directions (don't want trig functions\n // handling this)\n if (getHeading() == THREE_QUARTER_TURN_DEGREES) {\n nextLocation = new Location(0, getY());\n nextCenter = new Location(myCanvasBounds.getWidth(), getY());\n return new Location[] { nextLocation, nextCenter };\n }\n \n double angle = getHeading() - ONE_QUARTER_TURN_DEGREES;\n if (getHeading() > HALF_TURN_DEGREES) {\n angle = -(THREE_QUARTER_TURN_DEGREES - getHeading());\n }\n angle = Math.toRadians(angle);\n nextLocation = new Location(0, getY() + getX() / Math.tan(angle));\n nextCenter = new Location(myCanvasBounds.getWidth(), getY() + getX() /\n Math.tan(angle));\n \n return new Location[] { nextLocation, nextCenter };\n }", "private File getPreviousPicture() {\r\n File retVal = null;\r\n\r\n if (listFiles.size() > 0) {\r\n if (fileList.getSelectedIndex() <= 0) {\r\n retVal = listFiles.get(listFiles.size() - 1);\r\n fileList.setSelectedIndex(listFiles.size() - 1);\r\n } else {\r\n retVal = listFiles.get(fileList.getSelectedIndex() - 1);\r\n fileList.setSelectedIndex(fileList.getSelectedIndex() - 1);\r\n }\r\n }\r\n\r\n return retVal;\r\n }", "public void left(){\n\t\tmoveX=-1;\n\t\tmoveY=0;\n\t}", "public Point2D getLeftCenterPoint()\n {\n double x = mainVBox.getTranslateX();\n double y = mainVBox.getTranslateY() + (mainVBox.getHeight() / 2);\n return new Point2D(x, y);\n }", "public Image getTieUnder();", "public void viewPrevPhoto(ActionEvent event) {\n\t\t\n\t\t//System.out.println(\"left check: \" + listOfPhotos);\n\t\t\n\t\tif (displayedPhoto.isEmpty()) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"Cannot find next image!\");\n\t\t\talert.setContentText(\"No photo selected. Failed to display next image.\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tint photosList_size = listOfPhotos.size();\n\t\t\n\t\tif(currPhotoIndex == 0) {\n\t\t\tcurrPhotoIndex = photosList_size - 1;\n\t\t} else {\n\t\t\tcurrPhotoIndex = currPhotoIndex - 1;\n\t\t}\n\t\t\n\t\tImageView nextPhoto = listOfPhotos.get(currPhotoIndex);\n\t\tcurrPhotoIndex = listOfPhotos.indexOf(nextPhoto);\n\t\t//System.out.println(currPhotoIndex);\n\t\tImageView newimg = new ImageView();\n\t\tnewimg.setImage(nextPhoto.getImage());\n\t\tnewimg.setFitWidth(480);\n\t\tnewimg.setFitHeight(330);\n\t\tdisplayedPhoto.clear();\n\t\tdisplayedPhoto = FXCollections.observableArrayList();\n\t\tdisplayedPhoto.add(newimg);\n\t\tDisplayedImage.setItems(displayedPhoto);\n\t}", "public Image getMinimDown();", "public ColorImage getCurrentImage() {\n try {\n return currentImage.peek();\n } catch (EmptyStackException e) {\n return null;\n }\n }", "public void update()\n {\n if(x + image.getWidth(null) < 0)\n {\n x = 0;\n }\n else\n {\n x--;\n }\n }", "public int getLeft() {\n\t\treturn left;\n\t}", "public double getBoundingBoxLeft() {\n return boundingBoxLeft;\n }", "public float getX()\n {\n return getBounds().left + positionAnchor.x;\n }", "public final float exactCenterX() {\n return (left + right) * 0.5f;\n }", "EObject getLeft();", "public void moveLeft() {\n locX = locX - 1;\n }", "@Override\r\n\tpublic String moveLeft() {\n\r\n\t\tif((0<x && x<=50) && (0<=y && y<=10) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=50) && (40<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=50) && (0<=y && y<=50) && (0<=z && z<=10))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=10) && (0<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((0<x && x<=50) && (0<=y && y<=50) && (40<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\telse if((40<x && x<=50) && (0<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx--;\r\n\t\t}\r\n\t\treturn getFormatedCoordinates();\r\n\t}", "private void playerMoveLeft()\n {\n \n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentX(getCurrentX() - 1);\n if (this.getCurrentX() > -1) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentX(this.getCurrentX() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else {\n this.setCurrentX(getCurrentX() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n }", "private double centerX() {\n return (piece.boundingBox().getWidth() % 2) / 2.0;\n }", "public void alignSelectedFurnitureOnLeftSide() {\n alignSelectedFurniture(new AlignmentAction() {\n public void alignFurniture(AlignedPieceOfFurniture [] alignedFurniture, \n HomePieceOfFurniture leadPiece) {\n float [][] points = leadPiece.getPoints();\n Line2D leftLine = new Line2D.Float(points [3][0], points [3][1], points [0][0], points [0][1]); \n for (AlignedPieceOfFurniture alignedPiece : alignedFurniture) {\n alignPieceOfFurnitureAlongLeftOrRightSides(alignedPiece.getPieceOfFurniture(), leadPiece, leftLine, false);\n }\n }\n });\n }", "public boolean isBeforeImage()\n\t{\n\t\treturn beforeImage;\n\t}", "public ImageObj nextImage() {\n if (position == model.getImageList().size() - 1) {\n position = 0;\n }\n else {\n position++;\n }\n return model.getImageList().get(position);\n }", "public JLabel getOriginImagePanel(Frame frame) {\n return getLabelFromImageAndFrame(image, frame);\n }", "public boolean moveUpLeft() {\n\t\tif (check(col-1, row-1)) {\n\t\t\tHiVolts.board.squares[row][col] = 0; // set current location to nothing\n\t\t\tcol = col - 1; // get new x\n\t\t\trow = row - 1; // get new y\n\t\t\tHiVolts.board.squares[row][col] = 2; // set new location to avatar\n\t\t\tsuper.moveUpLeft(); // calls move function in piece\n\t\t}\n\t\treturn true;\n\t}", "public Point getdownLeft() {\n Point downLeft = new Point(this.upperLeft.getX(), this.upperLeft.getY() + this.getHeight());\n return downLeft;\n }", "protected double getWindowLeftX() {\n\t\treturn this.m_windowLeftX;\n\t}", "private int left(int row, int column, char check, char[][] leftBoard, ArrayList<Point> traversedPoints)\n\t{\n\t\tif (column == 0 || traversedPoints.contains(new Point(column - 1, row)))\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse if (leftBoard[column - 1][row] != ' ' && leftBoard[column - 1][row] != check)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn column - 1;\n\t}", "public void PlayerX(){\n\n if(directionX > 0){//going right\n int tempX = (int) ((x + directionX + bmp.getWidth()) / Tile.tileWidth);\n if(!CollisionWithTile(tempX, (int)y / Tile.tileHeight)) {\n x += directionX * speed * time;\n }\n }\n else if(directionX < 0){//going left\n int tempX = (int)((x + directionX) / Tile.tileWidth);\n if(!CollisionWithTile(tempX, (int)y / Tile.tileHeight)) {\n x += directionX * speed * time;\n }\n }\n }", "public Lane getLeft() {\r\n\t\treturn left;\r\n\t}", "private static int moveLeft()\n {\n int num_chocolates = choArr[baby.row][baby.column-1];\n // change both the choArr and baby position\n baby.column=baby.column-1;\n choArr[baby.row][baby.column]=0;\n return num_chocolates;\n }", "public void goLeft() {\n\t\tx -= dx;\n\t\tbgBack.setDx(true);\n\t\tbgBack.move();\n\t\tif(x < 200) {\n\t\t\tif(!bgBack.getReachBegin()) {\n\t\t\t\tx = 200;\n\t\t\t\tbgFront.setDx(true);\n\t\t\t\tbgFront.move();\n\t\t\t}\n\t\t\telse if(x < 50) {\n\t\t\t\tx = 50;\n\t\t\t}\n\t\t}\n\n\t}", "public ImageObj currentImage() {\n if (model.getImageList().size() == 0) {\n noImages = true;\n return new ImageObj(\"http://www.xn--flawiler-fachgeschfte-n2b.ch/wp-content/uploads/2016/09/sample-image.jpg\", \"No Image\");\n }\n return model.getImageList().get(position);\n }", "public abstract Position<E> getLeftParent(Position<E> p);" ]
[ "0.6456168", "0.64205056", "0.6229073", "0.62141913", "0.6170328", "0.61658764", "0.608637", "0.60859966", "0.6010626", "0.59931254", "0.5910052", "0.5905748", "0.5878084", "0.5877151", "0.5871147", "0.5870417", "0.5870192", "0.5861948", "0.585574", "0.58097", "0.5808327", "0.5786099", "0.5775671", "0.57397205", "0.57281035", "0.57132334", "0.570998", "0.5687717", "0.5685708", "0.5681819", "0.56728625", "0.566105", "0.5660897", "0.5658762", "0.5653904", "0.56341565", "0.5631931", "0.56183445", "0.5604356", "0.55863035", "0.5586088", "0.55676943", "0.5567299", "0.556621", "0.55614454", "0.5555991", "0.55418926", "0.5539912", "0.55394614", "0.5536893", "0.55341685", "0.5533951", "0.5533034", "0.55312157", "0.55282605", "0.5525396", "0.55190235", "0.5505187", "0.5498173", "0.5497828", "0.54918635", "0.547953", "0.5464484", "0.54640216", "0.54607224", "0.5456998", "0.5455265", "0.5452139", "0.543424", "0.54301596", "0.54188216", "0.5417777", "0.541578", "0.5404161", "0.5401719", "0.5400366", "0.53961426", "0.53917915", "0.5389596", "0.53736895", "0.537355", "0.5359791", "0.5355967", "0.5352504", "0.5344496", "0.5343339", "0.534014", "0.53374135", "0.5337295", "0.533561", "0.533315", "0.5331741", "0.5328636", "0.5325946", "0.53225315", "0.531805", "0.53112406", "0.5305055", "0.5304581", "0.5302373" ]
0.6350168
2
Find the image on the right of the current one
public void imageRight(){ if(index == (imageArray.size() - 1)){ index = 0; }else{ index++; } String url = imageArray.get(index); Picasso.with(this).load(url).into(imageView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Image getEight();", "public Image getTieUnder();", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "public ImageObj nextImage() {\n if (position == model.getImageList().size() - 1) {\n position = 0;\n }\n else {\n position++;\n }\n return model.getImageList().get(position);\n }", "public Pixel topRight() {\n if (this.up == null) {\n return null;\n }\n else {\n return this.up.right;\n }\n }", "public Pixel downRight() {\n if (this.down == null) {\n return null;\n }\n else {\n return this.down.right;\n }\n }", "public Image getMinimDown();", "public int getRightImageId() {\n return rightImageId;\n }", "public ImageObj prevImage() {\n if (position != 0) {\n position--;\n }\n else {\n position = model.getImageList().size() - 1;\n }\n\n return model.getImageList().get(position);\n }", "public int getRight(){\n\t\treturn platformHitbox.x+width;\n\t}", "public Image getTieOver();", "public Image getMinimUp();", "private Image getCurrentPicture(){\r\n\t\tif (i >= images.size()) {\r\n\t\t\ti = 0;\r\n\t\t}else if(i<0){\r\n\t\t\ti = images.size() -1;\r\n\t\t}\r\n\t\treturn new Image(images.get(i).getUrl());\r\n\t}", "public Image getMinimRest();", "public Image getCrotchetDown();", "public Image getTwo();", "abstract BufferedImage getBackround();", "private static Image getMovePoint()\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + move));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}", "public ColorImage getCurrentImage() {\n try {\n return currentImage.peek();\n } catch (EmptyStackException e) {\n return null;\n }\n }", "public Image getCrotchetUp();", "public Image getSix();", "public Image getSeven();", "public Image getNine();", "private void animateRight(){\n if(frame == 1){\n setImage(run1);\n }\n else if(frame == 2){\n setImage(run2);\n }\n else if(frame == 3){\n setImage(run3);\n }\n else if(frame == 4){\n setImage(run4);\n }\n else if(frame == 5){\n setImage(run5);\n }\n else if(frame == 6){\n setImage(run6);\n }\n else if(frame == 7){\n setImage(run7);\n }\n else if(frame == 8){\n setImage(run8);\n frame =1;\n return;\n }\n frame ++;\n }", "@FXML\r\n private void Next_Image() {\r\n ImageView imagev = (ImageView) hbox.getChildren().get(image_index);\r\n img_v.setImage(imagev.getImage());\r\n if (transitor_next_last) {\r\n image_index += 2;\r\n }\r\n image_index += 2;\r\n transitor_next_last = false;\r\n if (image_index == hbox.getChildren().size()) {\r\n image_index = 0;\r\n }\r\n\r\n }", "public void arrow()\n{\n\nPImage img1,img2;\nimg1=loadImage(\"compass.png\");\nimage(img1,630,110);\nimg2=loadImage(\"compass.png\");\nimage(img2,1490,110);\n\n}", "java.lang.String getImage();", "private int getRightOf(int index) {\n // TODO: YOUR CODE HERE\n return index * 2 + 1;\n }", "public Image getCrotchetRest();", "public int getImage();", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public void imageLeft(){\n if(index == 0) {\n index = imageArray.size() - 1;\n }else {\n index--;\n }\n String url = imageArray.get(index);\n Picasso.with(this).load(url).into(imageView);\n }", "private int getRightOf(int i) {\n \t\t// TODO Complete this method!\n \t\treturn 2*i + 1;\n \t}", "public Image getOne();", "public Image getImage() {\n return (isFacingRight) ? Images.get(\"rightTedhaun\") : Images.get(\"leftTedhaun\");\n }", "public Image getFour();", "public Image getFlat();", "public Bitmap getFinalShapesImage();", "void slideLeftRightWithHandle(int byPixels);", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "public MutableImage rotateRight() {\n return rotate(90);\n }", "public Image getFive();", "public float getRight() {\r\n\t\treturn left + width;\r\n\t}", "public Sprite getCurrentSprite() {\n\t\tif (this.getVx() <= 0) {\n\t\t\treturn getImages()[0];\n\t\t}\n\t\treturn getImages()[1];\n\t}", "public void moveRight()\n {\n if (!this.search_zone.isRightBorder(this.x_position))\n {\n this.x_position = (this.x_position + 1);\n }\n }", "protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }", "public ArrayList<Point> getRightZone(BufferedImage image_dest, Point divider) {\n int count = 0;\n int x_sum = 0;\n int y_sum = 0;\n\n int w = image_dest.getWidth();\n int h = image_dest.getHeight();\n int xRightCentroid = 0;\n int yRightCentroid = 0;\n\n Point point1 = null; //right \t-A\n Point point2 = null; //left\t\t-B\n Point point3 = null; //centroid\t-C\n\n ArrayList<Point> points = new ArrayList<Point>();\n\n //\tint y_divider = divider.y;\n\n for (int y = 0; y < h; y++) {\n for (int x = divider.x; x < w; x++) {\n if (image_dest.getRGB(x, y) != -1) {\n\n x_sum += x;\n y_sum += y;\n count++;\n\n //\t\t\t\tSystem.out.print(\"0\");\n } else {\n //\n//\t\t\t\t\tSystem.out.print(\"1\");\n }\n\n }\n //\t\tSystem.out.println(\"\");\n }\n//\t\tSystem.out.println(\"\\n\\n\");\n\n if (count == 0) {\n //JOptionPane.showMessageDialog(null, \"No black pixels exist\");\n point1 = new Point(0, 0);\n point2 = new Point(0, 0);\n point3 = new Point(0, 0);\n } else {\n\n double d_yRightCentroid = Double.valueOf(df.format(new Double(y_sum).doubleValue() / new Double(count).doubleValue()));\n double d_xRightCentroid = Double.valueOf(df.format(new Double(x_sum).doubleValue() / new Double(count).doubleValue()));\n yRightCentroid = (int) Math.round(new Double(d_yRightCentroid));\n xRightCentroid = (int) Math.round(new Double(d_xRightCentroid));\n\n //xRightCentroid = (int)Math.round(new Double(x_sum)/new Double(count));\n //yRightCentroid = (int)Math.round(new Double(y_sum)/new Double(count));\n\n point3 = new Point(xRightCentroid, yRightCentroid);\n\n Point begin = new Point(divider.x, 0);\n Point end = new Point(xRightCentroid, h);\n\n\n point2 = getLeft(image_dest, point3, begin, end);\n //System.out.println(\"Point 2 :\"+point2);\n\n begin.x = xRightCentroid;//�\n begin.y = 0;\n\n end.x = w;\n end.y = h;\n\n point1 = getRight(image_dest, point3, begin, end);\n\n }\n points.add(point1);\n points.add(point2);\n points.add(point3);\n\n status = \"reset\";\n return points;\n }", "private void traverseBayeredPatternFullSizeRGB() {\n\n for (int x = 0; x < originalImageHeight -1; x++){\n for (int y = 1; y < originalImageWidth -1; y++){\n Point position = new Point(x,y);\n int absolutePosition = getAbsolutPixelPosition(position);\n\n PixelType pixelType = null;\n\n if (x%2 == 0 && y%2 == 0) pixelType = PixelType.GREEN_TOPRED;\n if (x%2 == 0 && y%2 == 1) pixelType = PixelType.BLUE;\n if (x%2 == 1 && y%2 == 0) pixelType = PixelType.RED;\n if (x%2 == 1 && y%2 == 1) pixelType = PixelType.GREEN_TOPBLUE;\n\n fullSizePixRGB[absolutePosition] = getFullSizeRGB(new Point(x,y),pixelType);\n }\n }\n }", "public Image getQuaverUp();", "public ImageObj currentImage() {\n if (model.getImageList().size() == 0) {\n noImages = true;\n return new ImageObj(\"http://www.xn--flawiler-fachgeschfte-n2b.ch/wp-content/uploads/2016/09/sample-image.jpg\", \"No Image\");\n }\n return model.getImageList().get(position);\n }", "public Image getTrebleClef();", "Point3D getRightLowerFrontCorner();", "public Image drawOnImage(Mat binary, Mat image) {\n Raster binaryRaster = toBufferedImage(binary).getData();\n int radius = 6;\n int diameter = radius * 2;\n\n BufferedImage imageBI = toBufferedImage(image);\n int width = imageBI.getWidth();\n int height = imageBI.getHeight();\n Graphics2D g2d = (Graphics2D) imageBI.getGraphics();\n g2d.setColor(Color.WHITE);\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n int v = binaryRaster.getSample(x, y, 0);\n if (v == 0) {\n g2d.draw(new Ellipse2D.Double(x - radius, y - radius, diameter, diameter));\n }\n }\n }\n\n return imageBI;\n }", "public ImageIcon getCurrentImage() {\n\t\t\treturn this.currentImage;\n\t}", "public String getImg(){\n switch(image){\n case 0: // Case 0: Ant looks up/north\n return \"imgs/ant_n.png\";\n case 1: // Case 1: Ant looks right/east\n return \"imgs/ant_e.png\";\n case 2: // Case 2: Ant looks down/south\n return \"imgs/ant_s.png\";\n case 3: // Case 3: Ant looks left/west\n return \"imgs/ant_w.png\";\n default: // Default: This shouldn't happen on a normal run. It returns an empty string and prints an error.\n System.err.println(\"Something went wrong while the ant was trying change direction\");\n return \"\";\n }\n }", "private int getRightIdx(int pos) {\n return 2 * pos + 2;\n }", "private int rightIndex(int i) {\n return i * 2 + 1;\n }", "public BufferedImage getThresh(BufferedImage img, int left, int right, int top, int bottom) { // Method to get thresholded image \n\t\t//Vision.logger.debug(\"Starting thresholding\");\n\n\t\t//stops it fucking up the locations before we've given it the thresholds\n\t\tif (worldState.isClickingDone()){\n\n\t\t\tnewBluePixels = new ArrayList<Point>();\n\t\t\tnewYellowPixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> bluePixels = new ArrayList<Point>();\n\t\t\tArrayList<Point> yellowPixels = new ArrayList<Point>();\n\t\t\t/*pitch = worldState.getRoom();\n\t\t\twidth = right-left;\n\t\t\theight = top-bottom;*/\n\n\t\t\t/*\n Initialising to one to stop java dividing by 0 when it shouldn't\n\t\t\t */\n\t\t\tredCountA = 0;\n\t\t\tredCountB = 0;\n\t\t\tredCountC = 0;\n\t\t\tredCountD = 0;\n\t\t\tredCountE = 0;\n\t\t\tredCentroidA.setLocation(0,0);\n\t\t\tredCentroidB.setLocation(0,0);\n\t\t\tredCentroidC.setLocation(0,0);\n\t\t\tredCentroidD.setLocation(0,0);\n\t\t\tredCentroidE.setLocation(0,0);\n\n\t\t\tblueCountA = 0;\n\t\t\tblueCountB = 0;\n\t\t\tblueCountC = 0;\n\t\t\tblueCountD = 0;\n\t\t\tblueCountE = 0;\n\t\t\tblueCentroidA.setLocation(0,0);\n\t\t\tblueCentroidB.setLocation(0,0);\n\t\t\tblueCentroidC.setLocation(0,0);\n\t\t\tblueCentroidD.setLocation(0,0);\n\t\t\tblueCentroidE.setLocation(0,0);\n\n\t\t\tyellowCountA = 0;\n\t\t\tyellowCountB = 0;\n\t\t\tyellowCountC = 0;\n\t\t\tyellowCountD = 0;\n\t\t\tyellowCountE = 0;\n\t\t\tyellowCentroidA.setLocation(0,0);\n\t\t\tyellowCentroidB.setLocation(0,0);\n\t\t\tyellowCentroidC.setLocation(0,0);\n\t\t\tyellowCentroidD.setLocation(0,0);\n\t\t\tyellowCentroidE.setLocation(0,0);\n\n\t\t\t//Vision.logger.debug(\"Iterating image\");\n\t\t\tfor (int i = left; i < right; i++) {\n\t\t\t\tfor (int j = top; j < bottom; j++) {\n\t\t\t\t\t//Vision.logger.debug(\"Oh dear (i,j) = \" + Integer.toString(i) + \",\" + Integer.toString(j) + \")\");\n\t\t\t\t\tc = new Color(img.getRGB(i,j));\n\n\t\t\t\t\tGB = Math.abs((c.getBlue() - c.getGreen()));\n\t\t\t\t\tRG = Math.abs((c.getRed() - c.getGreen()));\n\t\t\t\t\t//RB = Math.abs((c.getRed() - c.getBlue()));\n\n\t\t\t\t\tif(isRed(c, GB)){ // was inside RB > 50 && RG > 50\n\t\t\t\t\t\timg.setRGB(i, j, Color.red.getRGB()); //Red Ball\n\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\tredCountA++;\n\t\t\t\t\t\t\tredCentroidA.setLocation(redCentroidA.getX() + i, redCentroidA.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\tredCountB++;\n\t\t\t\t\t\t\tredCentroidB.setLocation(redCentroidB.getX() + i, redCentroidB.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\tredCountC++;\n\t\t\t\t\t\t\tredCentroidC.setLocation(redCentroidC.getX() + i, redCentroidC.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\tredCountD++;\n\t\t\t\t\t\t\tredCentroidD.setLocation(redCentroidD.getX() + i, redCentroidD.getY() + j);\n\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\tredCountE++;\n\t\t\t\t\t\t\tredCentroidE.setLocation(redCentroidE.getX() + i, redCentroidE.getY() + j);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\telse if (isYellow(c)) {\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isYellow(cS) && isYellow(cE) && isYellow(cEE) && isYellow(cEN) && isYellow(cSS) && isYellow(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.yellow.getRGB()); // Yellow robot\n\t\t\t\t\t\t\tyellowRobotX.add(i);\n\t\t\t\t\t\t\tyellowRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tyellowCountA++;\n\t\t\t\t\t\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX() + i, yellowCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tyellowCountB++;\n\t\t\t\t\t\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX() + i, yellowCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tyellowCountC++;\n\t\t\t\t\t\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX() + i, yellowCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tyellowCountD++;\n\t\t\t\t\t\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX() + i, yellowCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tyellowCountE++;\n\t\t\t\t\t\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX() + i, yellowCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tyellowPixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (isBlue(c)){\n\t\t\t\t\t\tsetCs(i,j,right,left,top,bottom, img);\n\t\t\t\t\t\tif (isBlue(cS) && isBlue(cE) && isBlue(cEE) && isBlue(cEN) && isBlue(cSS) && isBlue(cSW) ){\n\t\t\t\t\t\t\timg.setRGB(i, j, Color.blue.getRGB()); // Blue robot \n\t\t\t\t\t\t\tblueRobotX.add(i);\n\t\t\t\t\t\t\tblueRobotY.add(j);\n\t\t\t\t\t\t\trandy = Math.random();\n\t\t\t\t\t\t\tif (randy > 0 && randy <= 0.2){\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tblueCountA++;\n\t\t\t\t\t\t\t\tblueCentroidA.setLocation(blueCentroidA.getX() + i, blueCentroidA.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.2 && randy <= 0.4){\n\t\t\t\t\t\t\t\tblueCountB++;\n\t\t\t\t\t\t\t\tblueCentroidB.setLocation(blueCentroidB.getX() + i, blueCentroidB.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.4 && randy <= 0.6){\n\t\t\t\t\t\t\t\tblueCountC++;\n\t\t\t\t\t\t\t\tblueCentroidC.setLocation(blueCentroidC.getX() + i, blueCentroidC.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.6 && randy <= 0.8){\n\t\t\t\t\t\t\t\tblueCountD++;\n\t\t\t\t\t\t\t\tblueCentroidD.setLocation(blueCentroidD.getX() + i, blueCentroidD.getY() + j);\n\t\t\t\t\t\t\t}else if (randy > 0.8 && randy <= 1){\n\t\t\t\t\t\t\t\tblueCountE++;\n\t\t\t\t\t\t\t\tblueCentroidE.setLocation(blueCentroidE.getX() + i, blueCentroidE.getY() + j);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbluePixels.add(new Point(i,j));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//make blue thresholds for the different pitches in that [pitch][x] style\n\t\t\t\t\t}\n\t\t\t\t\telse if (isGreen(c,GB,RG)) {\n\t\t\t\t\t\timg.setRGB(i,j, Color.green.getRGB()); // GreenPlates \n\t\t\t\t\t\tif (Point.distance(\tworldState.getBlueRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getBlueRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34) {\n\t\t\t\t\t\t\tblueGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t} \n\t\t\t\t\t\tif (Point.distance(\tworldState.getYellowRobot().getPosition().getCentre().x,\n\t\t\t\t\t\t\t\tworldState.getYellowRobot().getPosition().getCentre().y,\n\t\t\t\t\t\t\t\ti,j) < 34){\n\t\t\t\t\t\t\tyellowGreenPlate.add(new Point(i,j));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (redCountA == 0) redCountA++;\n\t\t\tif (redCountB == 0) redCountB++;\n\t\t\tif (redCountC == 0) redCountC++;\n\t\t\tif (redCountD == 0) redCountD++;\n\t\t\tif (redCountE == 0) redCountE++;\n\t\t\tif (blueCountA == 0) blueCountA++;\n\t\t\tif (blueCountB == 0) blueCountB++;\n\t\t\tif (blueCountC == 0) blueCountC++;\n\t\t\tif (blueCountD == 0) blueCountD++;\n\t\t\tif (blueCountE == 0) blueCountE++;\n\t\t\tif (yellowCountA == 0) yellowCountA++;\n\t\t\tif (yellowCountB == 0) yellowCountB++;\n\t\t\tif (yellowCountC == 0) yellowCountC++;\n\t\t\tif (yellowCountD == 0) yellowCountD++;\n\t\t\tif (yellowCountE == 0) yellowCountE++;\n\n\n\t\t\t//TODO: Run these points through the parralax fix\n\t\t\ttotalRedX = 0;\n\t\t\ttotalRedY = 0;\n\t\t\tnumRedCentroids = 0;\n\n\n\t\t\tredCentroidA.setLocation(redCentroidA.getX()/redCountA, redCentroidA.getY()/redCountA);\n\t\t\tredCentroidB.setLocation(redCentroidB.getX()/redCountB, redCentroidB.getY()/redCountB);\n\t\t\tredCentroidC.setLocation(redCentroidC.getX()/redCountC, redCentroidC.getY()/redCountC);\n\t\t\tredCentroidD.setLocation(redCentroidD.getX()/redCountD, redCentroidD.getY()/redCountD);\n\t\t\tredCentroidE.setLocation(redCentroidE.getX()/redCountE, redCentroidE.getY()/redCountE);\n\n\t\t\ttotalYellowX = 0;\n\t\t\ttotalYellowY = 0;\n\t\t\tnumYellowCentroids = 0;\n\n\n\t\t\tyellowCentroidA.setLocation(yellowCentroidA.getX()/yellowCountA, yellowCentroidA.getY()/yellowCountA);\n\t\t\tyellowCentroidB.setLocation(yellowCentroidB.getX()/yellowCountB, yellowCentroidB.getY()/yellowCountB);\n\t\t\tyellowCentroidC.setLocation(yellowCentroidC.getX()/yellowCountC, yellowCentroidC.getY()/yellowCountC);\n\t\t\tyellowCentroidD.setLocation(yellowCentroidD.getX()/yellowCountD, yellowCentroidD.getY()/yellowCountD);\n\t\t\tyellowCentroidE.setLocation(yellowCentroidE.getX()/yellowCountE, yellowCentroidE.getY()/yellowCountE);\n\n\t\t\ttotalBlueX = 0;\n\t\t\ttotalBlueY = 0;\n\t\t\tnumBlueCentroids = 0;\n\n\n\t\t\tblueCentroidA.setLocation(blueCentroidA.getX()/blueCountA, blueCentroidA.getY()/blueCountA);\n\t\t\tblueCentroidB.setLocation(blueCentroidB.getX()/blueCountB, blueCentroidB.getY()/blueCountB);\n\t\t\tblueCentroidC.setLocation(blueCentroidC.getX()/blueCountC, blueCentroidC.getY()/blueCountC);\n\t\t\tblueCentroidD.setLocation(blueCentroidD.getX()/blueCountD, blueCentroidD.getY()/blueCountD);\n\t\t\tblueCentroidE.setLocation(blueCentroidE.getX()/blueCountE, blueCentroidE.getY()/blueCountE);\n\n\t\t\tc = new Color(img.getRGB((int)redCentroidA.getX(), (int)redCentroidA.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidA.getX();\n\t\t\t\ttotalRedY += redCentroidA.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidB.getX(), (int)redCentroidB.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidB.getX();\n\t\t\t\ttotalRedY += redCentroidB.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidC.getX(), (int)redCentroidC.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidC.getX();\n\t\t\t\ttotalRedY += redCentroidC.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidD.getX(), (int)redCentroidD.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidD.getX();\n\t\t\t\ttotalRedY += redCentroidD.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)redCentroidE.getX(), (int)redCentroidE.getY()));\n\t\t\tif (isRed(c, GB)) {\n\t\t\t\ttotalRedX += redCentroidE.getX();\n\t\t\t\ttotalRedY += redCentroidE.getY();\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tif (numRedCentroids == 0){\n\t\t\t\tnumRedCentroids++;\n\t\t\t}\n\n\t\t\tredX = (int)(totalRedX/numRedCentroids);\n\t\t\tredY = (int)(totalRedY/numRedCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidA.getX(), (int)yellowCentroidA.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidA.getX();\n\t\t\t\ttotalYellowY += yellowCentroidA.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidB.getX(), (int)yellowCentroidB.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidB.getX();\n\t\t\t\ttotalYellowY += yellowCentroidB.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidC.getX(), (int)yellowCentroidC.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidC.getX();\n\t\t\t\ttotalYellowY += yellowCentroidC.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidD.getX(), (int)yellowCentroidD.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidD.getX();\n\t\t\t\ttotalYellowY += yellowCentroidD.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)yellowCentroidE.getX(), (int)yellowCentroidE.getY()));\n\t\t\tif (isYellow(c)) {\n\t\t\t\ttotalYellowX += yellowCentroidE.getX();\n\t\t\t\ttotalYellowY += yellowCentroidE.getY();\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tif (numYellowCentroids == 0){\n\t\t\t\tnumYellowCentroids++;\n\t\t\t}\n\n\t\t\tyellowX = (int)(totalYellowX/numYellowCentroids);\n\t\t\tyellowY = (int)(totalYellowY/numYellowCentroids);\n\n\t\t\tc = new Color(img.getRGB((int)blueCentroidA.getX(), (int)blueCentroidA.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidA.getX();\n\t\t\t\ttotalBlueY += blueCentroidA.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidB.getX(), (int)blueCentroidB.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidB.getX();\n\t\t\t\ttotalBlueY += blueCentroidB.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidC.getX(), (int)blueCentroidC.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidC.getX();\n\t\t\t\ttotalBlueY += blueCentroidC.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidD.getX(), (int)blueCentroidD.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidD.getX();\n\t\t\t\ttotalBlueY += blueCentroidD.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\t\t\tc = new Color(img.getRGB((int)blueCentroidE.getX(), (int)blueCentroidE.getY()));\n\t\t\tif (isBlue(c)) {\n\t\t\t\ttotalBlueX += blueCentroidE.getX();\n\t\t\t\ttotalBlueY += blueCentroidE.getY();\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tif (numBlueCentroids == 0){\n\t\t\t\tnumBlueCentroids++;\n\t\t\t}\n\n\t\t\tblueX = (int)(totalBlueX/numBlueCentroids);\n\t\t\tblueY = (int)(totalBlueY/numBlueCentroids);\n\n\t\t\tblueGreenPlate4Points = plate.getCorners(blueGreenPlate);\n\t\t\tyellowGreenPlate4Points = plate.getCorners(yellowGreenPlate);\n\n\t\t\tworldState.getBlueRobot().getPosition().setCorners(blueGreenPlate4Points);\n\t\t\tworldState.getYellowRobot().getPosition().setCorners(yellowGreenPlate4Points);\n\n\t\t\tPoint fixBall = new Point(redX,redY);\n\t\t\tif ((redX != 0) && (redY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBallPosition(fixBall);\n\t\t\t\t}else{ \n\t\t\t\t\tworldState.setBallPosition(DistortionFix.barrelCorrected(fixBall));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixBlue = new Point(blueX,blueY);\n\t\t\tif ((blueX != 0) && (blueY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(fixBlue,worldState.getBlueRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setBlueRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixBlue),worldState.getBlueRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tPoint fixYell = new Point(yellowX,yellowY);\n\t\t\tif ((yellowX != 0) && (yellowY != 0)) {\n\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(fixYell,worldState.getYellowRobot()));\n\t\t\t\t}else{\n\t\t\t\t\tworldState.setYellowRobotPosition(fixParallax(DistortionFix.barrelCorrected(fixYell),worldState.getYellowRobot()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(Point p : bluePixels){\n\n\t\t\t\tif( plate.isInRectangle(p,blueGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(p,worldState.getBlueRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewBluePixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getBlueRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(Point p : yellowPixels){\n\n\t\t\t\tif( plate.isInRectangle(p,yellowGreenPlate4Points) ){\n\t\t\t\t\tif (worldState.getBarrelFix()){\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(p,worldState.getYellowRobot()));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnewYellowPixels.add(fixParallax(DistortionFix.barrelCorrected(p),worldState.getYellowRobot()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tworldState.setBluePixels(newBluePixels);\n\t\t\tworldState.setYellowPixels(newYellowPixels);\n\n\t\t\t//The above is supposed to filter the pixels and pick up only the T pixels, but the orientation then is always with the (0,0) point \n\n\n\t\t\tblueGreenPlate.clear();\n\t\t\tyellowGreenPlate.clear();\n\n\t\t}\n\n\t\treturn img;\n\n\t}", "ImageViewTouchBase getMainImage();", "private static Position getRightBottomNeighbor(Position curr, int side) {\n int newX = curr.getX() + getNumElement(0, side) + getNumSpacePerSide(0, side) + 1;\n int newY = curr.getY() - side;\n return new Position(newX, newY);\n }", "private Point findBottomRightCornerPoint() {\n return new Point(origin.getX() + width, origin.getY());\n }", "public int chooseRightOrLeftNode(int[][] grayIntegralImage, int[][] squaredGrayIntegralImage, int x, int y, float scale) {\n int w = (int) (scale * size.x);\n int h = (int) (scale * size.y);\n /*\n * Calcola l'inverso dell'area della finestra di coordinate w*h\n */\n double inverseArea = 1. / (w * h);\n /*\n * Sfruttando l'immagine integrale e la sua forma quadratica calcola l'area e \n * l'area quadratica della finestra,\n * senza compiere iterazioni.\n */\n int sum = grayIntegralImage[x + w][y + h] + grayIntegralImage[x][y] - grayIntegralImage[x][y + h] - grayIntegralImage[x + w][y];\n int powSum2 = squaredGrayIntegralImage[x + w][y + h] + squaredGrayIntegralImage[x][y] - squaredGrayIntegralImage[x][y + h] - squaredGrayIntegralImage[x + w][y];\n /* \n * Calcolo la media e la deviazione standard della finestra\n */\n double mean = sum * inverseArea;\n double standardDeviation = powSum2 * inverseArea - mean * mean;\n standardDeviation = (standardDeviation > 1) ? Math.sqrt(standardDeviation) : 1;\n int rectanglesSum = 0;\n for (int n = 0; n < numberOfRectangles; n++) {\n MyRectangle rectangle = rectangles[n];\n /*\n * Scala il rettangolo in base alla grandezza della finestra.\n */\n int rectangleX1 = x + (int) (scale * rectangle.x);\n int rectangleX2 = x + (int) (scale * (rectangle.x + rectangle.width));\n int rectangleY1 = y + (int) (scale * rectangle.y);\n int rectangleY2 = y + (int) (scale * (rectangle.y + rectangle.height));\n MyRectangle scaledRectangle = new MyRectangle(rectangleX1, rectangleY1,\n Math.round(scale * rectangle.width), Math.round(scale * rectangle.height), rectangle.weight);\n scaledRectangles[n] = scaledRectangle;\n /*\n * Calcolo la somma dei pixel nel rettangolo (pesata con il peso del rettangolo).\n */\n rectanglesSum += (int) ((grayIntegralImage[rectangleX1][rectangleY1]\n + grayIntegralImage[rectangleX2][rectangleY2]\n - grayIntegralImage[rectangleX1][rectangleY2]\n - grayIntegralImage[rectangleX2][rectangleY1])\n * rectangle.weight);\n }\n double rectangleSumMultipliesInverseArea = rectanglesSum * inverseArea;\n /*\n * Scelgo il nodo a sinistra o a destra comparando il valore soglia con \n * il valore rectangleSumMultipliesInverseArea.\n */\n return (rectangleSumMultipliesInverseArea < thresholdValue * standardDeviation) ? Tree.LEFT : Tree.RIGHT;\n }", "String getImage();", "public Image getSemiquaverUp();", "BufferedImage getSelectedImage();", "File resolveImage(Box box);", "public static Image movePoint()\n\t{\n\t\treturn movePoint;\n\t}", "public double Right(){\n\t\tdouble farx = x + sizeX - 1;\n\t\treturn (farx);\n\t}", "public Bitmap getImage(){\n return images[currentFrame];\n }", "private void findSelectedImageEntry() {\n\t\tPanImageEntry oldSelected = selectedPanImageEntry;\n\t\tPanImageEntry panImageEntry = findPanImageEntryClosestToCenter();\n\t\tif ((panImageEntry != null) && (panImageEntry != oldSelected)) {\n\t\t\tselectedPanImageEntry = panImageEntry;\n\t\t\teditor.setSelectedImage(selectedPanImageEntry.imageListEntry, false);\n\t\t}\n\t}", "public void renderImage()\n {\n for (int i = 0; i < _imageWriter.getNx(); i++)\n {\n for (int j = 0; j < _imageWriter.getNy(); j++)\n {\n Ray ray;\n ray = new Ray(_scene.getCamera().constructRayThroughPixel(_imageWriter.getNx(), _imageWriter.getNy(),j,i,\n _scene.getScreenDistance(), _imageWriter.getWidth(),_imageWriter.getHeight()));\n\n if(i==255 && j==255)\n System.out.print(\"111\");\n Map<Geometry, List<Point3D>> intersectionPoints = new HashMap<>(getSceneRayIntersections(ray));\n\n if(intersectionPoints.isEmpty())\n _imageWriter.writePixel(j, i, _scene.getBackground());\n else\n {\n Map<Geometry, Point3D> closestPoint = getClosestPoint(intersectionPoints);\n Map.Entry<Geometry,Point3D> entry;\n Iterator<Entry<Geometry, Point3D>> it = closestPoint.entrySet().iterator();\n entry = it.next();\n _imageWriter.writePixel(j, i, calcColor(entry.getKey(), entry.getValue(), ray));\n }\n\n }\n }\n //printGrid(1);\n\n }", "public Image getImageAfter(T anItem) { return null; }", "private int right(int index) {\r\n\t\treturn 2 * index + 2;\r\n\t}", "private File getNextPicture() {\r\n File retVal = null;\r\n\r\n if (listFiles.size() > 0) {\r\n if (fileList.getSelectedIndex() == listFiles.size() - 1) {\r\n retVal = listFiles.get(0);\r\n fileList.setSelectedIndex(0);\r\n } else {\r\n retVal = listFiles.get(fileList.getSelectedIndex() + 1);\r\n fileList.setSelectedIndex(fileList.getSelectedIndex() + 1);\r\n }\r\n }\r\n\r\n return retVal;\r\n }", "public void hreflect() {\n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n int h= 0;\n int k= rows-1;\n //invariant: rows 0..h-1 and k+1.. have been inverted\n while (h < k) {\n // Swap row h with row k\n // invariant: pixels 0..c-1 of rows h and k have been swapped\n for (int c= 0; c != cols; c= c+1) {\n currentIm.swapPixels(h, c, k, c);\n }\n \n h= h+1; k= k-1;\n }\n }", "private Coordinate tileCoordinateForTileRightAbove(GuiTile tile) {\n\t\treturn new Coordinate(tile.getScreenBottomX() / GuiTile.getScale() + GuiTile.getHalfWidth() + 0.05 * GuiTile.getHalfWidth(),\n\t\t\t\ttile.getScreenBottomY() / GuiTile.getScale() - tile.getMid1Height() - GuiTile.getBaseHeight() - 0.05 * GuiTile.getHalfWidth());\n\t}", "private void cropCurrRect() {\n\t\tRectangle cropRec = currRect.getBounds();\n\t\tBufferedImage img = currImage.getSubimage(cropRec.x, cropRec.y, cropRec.width, cropRec.height);\n\t\tAffineTransform rotAT = AffineTransform.getRotateInstance(-currRect.getTheta(), cropRec.width, cropRec.height);\n\n\t\tBufferedImageOp bio;\n\t\tbio = new AffineTransformOp(rotAT, AffineTransformOp.TYPE_BICUBIC);\n\t\tBufferedImage rotImg = bio.filter(img, null);\n\t\tColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY);\n\t\tColorConvertOp op = new ColorConvertOp(cs, null);\n\t\trotImg = op.filter(rotImg, null);\n\t\t\n\t\tocrExtraction(rotImg);\n\t}", "int getFocusBracketingNImagesPref();", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "private static boolean isMirrorImage(Tree left, Tree right){\n if(left==null || right == null){\n return (left==null && right==null);\n }\n\n return left.data==right.data && isMirrorImage(left.left,right.right) && isMirrorImage(left.right,right.left);\n}", "public BufferedImage getCurrentImage(){\n\t\treturn getCurrentImage(System.currentTimeMillis()-lastUpdate);\n\t}", "public Coords getLowerRight()\r\n {\r\n return new Coords(x + width, y + height);\r\n }", "public void rotateRight(Image im, int x, int y, int pixels, GraphicsContext gc2) {\n //permite que la imagen se pueda editar\n imageView = new ImageView(im);\n //selecciona el bloque que se va a rotar\n snapshot.setViewport(new Rectangle2D(x, y, pixels, pixels));\n im = imageView.snapshot(snapshot, null);\n imageView.setImage(im);\n //rota la imagen\n imageView.setRotate(imageView.getRotate() + 90);\n\n //coloca la imagen en el mismo lugar donde fue seleccionada\n SnapshotParameters params = new SnapshotParameters();\n params.setFill(Color.TRANSPARENT);\n Image rotatedImage = imageView.snapshot(params, null);\n gc2.drawImage(rotatedImage, x, y);\n\n imagePiece = null;\n imageView = null;\n }", "private void findDrawList() {\n\t\tPanImageEntry chosenPanImage = null;\n\t\tfor (int n=0; n < panImageList.length; n++) {\n\t\t\tPanImageEntry panImage = panImageList[n];\n\t\t\tif (!panImage.imageListEntry.enabled) {\n\t\t\t\tpanImage.draw = false;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ((chosenPanImage == null) \n\t\t\t\t\t|| (chosenPanImage.imageListEntry.getImageCategory().charAt(0) != panImage.imageListEntry.getImageCategory().charAt(0))\n\t\t\t\t\t|| (chosenPanImage.imageListEntry.getImageMetadataEntry().inst_az_rover != panImage.imageListEntry.getImageMetadataEntry().inst_az_rover)\n\t\t\t\t\t|| (chosenPanImage.imageListEntry.getImageMetadataEntry().inst_el_rover != panImage.imageListEntry.getImageMetadataEntry().inst_el_rover)\n\t\t\t\t\t) {\n\t\t\t\t// different pointing\n\t\t\t\tpanImage.draw = true;\n\t\t\t\tchosenPanImage = panImage;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// same pointing as lastPanImage\n\t\t\t\t// find out if this image is better choice (selected or better image class)\n\t\t\t\tString imageCat = panImage.imageListEntry.getImageCategory();\n\t\t\t\tString chosenImageCat = chosenPanImage.imageListEntry.getImageCategory();\n\t\t\t\tif (panImage == selectedPanImageEntry) {\n\t\t\t\t\tchosenPanImage.draw = false;\n\t\t\t\t\tpanImage.draw = true;\n\t\t\t\t\tchosenPanImage = panImage;\n\t\t\t\t}\n\t\t\t\telse if ((chosenPanImage != selectedPanImageEntry) && (isSuperiorImageCat(imageCat, chosenImageCat)))\n\t\t\t\t{\n\t\t\t\t\tchosenPanImage.draw = false;\n\t\t\t\t\tpanImage.draw = true;\n\t\t\t\t\tchosenPanImage = panImage;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpanImage.draw = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private Location getRightHandPos() {\r\n\t\treturn GeneralMethods.getRightSide(this.player.getLocation(), .34).add(0, 1.5, 0);\r\n\t}", "public void moveRight() {\r\n speedX = 6;\r\n Texture r1 = changeImg (\"./graphics/characters/player/rightWalk1.png\");\r\n img = new Sprite (r1);\r\n if (centerX > startScrolling)\r\n bg.setBackX (bg.getBackX () + 6);\r\n bg.update ();\r\n }", "public void animateMovementRight()\n {\n if(animationCount%frameRate == 0)\n {\n imageNumber = (imageNumber + 1)% (rightMvt.length);\n setImage(rightMvt[imageNumber]);\n }\n }", "public Pixel next() {\n\t\treturn (isEmpty()) ? null : iterator().next();\n\t}", "public void update()\n {\n if(x + image.getWidth(null) < 0)\n {\n x = 0;\n }\n else\n {\n x--;\n }\n }", "public JLabel getOriginImagePanel(Frame frame) {\n return getLabelFromImageAndFrame(image, frame);\n }", "public Image getSemiquaverDown();", "byte[] getCurrentPixel() {\n byte[] pixel = new byte[2];\n\n pixel[0] = ((byte) cursor.getX());\n pixel[1] = ((byte) cursor.getY());\n\n for (byte b : pixel) {\n\n if (b >= axisLength || b < 0) {\n return null;\n }\n }\n return pixel;\n }", "public void moveRight() {\n this.accelerateXR();\n this.moveX(this.getxSpeed());\n this.setPicX(0);\n this.setPicY(74);\n this.setLoopCells(true);\n }", "private static ImageFile mostTaggedImage()\n {\n ImageFile currentMostTaggedImage;\n currentMostTaggedImage = Log.allImages.get(0);\n for (ImageFile i : Log.allImages)\n {\n if (i.tagList.size() > currentMostTaggedImage.tagList.size())\n {\n currentMostTaggedImage = i;\n }\n }\n return currentMostTaggedImage;\n }", "protected DraggableImage getPanelEndImage() {\n\treturn endImage;\n }", "private int right(int parent) {\n\t\treturn parent*2+2;\n\t}", "protected native MagickImage nextImage() throws MagickException;", "private float calculateSidePixel(double straightDist, double sideDist) {\n double angleToObject = Math.toDegrees(atan(sideDist/straightDist));\n double pixelsToObject = cameraType.hPPA * angleToObject;\n // calculate px\n return (float)((CameraType.imageWidth/2) - pixelsToObject);\n }", "public void testFindBorders() {\n System.out.println(\"findBorders\");\n RasterImage rImage = new RasterImage(20,21);\n int expResult[] = {16777215, 0, 0, 0, 0, 0, 0, 16777215, 16777215,\n 16777215, 16777215, 16777215, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 16777215, 16777215, 16777215, 16777215, 0, 16777215, 16777215, 16777215,\n 16777215, 16777215, 0, 0, 0, 16777215, 16777215, 16777215, 0, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 16777215,\n 0, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 0,\n 16777215, 16777215, 0, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215,\n 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215,\n 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215, 16777215, 16777215,\n 16777215, 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215, 16777215,\n 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 16777215, 0, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 0, 16777215, 0, 0, 0, 16777215,\n 16777215, 16777215, 0, 0, 0, 0, 16777215, 16777215, 0, 0, 0, 0, 0, 0, 0, 0, 16777215,\n 16777215, 16777215, 16777215};\n int pixels[] = {16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,0,0,0,\n 0,0,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,0,0,0,\n 0,0,0,0,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,0,0,0,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,0,0,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,0,16777215,16777215,\n 16777215,0,0,0,0,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,0,0,0,\n 0,0,0,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215};\n for(int i=0;i<420;i++){\n int x = i%20;\n int y = i/20;\n rImage.setRGB(x, y, pixels[i]);\n }\n\n\n\n RasterImage result = CutCharacter.findBorders(rImage);\n for(int i=0;i<168;i++)\n assertEquals(expResult[i], result.getRGB(i));\n \n }", "public Point findImage(BufferedImage image, int index) {\n int smallWidth = image.getWidth();\n int smallHeight = image.getHeight();\n int[][] smallPixels = new int[smallWidth][smallHeight];\n for(int x = 0; x < smallWidth; x++) {\n for(int y = 0; y < smallHeight; y++) {\n smallPixels[x][y] = image.getRGB(x, y);\n }\n }\n boolean good;\n int count = 0;\n for(int X = 0; X <= bigWidth - smallWidth; X++) {\n for(int Y = 0; Y <= bigHeight - smallHeight; Y++) {\n good = true;\n for(int x = 0; x < smallWidth; x++) {\n for(int y = 0; y < smallHeight; y++) {\n if(smallPixels[x][y] != bigPixels[X + x][Y + y]) {\n good = false;\n break;\n }\n }\n if(!good) {\n break;\n }\n }\n if(good) {\n if(count == index) {\n return(new Point(X, Y));\n }\n count++;\n }\n }\n }\n return(null);\n }" ]
[ "0.6480335", "0.6230264", "0.5959131", "0.57877916", "0.5777926", "0.5731906", "0.57136005", "0.5681872", "0.5644489", "0.56429887", "0.5638482", "0.5636631", "0.56324387", "0.5558786", "0.5551371", "0.55456805", "0.5525423", "0.55215526", "0.55141044", "0.5479561", "0.546892", "0.5467504", "0.54570997", "0.5442834", "0.5430379", "0.54210544", "0.5405265", "0.5387968", "0.53865236", "0.5380757", "0.5372935", "0.53716487", "0.5371002", "0.5366865", "0.5356499", "0.53440493", "0.53231", "0.53210926", "0.5320562", "0.5314671", "0.53145695", "0.531389", "0.5311023", "0.52985555", "0.52933335", "0.52888453", "0.5283946", "0.5276516", "0.52729344", "0.52688885", "0.5261991", "0.5260398", "0.5259621", "0.5253452", "0.5253267", "0.52473843", "0.52405214", "0.52366465", "0.5233513", "0.52327424", "0.5221275", "0.5217666", "0.5209408", "0.52088493", "0.5201184", "0.5200663", "0.51992226", "0.51985514", "0.5195661", "0.5186433", "0.5185981", "0.51829034", "0.5178311", "0.51688254", "0.51670486", "0.51640904", "0.5156536", "0.51472", "0.5142424", "0.51375335", "0.5135578", "0.5135493", "0.5113299", "0.511313", "0.51093584", "0.5106624", "0.5105772", "0.5104842", "0.5101202", "0.5100068", "0.50973475", "0.5096133", "0.5088608", "0.50864995", "0.5085132", "0.5085085", "0.5084732", "0.508433", "0.5080242", "0.5070764" ]
0.5828152
3
/ Test to list commits with valid repository, author and user capability
@Test public void testCorrectUsage() throws IOException, AuthorCommitsFailedException { EasyMock.expect(mockManager.openRepository(new Project.NameKey("trial"))) .andReturn( RepositoryCache.open(FileKey.lenient(new File( "../../review_site/git", "trial.git"), FS.DETECTED))); EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability); EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true); replay(mockUser, mockCapability, mockManager); List<CommitInfo> expected = new LinkedList<CommitInfo>(); CommitInfo ex = new CommitInfo(); ex.setId("ede945e22cba9203ce8a0aae1409e50d36b3db72"); ex.setAuth("Keerath Jaggi <[email protected]> 1401771779 +0530"); ex.setMsg("init commit\n"); ex.setDate("Tue Jun 03 10:32:59 IST 2014"); expected.add(ex); cmd_test.setCommits(new Project.NameKey("trial"), "kee"); assertEquals(expected, cmd_test.getCommits()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = AuthorCommitsFailedException.class)\n public void testIncorrectAuthorPattern() throws AuthorCommitsFailedException {\n EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability);\n EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true);\n replay(mockUser, mockCapability);\n cmd_test.setCommits(new Project.NameKey(\"trial\"), \"ke*\");\n }", "@Test(expected = AuthorCommitsFailedException.class)\n public void testUserWithoutCapability() throws AuthorCommitsFailedException {\n EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability);\n EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(false);\n EasyMock.expect(mockUser.getUserName()).andReturn(\"keerath\");\n replay(mockUser, mockCapability);\n cmd_test.setCommits(new Project.NameKey(\"trial\"), \"kee\");\n }", "@Test\n public void testProjectNameWithGitExtension()\n throws AuthorCommitsFailedException, IOException{\n EasyMock.expect(mockManager.openRepository(new Project.NameKey(\"trial\")))\n .andReturn(\n RepositoryCache.open(FileKey.lenient(new File(\n \"../../review_site/git\", \"trial.git\"), FS.DETECTED)));\n EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability);\n EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true);\n replay(mockUser, mockCapability, mockManager);\n List<CommitInfo> expected = new LinkedList<CommitInfo>();\n CommitInfo ex = new CommitInfo();\n ex.setId(\"ede945e22cba9203ce8a0aae1409e50d36b3db72\");\n ex.setAuth(\"Keerath Jaggi <[email protected]> 1401771779 +0530\");\n ex.setMsg(\"init commit\\n\");\n ex.setDate(\"Tue Jun 03 10:32:59 IST 2014\");\n expected.add(ex);\n cmd_test.setCommits(new Project.NameKey(\"trial.git\"), \"kee\");\n assertEquals(expected, cmd_test.getCommits());\n }", "@Test\n public void testCommitsApi() throws Exception\n {\n \n \n RequestBuilder builder = new RequestBuilder(\"GET\");\n Request request = builder.setUrl(\n UriTemplate.fromTemplate(BASE)\n .append(PATH_EXPRESSION)\n .set(\"user\", \"damnhandy\")\n .set(\"repo\", \"Handy-URI-Templates\")\n .set(\"function\",\"commits\")\n .expand()).build();\n Assert.assertEquals(\"https://api.github.com/repos/damnhandy/Handy-URI-Templates/commits\", request.getUrl());\n executeRequest(createClient(), request);\n }", "@Test\n public void testCommitsApiWithSpecificCommit() throws Exception\n {\n \n \n RequestBuilder builder = new RequestBuilder(\"GET\");\n Request request = builder.setUrl(\n UriTemplate.fromTemplate(BASE)\n .append(PATH_EXPRESSION)\n .set(\"user\", \"damnhandy\")\n .set(\"repo\", \"Handy-URI-Templates\")\n .set(\"function\",\"commits\")\n .set(\"id\",\"7cdf7ff75f8ede138228ceff7f5a1c18a5835b94\")\n .expand()).build();\n Assert.assertEquals(\"https://api.github.com/repos/damnhandy/Handy-URI-Templates/commits/7cdf7ff75f8ede138228ceff7f5a1c18a5835b94\", request.getUrl());\n executeRequest(createClient(), request);\n }", "@Test\n public void testGetRepos() throws Exception\n {\n String userName = \"ahmed-fathy-aly\";\n List<Repo> repoList = gitHubAPIService.getRepos(userName);\n\n assertNotNull(repoList);\n assertTrue(repoList.size() > 0);\n for (Repo repo : repoList)\n {\n assertNotNull(repo.getName());\n assertNotNull(repo.getId());\n }\n }", "@Test\r\n\tpublic void testGetContributors() {\r\n\t\tcm = Contributormanager.getInstance();\r\n\t\tassertTrue(cm.addContributor(\"Chris\"));\r\n\t\tassertTrue(cm.addContributor(\"Anna\"));\r\n\t\tObservableList<Contributor> con = cm.getContributors();\r\n\t\tfor(Contributor c:con) {\r\n\t\t\tassertTrue(cm.getContributors().contains(c));\r\n\t\t}\r\n\t}", "public List<Commit> getAllCommits(Project project, String branchName);", "public interface IRepoListPresenter {\n public void loadCommits(String userName);\n}", "public void testAssignBlogContributors() {\n rootBlog.setProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY, \"user1\");\n assertEquals(\"user1\", rootBlog.getProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY));\n assertEquals(\"user1\", rootBlog.getBlogContributors());\n\n Collection users = rootBlog.getUsersInRole(Constants.BLOG_CONTRIBUTOR_ROLE);\n assertEquals(1, users.size());\n assertTrue(users.contains(\"user1\"));\n\n rootBlog.setProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY, \"user1,user2\");\n assertEquals(\"user1,user2\", rootBlog.getProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY));\n assertEquals(\"user1,user2\", rootBlog.getBlogContributors());\n\n users = rootBlog.getUsersInRole(Constants.BLOG_CONTRIBUTOR_ROLE);\n assertEquals(2, users.size());\n assertTrue(users.contains(\"user1\"));\n assertTrue(users.contains(\"user2\"));\n }", "public List<Commit> commits(String owner, String repo, String sha, long page) {\n return apiClient.deserializeAsList(apiClient.get(String.format(\"/repos/%s/%s/commits\", owner, repo),\n Maps.NEW(\"sha\", sha)\n .add(\"page\", page),\n null),\n Commit.class);\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withCommitsEmptyRevision() throws IOException {\n\t\tTreeUtils.withCommits(new FileRepository(testRepo), new String[0]);\n\t}", "@Test\n\tpublic void noNotesInRepository() throws Exception {\n\t\tadd(\"test.txt\", \"abc\");\n\n\t\tCommitCountFilter count = new CommitCountFilter();\n\t\tCommitFinder finder = new CommitFinder(testRepo);\n\t\tfinder.setFilter(new AndCommitFilter(new NoteFilter(), count)).find();\n\t\tassertEquals(0, count.getCount());\n\t}", "@Test(expected = RepositoryNotFoundException.class)\n public void testNonExistingRepository() throws AuthorCommitsFailedException,\n IOException{\n EasyMock.expect(mockManager.openRepository(new Project.NameKey(\"abcdefg\")))\n .andReturn(\n RepositoryCache.open(FileKey.lenient(new File(\n \"../../review_site/git\", \"abcdefg.git\"), FS.DETECTED)));\n EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability);\n EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true);\n replay(mockUser, mockCapability, mockManager);\n cmd_test.setCommits(new Project.NameKey(\"abcdefg\"), \"kee\");\n }", "public List<Commit> getAllCommits() {\r\n return datastore.createQuery(Commit.class)\r\n .field(\"vcs_system_id\").equal(vcSystem.getId())\r\n .asList();\r\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withCommitsEmptyCommits() throws IOException {\n\t\tTreeUtils.withCommits(new FileRepository(testRepo), new ObjectId[0]);\n\t}", "@Test\n public void t2() {\n List<StableCommit> stableCommitList = getStableCommits().stream().filter(commit ->\n commit.getFilePath().equals(\"src/java/org/apache/commons/lang/builder/HashCodeBuilder.java\") && commit.getLevel() == 1).collect(Collectors.toList());\n // it has been through 9 different refactorings\n List<RefactoringCommit> refactoringCommitList = getRefactoringCommits().stream().filter(commit ->\n commit.getFilePath().equals(\"src/java/org/apache/commons/lang/builder/HashCodeBuilder.java\")).collect(Collectors.toList());\n\n Assert.assertEquals(4, stableCommitList.size());\n Assert.assertEquals(8, refactoringCommitList.size());\n\n Assert.assertEquals(\"5c40090fecdacd9366bba7e3e29d94f213cf2633\", stableCommitList.get(0).getCommit());\n\n // then, it was refactored two times (in commit 5c40090fecdacd9366bba7e3e29d94f213cf2633)\n Assert.assertEquals(\"5c40090fecdacd9366bba7e3e29d94f213cf2633\", refactoringCommitList.get(0).getCommit());\n Assert.assertEquals(\"5c40090fecdacd9366bba7e3e29d94f213cf2633\", refactoringCommitList.get(1).getCommit());\n\n // It appears 3 times\n Assert.assertEquals(\"379d1bcac32d75e6c7f32661b2203f930f9989df\", stableCommitList.get(1).getCommit());\n Assert.assertEquals(\"d3c425d6f1281d9387f5b80836ce855bc168453d\", stableCommitList.get(2).getCommit());\n Assert.assertEquals(\"3ed99652c84339375f1e6b99bd9c7f71d565e023\", stableCommitList.get(3).getCommit());\n }", "@Test\n\tpublic void noteInRepository() throws Exception {\n\t\tadd(\"test.txt\", \"abc\");\n\t\tnote(\"a note\");\n\t\tadd(\"test.txt\", \"abcd\");\n\n\t\tCommitCountFilter count = new CommitCountFilter();\n\t\tCommitFinder finder = new CommitFinder(testRepo);\n\t\tfinder.setFilter(new AndCommitFilter(new NoteFilter(), count)).find();\n\t\tassertEquals(1, count.getCount());\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate static JSONObject convertCommitList(CommitInfo commitInfo) {\n JSONObject commitInfoJSON = new JSONObject();\n\n commitInfoJSON.put(\"authorLogin\", commitInfo.getAuthorLogin());\n commitInfoJSON.put(\"authoredDate\", commitInfo.getAuthoredDate().toString());\n commitInfoJSON.put(\"committedDate\", commitInfo.getCommittedDate().toString());\n commitInfoJSON.put(\"additions\", commitInfo.getAdditions());\n commitInfoJSON.put(\"deletions\", commitInfo.getDeletions());\n commitInfoJSON.put(\"committedDateInSeconds\", commitInfo.getCommittedDateInSeconds());\n\n DirectoryDistribution dirDistribution = commitInfo.getDirectoryDistribution();\n \n commitInfoJSON.put(\"modelLines\", dirDistribution.getModelLines());\n commitInfoJSON.put(\"controllerLines\", dirDistribution.getControllerLines());\n commitInfoJSON.put(\"viewLines\", dirDistribution.getViewLines());\n commitInfoJSON.put(\"libLines\", dirDistribution.getLibraryLines());\n commitInfoJSON.put(\"otherLines\", dirDistribution.getOtherLines());\n\n return commitInfoJSON;\n }", "@Test\n public void shouldListExpectedUsers() {\n OrgMembersListPage theMembersPage = open(OrgMembersListPage.class, organization.getName());\n theMembersPage.entriesContainer().shouldHave(text(\"Admin User (admin)\"));\n }", "@Test\n public void testPermissions() throws IOException {\n Note note = notebook.createNote(\"note1\", anonymous);\n NotebookAuthorization notebookAuthorization = notebook.getNotebookAuthorization();\n // empty owners, readers or writers means note is public\n Assert.assertEquals(notebookAuthorization.isOwner(note.getId(), new HashSet(Arrays.asList(\"user2\"))), true);\n Assert.assertEquals(notebookAuthorization.isReader(note.getId(), new HashSet(Arrays.asList(\"user2\"))), true);\n Assert.assertEquals(notebookAuthorization.isRunner(note.getId(), new HashSet(Arrays.asList(\"user2\"))), true);\n Assert.assertEquals(notebookAuthorization.isWriter(note.getId(), new HashSet(Arrays.asList(\"user2\"))), true);\n notebookAuthorization.setOwners(note.getId(), new HashSet(Arrays.asList(\"user1\")));\n notebookAuthorization.setReaders(note.getId(), new HashSet(Arrays.asList(\"user1\", \"user2\")));\n notebookAuthorization.setRunners(note.getId(), new HashSet(Arrays.asList(\"user3\")));\n notebookAuthorization.setWriters(note.getId(), new HashSet(Arrays.asList(\"user1\")));\n Assert.assertEquals(notebookAuthorization.isOwner(note.getId(), new HashSet(Arrays.asList(\"user2\"))), false);\n Assert.assertEquals(notebookAuthorization.isOwner(note.getId(), new HashSet(Arrays.asList(\"user1\"))), true);\n Assert.assertEquals(notebookAuthorization.isReader(note.getId(), new HashSet(Arrays.asList(\"user4\"))), false);\n Assert.assertEquals(notebookAuthorization.isReader(note.getId(), new HashSet(Arrays.asList(\"user2\"))), true);\n Assert.assertEquals(notebookAuthorization.isRunner(note.getId(), new HashSet(Arrays.asList(\"user3\"))), true);\n Assert.assertEquals(notebookAuthorization.isRunner(note.getId(), new HashSet(Arrays.asList(\"user2\"))), false);\n Assert.assertEquals(notebookAuthorization.isWriter(note.getId(), new HashSet(Arrays.asList(\"user2\"))), false);\n Assert.assertEquals(notebookAuthorization.isWriter(note.getId(), new HashSet(Arrays.asList(\"user1\"))), true);\n // Test clearing of permissions\n notebookAuthorization.setReaders(note.getId(), Sets.<String>newHashSet());\n Assert.assertEquals(notebookAuthorization.isReader(note.getId(), new HashSet(Arrays.asList(\"user2\"))), true);\n Assert.assertEquals(notebookAuthorization.isReader(note.getId(), new HashSet(Arrays.asList(\"user4\"))), true);\n notebook.removeNote(note.getId(), anonymous);\n }", "private ArrayList getCommitteList() {\r\n /**\r\n * This sends the functionType as 'G' to the servlet indicating to\r\n * get the details of all existing committees with the required\r\n * information\r\n */\r\n \r\n Vector vecBeans = new Vector();\r\n String connectTo = CoeusGuiConstants.CONNECTION_URL + \"/comMntServlet\";\r\n RequesterBean request = new RequesterBean();\r\n request.setDataObject(\"\"+CoeusConstants.IACUC_COMMITTEE_TYPE_CODE);\r\n request.setFunctionType(COMMITTEE_LIST_FOR_MODULE);\r\n AppletServletCommunicator comm = new AppletServletCommunicator(\r\n connectTo, request);\r\n /**\r\n * Updated for REF ID :0003 Feb'21 2003.\r\n * Hour Glass implementation while DB Trsactions Wait\r\n * by Subramanya Feb' 21 2003\r\n */\r\n setCursor( new Cursor( Cursor.WAIT_CURSOR ) );\r\n comm.send();\r\n ResponderBean response = comm.getResponse();\r\n setCursor( new Cursor( Cursor.DEFAULT_CURSOR ) );\r\n \r\n if (response.isSuccessfulResponse()) {\r\n vecBeans = response.getDataObjects();\r\n }\r\n return new ArrayList(vecBeans);\r\n }", "public void setCommitList(List<GitCommit> commitList) {\r\n\t\tboolean match = false;\r\n\t\r\n\t\tfor(GitCommit commit: commitList) {\r\n\t\t\r\n\t\t\tString myTicketID = this.getTicketID();\r\n\t\t\tmatch = commit.hasTicketID(myTicketID);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (match) {\r\n\t\t\t\tthis.addGitCommitToCommitList(commit);\r\n\t\t\t\tbreak;\r\n\t\t\t} \r\n\r\n\t\t}\r\n\r\n\t}", "@Test\n\tpublic void diffCommits() throws Exception {\n\t\tRepository repo = new FileRepository(testRepo);\n\t\tRevCommit commit1 = add(\"test.txt\", \"content\");\n\t\tRevCommit commit2 = add(\"test.txt\", \"content2\");\n\t\tTreeWalk walk = TreeUtils.diffWithCommits(repo, commit1, commit2);\n\t\tassertNotNull(walk);\n\t\tassertEquals(2, walk.getTreeCount());\n\t\tassertTrue(walk.next());\n\t\tassertEquals(\"test.txt\", walk.getPathString());\n\t\tassertEquals(BlobUtils.getId(repo, commit1, \"test.txt\"),\n\t\t\t\twalk.getObjectId(0));\n\t\tassertEquals(BlobUtils.getId(repo, commit2, \"test.txt\"),\n\t\t\t\twalk.getObjectId(1));\n\t\tassertFalse(walk.next());\n\t}", "public void testUserIsBlogContributor() {\n rootBlog.setProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY, \"user1\");\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_CONTRIBUTOR_ROLE, \"user1\"));\n assertFalse(rootBlog.isUserInRole(Constants.BLOG_CONTRIBUTOR_ROLE, \"user2\"));\n }", "public List<Commit> getAllCommits(Repository repo) throws Exception {\n List<Commit> commits = new ArrayList<>();\n RevWalk walk = this.createAllRevsWalk(repo, null);\n walk.markStart(walk.parseCommit(repo.resolve(\"HEAD\")));\n for (RevCommit r: walk){\n if(r.getParents().length>0){\n Commit c = getCommit(repo, r, r.getParent(0));\n commits.add(c);\n }else{\n Commit c = new Commit(r);\n commits.add(c);\n }\n\n }\n return commits;\n }", "protected static void addAllAuthorsInCommits(CDResult cdresult, List<Commit> commits, \n\t\t\t\t\t\t\t\t\t\t\t\t\tContributorBuilder contributorBuilder, int buildNumber) {\n\t\tfor(Commit commit : commits) {\n\t\t\tAuthor author = commit.getAuthor();\n\t\t\tString username = author.getLinkedUserName();\n\t\t\tif (username == null) {\n\t\t\t\tusername = author.getName();\n\t\t\t}\n\t\t\tContributor contributor = contributorBuilder.createContributor(username, commit.getDate(), author.getFullName());\n\n\t\t\tif (!cdresult.containsContributor(username)) {\n\t\t\t\t//Contributor contributor = contributorBuilder.createContributor(username, c.getDate(), author.getFullName());\n\t\t\t\tcdresult.addContributor(contributor);\n\t\t\t} else {\n\t\t\t\tcdresult.updateContributor(username, commit.getDate());\n\t\t\t}\n\t\t\n\t\t\t// a list of changes\n\t\t\tString comment = commit.getComment();\n\t\t\tint importInfo = comment.indexOf(\"Imported from Git\");\n\t\t\tif (importInfo != -1) {\n\t\t\t\tcomment = comment.substring(0, importInfo);\n\t\t\t}\n\t\t\t\n\t\t\tList<String> files = new ArrayList<String>();\n\t\t\tList<CommitFile> commitFiles = commit.getFiles();\n\t\t\tfor (CommitFile commitFile : commitFiles) {\n\t\t\t\tfiles.add(commitFile.getRevision() + \" \" + commitFile.getCleanName());\n\t\t\t}\n\t\t\t\n\t\t\tChange change = new Change(username, contributor.getPictureUrl(), buildNumber, comment, commit.getDate(), files);\n\t\t\tcdresult.addChange(change);\n\t\t}\n\t}", "public interface CommitsListView {\n\n void addCommitsToRecyclerView(List<Commit> commits);\n void showNetworkError();\n void startCommitDetailsActivity(Commit commit);\n void showToastWithText(String text);\n}", "public void testAssignBlogOwners() {\n rootBlog.setProperty(SimpleBlog.BLOG_OWNERS_KEY, \"user1\");\n assertEquals(\"user1\", rootBlog.getProperty(SimpleBlog.BLOG_OWNERS_KEY));\n assertEquals(\"user1\", rootBlog.getBlogOwners());\n\n Collection users = rootBlog.getUsersInRole(Constants.BLOG_OWNER_ROLE);\n assertEquals(1, users.size());\n assertTrue(users.contains(\"user1\"));\n\n rootBlog.setProperty(SimpleBlog.BLOG_OWNERS_KEY, \"user1,user2\");\n assertEquals(\"user1,user2\", rootBlog.getProperty(SimpleBlog.BLOG_OWNERS_KEY));\n assertEquals(\"user1,user2\", rootBlog.getBlogOwners());\n\n users = rootBlog.getUsersInRole(Constants.BLOG_OWNER_ROLE);\n assertEquals(2, users.size());\n assertTrue(users.contains(\"user1\"));\n assertTrue(users.contains(\"user2\"));\n }", "@Override\n public void onSuccess(List<GitHubCommit> commits) {\n view.processResponse(commits);\n }", "RetrieveCommitsStatisticsResultResponse retrieveCommits(final RetrieveCommitsStatisticsRequest request);", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withCommitsNullRevision() throws IOException {\n\t\tTreeUtils.withCommits(new FileRepository(testRepo), (String[]) null);\n\t}", "void testCanGetList();", "@Test\n public void testCanReadGitRevision() throws Exception {\n MatcherAssert.assertThat(\n new TestJenkins().jobs().findByName(\n \"test-parametrised-job\"\n ).next().builds().findByNumber(\"#4\").next().details().gitRevision(),\n new IsEqual<>(\"3d21ea7072da134395eedbc7a07bf0f00cfabf97\")\n );\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withCommitsNullRepository() {\n\t\tTreeUtils.withCommits(null, ObjectId.zeroId());\n\t}", "@Override\n public List<GitContributors> getContributorsNames(String userName, String repoName) throws GitException, RepoUserNotFoundException {\n try {\n StrategyContext createGitApi=new StrategyContext (new GitContributorApi());\n String url=createGitApi.createAPI(userName,repoName,\"contributer\");\n ResponseEntity<?> responseEntity = processRequest(url, HttpMethod.GET, getRepoContributorsTypRef());\n List<GitContributors> repos = (List<GitContributors>) responseEntity.getBody();\n if(CollectionUtils.isEmpty(repos)) {throw new RepoUserNotFoundException(REPO_EMPTY);}\n return repos;\n\n } catch (HttpClientErrorException hce) {\n LOGGER.error(\"GitApiImpl :: getRepositories HttpClientErrorException :: \", hce);\n throw new GitException(VALID_REPO);\n }\n }", "public void findCommits(String logMsg) {\n List<String> allCommitID = getAllCommits();\n int countTotal = 0;\n for (String cmt: allCommitID) {\n File commitFile = new File(Main.ALL_COMMITS, cmt);\n Commit associatedCommit =\n Utils.readObject(commitFile, Commit.class);\n if (associatedCommit.getLogMsg().equals(logMsg)) {\n System.out.println(cmt);\n countTotal = countTotal + 1;\n }\n }\n if (countTotal == 0) {\n System.out.println(\"Found no commit with that message.\");\n }\n }", "public String findCommitters() {\n\t\tSet<String> result = new HashSet<String>();\n\t\tfor (Cell cell : cells.values()) {\n\t\t\tfor (SimpleUser committer : cell.getCommitters()) {\n\t\t\t\tString cleanCommitterId = cleanString(committer.getId());\n\t\t\t\tresult.add(cleanCommitterId);\n\t\t\t\tString cleanCommitterName = cleanString(committer.getName());\n\t\t\t\tresult.add(cleanCommitterName);\n\t\t\t}\n\t\t}\n\t\treturn Util.join(result, \" \");\n\t}", "public void testNullBlogContributors() {\n rootBlog.removeProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY);\n assertEquals(null, rootBlog.getBlogContributors());\n\n Collection users = rootBlog.getUsersInRole(Constants.BLOG_CONTRIBUTOR_ROLE);\n assertEquals(0, users.size());\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Primer commit\");\r\n\t\tSystem.out.println(\"18/05/2020 - segundo commit\");\r\n\t\tSystem.out.println(\"Rosana - tercer commit\");\r\n\t\tSystem.out.println(\"prueba - sexto commit\");\r\n\t}", "public void testGetMatchingAuthors() {\r\n //given\r\n System.out.println(\"getMatchingAuthors\");\r\n String nameSequence = \"F\";\r\n AuthorHibernateDao instance = new AuthorHibernateDao();\r\n \r\n //when\r\n List<Author> result = instance.getMatchingAuthors(nameSequence);\r\n \r\n //then\r\n assertEquals(result.size(), 8); \r\n for (Author author:result){\r\n System.out.println(author.toString() + \"\\n\"); \r\n }\r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\" commit\");\n\t\tSystem.out.println(\"3rd commit\");\n\t\tSystem.out.println(\"final commit\");\n\t\tSystem.out.println(\"pull\");\n\t}", "public static void main(String[] args) throws IOException, SQLException {\n\n // boilerplate\n sourceDB = AndroidDBManager.getProductionInstance();\n analysisDB = AndroidDBManager.getAnalysisInstance();\n\n BufferedWriter resFile = new BufferedWriter(new FileWriter(new File(\"commits.csv\")));\n\n // get the list of committers first\n List<AnalysisPeople> committers = analysisDB.getPeopleForTheTag(\"change\");\n System.out.println(\"will process \" + committers.size() + \" people records\");\n\n for (AnalysisPeople p : committers) {\n System.out.println(p.getEmail() + \" start: \" + p.getActivity_begin() + \", end: \"\n + p.getActivity_end());\n\n List<Change> changes = sourceDB.getAuthorChanges(p.getId(), p.getActivity_begin(),\n p.getActivity_end());\n System.out.println(\" .. \" + changes.size() + \" change(s) found.\");\n\n for (Change c : changes) {\n StringBuilder csvLine = new StringBuilder();\n StringBuilder sbTemp = new StringBuilder();\n\n // date/author/project/target/commits\n sbTemp.append(c.getAuthor_date()).append(COMMA);\n sbTemp.append(\"\\\"\").append(p.getEmail()).append(\"\\\"\").append(COMMA);\n sbTemp.append(sourceDB.getProject(c.getProject_id()).getName()).append(COMMA);\n for (ChangeTarget target : sourceDB.getTargets(c.getId())) {\n csvLine.append(sbTemp.toString()).append(\"\\\"\").append(target.getTarget()).append(\"\\\"\")\n .append(COMMA);\n csvLine.append(target.isAdded()).append(COMMA);\n csvLine.append(target.isEdited()).append(COMMA);\n csvLine.append(target.isDeleted()).append(COMMA).append(CR);\n resFile.write(csvLine.toString());\n }\n }\n resFile.close();\n }\n }", "public void testUserIsBlogOwner() {\n rootBlog.setProperty(SimpleBlog.BLOG_OWNERS_KEY, \"user1\");\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_OWNER_ROLE, \"user1\"));\n assertFalse(rootBlog.isUserInRole(Constants.BLOG_OWNER_ROLE, \"user2\"));\n }", "private static void find(Gitlet currCommit, String[] args) {\n if (args.length != 2) {\n System.out.println(\"Specify which message you are looking for.\");\n return;\n }\n HashMap<String, HashSet<Commit>> messageToCommit = currCommit.tree\n .getMessageToCommits();\n if (!messageToCommit.containsKey(args[1])) {\n System.out.println(\"Found no commit with that message.\");\n\n } else {\n for (Commit x : messageToCommit.get(args[1])) {\n System.out.println(x.getId());\n }\n }\n }", "@Test\n public void testSelectingAllRowsWhenNotEmpty() throws SQLException {\n // Arrange\n CommitStructure commit = getSampleCommit();\n // Act\n mysqlDatabase.insertCommitToDatabase(commit);\n List<CommitStructure> commits = mysqlDatabase.selectAllCommits();\n // Assert\n assertFalse(commits.isEmpty());\n assertEquals(commits.get(0).getCommitID() , commit.getCommitID());\n }", "public String[] getContributors() {\n/* 82 */ return getStringArray(\"contributor\");\n/* */ }", "public void testUserIsBlogContributorByDefault() {\n rootBlog.removeProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY);\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_CONTRIBUTOR_ROLE, \"user1\"));\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_CONTRIBUTOR_ROLE, \"usern\"));\n }", "List<UserContentAccess> findContentAccessForApprover(@NonNull @Param(\"approver\") User approver);", "public ArrayList<ModelCommit> getCommits() {\n\t\treturn commits;\n\t}", "@Test\r\n\tpublic void testAddContributor() {\r\n\t\tcm = Contributormanager.getInstance();\r\n\t\tassertTrue(cm.isEmpty());\r\n\t\tassertTrue(cm.addContributor(\"Chris\"));\r\n\t\tassertFalse(cm.isEmpty());\r\n\t\tassertFalse(cm.addContributor(\"Chris\"));\r\n\t}", "public List<String> getAllCommits() {\n return Utils.plainFilenamesIn(Main.ALL_COMMITS);\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hellow GitHub!!!\");\n\t\t// commit testing...\n\t\t// add: line 9 write...\n\t\tSystem.out.println(\"add code\");\n\t\t\n\t\tint a = 0;\n\t\tfor(int i=0; i<5; i++) {\n\t\t\ta++;\n\t\t}\n\t\tSystem.out.println(a);\n\t}", "public void testGetAllAuthors() {\r\n //given \r\n System.out.println(\"getAllAuthors\");\r\n AuthorHibernateDao instance = new AuthorHibernateDao();\r\n \r\n //when \r\n List<Author> result = instance.getAllAuthors();\r\n \r\n //then\r\n assertEquals(result.size(), 42);\r\n assertEquals(\"Herbert George Wells\", result.get(40).getName()); \r\n }", "@Test\n public void shouldListExpectedClient() {\n OrgClientsListPage theClientsPage = open(OrgClientsListPage.class, organization.getName());\n theClientsPage.entriesContainer().shouldHave(text(client.getName()));\n }", "@Test\n public void shouldListExpectedApi() {\n OrgApisListPage theApiPage = open(OrgApisListPage.class, organization.getName());\n theApiPage.entriesContainer().shouldHave(text(api.getName()));\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withCommitsNullRepository2() {\n\t\tTreeUtils.withCommits(null, Constants.MASTER);\n\t}", "@Test\r\n\tpublic void testEmptyContributormanager() {\r\n\t\tcm = Contributormanager.getInstance();\r\n\t\tcm.setContributorsNull();\r\n\t\tassertFalse(cm.addContributor(\"Chris\"));\r\n\t\tassertFalse(cm.removeContributor(\"Chris\"));\r\n\t\tassertFalse(cm.isEmpty());\r\n\t}", "public List<Issue> getUserProjectActiveIssue(User user, Project project);", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"This is commited by GitData\");\n\n\t}", "private boolean commitPermitted(Collection commitInstances, Collection newInstanceIds) {\n for (Object commitInstance : commitInstances) {\n Entity entity = (Entity) commitInstance;\n String fullId = entity.getMetaClass().getName() + \"-\" + entity.getId();\n if (newInstanceIds.contains(fullId)) {\n if (!createPermitted(entity.getMetaClass()))\n return false;\n } else if (!updatePermitted(entity.getMetaClass())) {\n return false;\n }\n }\n return true;\n }", "@Test\n public void Given_store_with_books_When_filtering_by_existing_author_Then_only_books_of_the_author_are_returned() {\n booksList.add(B1_A);\n booksList.add(B2_A);\n booksList.add(B3_B);\n\n when(dao.getBooks()).thenReturn(booksList);\n\n List<Book> booksFilteredByAuthor = store.getBooksByAuthor(B1_A.getAuthor());\n\n assertThat(booksFilteredByAuthor).containsExactlyInAnyOrder(B1_A, B2_A);\n }", "@Test\n public void getEndpoint() throws IOException {\n CloseableHttpClient httpclient = HttpClients.createDefault();\n\n //Creating a HttpGet object\n HttpPost httppost = new HttpPost(\"https://api.github.com/user/repos\");\n String auth=Credentials.getEmail()+\":\"+Credentials.getPassWard();\n byte[] encodedAuth = Base64.encodeBase64(auth.getBytes(Charset.forName(\"ISO-8859-1\")));\n String authHeader=\"Basic \"+new String(encodedAuth);\n httppost.setHeader(HttpHeaders.AUTHORIZATION,authHeader);\n String json=\"{\\\"name\\\": \\\"ploiko\\\"}\";\n httppost.setEntity(new StringEntity(json, ContentType.APPLICATION_JSON));\n HttpResponse httpresponse = httpclient.execute(httppost);\n System.out.println(httpresponse.getStatusLine());\n int actual=httpresponse.getStatusLine().getStatusCode();\n Assert.assertEquals(actual,201);\n //System.out.println(getHeaders(httpresponse,\"Access-Control-Allow-Methods\"));\n //System.out.println(httpresponse.getAllHeaders().toString());\n\n }", "@Test\r\n\tpublic void testCommit()\r\n\t\tthrows Exception\r\n\t{\r\n\t\ttry{\r\n\t\t\ttestAdminCon.begin();\r\n\t\t\ttestAdminCon.add(john, email, johnemail,dirgraph);\r\n\t\r\n\t\t\tassertTrue(\"Uncommitted update should be visible to own connection\",\r\n\t\t\t\t\ttestAdminCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t\t\tassertFalse(\"Uncommitted update should only be visible to own connection\",\r\n\t\t\t\t\ttestReaderCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t\t\tassertThat(testWriterCon.size(), is(equalTo(0L)));\r\n\t\r\n\t\t\ttestAdminCon.commit();\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tlogger.debug(e.getMessage());\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tif(testAdminCon.isActive())\r\n\t\t\t\ttestAdminCon.rollback();\r\n\t\t}\r\n\t\tassertThat(testWriterCon.size(), is(equalTo(1L)));\r\n\t\tassertTrue(\"Repository should contain statement after commit\",\r\n\t\t\t\ttestAdminCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t\tassertTrue(\"Committed update will be visible to all connection\",\r\n\t\t\t\ttestReaderCon.hasStatement(john, email, johnemail, false, dirgraph));\r\n\t}", "public void testUserIsBlogOwnerByDefault() {\n rootBlog.removeProperty(SimpleBlog.BLOG_OWNERS_KEY);\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_OWNER_ROLE, \"user1\"));\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_OWNER_ROLE, \"usern\"));\n }", "public static void main(String[] args){\n System.out.println(getLastGoodCommit(new char[]{}));\n System.out.println(getLastGoodCommit(new char[]{'G'}));\n System.out.println(getLastGoodCommit(new char[]{'B'}));\n System.out.println(getLastGoodCommit(new char[]{'G','G'}));\n System.out.println(getLastGoodCommit(new char[]{'B','B'}));\n System.out.println(getLastGoodCommit(new char[]{'G','G', 'G'}));\n System.out.println(getLastGoodCommit(new char[]{'B','B', 'B'}));\n System.out.println(getLastGoodCommit(new char[]{'G','B', 'B'}));\n System.out.println(getLastGoodCommit(new char[]{'G','G', 'B'}));\n System.out.println(getLastGoodCommit(new char[]{'G','G', 'B', 'B', 'B'}));\n }", "public static void main(String[] args) {\n\n\t\tGitService gitService = new GitServiceImpl();\n\t\tGitHistoryRefactoringMiner miner = new GitHistoryRefactoringMinerImpl();\n\n\t\tRepository repo;\n\t\ttry {\n\t\t\trepo = gitService.cloneIfNotExists(\n\t\t\t\t\t\"/home/steve/Steve/git/commons-rng\",\n\t\t\t\t\t\"https://github.com/apache/commons-rng.git\");\n\t\t\t//\t\t\trepo = gitService.cloneIfNotExists(\n\t\t\t//\t\t\t\t\t\"tmp/refactoring-toy-example\",\n\t\t\t//\t\t\t\t\t\"https://github.com/danilofes/refactoring-toy-example.git\");\n\t\t\t// For all with sample\n\t\t\t//\t\t\tminer.detectAll(repo, \"master\", new RefactoringHandler() {\n\t\t\t//\t\t\t\t @Override\n\t\t\t//\t\t\t\t public void handle(String commitId, List<Refactoring> refactorings) {\n\t\t\t//\t\t\t\t System.out.println(\"Refactorings at \" + commitId);\n\t\t\t//\t\t\t\t for (Refactoring ref : refactorings) {\n\t\t\t//\t\t\t\t System.out.println(ref.toString());\n\t\t\t////\t\t\t\t System.out.println(ref.toJSON());\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// For between 2 commits with sample\n\t\t\t//\t\t\t// start commit: 819b202bfb09d4142dece04d4039f1708735019b\n\t\t\t//\t\t\t// end commit: d4bce13a443cf12da40a77c16c1e591f4f985b47\n\t\t\t//\t\t\tminer.detectBetweenCommits(repo, \n\t\t\t//\t\t\t\t\t\"819b202bfb09d4142dece04d4039f1708735019b\", \"d4bce13a443cf12da40a77c16c1e591f4f985b47\",\n\t\t\t//\t\t\t\t\tnew RefactoringHandler() {\n\t\t\t//\t\t\t\t@Override\n\t\t\t//\t\t\t\tpublic void handle(String commitId, List<Refactoring> refactorings) {\n\t\t\t//\t\t\t\t\tSystem.out.println(\"Refactorings at \" + commitId);\n\t\t\t//\t\t\t\t\tfor (Refactoring ref : refactorings) {\n\t\t\t//\t\t\t\t\t\t//\t\t\t System.out.println(ref.toString());\n\t\t\t//\t\t\t\t\t\tSystem.out.println(ref.toJSON());\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\n\t\t\t// start commit: 40fd7ad244b350d657ca4f1a9efe667c52697327\n\t\t\t// end commit: 3ca48892811538e911eb3c5bafd60b4d9ca92483\n\t\t\tminer.detectBetweenCommits(repo, \n\t\t\t\t\t\"40fd7ad244b350d657ca4f1a9efe667c52697327\", \"3ca48892811538e911eb3c5bafd60b4d9ca92483\",\n\t\t\t\t\tnew RefactoringHandler() {\n\t\t\t\t@Override\n\t\t\t\tpublic void handle(String commitId, List<Refactoring> refactorings) {\n\t\t\t\t\tSystem.out.println(\"***********************************************************************************\");\n\t\t\t\t\tSystem.out.println(\"Refactorings at \" + commitId);\n\t\t\t\t\tfor (Refactoring ref : refactorings) {\n\t\t\t\t\t\t// System.out.println(ref.toString());\n\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(ref.toJSON());\n\t\t\t\t\t\tif (ref instanceof ExtractOperationRefactoring) {\n\t\t\t\t\t\t\tExtractOperationRefactoring refactoring = (ExtractOperationRefactoring)ref;\n\t\t\t\t\t\t\tUMLOperationBodyMapper mapper = refactoring.getBodyMapper();\n\t\t\t\t\t\t\tList<StatementObject> newLeaves = mapper.getNonMappedLeavesT2(); //newly added leaf statements\n\t\t\t\t\t\t\tList<CompositeStatementObject> newComposites = mapper.getNonMappedInnerNodesT2(); //newly added composite statements\n\t\t\t\t\t\t\tList<StatementObject> deletedLeaves = mapper.getNonMappedLeavesT1(); //deleted leaf statements\n\t\t\t\t\t\t\tList<CompositeStatementObject> deletedComposites = mapper.getNonMappedInnerNodesT1(); //deleted composite statements\n\t\t\t\t\t\t\tSystem.out.println(\"newLeaves: \\n\" + newLeaves);\n\t\t\t\t\t\t\tSystem.out.println(\"newComposites: \\n\" + newComposites);\n\t\t\t\t\t\t\tSystem.out.println(\"deletedLeaves: \\n\" + deletedLeaves);\n\t\t\t\t\t\t\tSystem.out.println(\"deletedComposites: \\n\" + deletedComposites);\n\n\t\t\t\t\t\t\tfor(AbstractCodeMapping mapping : mapper.getMappings()) {\n\t\t\t\t\t\t\t\tAbstractCodeFragment fragment1 = mapping.getFragment1();\n\t\t\t\t\t\t\t\tAbstractCodeFragment fragment2 = mapping.getFragment2();\n\t\t\t\t\t\t\t\tSet<Replacement> replacements = mapping.getReplacements();\n\t\t\t\t\t\t\t\tSystem.out.println(\"**************** Replacements: ***********\\n\");\n\t\t\t\t\t\t\t\tfor(Replacement replacement : replacements) {\n\t\t\t\t\t\t\t\t\tString valueBefore = replacement.getBefore();\n\t\t\t\t\t\t\t\t\tString valueAfter = replacement.getAfter();\n\t\t\t\t\t\t\t\t\tReplacementType type = replacement.getType();\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"valueBefore: \" + valueBefore);\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"valueAfter: \" + valueAfter);\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"type: \" + type);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"***********************************************************************************\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} catch (Exception e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n}", "@Test\n public void shouldListExpectedPlan() {\n OrgPlansListPage thePlansPage = open(OrgPlansListPage.class, organization.getName());\n thePlansPage.entriesContainer().shouldHave(text(plan.getName()));\n }", "public interface CommitsContract {\n interface View {\n void showLoading();\n void hideLoading();\n void showCommits(List<GitHubCommit> commits);\n }\n\n interface Presenter {\n void attachView(View view);\n void fetchCommits();\n }\n}", "public ArrayList<Commit> getCommmit() {\r\n return commmit;\r\n }", "@Test\n public void testFilterValidAllowingComments() throws IOException, URISyntaxException {\n RegisteredUser user = new RegisteredUser(ID1);\n\n ResourceReference resRef = mock(ResourceReference.class);\n when(resRef.toResourceString()).thenReturn(REMAINING_RES_STRING);\n\n Share s = new Share(SHARE_ID);\n s.setOwner(user);\n s.setResource(resRef);\n s.setAllowComment(true);\n when(this.shareRepo.get(eq(SHARE_ID), any())).thenReturn(s);\n\n URI uri = new URI(FULL_URI);\n\n UriInfo uriInfo = mock(UriInfo.class);\n when(uriInfo.getRequestUri()).thenReturn(uri);\n\n ContainerRequestContext reqCtx = mock(ContainerRequestContext.class);\n when(reqCtx.getUriInfo()).thenReturn(uriInfo);\n\n filter.filter(reqCtx);\n\n verify(ctx, times(1)).addPermission(eq(REMAINING_RES_STRING + \"/*/comment\"));\n verify(ctx, times(0)).addPermission(eq(REMAINING_RES_STRING + \"/*/rate\"));\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static JSONObject mapToJSONByDay(Map<String, Author> authorCommits) {\n // JSONObject that holds a map of authors along with their commits\n \tJSONObject authorMapJSON = new JSONObject();\n\n for (String author : authorCommits.keySet() ) {\n \t// JSONObject that holds an author and their commits\n JSONObject authorJSON = new JSONObject();\n\n Author authorObject = authorCommits.get(author);\n authorJSON.put(\"name\", authorObject.getName());\n authorJSON.put(\"login\", authorObject.getLogin());\n authorJSON.put(\"email\", authorObject.getEmail());\n \n // Generate the commit time metrics for the given author\n CommitTimeAnalyzer.generateCommitTimeMetrics(authorObject);\n\n List<CommitInfo> commitList = authorObject.getCommitList();\n // Reserve the commit list to chronological order\n Collections.reverse(commitList);\n \n // Format dates as yyyy-mm-ddd\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n Calendar incrementCalendar = Calendar.getInstance();\n\n // Set the current date as the date of the first commit\n Date currentDate = commitList.get(0).getCommittedDate();\n // Set the last date as the date of the last commit\n Date lastDate = commitList.get(commitList.size()-1).getCommittedDate();\n\n // Set the first commit date to the calendar\n incrementCalendar.setTime(currentDate);\n\n authorJSON.put(\"firstCommit\", sdf.format(currentDate));\n \n // Map of commits sorted according to date\n JSONObject commitByDayJSON = new JSONObject();\n \n int count = 0;\n while (incrementCalendar.getTime().before(lastDate) || compareDates(incrementCalendar.getTime(), lastDate)) {\n \t// Array of commits of a given day\n JSONArray commitListJSON = new JSONArray();\n CommitInfo commitInfo = commitList.get(count);\n \n while (compareDates(incrementCalendar.getTime(), commitInfo.getCommittedDate())) {\n JSONObject commitJSON = convertCommitList(commitInfo);\n commitJSON.put(\"timeAverage\", authorObject.getCommitTimeMetrics().getRunningAvg().get(count));\n commitJSON.put(\"timeStdev\", authorObject.getCommitTimeMetrics().getRunningStdev().get(count));\n commitListJSON.add(commitJSON);\n\n count++;\n // Get the next commit in the list\n if (count < commitList.size()) {\n commitInfo = commitList.get(count);\n }\n else {\n break;\n }\n }\n // Insert the list of commits of a certain day into the commit map\n commitByDayJSON.put(sdf.format(incrementCalendar.getTime()), commitListJSON);\n // Set the calendar to the next day\n incrementCalendar.add(Calendar.DATE, 1);\n }\n authorJSON.put(\"commitList\", commitByDayJSON);\n authorMapJSON.put(authorObject.getLogin(), authorJSON);\n }\n return authorMapJSON;\n }", "@Override\n public Set<Committee> getAllCommittee(Editor editor) {\n Set<Committee> committeeSet = new HashSet<>();\n\n\n return committeeSet;\n }", "public void getReposClicked(View v) {\n clearRepoList();\n // Call our getRepoList() function that is defined above and pass in the\n // text which has been entered into the etGitHubUser text input field.\n// getRepoList(etGitHubUser.getText().toString());\n }", "@Test\n public void canSetOwnedOnVertecBy() {\n Long salesTeamOwnedOrgId = 709814L;\n Long nonZUKOrg = 1359817L; //actually exists\n Long subTeamOrg = 15158065L; //actually exists\n List<Long> orgids = new ArrayList<>();\n\n orgids.add(salesTeamOwnedOrgId);\n orgids.add(subTeamOrg);\n orgids.add(TESTVertecOrganisation2);\n orgids.add(nonZUKOrg);\n\n String idsAsString = \"\";\n for (int i = 0; i < orgids.size(); i++) {\n if (i < orgids.size() - 1) {\n idsAsString += orgids.get(i) + \",\";\n } else {\n idsAsString += orgids.get(i);\n }\n }\n\n String uri = baseURI + \"/organisations/\" + idsAsString;\n\n OrganisationList organisationList = getFromVertec(uri, OrganisationList.class).getBody();\n List<Organisation> orgs = organisationList.getOrganisations();\n\n System.out.println(orgs.get(0).getOwnedOnVertecBy());\n System.out.println(orgs.get(1).getOwnedOnVertecBy());\n System.out.println(orgs.get(2).getOwnedOnVertecBy());\n System.out.println(orgs.get(3).getOwnedOnVertecBy());\n assertTrue(orgs.get(0).getOwnedOnVertecBy().equals(\"Sales Team\"));\n assertTrue(orgs.get(1).getOwnedOnVertecBy().equals(\"Not ZUK\"));\n assertTrue(orgs.get(2).getOwnedOnVertecBy().equals(\"ZUK Sub Team\"));\n assertTrue(orgs.get(3).getOwnedOnVertecBy().equals(\"No Owner\"));\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void testGetAuthor() {\n }", "public void testGitHub() {\n\t}", "static void listRepositories(File repositoriesRootDir, Set<String> usernameSet) {\n\t\tString[] names = RepositoryManager.getRepositoryNames(repositoriesRootDir);\n\t\tif (names.length == 0) {\n\t\t\tSystem.out.println(\" <No repositories have been created>\");\n\t\t\treturn;\n\t\t}\n\n\t\tboolean outputHeader = true;\n\t\tfor (String name : names) {\n\t\t\tFile repoDir = new File(repositoriesRootDir, NamingUtilities.mangle(name));\n\n\t\t\tString formattedAccessList =\n\t\t\t\tRepository.getFormattedUserPermissions(repoDir, \" \", usernameSet);\n\t\t\tif (formattedAccessList != null) {\n\t\t\t\tif (outputHeader) {\n\t\t\t\t\tSystem.out.println(\"\\nRepositories:\");\n\t\t\t\t\toutputHeader = false;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\" \" + name);\n\t\t\t\tSystem.out.print(formattedAccessList);\n\t\t\t}\n\t\t}\n\n\t\tif (outputHeader) {\n\t\t\tSystem.out.println(\"No repository access found for user(s):\");\n\t\t\tString[] userNames = usernameSet.toArray(new String[usernameSet.size()]);\n\t\t\tArrays.sort(userNames);\n\t\t\tfor (String n : userNames) {\n\t\t\t\tSystem.out.println(\" \" + n);\n\t\t\t}\n\t\t}\n\t}", "@Repository\npublic interface CommitRepository extends JpaRepository<CommitEntity,Long> {\n\n Optional<CommitEntity> findByCommitId(String commitId);\n boolean existsByCommitId(String commitId);\n List<CommitEntity> findAllByClassFile(ClassFileEntity classFile);\n Page<CommitEntity> findAllByClassFile_Project(ProjectEntity project, Pageable pageable);\n}", "@Test\r\n public void testGetUserHistory() {\r\n }", "public Vector<Commitment> setCommitmentCandidates(Vector<Commitment> commitments)\n {\n int index;\n Commitment aCommitment;\n //-------------------------\n\n commitmentCandidates = new Vector<Commitment>();\n index = 0;\n while(index < commitments.size())\n {\n aCommitment = commitments.get(index);\n if(shouldIncludeCommitment(aCommitment))\n commitmentCandidates.add(aCommitment);\n //end if\n index = index + 1;\n }//end while\n return commitmentCandidates;\n }", "public boolean filter(AssignmentListEntry entry) {\n\t\tboolean isAdmin = UserData.get().isAdmin();\r\n\t\tif (isAdmin) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tString userId = UserData.get().getId();\r\n\t\tif (userId == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn userId.equals(entry.getAuthorID());\r\n\t}", "@Test\n public void test_hasAuthority_DEVELOPER() {\n DbUser user = new DbUser();\n user.setAuthoritiesEnum(Collections.singleton(Authority.DEVELOPER));\n user = userDao.save(user);\n\n for (Authority auth : Authority.values()) {\n assertThat(userService.hasAuthority(user.getUserId(), auth)).isTrue();\n }\n }", "private boolean commitChecker() {\n\t\tFile file = new File(stagePath);\n\t\tFile[] files = file.listFiles();\n\t\tif (files.length == 0 && untrackedFiles.size() == 0) {\n\t\t\tSystem.out.println(\"No changes added to the commit.\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private boolean shouldIncludeCommitment(Commitment aCommitment)\n {\n int i;\n int j;\n String direction;\n StringTokenizer tokenizer;\n String commitmentType;\n boolean shouldInclude;\n int token;\n //----------------\n\n shouldInclude = true;\n tokenizer = new StringTokenizer(aCommitment.predicate,\"(, )\");\n commitmentType = tokenizer.nextToken();\n i = Integer.valueOf(tokenizer.nextToken());\n j = Integer.valueOf(tokenizer.nextToken());\n direction = tokenizer.nextToken();\n token = beliefs.puzzle[i][j];\n\n // Reglas de ESTRATEGIA\n // donde no se consideran compromisos que no convienen\n ///////////////////////////////////////////////////////\n\n\n // si el token 1 ya est? en posici?n, no moverlo\n if(\n (token == 1) && (beliefs.puzzle[0][0] == 1)\n )\n shouldInclude = false;\n //end if\n\n\n // si el token es 2 y ya est?n 1 y 2 en posici?n, no moverlo\n if(\n ((token == 2) && (beliefs.puzzle[0][1] == 2)) &&\n (beliefs.puzzle[0][0] == 1)\n )\n shouldInclude = false;\n //end if\n\n // si la primera l?nea est? colocada,\n // no mover ninguno de sus tokens\n if(\n (firstMilestoneAccomplished()) &&\n ((token == 1) || (token == 2) || (token == 3) || (token == 4))\n )\n shouldInclude = false;\n //end if\n\n\n // si el 5 y la primera l?nea est?n colocados,\n // no mover el 5\n if(\n (firstMilestoneAccomplished()) &&\n (token == 5) && (beliefs.puzzle[1][0] == 5)\n )\n shouldInclude = false;\n //end if\n\n\n // el token es 6, y la primera linea, el 5 y el 6\n // ya est?n en su posici?n, no moverlo\n if(\n (firstMilestoneAccomplished()) &&\n ((token == 6) && (beliefs.puzzle[1][1] == 6)) &&\n (beliefs.puzzle[1][0] == 5)\n )\n shouldInclude = false;\n //end if\n\n // si la primera y segunda l?neas est?n colocadas,\n // no mover ninguno de los tokens de la segunda l?nea\n if(\n (firstMilestoneAccomplished()) &&\n (secondMilestoneAccomplished()) &&\n ((token == 5) || (token == 6) || (token == 7) || (token == 8))\n )\n shouldInclude = false;\n //end if\n\n // si la primera y segunda l?neas est?n colocadas,\n // y tambien 9 y 13, no mover los tokens de segunda linea ni 9 ni 13\n if(\n (firstMilestoneAccomplished()) &&\n (secondMilestoneAccomplished()) &&\n (thirdMilestoneAccomplished()) &&\n ((token == 5) || (token == 6) || (token == 7) || (token == 8)|| (token == 9) || (token == 13))\n )\n shouldInclude = false;\n //end if\n\n return shouldInclude;\n }", "@Test\n public void getAllComputerBuildsFromUser() {\n Iterable<ComputerBuild> computerBuilds = computerBuildService.getAllComputerBuildsFromUser(ANOTHER_USER_NAME_TO_CREATE_NEW_USER);\n assertNotNull(computerBuilds);\n assertNotEquals(0, computerBuilds.spliterator().getExactSizeIfKnown());\n }", "@Test\n void testGetOpenToDos() {\n ToDoList todoList = new ToDoList();\n ToDo todo1 = new ToDo(\"Todo1\");\n todoList.add(todo1);\n todoList.add(new ToDo((\"Todo2\")));\n assertEquals(2, todoList.getOpenEntries());\n\n ToDo todo3 = new ToDo(\"ToDo3\");\n todoList.add(todo3);\n assertEquals(3, todoList.getOpenEntries());\n todo3.setStatus(Status.IN_ARBEIT);\n todo3.setStatus(Status.BEENDET);\n assertEquals(2, todoList.getOpenEntries());\n todoList.remove(todo3);\n assertEquals(2, todoList.getOpenEntries());\n todoList.remove(todo1);\n assertEquals(1, todoList.getOpenEntries());\n }", "ImmutableList<SchemaOrgType> getAuthorList();", "void assertEnhancementsRepository(RepositoryConnection metaConn);", "@Test\n public void testGetAll() {\n List<Allocation> cc = allocationCollection.getAll();\n assertNotNull(cc);\n assertFalse(cc.isEmpty());\n }", "List<UserContentAccess> findContentAccess();", "@Test\n public void testSysPer(){\n List<SysPermission> permissions = sysPermissionService.findByUserId(9L);\n System.out.println(\"permissions:\" + permissions.size());\n }", "@Test\n\tpublic void test_increment_commits(){\n\t\tassertEquals(\"Initial commit number should be 1\", 1, test1.getCommitCount());\n\t\ttest1.incrementCommitCount();\n\t\tassertEquals(\"Number of Commit should be incremented\", 2, test1.getCommitCount());\n\t}", "private void commitRepChanges() {\r\n\t\t\r\n\t\t// get repository info\r\n\t\tString repURL = repURLFld.getText();\r\n\t\tString boURI = repBaseOntFld.getText();\r\n\t\tthis.repositoryAuthor = repAuthorFld.getText();\r\n\t\tthis.reposityCreatedDate = repDateFld.getText();\r\n\t\t\r\n\t\tString status = \"Status: [ACTION - Commit to Repository]...\";\r\n\t\ttry {\r\n\t\t\tthis.repositoryURI = new URI(repURL);\r\n\t\t\tthis.baseOntologyURI = new URI(boURI);\r\n\t\t}\r\n\t\tcatch (URISyntaxException ex) {\r\n\t\t\tstatusBar.setText(status+\"Invalid Repository URL and/or Base Ontology URI\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// check if repository already exists\r\n\t\t\tboolean repExists = this.loadRepositoryHeader();\r\n\t\t\t\r\n\t\t\tif (!repExists) {\r\n\t\t\t\t// creating new repository\r\n\t\t\t\t// form repository header\r\n\t\t\t\tURI[] headerURI = new URI[1];\r\n\t\t\t\theaderURI[0] = new URI(this.repositoryURI+\"#header\");\r\n\t\t\t\t\r\n\t\t\t\tif (this.repositoryAuthor.equals(\"\") || this.reposityCreatedDate.equals(\"\")) {\r\n\t\t\t\t\tint opt = JOptionPane.showConfirmDialog(null, \"Repository Author and/or Date not specified. Continue?\", \"Creating Repository\", JOptionPane.YES_NO_OPTION);\r\n\t\t\t\t\tif (opt == JOptionPane.NO_OPTION) return;\r\n\t\t\t\t}\r\n\t\t\t\t// create annotea description for header\r\n\t\t\t\tDescription header = new Description();\r\n\t\t\t\theader.setAnnotates(headerURI);\r\n\t\t\t\theader.setAuthor(this.repositoryAuthor);\r\n\t\t\t\theader.setCreated(this.reposityCreatedDate);\r\n\t\t\t\theader.setAnnotatedEntityDefinition(this.baseOntologyURI.toString());\r\n\t\t\t\tthis.headVersionNumber = 0;\r\n\t\t\t\theader.setBody(String.valueOf(this.headVersionNumber));\r\n\t\t\t\theader.setBodyType(\"text/html\");\r\n\t\t\t\theader.setAnnotationType(this.annotType);\r\n\t\t\t\tclient.post(header);\r\n\t\t\t\tstatusBar.setText(status+\"Ontology Repository Header posted at \"+headerURI[0]);\r\n\t\t\t\ttoggleRepOptions(false);\r\n\t\t\t\tversionDescriptions[0] = header;\r\n\t\t\t\tswoopModel.updateVersionRepository(repositoryURI, versionDescriptions);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// test changes\r\n\t\t\tboolean success = this.testChanges(true);\r\n\t\t\tif (success){\r\n\t\t\t\t// prompt user for comment on commit\r\n\t\t\t\tString commitComment = JOptionPane.showInputDialog(this, \"COMMIT New Version (Details):\");\r\n\t\t\t\t\r\n\t\t\t\tif (commitComment==null) {\r\n\t\t\t\t\tstatusBar.setText(status+\"CANCELLED\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// transform SwoopChange list to Description list (to save author, date, uris etc)\r\n\t\t\t\tList descList = transformChangeList(repChanges);\r\n\t\t\t\t// serialize each description into RDF/XML\r\n\t\t\t\t// and make it one large string with separator (\"[SWOOP-ANNOTATED-CHANGE-SET]\") in the middle\r\n\t\t\t\tString largeChangeSetString = \"\";\r\n\t\t\t\tfor (Iterator iter = descList.iterator(); iter.hasNext();) {\r\n\t\t\t\t\tDescription desc = (Description) iter.next();\r\n\t\t\t\t\tString descStr = desc.serializeIntoString(swoopModel);\t\t\t\t\t\r\n\t\t\t\t\tlargeChangeSetString += descStr + separator;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// ENCODE CDATA\r\n\t\t\t\tlargeChangeSetString = largeChangeSetString.replaceAll(\"CDATA\", \"ENCODED-CDATA\");\r\n\t\t\t\tlargeChangeSetString = largeChangeSetString.replaceAll(\"]]>\", \"]ENCODED]>\");\r\n\t\t\t\t\r\n\t\t\t\t// finally commit a single annotation with the entire changeset string in the body\r\n\t\t\t\t// also allow author to make annotation on commit\r\n\t\t\t\tDescription commit = new Description();\r\n\t\t\t\tcommit.setAuthor(swoopModel.getUserName());\r\n\t\t\t\tcommit.setCreated(swoopModel.getTimeStamp());\r\n\t\t\t\tcommit.setBody(largeChangeSetString);\r\n\t\t\t\tcommit.setBodyType(\"text/html\");\r\n\t\t\t\tcommit.setAnnotatedEntityDefinition(commitComment);\r\n\t\t\t\tcommit.setAnnotationType(this.annotType);\r\n\t\t\t\t\r\n\t\t\t\t// increment headVersionNum and write new commit\r\n\t\t\t\t// at repURL+\"#\"+headVersionNum\r\n\t\t\t\tthis.headVersionNumber++;\r\n\t\t\t\tURI[] annotates = new URI[1];\r\n\t\t\t\tannotates[0] = new URI(repositoryURI.toString()+\"#\"+String.valueOf(this.headVersionNumber));\r\n\t\t\t\tcommit.setAnnotates(annotates);\r\n\t\t\t\t// COMMIT!\r\n\t\t\t\tclient.post(commit);\r\n\t\t\t\t\r\n\t\t\t\t// post-process:\r\n\t\t\t\t// 1. rewrite rep header added newly incremented headVersionNumber \r\n\t\t\t\tthis.rewriteRepHeader();\r\n\t\t\t\t// 2. set newCommitNode params to current commit\r\n\t\t\t\tnewCommitNode.swoopChange.setAuthor(commit.getAuthor());\r\n\t\t\t\tnewCommitNode.swoopChange.setTimeStamp(commit.getCreated());\r\n\t\t\t\tnewCommitNode.swoopChange.setDescription(commit.getAnnotatedEntityDefinition());\r\n\t\t\t\t// 3. save newCommitNode in versionCommits array and Description in versionDescriptions array\r\n\t\t\t\tversionNodes[this.headVersionNumber] = newCommitNode;\r\n\t\t\t\tversionDescriptions[this.headVersionNumber] = commit;\r\n\t\t\t\tswoopModel.updateVersionRepository(repositoryURI, versionDescriptions);\r\n\t\t\t\t// 4. for each child of newCommitNode, set its swoopChange.onRepository value to true\r\n\t\t\t\tfor (Iterator iter3=newCommitNode.children.iterator(); iter3.hasNext();) {\r\n\t\t\t\t\tTreeTableNode child = (TreeTableNode) iter3.next();\r\n\t\t\t\t\tchild.swoopChange.isOnRepository = true;\r\n\t\t\t\t}\r\n\t\t\t\t// 5. create newCommitNode and add to root at the end\r\n\t\t\t\tnewCommitNode = new TreeTableNode(new SwoopChange(swoopModel.getUserName(), null, null, swoopModel.getTimeStamp(), \"New Version Commit\", true, false));\r\n\t\t\t\tnewCommitNode.swoopChange.isTopNode = true;\r\n\t\t\t\trepRoot.addChild(newCommitNode);\r\n\t\t\t\trepChanges = new ArrayList(); // also clear this\r\n\t\t\t\tstatusBar.setText(status+\"Committed New Version \"+this.headVersionNumber);\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\tcatch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tstatusBar.setText(status+\"FAILED\");\r\n\t\t}\r\n\t\tthis.refreshRepTreeTable(false);\r\n\t}", "@Test\n public void shouldListActivatorsInSourceCode() throws Exception {\n initializeOSGiProjectWithBundlesInSourceCode();\n resetOutput();\n getShell().execute(\"osgi activators\");\n String mod1Expected = \"/main/src/module1/br/ufrgs/rmpestano/activator/Activator.java\";\n String mod2Expected = \"/main/src/module2/br/ufrgs/rmpestano/activator/Activator.java\";\n String mod3Expected = \"/main/src/module3/src/br/ufrgs/rmpestano/activator/Activator.java\";\n if(OSUtils.isWindows()){\n mod1Expected = mod1Expected.replaceAll(\"/\", File.separator + File.separator);\n mod2Expected = mod2Expected.replaceAll(\"/\", File.separator + File.separator);\n mod3Expected = mod3Expected.replaceAll(\"/\", File.separator + File.separator);\n }\n getOutput().contains(mod1Expected);\n getOutput().contains(mod2Expected);\n getOutput().contains(mod3Expected);\n\n\n }", "@Test\n\tpublic void testGetBooksSortedByAuthor() {\n\t\tSystem.out.println(\"Sorting books by author name...\");\n\t\tList<Book> result = store.getBooksSortedByAuthor();\n\t\tSystem.out.println(result);\n\t}", "static public void extractCommitRange(String start, String end) throws Exception\n\t{\n\t\tDataExtractor de = new DataExtractor();\n\t\tde.extractCommitInfo(start, end);\n\t}", "List<Club> getClubAuthors(Student student) {\n return clubRepository.findByAdminsContains(student);\n }", "@Test\n public void testSelectingAllRowsWhenEmpty() throws SQLException {\n // Arrange\n CommitStructure commit = getSampleCommit();\n // Act\n List<CommitStructure> commits = mysqlDatabase.selectAllCommits();\n // Assert\n assertTrue(commits.isEmpty());\n }" ]
[ "0.66845715", "0.64121085", "0.6222717", "0.6059594", "0.6048607", "0.5800444", "0.5728834", "0.57018465", "0.56224203", "0.5598594", "0.5570384", "0.541038", "0.53486645", "0.5342066", "0.53026885", "0.5283145", "0.5204525", "0.5194473", "0.518733", "0.518554", "0.51649785", "0.510931", "0.5098847", "0.50728273", "0.5032082", "0.50253016", "0.4998685", "0.49873686", "0.49797982", "0.49602458", "0.49530348", "0.49476227", "0.49316725", "0.49294487", "0.49239862", "0.4912921", "0.49069253", "0.4904362", "0.48915255", "0.48834845", "0.48811746", "0.48668617", "0.4852489", "0.48454675", "0.48224443", "0.48126018", "0.48066345", "0.48064378", "0.4787434", "0.47442877", "0.47328568", "0.47300413", "0.47292146", "0.47264946", "0.47259784", "0.4724059", "0.4721674", "0.47141495", "0.46855295", "0.46631348", "0.46569106", "0.46532106", "0.4650214", "0.46453738", "0.46410584", "0.4639235", "0.46341902", "0.46270335", "0.46238387", "0.46203047", "0.46201682", "0.460902", "0.46084082", "0.46047413", "0.4603928", "0.45972112", "0.45904776", "0.45849165", "0.45815447", "0.45797023", "0.45775658", "0.45728505", "0.45677942", "0.4559036", "0.45572114", "0.45567688", "0.45543855", "0.45524436", "0.45430362", "0.45317763", "0.452584", "0.45168784", "0.45150003", "0.45148408", "0.4510612", "0.4502743", "0.44986868", "0.44984052", "0.4496304", "0.44929403" ]
0.7126888
0
/ Test to check if exception is thrown without proper user capability
@Test(expected = AuthorCommitsFailedException.class) public void testUserWithoutCapability() throws AuthorCommitsFailedException { EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability); EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(false); EasyMock.expect(mockUser.getUserName()).andReturn("keerath"); replay(mockUser, mockCapability); cmd_test.setCommits(new Project.NameKey("trial"), "kee"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasException();", "public boolean userException() {\n return userEx_;\n }", "@Override\n boolean canFail() {\n return true;\n }", "protected boolean allowInExceptionThrowers() {\n return true;\n }", "@Override\n protected boolean shouldSendThrowException() {\n return false;\n }", "@Test\n public void checkForNonExistingUserCredential() {\n UserLogin userLogin = new UserLogin();\n userLogin.setUserLogin(\"+380680000000\");\n userLogin.setUserPassword(\"12345\");\n\n boolean isThrow = false;\n try {\n UserResponse userResponse = loginsService.checkLoginSignInSignUp(userLogin, \"SignIn\");\n } catch (ApplicationException e) {\n isThrow = true;\n }\n assertThat(isThrow);\n }", "Boolean ignoreExceptions();", "@Test\n public void testRegisterUserInvalidInputNoSpecial() throws AuthenticationException, IllegalAccessException {\n\n Assertions.assertThrows(IllegalAccessException.class, () -> {\n facade.registerUser(\"fiske\", \"juiceLoose123\");\n });\n\n }", "private void checkException(Runnable function, Class<?> expectedEx){\n try {\n function.run();\n assert false;\n }catch (Exception e){\n assert e.getClass() == expectedEx;\n }\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void test_voidFoo_exception() throws IllegalAccessException {\n\t\t\n\t}", "void checkExcn() throws Exception\n { This is called from the main thread context to re-throw any saved\n // exception.\n //\n if (ex != null) {\n throw ex;\n }\n }", "@Test\n public void testRegisterUserInvalidInputLong() throws AuthenticationException, IllegalAccessException {\n\n Assertions.assertThrows(IllegalAccessException.class, () -> {\n facade.registerUser(\"fiske\", \"juicejuicejuicejuicejuicejuicejuicejuicejuicejuicejuicejuicejuicejuicejuicejuice\");\n });\n\n }", "@Override\r\n\tpublic boolean doCatch(Throwable ex) throws Exception\r\n\t{\n\t\treturn false;\r\n\t}", "@Test\n public void testIsItemPresent() throws VendingMachineInventoryException {\n boolean thrown = false;\n try {\n service.isItemPresent(\"shouldNotBePresent\");\n } catch (VendingMachineInventoryException e) {\n thrown = true;\n }\n assertTrue(thrown);\n }", "@Test\n public void testRegisterUserInvalidInputshort() throws AuthenticationException, IllegalAccessException {\n\n Assertions.assertThrows(IllegalAccessException.class, () -> {\n facade.registerUser(\"fiske\", \"juice\");\n });\n\n }", "protected void checkException(SQLException ex) {\n if (ex instanceof SQLFeatureNotSupportedException) {\n assertEquals(\"0A\", ex.getSQLState().substring(0, 2));\n } else {\n assertEquals(\n \"Error code is not 'statement closed' for exception: \"\n + ex.toString(),\n getStatementClosedErrorCode(),\n ex.getErrorCode());\n }\n }", "@Test\r\n public void findUserInvalidUserId() {\r\n\r\n assertThatThrownBy(() -> {\r\n this.usermanagement.findUserRole(-1L);\r\n }).isInstanceOf(Exception.class);\r\n }", "boolean supports(Exception exception);", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.ownerDotComponent((DBObject) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public boolean hasExceptions();", "@Test\n void test012_setCentralUserUserNotFoundException() {\n try {\n christmasBuddENetwork.addUser(\"Santa Claus\");\n christmasBuddENetwork.addUser(\"Grinch\");\n christmasBuddENetwork.addUser(\"Comet\");\n\n christmasBuddENetwork.setCentralUser(\"Rudolph\"); // making Rudolph a\n // central user, but he\n // is NOT in the network\n // :(\n\n // if we get here, then we did not properly throw a UserNotFoundException\n // on a user not in the\n // network,\n // so we failed tests.\n fail(\"test012_setCentralUserUserNotFoundException(): FAILED :(. \"\n + \"Did NOT throw an UserNotFoundException when setting central\"\n + \" user who is NOT in the christmasBuddENetwork network.\");\n } catch (IllegalNullArgumentException e1) {\n fail(\"test012_setCentralUserUserNotFoundException(): FAILED :(. Threw a \"\n + \"IllegalNullArgumentException instead of an UserNotFoundException \"\n + \"when making the central user someone not in the network!\");\n } catch (UserNotFoundException e2) {\n } catch (Exception e3) {\n fail(\"test012_setCentralUserUserNotFoundException(): FAILED :( Threw \"\n + \"another Exception instead of a UserNotFoundException when calling \"\n + \"setCentralUser for Rudolph who wasn't in the network!\");\n }\n }", "@Test(expected=RuntimeException.class)\n\tpublic void getUsernameExceptionTest() throws Exception {\n\t\tnew SecretCredentialsManagerImpl(null, \"true\", null, null) {\n\n\t\t\t@Override\n\t\t\tprotected SecretCache getSecretCache() {\n\t\t\t\tthrow new DecryptionFailureException(null);\n\t\t\t}\n\t\t}.getUsername();\n\t}", "@Test\n public void testRegisterUserInvalidInputNoNumbers() throws AuthenticationException, IllegalAccessException {\n\n Assertions.assertThrows(IllegalAccessException.class, () -> {\n facade.registerUser(\"fiske\", \"juiceLoose/\");\n });\n\n }", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition(\"\", (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "boolean assertExpected(Exception e);", "@Override\n boolean isFailed() {\n return false;\n }", "@Test \n\t@DisplayName(\"czyToJpg\")\n\tvoid testExceptionIfNotJpg() {\n\t\tAssertions.assertThrows(NotJpgException.class, () -> {photo.loadImage(notImage);});\n\t}", "@Test\n public void verificatingUserSignupCorruptionWhenUserIsValidShouldNotThrowException()\n throws InvalidContactInformationFieldException {\n contactInformationCorruptionVerificator.validateContactInformationCorruption(contactInformationDto);\n\n // Then no exception is thrown\n }", "void mo57276a(Exception exc);", "@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindMinesNegative2() {\r\n\t\tauthenticate(\"viewer1\");\r\n\r\n\t\tbrotherhoodService.findMines();\r\n\r\n\t\tunauthenticate();\r\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj\", \"method\", LogManager.getLog());\n }", "public abstract boolean isFatal();", "@Test(expected = IllegalStateException.class)\r\n public void dummyThrowsExceptionWhenAttacked() {\n\r\n dummy.takeAttack(AXE_ATTACK);\r\n }", "@Test(timeout = 4000)\n public void test032() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.ownerDotComponent((DBObject) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test032() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.ownerDotComponent((DBObject) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\n public void swallowExceptionsAspect() throws Exception {\n ProductDemand demand = swallowing(parseDoc().getDemands().get(0));\n\n // probably will throw IllegalStateException\n demand.fancyBusinessLogic();\n\n List<Throwable> exceptions = exceptions(demand);\n Assertions.assertThat(exceptions).isNotEmpty();\n }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isDDL((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public void checkExcn() throws Exception\n { This is called from the main thread context to re-throw any saved\n // exception.\n //\n if (ex != null) {\n throw ex;\n }\n }", "public UserBlockedException() {\r\n }", "@Test\n void testFailure_illegalStatus() {\n assertThrows(\n IllegalArgumentException.class,\n () ->\n runCommandForced(\n \"--client=NewRegistrar\",\n \"--registrar_request=true\",\n \"--reason=Test\",\n \"--domain_name=example.tld\",\n \"--apply=clientRenewProhibited\"));\n }", "public void checkForExceptions() throws Exception {\n\t\tif (mMinimumPurity <= 0.5 || mMinimumPurity > 1.0)\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"Rule Generator: Minimum Purity must be greater than 0.5 and lest then or equal to 1.0.\");\n\t}", "@Test(timeout = 4000)\n public void test065() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.querySingleRow(\")\", (Connection) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test\n public void throwWrappedExOrOriginEx() {\n assertThatThrownBy(() -> repository.findMemberWithSpringEx())\n .isInstanceOf(EmptyResultDataAccessException.class);\n\n // 2) throw origin ex\n assertThatThrownBy(() -> repository.findMemberWithOriginEx())\n .isInstanceOf(NoResultException.class);\n }", "@Test(timeout = 4000)\n public void test073() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isQuery((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\n public void testPutHandlesConditionalCheckFailedExceptionCorrectly() throws Exception {\n\n doTestPutHandlesExceptionsCorrectly(true);\n }", "@Test\n void test010_addUsersDuplicateUserException() {\n // adding duplicate user --> DuplicateUserException\n\n }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition((String) null, (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "private void throwsError() throws OBException {\n }", "void readFaultyRecipientsTest() {\n Assertions.assertThrows(RuntimeException.class,\n () -> Reader.readRecipients(Paths.get(\"src/test/resources/faulty_recipients.txt\")));\n }", "@Test\n public void testInvalidInput() {\n LocalUserManager ua = new LocalUserManager();\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"[email protected]\", \"George\", \"Burdell\", \"SUPERHUMAN\");\n } catch (Exception e) {\n Assert.assertEquals(0, ua.getUsers().size());\n return;\n }\n Assert.fail();\n }", "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "@Override\r\n\tpublic void doException() {\n\r\n\t}", "void shouldThrowForBadServerValue() {\n }", "@Test(expected=com.cg.demo.exceptions.InvalidAccountException.class)\n\tpublic void ifTheAccountNoIsInvalidSystemShouldThrowException() throws InvalidAccountException{\n\t\t\n\t\tservice.showBalance(1);\n\n\t}", "public UnauthorizedException() {\n\t\tsuper(\"User is not Authorized to do that.\");\n\t}", "@Test\n public void testSystemHealthErrorInterpretation() {\n for (RouterErrorCode errorCode : RouterErrorCode.values()) {\n switch (errorCode) {\n case InvalidBlobId :\n case InvalidPutArgument :\n case BlobTooLarge :\n case BadInputChannel :\n case BlobDeleted :\n case BlobDoesNotExist :\n case BlobAuthorizationFailure :\n case BlobExpired :\n case RangeNotSatisfiable :\n case ChannelClosed :\n case BlobUpdateNotAllowed :\n Assert.assertFalse(RouterUtils.isSystemHealthError(new RouterException(\"\", errorCode)));\n break;\n default :\n Assert.assertTrue(RouterUtils.isSystemHealthError(new RouterException(\"\", errorCode)));\n break;\n }\n }\n Assert.assertTrue(RouterUtils.isSystemHealthError(new Exception()));\n Assert.assertFalse(RouterUtils.isSystemHealthError(Utils.convertToClientTerminationException(new Exception())));\n }", "public UserIDNotAvailableException(){\r\n super();\r\n }", "Boolean confirmWebWideTrackingException(ExceptionInformation args);", "@Test\n public void testExceptionThrown() throws Exception {\n final HttpResponse response = Request.Get(\"http://localhost:\" + httpPort.getValue() + CORS_EXCEPTION_ENDPOINT_PATH).addHeader(\"Origin\", CORS_DEFAULT_ORIGIN).execute().returnResponse();\n\n assertNotNull(\"Response should not be null\", response);\n\n //we should have an access control allow origin\n assertNotNull(\"Allowed origin should be present\", response.getFirstHeader(HttpHeaders.Names.ACCESS_CONTROL_ALLOW_ORIGIN));\n }", "@objid (\"7652bc7c-103c-4e5a-a8fa-ee4e662fd446\")\n boolean isIsException();", "public static boolean expectedExceptionTest(VisitorState state) {\n // Allow unused return values in tests that check for thrown exceptions, e.g.:\n //\n // try {\n // Foo.newFoo(-1);\n // fail();\n // } catch (IllegalArgumentException expected) {\n // }\n //\n StatementTree statement = findEnclosingNode(state.getPath(), StatementTree.class);\n return statement != null && EXPECTED_EXCEPTION_MATCHER.matches(statement, state);\n }", "@Test\n public void testIsGamePlayableInvalidPositionExceptionRegex() throws AuthenticationException {\n Map<String, String> data = gameInitializationService.createGame();\n Integer gameId = Integer.parseInt(data.get(GAME_ID));\n String tokenPlayerO = gameInitializationService.joinGame(gameId);\n InvalidPositionException invalidPositionException = null;\n try {\n gamePlayService.playGame(gameId, \"f7\", tokenPlayerO);\n } catch (InvalidPositionException e) {\n invalidPositionException = e;\n }\n Assertions.assertNotNull(invalidPositionException, \"Invalid position test.\");\n Assertions.assertEquals(\"Illegal player mark.\", invalidPositionException.getMessage(),\n \"Invalid position exception message test\");\n }", "public void testGetException() {\r\n Exception exception = null;\r\n try {\r\n list.get(-1);\r\n } \r\n catch (Exception e) {\r\n exception = e;\r\n }\r\n assertTrue(exception instanceof IndexOutOfBoundsException);\r\n exception = null;\r\n list.add(\"A\");\r\n try {\r\n list.get(1);\r\n } \r\n catch (IndexOutOfBoundsException e) {\r\n exception = e;\r\n }\r\n assertTrue(exception instanceof IndexOutOfBoundsException);\r\n }", "public boolean isContentInvalid() {\n/* 1156 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test283() throws Throwable {\n Form form0 = new Form(\"z=OF5Ty4t\");\n // Undeclared exception!\n try { \n form0.u();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test\n public void testIOExceptionWhileEvaluatingQueries() {\n assertStackTraceOfIOExceptionWhileEvaluatingQueries(PROJOG_DEFAULT_PROPERTIES);\n }", "@Test(timeout = 4000)\n public void test120() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.head();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.components.StandaloneComponent\", e);\n }\n }", "@Test(timeout = 4000)\n public void test193() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.id(\"O=V>!a<w512kq\");\n fail(\"Expecting exception: UnsupportedOperationException\");\n \n } catch(UnsupportedOperationException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.util.AbstractMap\", e);\n }\n }", "@Test\n\tpublic void testSimple() throws MappableException, UserException {\n\t}", "@Test(timeout = 4000)\n public void test064() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.checkReadOnly((String) null, true);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\n public void getPowerStatusDoesntThrowException() {\n PowerStatus.getPowerStatus();\n }", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public void inquiryError() {\n\t\t\n\t}", "@Override\n\tpublic boolean isBusinessException() {\n\t\treturn false;\n\t}", "@Test(timeout = 4000)\n public void test038() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isQuery((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "boolean ignoreExceptionsDuringInit();", "@org.chromium.protocolReader.JsonOptionalField\n boolean wasThrown();", "@Override\n\tpublic boolean handlesThrowable() {\n\t\treturn false;\n\t}", "@Test\n public void ossSignInInvalidPassTest() {\n OSSHome ossHome = new OSSHome();\n OSSSignIn ossSignIn =\n ossHome.header.navigateToOSSSignIn().signInto(\"[email protected]\", \"nosuchpassword\");\n assertThat(ossSignIn.errorMessage, displayed());\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition((String) null, (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Override\r\n\tpublic void testInvalidId() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.testInvalidId();\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testAuthenticateUserNullUser() {\n\t\t\n\t\tThrowable thrown = catchThrowable(() -> { authService.authenticateUser(null); } );\n\t\tassertThat(thrown).isNotNull().isInstanceOf(IllegalArgumentException.class).hasMessageContaining(\"Missing login and/or password\");\n\t}", "@Test(expected = IllegalStateException.class)\n\tpublic void testException() {\n\t\tsubGen.subset(11);\n\t}", "SpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException createSpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException();", "public boolean isValidated() throws Exception\r\n {\n return false;\r\n }", "private static void throwException() throws Exception {\n\t\tthrow new Exception();\r\n\t}", "@Test(expected = InvalidArgumentException.class)\r\n\tpublic void throwInvalidArgumentException() {\r\n\t\tthis.validator.doValidation(null);\r\n\t}", "@Override\n\tpublic void demoCheckedException() throws IOException {\n\n\t}", "@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindOwnsNegative3() {\r\n\t\tauthenticate(\"viewer1\");\r\n\r\n\t\tbrotherhoodService.findOwns();\r\n\r\n\t\tunauthenticate();\r\n\t}", "public InvalidUserDataException() {\n \n }", "private static void throwExceptionForRequire() {\n LOG.debug(\"Field 'require' must not be empty\");\n throw new ParametersException(\"Field 'require' must not be empty\");\n }", "@Test\n\tpublic void exception() {\n\t\t// ReactiveValue wraps all exceptions in CompletionException.\n\t\tCompletionException ce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new ArithmeticException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t\tassertThat(p.keys(), contains(\"key\"));\n\t\t// If we try to throw another exception second time around, we will still get the first one.\n\t\tce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new IllegalStateException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t}", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n Form form0 = new Form(\"\\r\");\n // Undeclared exception!\n try { \n form0.title(\"unsupported feature \");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test308() throws Throwable {\n Form form0 = new Form(\"S_AON\");\n // Undeclared exception!\n try { \n form0.object();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test207() throws Throwable {\n Form form0 = new Form(\"z=OF5Ty4t\");\n // Undeclared exception!\n try { \n form0.meta();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.queryString((PreparedStatement) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test040() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isQuery((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\n public void shouldThrowIfInvalidActionInVersion() {\n\n // GIVEN\n ActionProcessor processor = new ActionProcessor(false, false);\n List<Action> actionsToProcess = asList(ADD_FILE, REMOVE_FILE, ADD_FILE);\n DeltaSourceException caughtException = null;\n\n // WHEN\n try {\n processor.processActions(prepareChangesToProcess(actionsToProcess));\n } catch (DeltaSourceException e) {\n caughtException = e;\n }\n\n // THEN\n assertThat(caughtException, notNullValue());\n assertThat(caughtException.getSnapshotVersion().orElse(null), equalTo(SNAPSHOT_VERSION));\n assertThat(caughtException.getTablePath().orElse(null), equalTo(TABLE_PATH));\n }", "@Test\n void testGivenFaultyRequestWithExceptionString_thenFail() throws Exception {\n URL u = new URL(\"http://localhost:8080/sentry-servlet/fault?exception=true\");\n HttpURLConnection conn = (HttpURLConnection)u.openConnection();\n int rc = conn.getResponseCode();\n assertThat(rc)\n .isEqualTo(500);\n }", "public void testGetInvoiceStatusByDescriptionMissing() throws Exception {\n try {\n invoiceSessionBean.getInvoiceStatus(\"unrecognized\");\n fail(\"Should throw InvoiceDataAccessException\");\n } catch (InvoiceDataAccessException e) {\n // expected\n }\n }", "public void testCanCreateInvoice() throws Exception {\n try {\n invoiceSessionBean.canCreateInvoice(-1);\n fail(\"Should throw IllegalArgumentException\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }" ]
[ "0.6616993", "0.65247256", "0.65044886", "0.64973235", "0.6487234", "0.6324723", "0.6312451", "0.62807703", "0.62740266", "0.626785", "0.62617445", "0.62491447", "0.624783", "0.62219614", "0.6214876", "0.61989486", "0.6183913", "0.6146845", "0.61374915", "0.61317754", "0.60974234", "0.6093465", "0.6072475", "0.6066724", "0.6060009", "0.60584015", "0.60372627", "0.60364485", "0.6033167", "0.60287905", "0.60282266", "0.6024272", "0.60198957", "0.6015656", "0.6015656", "0.60143644", "0.5999152", "0.59929013", "0.5992515", "0.59882575", "0.5976054", "0.5966233", "0.5959174", "0.59572655", "0.59552604", "0.5938061", "0.59262514", "0.5920855", "0.59190965", "0.5911583", "0.59111434", "0.5910135", "0.5906346", "0.58987665", "0.5896245", "0.5893368", "0.58841056", "0.58836645", "0.5869774", "0.5867367", "0.5864756", "0.58630174", "0.5862633", "0.5858476", "0.5856377", "0.5855675", "0.5847543", "0.58448803", "0.58435214", "0.5841555", "0.5841051", "0.58293366", "0.58284694", "0.58226854", "0.5820515", "0.5814786", "0.5812683", "0.58112144", "0.58096874", "0.58086884", "0.5808517", "0.5806161", "0.58059955", "0.58011216", "0.57976353", "0.57962227", "0.57896274", "0.57877845", "0.5786914", "0.5786008", "0.57857144", "0.578516", "0.5784757", "0.5784697", "0.5782179", "0.57808715", "0.57789546", "0.57760847", "0.5772991", "0.5772662", "0.5770663" ]
0.0
-1
/ Test to check if exception is thrown with improper author pattern
@Test(expected = AuthorCommitsFailedException.class) public void testIncorrectAuthorPattern() throws AuthorCommitsFailedException { EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability); EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true); replay(mockUser, mockCapability); cmd_test.setCommits(new Project.NameKey("trial"), "ke*"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected= VotingException.class)\n public void VotingMadeByAuthorThrowsException() throws Exception {\n\n bob.upVote(bobPost);\n bob.downVote(bobPost);\n alice.upVote(question);\n alice.downVote(question);\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void test_voidFoo_exception() throws IllegalAccessException {\n\t\t\n\t}", "@Test\n void test009_addUsersIllegalNullArgumentException() {\n // null addUser or empty string addUser --> IllegalNullArgumentException\n try {\n christmasBuddENetwork.addUser(\"Santa Claus\");\n christmasBuddENetwork.addUser(\"Grinch\");\n christmasBuddENetwork.addUser(\"Comet\");\n christmasBuddENetwork.addUser(\"Rudolph\");\n christmasBuddENetwork.addUser(\"Prancer\");\n christmasBuddENetwork.addUser(\"Blitzen\");\n christmasBuddENetwork.addUser(\"Donder\");\n christmasBuddENetwork.addUser(\"Vixen\");\n christmasBuddENetwork.addUser(\"Dancer\");\n christmasBuddENetwork.addUser(\"Cupid\");\n christmasBuddENetwork.addUser(null);\n // if we get here, then we did NOT throw an illegalNullArgumentException\n // when we should have! :(\n fail(\"test009_addUsersIllegalNullArgumentException(): FAILED! :( Did NOT\"\n + \" throw an IllegalNullArgumentException when adding a null user\");\n } catch (IllegalNullArgumentException e1) {\n try {\n christmasBuddENetwork.addUser(\"\");\n } catch (IllegalNullArgumentException e1a) {\n } catch (Exception e2) {\n fail(\"test009_addUsersIllegalNullArgumentException(): FAILED! :( Did \"\n + \"NOT throw an IllegalNullArgumentException when adding an empty \"\n + \"string user\");\n }\n\n\n } catch (Exception e2) {\n fail(\"test009_addUsersIllegalNullArgumentException(): FAILED! :( Threw \"\n + \"the wrong exception!\");\n }\n\n\n\n }", "@Test\n void test011_setCentralUserIllegalNullArgumentException() {\n try {\n christmasBuddENetwork.addUser(\"Santa Claus\");\n christmasBuddENetwork.addUser(\"Grinch\");\n christmasBuddENetwork.addUser(\"Comet\");\n christmasBuddENetwork.addUser(\"Rudolph\");\n christmasBuddENetwork.addUser(\"Prancer\");\n christmasBuddENetwork.addUser(\"Blitzen\");\n christmasBuddENetwork.addUser(\"Donder\");\n christmasBuddENetwork.addUser(\"Vixen\");\n christmasBuddENetwork.addUser(\"Dancer\");\n christmasBuddENetwork.addUser(\"Cupid\");\n christmasBuddENetwork.addUser(\"Dasher\");\n christmasBuddENetwork.setCentralUser(\"\"); // making empty string the\n // central user\n\n // if we get here, then we did not properly throw an\n // IllegalNullArgumentException on empty string,\n // so we failed tests.\n fail(\"test011_setCentralUserIllegalNullArgumentException(): FAILED :(. \"\n + \"Did NOT throw an IllegalNullArgumentException when finding central\"\n + \" user of empty string.\");\n } catch (UserNotFoundException e1) {\n fail(\"test011_setCentralUserIllegalNullArgumentException(): FAILED :(. \"\n + \"Threw a UserNotFoundException instead of an \"\n + \"IllegalNullArgumentException when making the central user an empty\"\n + \" string!\");\n } catch (IllegalNullArgumentException e2) {\n // properly caught this Exception :) for empty string\n try {\n christmasBuddENetwork.setCentralUser(null); // making a null buddE the\n // central user\n fail(\"test011_setCentralUserIllegalNullArgumentException(): FAILED :(.\"\n + \" Did NOT throw an IllegalNullArgumentException when calling \"\n + \"setCentralUser(null)!\");\n\n } catch (UserNotFoundException e2a) {\n fail(\"test011_setCentralUserIllegalNullArgumentException(): FAILED :(.\"\n + \" Threw a UserNotFoundException instead of an \"\n + \"IllegalNullArgumentException when calling \"\n + \"setCentralUser(null)!\");\n } catch (IllegalNullArgumentException e2b) {\n } catch (Exception e2c) {\n fail(\"test011_setCentralUserIllegalNullArgumentException(): FAILED :(.\"\n + \" Threw another Exception instead of an \"\n + \"IllegalNullArgumentException when calling \"\n + \"setCentralUser(null)!\");\n }\n\n } catch (Exception e3) {\n fail(\"test011_setCentralUserIllegalNullArgumentException(): FAILED :( \"\n + \"Threw another Exception instead of an IllegalNullArgumentException\"\n + \" when calling setCentralUser for an empty String!\");\n }\n }", "@Test\n public void swallowExceptionsAspect() throws Exception {\n ProductDemand demand = swallowing(parseDoc().getDemands().get(0));\n\n // probably will throw IllegalStateException\n demand.fancyBusinessLogic();\n\n List<Throwable> exceptions = exceptions(demand);\n Assertions.assertThat(exceptions).isNotEmpty();\n }", "@Test\n void test012_setCentralUserUserNotFoundException() {\n try {\n christmasBuddENetwork.addUser(\"Santa Claus\");\n christmasBuddENetwork.addUser(\"Grinch\");\n christmasBuddENetwork.addUser(\"Comet\");\n\n christmasBuddENetwork.setCentralUser(\"Rudolph\"); // making Rudolph a\n // central user, but he\n // is NOT in the network\n // :(\n\n // if we get here, then we did not properly throw a UserNotFoundException\n // on a user not in the\n // network,\n // so we failed tests.\n fail(\"test012_setCentralUserUserNotFoundException(): FAILED :(. \"\n + \"Did NOT throw an UserNotFoundException when setting central\"\n + \" user who is NOT in the christmasBuddENetwork network.\");\n } catch (IllegalNullArgumentException e1) {\n fail(\"test012_setCentralUserUserNotFoundException(): FAILED :(. Threw a \"\n + \"IllegalNullArgumentException instead of an UserNotFoundException \"\n + \"when making the central user someone not in the network!\");\n } catch (UserNotFoundException e2) {\n } catch (Exception e3) {\n fail(\"test012_setCentralUserUserNotFoundException(): FAILED :( Threw \"\n + \"another Exception instead of a UserNotFoundException when calling \"\n + \"setCentralUser for Rudolph who wasn't in the network!\");\n }\n }", "boolean assertExpected(Exception e);", "@Test\n void test010_addUsersDuplicateUserException() {\n // adding duplicate user --> DuplicateUserException\n\n }", "void mo57276a(Exception exc);", "@Test(expected = IllegalArgumentException.class)\r\n public void constructorExceptionTest(){\n Owner invalid = new Owner(\"First\", \"Last\", \"333\");\r\n }", "@Test\n public void when_SourceHasInvalidFormat_Then_ThrowException() {\n //then\n assertThrows(IllegalArgumentException.class, () -> {\n //when\n underTest.read(\"FhFXVE,,,\");\n });\n }", "@Test\n void test002_addFriendshipIllegalNullArgumentException() {\n try {\n // inserted a null argument for a buddE, so an\n // IllegalNullArgumentException should be thrown\n newBuddENetwork.addFriendship(\"Saniya\", null);\n // if we get here, we have failed this test because we did not throw an\n // IllegalNullArgument\n // Exception.\n fail(\"test002_addFriendshipIllegalNullArgumentException(): FAILED! :( Did\"\n + \" NOT throw an IllegalNullArgumentException when a null argument \"\n + \"was given for a buddE!\");\n\n } catch (DuplicateFriendshipException e1) {\n fail(\"test002_addFriendshipIllegalNullArgumentException(): FAILED! :( \"\n + \"Threw a DuplicateFriendshipException instead of a \"\n + \"IllegalNullArgumentException() when a null argument was given for \"\n + \"a buddE!\");\n\n } catch (IllegalNullArgumentException e2) {\n // passed the test for the null key argument.\n // next, we try to see if the test passes for an empty string and throws\n // the correct\n // IllegalNullArgumentException\n // trying to insert an empty string for a buddE:\n try {\n newBuddENetwork.addFriendship(\"\", \"Shannon\");\n // if we get here, we have failed this test because we did not throw an\n // IllegalNullArgument\n // Exception.\n fail(\"test002_addFriendshipIllegalNullArgumentException(): FAILED! :( \"\n + \"Did NOT throw an IllegalNullArgumentException when an empty \"\n + \"string argument was given for a buddE!\");\n\n } catch (DuplicateFriendshipException e2a) {\n fail(\"test002_addFriendshipIllegalNullArgumentException(): FAILED! :( \"\n + \"Threw a DuplicateFriendshipException instead of a \"\n + \"IllegalNullArgumentException() when an empty string argument \"\n + \"was given for a buddE!\");\n\n } catch (IllegalNullArgumentException e2b) {\n } catch (Exception e2c) {\n fail(\"test002_addFriendshipIllegalNullArgumentException(): FAILED! :( \"\n + \"Threw another Exception instead of a \"\n + \"IllegalNullArgumentException() when an empty string argument was\"\n + \" given for a buddE!\");\n\n }\n\n } catch (Exception e3) {\n fail(\"test002_addFriendshipIllegalNullArgumentException(): FAILED! :( \"\n + \"Threw another Exception instead of a \"\n + \"IllegalNullArgumentException() when a null argument was given for \"\n + \"a buddE!\");\n\n }\n }", "@Test(timeout = 4000)\n public void test032() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.ownerDotComponent((DBObject) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test032() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.ownerDotComponent((DBObject) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "void readFaultyRecipientsTest() {\n Assertions.assertThrows(RuntimeException.class,\n () -> Reader.readRecipients(Paths.get(\"src/test/resources/faulty_recipients.txt\")));\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.ownerDotComponent((DBObject) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\n public void findProductListExceptionTest(){\n }", "@Test\n public void throwWrappedExOrOriginEx() {\n assertThatThrownBy(() -> repository.findMemberWithSpringEx())\n .isInstanceOf(EmptyResultDataAccessException.class);\n\n // 2) throw origin ex\n assertThatThrownBy(() -> repository.findMemberWithOriginEx())\n .isInstanceOf(NoResultException.class);\n }", "@Test\n void test003_addFriendshipDuplicateFriendshipException() {\n try {\n try {\n christmasBuddENetwork.addFriendship(\"santa\", \"grinch\");\n christmasBuddENetwork.addFriendship(\"santa\", \"rudolph\");\n christmasBuddENetwork.addFriendship(\"comet\", \"santa\");\n christmasBuddENetwork.addFriendship(\"prancer\", \"grinch\");\n christmasBuddENetwork.addFriendship(\"prancer\", \"comet\");\n\n // no exception should be thrown because this is a different network:\n // lonelERedNosedRudolphNetwork.addFriendship(\"santa\", \"grinch\");\n\n christmasBuddENetwork.addFriendship(\"santa\", \"rudolph\"); // duplicate\n // friendship\n // if we get here, we did NOT throw any DuplicateFriendshipException()\n // and fail this method :(\n fail(\"test003_addFriendshipDuplicateFriendshipException(): FAILED! :( \"\n + \"Did NOT throw a DuplicateFriendshipException() when trying to \"\n + \"add a friendship between Santa and Rudolph again!\");\n\n } catch (IllegalNullArgumentException e1) {\n fail(\"test003_addFriendshipDuplicateFriendshipException(): FAILED! :( \"\n + \"Threw an IllegalNullKeyException instead of a \"\n + \"DuplicateFriendshipException()!\");\n\n } catch (DuplicateFriendshipException e2) {\n }\n\n } catch (Exception e3) {\n fail(\"test003_addFriendshipDuplicateFriendshipException(): FAILED! :( \"\n + \"Threw another Exception instead of a \"\n + \"DuplicateFriendshipException()!\");\n\n }\n }", "public boolean isContentInvalid() {\n/* 1156 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test\n\tvoid new_GebruikerMetLegeEmail_ThrowsException() {\n\t\tAssertions.assertThrows(IllegalArgumentException.class, ()-> new Klant( \"test\", \"test\", \"test\", \"test\", null, 4000,\n\t\t\t\tnew Bedrijf()));\n\t}", "@Test\n public void testProductMatchingExceptionThrown() throws Exception {\n service.loadFiles(); \n\n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"OH\");\n newOrder.setProductType(\"Reptile\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n boolean correctExceptionThrown = false;\n try {\n service.calculateNewOrderDataInput(newOrder);\n } catch (FlooringValidationException e) {\n correctExceptionThrown = true;\n }\n\n Assert.assertTrue(\"Must Match Products\", correctExceptionThrown);\n\n }", "@Test(expected = Exception.class)\n public void testOrganiseTalkExceptionTrown() throws Exception {\n // single talk should throw exception\n String title = \"Single Talk\";\n try{\n \n ConferenceCommittee.acceptTalkSubmission(title, new ArrayList<Talk>());\n } catch (Exception e) {\n assertEquals(e.getMessage(), \"Cant organise talk - \" + title); // TODO: check spelling in assertion messages\n throw e;\n }\n fail(\"Exception not thrown\");\n\n }", "@Test\r\n\tpublic void testInvalidManagedIncidentCaller() {\r\n\t\t\r\n\t\t//Tests with an empty caller String\r\n\t\ttry {\r\n\t\t\tManagedIncident mi = new ManagedIncident(\"\", Category.DATABASE, Priority.HIGH, \"Jeff\", \"My name Jeff\");\r\n\t\t\tmi.getCaller();\r\n\t\t\tfail();\r\n\t\t}\r\n\t\tcatch (IllegalArgumentException e) {\r\n\t\t\tassertNull(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\t//Tests with a null caller String\r\n\t\ttry {\r\n\t\t\tManagedIncident mi = new ManagedIncident(null, Category.DATABASE, Priority.HIGH, \"Jeff\", \"My name Jeff\");\r\n\t\t\tmi.getCaller();\r\n\t\t\tfail();\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tassertNull(e.getMessage());\r\n\t\t}\r\n\t}", "@Test\n public void shouldThrowIfInvalidActionInVersion() {\n\n // GIVEN\n ActionProcessor processor = new ActionProcessor(false, false);\n List<Action> actionsToProcess = asList(ADD_FILE, REMOVE_FILE, ADD_FILE);\n DeltaSourceException caughtException = null;\n\n // WHEN\n try {\n processor.processActions(prepareChangesToProcess(actionsToProcess));\n } catch (DeltaSourceException e) {\n caughtException = e;\n }\n\n // THEN\n assertThat(caughtException, notNullValue());\n assertThat(caughtException.getSnapshotVersion().orElse(null), equalTo(SNAPSHOT_VERSION));\n assertThat(caughtException.getTablePath().orElse(null), equalTo(TABLE_PATH));\n }", "@Test \n\t@DisplayName(\"czyToJpg\")\n\tvoid testExceptionIfNotJpg() {\n\t\tAssertions.assertThrows(NotJpgException.class, () -> {photo.loadImage(notImage);});\n\t}", "@Test\n\tvoid new_GebruikerMetLegeVoornaam_ThrowsException() {\n\t\tAssertions.assertThrows(IllegalArgumentException.class, ()-> new Klant( \"test\", \"test\", null, \"test\", \"[email protected]\", 4000,\n\t\t\t\tnew Bedrijf()));\n\t}", "@Test(timeout = 4000)\n public void test049() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition(\"\", (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\n public void testRegisterUserInvalidInputNoSpecial() throws AuthenticationException, IllegalAccessException {\n\n Assertions.assertThrows(IllegalAccessException.class, () -> {\n facade.registerUser(\"fiske\", \"juiceLoose123\");\n });\n\n }", "@Test(timeout = 4000)\n public void test023() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.parseAndSimplifyResultSet((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test\n\tpublic void testExceptionMessage() {\n\n\t\ttry {\n\t\t\tnew LinkedList< Object >().get( 0 );\n\n\t\t\t//if no exception thrown the test will fail with the below message.\n//\t\t\tfail( \"Expected an IndexOutOfBoundsException to be thrown\" );\n\n\t\t} catch ( IndexOutOfBoundsException anIndexOutOfBoundsException ) {\n\n\t\t\t//if no exception message is not the same the test will fail with the below message.\n//\t\t\tassertThat( anIndexOutOfBoundsException.getMessage(), is( \"Index: 0, Size: 0\" ) );\n\t\t}\n\n\t}", "@Test\n public void isCorrectTest(){\n BuyCard cardErr = new BuyCard(12,0);\n\n thrown.expect(IllegalArgumentException.class);\n thrown.expectMessage(\"Row index out of bounds.\");\n cardErr.isCorrect();\n }", "@Test(timeout = 4000)\n public void test31() throws Throwable {\n // Undeclared exception!\n try { \n EWrapperMsgGenerator.deltaNeutralValidation((-2236), (UnderComp) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.ib.client.EWrapperMsgGenerator\", e);\n }\n }", "public void testGetInvoiceStatusByDescriptionMissing() throws Exception {\n try {\n invoiceSessionBean.getInvoiceStatus(\"unrecognized\");\n fail(\"Should throw InvoiceDataAccessException\");\n } catch (InvoiceDataAccessException e) {\n // expected\n }\n }", "@Test(expected=UnauthorizedException.class)\n\tpublic void testE(){\n\t\tSystem.out.println(\"Test E\");\n\t\tUUID aliceSecret = secretService.storeSecret(\"Alice\", new Secret());\n\t\tsecretService.shareSecret(\"Alice\", aliceSecret, \"Bob\");\n\t\tsecretService.shareSecret(\"Bob\", aliceSecret, \"Carl\");\n\t\tsecretService.unshareSecret(\"Alice\", aliceSecret, \"Carl\");\n\t\tsecretService.readSecret(\"Carl\", aliceSecret);\n\t}", "@Test\n\tpublic void CT04UC01CadastrarLivro_com_autor_invalido() {\n\t\ttry {\n\t\t\tlivro.setAutor(\"\");\n\t\t\tfail(\"deveria lançar uma exceção\");\n\t\t} catch (RuntimeException e) {\n\t\t\tassertEquals(\"Autor invalido\", e.getMessage());\n\t\t}\n\t}", "public void testInsufficientDataExceptionStringThrowableAccuracy() {\r\n //Construct InsufficientDataException with a detail message and a cause\r\n InsufficientDataException exception = new InsufficientDataException(DETAIL_MESSAGE, CAUSE);\r\n\r\n //Verify that there is a detail message\r\n assertNotNull(\"Should have message.\", exception.getMessage());\r\n\r\n //altered message is the result of a modification to the BaseException component.\r\n assertEquals(\"Detailed error message with cause should be correct.\", DETAIL_MESSAGE + \", caused by null\",\r\n exception.getMessage());\r\n\r\n //Verify that there is a cause\r\n assertNotNull(\"Should have cause.\", exception.getCause());\r\n assertTrue(\"Cause should be identical.\", CAUSE == exception.getCause());\r\n }", "@Test\n\tvoid new_GebruikerMetLegeNaam_ThrowsException() {\n\t\tAssertions.assertThrows(IllegalArgumentException.class, ()-> new Klant( \"test\", \"test\", \"test\", null, \"[email protected]\", 4000,\n\t\t\t\tnew Bedrijf()));\n\t}", "public void doSomething(String input) throws MyBusinessException {\n // code ...\n }", "@Test\n public void shouldThrownAccessExceptionWhenInnerMethodCallThrowsIt()\n throws Exception {\n\n // p4ic4idea: use a public, non-abstract class with default constructor\n executeAndExpectThrowsExceptions(\n AccessException.AccessExceptionForTests.class,\n AccessException.class\n );\n }", "@Test\r\n\tpublic void testInvalidManagedIncidentName() {\r\n\t\t//Tests with an empty name String\r\n\t\ttry {\r\n\t\t\tManagedIncident mi = new ManagedIncident(\"callme\", Category.DATABASE, Priority.MEDIUM, \"\", \"Random caller\");\r\n\t\t\tmi.getName();\r\n\t\t\tfail();\r\n\t\t}\r\n\t\tcatch (IllegalArgumentException e) {\r\n\t\t\tassertNull(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\t//Tests with a null name String\r\n\t\ttry {\r\n\t\t\tManagedIncident mi = new ManagedIncident(\"lpost\", Category.HARDWARE, Priority.URGENT, null, \"I like lamp\");\r\n\t\t\tmi.getName();\r\n\t\t\tfail();\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tassertNull(e.getMessage());\r\n\t\t}\r\n\t}", "public void testPersistenceExceptionAccuracy1() throws Exception {\n PersistenceException pe = new PersistenceException(\"test\");\n assertEquals(\"message is incorrect.\", \"test\", pe.getMessage());\n }", "@Test(expected = IllegalArgumentException.class)\n public void CollectPaymentException(){\n instance.scanItem(-6);\n }", "SpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException createSpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException();", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.nextLine((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test(expected = IllegalArgumentException.class)\n public void testCheckPositiveFailure() {\n Helper.checkPositive(0, \"obj\", \"method\", LogManager.getLog());\n }", "@Test\n public void testGetForumByMissingUser() {\n ForumException thrown = assertThrows(ForumException.class,\n () -> forumService.getForumsByUser(0));\n assertTrue(thrown.getMessage().contains(\"No such user.\"));\n }", "@Test\n public void questionIfNotAlreadyAccusedTest() throws Exception {\n\n }", "public void testPersistenceExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n PersistenceException pe = new PersistenceException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", pe.getMessage());\n assertEquals(\"cause is incorrect.\", e, pe.getCause());\n }", "@Test\r\n public void findUserInvalidUserId() {\r\n\r\n assertThatThrownBy(() -> {\r\n this.usermanagement.findUserRole(-1L);\r\n }).isInstanceOf(Exception.class);\r\n }", "@Test\n public void testGetEpisodeInvalidPersistedListing() {\n ListingFileHelper instance = new ListingFileHelper();\n String testInvalidListing = \"notValid\";\n try {\n instance.getListing(testInvalidListing);\n fail(\"Expected an IllegalArgumentException to be thrown\");\n } catch (IllegalArgumentException iaEx) {\n String expectedErrorMessage = \"Unable to parse listing: \" + testInvalidListing;\n assertEquals(expectedErrorMessage, iaEx.getMessage());\n }\n }", "boolean hasException();", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n NameSpec nameSpec0 = NameSpec.NEVER;\n // Undeclared exception!\n try { \n SQLUtil.ukSpec((DBUniqueConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test104() throws Throwable {\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n // Undeclared exception!\n try { \n SQLUtil.constraintSpec((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(expected = AppException.class)\n public void shouldThrowAnAppException() throws Exception {\n Mockito.when(customerRepository.existsByEmail(view.getEmail())).thenReturn(false);\n //error on saving\n Mockito.when(customerRepository.save(Mockito.any(Customer.class))).thenThrow(new DataAccessException(\"Could not save customer\") {});\n\n customerService.create(view);\n Mockito.verify(customerRepository).existsByEmail(view.getEmail());\n Mockito.verify(customerRepository).save(Mockito.any(Customer.class));\n }", "@Test\n\tvoid qutTestForExeception() {\n\t\tassertThrows(MyException.class, () -> { nopt.quot(100, 0);});\n\t}", "@Test\n public void testRegisterUserInvalidInputshort() throws AuthenticationException, IllegalAccessException {\n\n Assertions.assertThrows(IllegalAccessException.class, () -> {\n facade.registerUser(\"fiske\", \"juice\");\n });\n\n }", "@Test\n void test004_addValidFriendshipWhereAtLeastOneBuddEIsNotInNetwork() {\n try {\n // Special case: if there is no existing user that correspond to any given\n // * name, then add the user(s) first and then add friendship between\n // them.\n christmasBuddENetwork.addUser(\"grinch\");\n christmasBuddENetwork.addFriendship(\"grinch\", \"santa\");\n\n Set<User> allChristmasBuddEs = christmasBuddENetwork.getAllUsers();\n ArrayList<String> allChristmasBuddEsList = new ArrayList<String>();\n for (User i : allChristmasBuddEs) {\n allChristmasBuddEsList.add(i.getName());\n }\n // please make sure that the size of the network is 2\n if ((!allChristmasBuddEsList.contains(\"grinch\"))\n || (!allChristmasBuddEsList.contains(\"santa\"))) {\n fail(\"test004_addValidFriendshipWhereAtLeastOneBuddEIsNotInNetwork(): \"\n + \"FAILED! :( Did NOT add Santa to the network when trying to add \"\n + \"a friendship where Santa was not in the network.\");\n }\n\n int numChristmasbuddEs = allChristmasBuddEs.size();\n if ((numChristmasbuddEs != 2)) {\n fail(\"test004_addValidFriendshipWhereAtLeastOneBuddEIsNotInNetwork(): \"\n + \"FAILED! :( Did NOT have a size of 2 for the \"\n + \"christmasBuddENetwork but instead had a size of \"\n + numChristmasbuddEs);\n }\n\n\n // Set<User> getAllUsers();\n\n } catch (IllegalNullArgumentException e1) {\n fail(\"test004_addValidFriendshipWhereAtLeastOneBuddEIsNotInNetwork(): \"\n + \"FAILED! :( Incorrectly threw an IllegalNullArgumentException.\");\n\n\n // IllegalNullArgumentException, DuplicateUserException\n // DuplicateFriendshipException\n } catch (DuplicateUserException e2) {\n fail(\"test004_addValidFriendshipWhereAtLeastOneBuddEIsNotInNetwork(): \"\n + \"FAILED! :( Incorrectly threw a DuplicateUserException.\");\n\n } catch (DuplicateFriendshipException e3) {\n fail(\"test004_addValidFriendshipWhereAtLeastOneBuddEIsNotInNetwork(): \"\n + \"FAILED! :( Incorrectly threw a DuplicateFriendshipException.\");\n\n }\n\n }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.isDDL((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public abstract String check() throws Exception;", "@Test(timeout = 4000)\n public void test030() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.escape((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test\n\tvoid new_GebruikerMetGebruikersnaam3karakters_ThrowsException() {\n\t\tAssertions.assertThrows(IllegalArgumentException.class, ()-> new Klant( \"tes\", \"test\", \"test\", \"test\", \"[email protected]\", 4000,\n\t\t\tnew Bedrijf()));\n\t}", "OOPExpectedException expectMessage(String msg);", "public void testCanCreateInvoice() throws Exception {\n try {\n invoiceSessionBean.canCreateInvoice(-1);\n fail(\"Should throw IllegalArgumentException\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "@Test(timeout = 4000)\n public void test029() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.format((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test\n public void testRegisterUserInvalidInputLong() throws AuthenticationException, IllegalAccessException {\n\n Assertions.assertThrows(IllegalAccessException.class, () -> {\n facade.registerUser(\"fiske\", \"juicejuicejuicejuicejuicejuicejuicejuicejuicejuicejuicejuicejuicejuicejuicejuice\");\n });\n\n }", "@Test\n public void testRegisterUserInvalidInputNoNumbers() throws AuthenticationException, IllegalAccessException {\n\n Assertions.assertThrows(IllegalAccessException.class, () -> {\n facade.registerUser(\"fiske\", \"juiceLoose/\");\n });\n\n }", "private void checkException(Runnable function, Class<?> expectedEx){\n try {\n function.run();\n assert false;\n }catch (Exception e){\n assert e.getClass() == expectedEx;\n }\n }", "@Test\n public void bookHotelTestError() throws BookHotelFault{\n try {\n assertTrue(bookHotel(null));\n } catch (BookHotelFault e) {\n assertEquals(\"Empty\", e.getMessage());\n } \n }", "public void testPersistenceExceptionStringThrowableAccuracy() {\r\n //Construct PersistenceException with a detail message and a cause\r\n PersistenceException exception = new PersistenceException(DETAIL_MESSAGE, CAUSE);\r\n\r\n //Verify that there is a detail message\r\n assertNotNull(\"Should have message.\", exception.getMessage());\r\n\r\n //altered message is the result of a modification to the BaseException component.\r\n assertEquals(\"Detailed error message with cause should be correct.\", DETAIL_MESSAGE + \", caused by null\",\r\n exception.getMessage());\r\n\r\n //Verify that there is a cause\r\n assertNotNull(\"Should have cause.\", exception.getCause());\r\n assertTrue(\"Cause should be identical.\", CAUSE == exception.getCause());\r\n }", "@Test\n public void testAddPermissionTwiceFails() throws Exception\n {\n permission = permissionManager.getPermissionInstance(\"EATLUNCH\");\n permissionManager.addPermission(permission);\n assertTrue(permissionManager.checkExists(permission.getName()));\n Permission permission2 = permissionManager.getPermissionInstance(\"EATLUNCH\");\n try\n {\n permissionManager.addPermission(permission2);\n }\n catch (EntityExistsException uee)\n {\n // good\n }\n }", "@Test\n public void exampleTest1() {\n \ttry {\n \t\tVersion version = new Version(null);\n \t} catch(IllegalArgumentException e) {\n \t\tAssert.assertEquals(errorVersionMustNotBeNull, e.getMessage());\n \t} catch(Exception e) {\n \t\tAssert.fail(\"No exception thrown when null version passed to constructor: \"+e.getClass().getName()+\" \"+e.getMessage());\n \t}\n }", "@Test\r\n public void incorrectUrlTest(){\r\n boolean noException = false;\r\n \r\n try {\r\n extractor = new HTMLExtractor(\"google.co.uk\");\r\n noException = true;\r\n } catch (IOException e) {\r\n // TODO Auto-generated catch block\r\n System.out.println(e.getMessage());\r\n }\r\n\r\n assertTrue(\"should not throw an exception\", noException);\r\n }", "@Ignore(value = \"TODO\")\n @Test(expected = IllegalStateException.class)\n public void shouldThrowExceptionWhenDeletingAPlayerInTheMiddleOfAGame() {\n\n }", "@Test\n public void bookHotelTestError3() throws BookHotelFault, DatatypeConfigurationException{ \n BookHotelInputType input = CreateBookHotelInputType(\"booking_Hotel_1\", \"Tobiasen Inge\", \"50408823\", 9, 10);\n try {\n assertTrue(bookHotel(input));\n } catch (BookHotelFault e) {\n assertEquals(\"The account has not enough money\",e.getMessage());\n } \n }", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n NameSpec nameSpec0 = NameSpec.IF_REPRODUCIBLE;\n // Undeclared exception!\n try { \n SQLUtil.constraintSpec((DBConstraint) null, nameSpec0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\n public void testStateMatchingExceptionThrown() throws Exception {\n service.loadFiles();\n \n Order newOrder = new Order();\n newOrder.setCustomerName(\"Jake\");\n newOrder.setState(\"MN\");\n newOrder.setProductType(\"Wood\");\n newOrder.setArea(new BigDecimal(\"233\"));\n\n boolean correctExceptionThrown = false;\n try {\n service.calculateNewOrderDataInput(newOrder);\n } catch (FlooringValidationException e) {\n correctExceptionThrown = true;\n }\n\n Assert.assertTrue(\"Must Match State\", correctExceptionThrown);\n\n }", "@Test\n\tpublic void test04() throws Throwable {\n\t}", "@Test\n public void test078() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n Component component0 = errorPage0.title(\"%n.Is\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void testInvalidNoType() { assertInvalid(\"a\"); }", "@Test(timeout = 4000)\n public void test048() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.addRequiredCondition((String) null, (StringBuilder) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(expected = AppException.class)\n public void testCreateEmailIncorrect() {\n User user = new User(\"login\", \"login(at)example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "@Test\n\tvoid testInvalidInstitution()\n\t{\n\t\tassertThrows(InvalidInstitutionException.class, () -> iOfficerService.statusUpdate(880, \"Approved\"));\n\t}", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test034() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.mutatesDataOrStructure((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public void testApplicationsManagerExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n ApplicationsManagerException ce = new ApplicationsManagerException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", ce.getMessage());\n assertEquals(\"cause is incorrect.\", e, ce.getCause());\n }", "public void testGetException() {\r\n Exception exception = null;\r\n try {\r\n list.get(-1);\r\n } \r\n catch (Exception e) {\r\n exception = e;\r\n }\r\n assertTrue(exception instanceof IndexOutOfBoundsException);\r\n exception = null;\r\n list.add(\"A\");\r\n try {\r\n list.get(1);\r\n } \r\n catch (IndexOutOfBoundsException e) {\r\n exception = e;\r\n }\r\n assertTrue(exception instanceof IndexOutOfBoundsException);\r\n }", "void shouldThrowForBadServerValue() {\n }", "@Test\n void test006_removeFriendshipThrowsUserNotFoundException() {\n try {\n // set should be updated.\n christmasBuddENetwork.addFriendship(\"santa\", \"grinch\");\n christmasBuddENetwork.addFriendship(\"prancer\", \"comet\");\n christmasBuddENetwork.addFriendship(\"santa\", \"rudolph\");\n // please try to remove a friendship that doesn't exist in the network\n christmasBuddENetwork.removeFriendship(\"santa\", \"comet\");\n fail(\"test006_removeFriendshipThrowsUserNotFoundException(): FAILED! :( \"\n + \"Did NOT throw a UserNotFoundException when trying to remove a \"\n + \"friendship that's not in the network.\");\n } catch (UserNotFoundException e) {\n } catch (FriendshipNotFoundException e) {\n } catch (Exception e) {\n fail(\"test006_removeFriendshipThrowsUserNotFoundException(): FAILED! :( \"\n + \"Threw the wrong exception.\");\n }\n\n }", "@Test(expected = Exception.class)\n public void shouldNotBookAnAlreadyBookedRoomAndInformTheClientWithTheAnException()\n\t throws Exception {\n\n\tfinal int index = 1;\n\tfinal BookRoomCommand command = new BookRoomCommand(validRoomOffer,\n\t\t\"12\");\n\twhen(dao.read(index)).thenReturn(validRoomOffer);\n\twhen(isRoomBookable.isSatisfiedBy(validRoomOffer)).thenReturn(false);\n\n\tfinal UrlyBirdRoomOfferService roomOfferService = new UrlyBirdRoomOfferService(\n\t\tdao, builder, null, isRoomBookable);\n\n\troomOfferService.bookRoomOffer(command);\n }", "@Test(expected = IllegalStateException.class)\r\n public void dummyThrowsExceptionWhenAttacked() {\n\r\n dummy.takeAttack(AXE_ATTACK);\r\n }", "public void testRetrieveAddress_PersistenceException() throws Exception {\r\n try {\r\n new InformixAddressDAO(\"InformixAddressDAO_Error_4\").retrieveAddress(1);\r\n fail(\"PersistenceException expected\");\r\n } catch (PersistenceException e) {\r\n //good\r\n }\r\n }", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testValidAddInvalidArgument() throws Exception {\n\t\tIllegalArgumentException iae = null;\n\t\tString[] args = new String(\"add -repo dummyrepo -cmt dummycommit -br dummybranch -p2v 0.0-DUMMY -invalidarg abcd\").split(\" \");\n\t\ttry {\n\t\t\tVersionManifest m = (VersionManifest)createManifestMethod.invoke(null, new Object[] { args });\n\t\t} catch (InvocationTargetException e) {\n\t\t\tiae = (IllegalArgumentException)e.getCause();\n\t\t}\n\n\t\tassertNotNull(iae);\n\t}", "@Test\n public void testGetMissingForumByID() {\n ForumException thrown = assertThrows(ForumException.class,\n () -> forumService.getForumWithID((long) 0));\n assertTrue(thrown.getMessage().contains(\"Forum not found\"));\n }", "@Test\r\n\tpublic void contents() throws Exception {\n\t}", "@Test\n public void test053() throws Throwable {\n Form form0 = new Form(\"#7v@zh$f,,\");\n // Undeclared exception!\n try {\n Component component0 = form0.h2();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "public void testApplicationsManagerExceptionAccuracy1() throws Exception {\n ApplicationsManagerException ce = new ApplicationsManagerException(\"test\");\n assertEquals(\"message is incorrect.\", \"test\", ce.getMessage());\n }", "@Test(expected = Exception.class)\n public void givenThatFileDoesNotExistThrowException() throws Exception {\n String[] args = new String[1];\n args[0] = testFile + \"test\";\n\n try{\n ConferenceManager.main(args);\n } catch (Exception e) {\n assertEquals(e.getMessage(), \"File cant be found - \" + testFile + \"test\"); // TODO: check spelling in assertion messages\n throw e;\n }\n fail(\"Exception not thrown\");\n\n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.parseResultSet((ResultSet) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "@Test(timeout = 4000)\n public void test193() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.id(\"O=V>!a<w512kq\");\n fail(\"Expecting exception: UnsupportedOperationException\");\n \n } catch(UnsupportedOperationException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.util.AbstractMap\", e);\n }\n }" ]
[ "0.6427117", "0.6397557", "0.6391561", "0.63771635", "0.6368837", "0.62624615", "0.62529945", "0.62239665", "0.6212966", "0.61925554", "0.61903423", "0.6186425", "0.6158966", "0.6158966", "0.61486876", "0.6128433", "0.6112027", "0.6084984", "0.607994", "0.60798925", "0.6060318", "0.59994745", "0.5996992", "0.5993527", "0.59929705", "0.5992806", "0.5990331", "0.59849846", "0.5980936", "0.59801596", "0.5979466", "0.5978477", "0.59691185", "0.59622633", "0.5960291", "0.5958963", "0.59556973", "0.5938005", "0.5931019", "0.59218466", "0.59152615", "0.590833", "0.58971", "0.5888393", "0.5886164", "0.5885562", "0.5884094", "0.588342", "0.5881776", "0.58740664", "0.5872737", "0.5866805", "0.58660996", "0.58649206", "0.5864604", "0.58597225", "0.58578646", "0.58545893", "0.5854122", "0.5852458", "0.58518946", "0.5848716", "0.58464444", "0.5844899", "0.5842973", "0.5840165", "0.58400613", "0.5839182", "0.58382016", "0.58370805", "0.58277065", "0.58219224", "0.5815579", "0.58149976", "0.5814827", "0.5809557", "0.57993376", "0.57977605", "0.5797203", "0.57951677", "0.5791815", "0.5790466", "0.5787367", "0.5786963", "0.5786665", "0.57861", "0.5780219", "0.57759345", "0.57718015", "0.57717806", "0.5768513", "0.5761689", "0.57605875", "0.57566714", "0.5754061", "0.57480055", "0.57468635", "0.57464546", "0.5740686", "0.5740524" ]
0.6436402
0
/ Test to list commits of a repository with a .git extension
@Test public void testProjectNameWithGitExtension() throws AuthorCommitsFailedException, IOException{ EasyMock.expect(mockManager.openRepository(new Project.NameKey("trial"))) .andReturn( RepositoryCache.open(FileKey.lenient(new File( "../../review_site/git", "trial.git"), FS.DETECTED))); EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability); EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true); replay(mockUser, mockCapability, mockManager); List<CommitInfo> expected = new LinkedList<CommitInfo>(); CommitInfo ex = new CommitInfo(); ex.setId("ede945e22cba9203ce8a0aae1409e50d36b3db72"); ex.setAuth("Keerath Jaggi <[email protected]> 1401771779 +0530"); ex.setMsg("init commit\n"); ex.setDate("Tue Jun 03 10:32:59 IST 2014"); expected.add(ex); cmd_test.setCommits(new Project.NameKey("trial.git"), "kee"); assertEquals(expected, cmd_test.getCommits()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Commit> getAllCommits(Project project, String branchName);", "public List<String> getAllCommits() {\n return Utils.plainFilenamesIn(Main.ALL_COMMITS);\n }", "public List<Commit> getAllCommits(Repository repo) throws Exception {\n List<Commit> commits = new ArrayList<>();\n RevWalk walk = this.createAllRevsWalk(repo, null);\n walk.markStart(walk.parseCommit(repo.resolve(\"HEAD\")));\n for (RevCommit r: walk){\n if(r.getParents().length>0){\n Commit c = getCommit(repo, r, r.getParent(0));\n commits.add(c);\n }else{\n Commit c = new Commit(r);\n commits.add(c);\n }\n\n }\n return commits;\n }", "Git getGit();", "@Test\n\tpublic void noNotesInRepository() throws Exception {\n\t\tadd(\"test.txt\", \"abc\");\n\n\t\tCommitCountFilter count = new CommitCountFilter();\n\t\tCommitFinder finder = new CommitFinder(testRepo);\n\t\tfinder.setFilter(new AndCommitFilter(new NoteFilter(), count)).find();\n\t\tassertEquals(0, count.getCount());\n\t}", "@Test\n public void testCommitsApi() throws Exception\n {\n \n \n RequestBuilder builder = new RequestBuilder(\"GET\");\n Request request = builder.setUrl(\n UriTemplate.fromTemplate(BASE)\n .append(PATH_EXPRESSION)\n .set(\"user\", \"damnhandy\")\n .set(\"repo\", \"Handy-URI-Templates\")\n .set(\"function\",\"commits\")\n .expand()).build();\n Assert.assertEquals(\"https://api.github.com/repos/damnhandy/Handy-URI-Templates/commits\", request.getUrl());\n executeRequest(createClient(), request);\n }", "@Test\n\tpublic void diffCommits() throws Exception {\n\t\tRepository repo = new FileRepository(testRepo);\n\t\tRevCommit commit1 = add(\"test.txt\", \"content\");\n\t\tRevCommit commit2 = add(\"test.txt\", \"content2\");\n\t\tTreeWalk walk = TreeUtils.diffWithCommits(repo, commit1, commit2);\n\t\tassertNotNull(walk);\n\t\tassertEquals(2, walk.getTreeCount());\n\t\tassertTrue(walk.next());\n\t\tassertEquals(\"test.txt\", walk.getPathString());\n\t\tassertEquals(BlobUtils.getId(repo, commit1, \"test.txt\"),\n\t\t\t\twalk.getObjectId(0));\n\t\tassertEquals(BlobUtils.getId(repo, commit2, \"test.txt\"),\n\t\t\t\twalk.getObjectId(1));\n\t\tassertFalse(walk.next());\n\t}", "@Test\n public void testCommitsApiWithSpecificCommit() throws Exception\n {\n \n \n RequestBuilder builder = new RequestBuilder(\"GET\");\n Request request = builder.setUrl(\n UriTemplate.fromTemplate(BASE)\n .append(PATH_EXPRESSION)\n .set(\"user\", \"damnhandy\")\n .set(\"repo\", \"Handy-URI-Templates\")\n .set(\"function\",\"commits\")\n .set(\"id\",\"7cdf7ff75f8ede138228ceff7f5a1c18a5835b94\")\n .expand()).build();\n Assert.assertEquals(\"https://api.github.com/repos/damnhandy/Handy-URI-Templates/commits/7cdf7ff75f8ede138228ceff7f5a1c18a5835b94\", request.getUrl());\n executeRequest(createClient(), request);\n }", "public List<Commit> getAllCommits() {\r\n return datastore.createQuery(Commit.class)\r\n .field(\"vcs_system_id\").equal(vcSystem.getId())\r\n .asList();\r\n }", "@Test\n public void testCorrectUsage() throws\n IOException, AuthorCommitsFailedException {\n EasyMock.expect(mockManager.openRepository(new Project.NameKey(\"trial\")))\n .andReturn(\n RepositoryCache.open(FileKey.lenient(new File(\n \"../../review_site/git\", \"trial.git\"), FS.DETECTED)));\n EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability);\n EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true);\n replay(mockUser, mockCapability, mockManager);\n List<CommitInfo> expected = new LinkedList<CommitInfo>();\n CommitInfo ex = new CommitInfo();\n ex.setId(\"ede945e22cba9203ce8a0aae1409e50d36b3db72\");\n ex.setAuth(\"Keerath Jaggi <[email protected]> 1401771779 +0530\");\n ex.setMsg(\"init commit\\n\");\n ex.setDate(\"Tue Jun 03 10:32:59 IST 2014\");\n expected.add(ex);\n cmd_test.setCommits(new Project.NameKey(\"trial\"), \"kee\");\n assertEquals(expected, cmd_test.getCommits());\n }", "@Test\n\tpublic void noteInRepository() throws Exception {\n\t\tadd(\"test.txt\", \"abc\");\n\t\tnote(\"a note\");\n\t\tadd(\"test.txt\", \"abcd\");\n\n\t\tCommitCountFilter count = new CommitCountFilter();\n\t\tCommitFinder finder = new CommitFinder(testRepo);\n\t\tfinder.setFilter(new AndCommitFilter(new NoteFilter(), count)).find();\n\t\tassertEquals(1, count.getCount());\n\t}", "public GitCommit[] getCommits()\n {\n List <GitCommit> list = new ArrayList(); for(GitCommit c=getCommit(); c!=null; c = c.getParent()) list.add(c);\n return list.toArray(new GitCommit[list.size()]);\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withCommitsEmptyRevision() throws IOException {\n\t\tTreeUtils.withCommits(new FileRepository(testRepo), new String[0]);\n\t}", "GitFile[] getFilesImpl() throws Exception\n {\n TreeWalk twalk = new TreeWalk(getRepo()); twalk.addTree(_rev);\n List <GitFile> files = new ArrayList();\n while(twalk.next()) {\n ObjectId id = twalk.getObjectId(0);\n RevObject rid = getRevObject(id);\n String path = _path + (_path.length()>1? \"/\" : \"\") + twalk.getNameString();\n GitFile child = rid instanceof RevTree? new GitTree((RevTree)rid, path) : new GitBlob((RevBlob)rid, path);\n files.add(child);\n }\n return files.toArray(new GitFile[files.size()]);\n }", "public List<Commit> commits(String owner, String repo, String sha, long page) {\n return apiClient.deserializeAsList(apiClient.get(String.format(\"/repos/%s/%s/commits\", owner, repo),\n Maps.NEW(\"sha\", sha)\n .add(\"page\", page),\n null),\n Commit.class);\n }", "Set<String> getBranchNames(TRepo repo);", "@Test\n\tpublic void createRepo() throws NoFilepatternException, GitAPIException, IOException {\n\t\t\n\t\t\n\t\tFile baseDir = Files.createTempDir(\"gitrepo\");\n\t\tFile gitDir = new File(baseDir, \".git\");\n\n\t\tRepository repo = new FileRepositoryBuilder().setGitDir(gitDir).setWorkTree(baseDir).build();\n\t\trepo.create();\n\n\t\tGit git = new Git(repo);\n\n\t\tFiles.write(\"Nothing\", new File(baseDir,\"my.sample\"));\n\t\t\n\t\tgit.add().addFilepattern(\"*.sample\").call();\n\t\tgit.commit().setMessage(\"first commit\").call();\n\t\t\n\t\tgit.branchCreate().setName(\"new-branch\").call();\n\t\tgit.checkout().setName(\"new-branch\").call();\n\t\t\n\t\tList<Ref> branches = git.branchList().call();\n\t\t\n\t\tSystem.out.println(\"Branches: \"+branches);\n\t\t\n\t\tAssert.assertTrue(\"clean up\",Files.deleteAll(baseDir));\n\t}", "public void findCommits(String logMsg) {\n List<String> allCommitID = getAllCommits();\n int countTotal = 0;\n for (String cmt: allCommitID) {\n File commitFile = new File(Main.ALL_COMMITS, cmt);\n Commit associatedCommit =\n Utils.readObject(commitFile, Commit.class);\n if (associatedCommit.getLogMsg().equals(logMsg)) {\n System.out.println(cmt);\n countTotal = countTotal + 1;\n }\n }\n if (countTotal == 0) {\n System.out.println(\"Found no commit with that message.\");\n }\n }", "public Set<GHRepository> listDependents(GHRepository repo) throws IOException {\n\t\treturn listDependents(repo, 1, true);\n\t}", "@Override\n\tpublic List<GitResponseVO> getRepositoryList(String repoUrl) throws GitException {\n\t\t\n\t\tlogger.info(\"getRepositoryList method Begins\");\n\t\t//String repoUrl=null;\n\t\tList<GitResponseVO> gitResponseList =null;\n\t\t\n\t\tlogger.info(\"Repo URL ->>> \"+repoUrl);\n\t\ttry {\n\t\t\t// Fetches the repository list post fetching the repo URL\n\t\t\tif(!repoUrl.equalsIgnoreCase(GitConstants.NOT_FOUND)) {\n\t\t\t\t\n\t\t\t\tHttpHeaders headers = new HttpHeaders();\n\t\t\t\theaders.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n\t\t\t\tHttpEntity<String> entity = new HttpEntity<String>(\"parameters\", headers);\n\n\t\t\t\tResponseEntity<String> result = restTemplate.exchange(repoUrl, HttpMethod.GET, entity, String.class);\n\t\t\t\t\n\t\t\t\tgitResponseList = JsonMapperUtil.getRepositoryDetails(result.getBody());\n\n\t\t\t\tlogger.info(\"Repo List -> \"+gitResponseList.size());\n\n\t\t\t\tfor(GitResponseVO res: gitResponseList) {\n\t\t\t\t\tSystem.out.println(res.toString());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tlogger.info(\"User Id not Found\");\n\t\t\t}\n\t\t\t\t\t\t\n\n\t\t}catch (Exception e) {\n\t\t\tthrow new GitException(e.getMessage());\n\t\t}\n\t\t\n\t\t\n\t\treturn gitResponseList;\n\t}", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withCommitsEmptyCommits() throws IOException {\n\t\tTreeUtils.withCommits(new FileRepository(testRepo), new ObjectId[0]);\n\t}", "@Test\n public void t2() {\n List<StableCommit> stableCommitList = getStableCommits().stream().filter(commit ->\n commit.getFilePath().equals(\"src/java/org/apache/commons/lang/builder/HashCodeBuilder.java\") && commit.getLevel() == 1).collect(Collectors.toList());\n // it has been through 9 different refactorings\n List<RefactoringCommit> refactoringCommitList = getRefactoringCommits().stream().filter(commit ->\n commit.getFilePath().equals(\"src/java/org/apache/commons/lang/builder/HashCodeBuilder.java\")).collect(Collectors.toList());\n\n Assert.assertEquals(4, stableCommitList.size());\n Assert.assertEquals(8, refactoringCommitList.size());\n\n Assert.assertEquals(\"5c40090fecdacd9366bba7e3e29d94f213cf2633\", stableCommitList.get(0).getCommit());\n\n // then, it was refactored two times (in commit 5c40090fecdacd9366bba7e3e29d94f213cf2633)\n Assert.assertEquals(\"5c40090fecdacd9366bba7e3e29d94f213cf2633\", refactoringCommitList.get(0).getCommit());\n Assert.assertEquals(\"5c40090fecdacd9366bba7e3e29d94f213cf2633\", refactoringCommitList.get(1).getCommit());\n\n // It appears 3 times\n Assert.assertEquals(\"379d1bcac32d75e6c7f32661b2203f930f9989df\", stableCommitList.get(1).getCommit());\n Assert.assertEquals(\"d3c425d6f1281d9387f5b80836ce855bc168453d\", stableCommitList.get(2).getCommit());\n Assert.assertEquals(\"3ed99652c84339375f1e6b99bd9c7f71d565e023\", stableCommitList.get(3).getCommit());\n }", "@Test\n public void testGetRepos() throws Exception\n {\n String userName = \"ahmed-fathy-aly\";\n List<Repo> repoList = gitHubAPIService.getRepos(userName);\n\n assertNotNull(repoList);\n assertTrue(repoList.size() > 0);\n for (Repo repo : repoList)\n {\n assertNotNull(repo.getName());\n assertNotNull(repo.getId());\n }\n }", "@Test(expected = RepositoryNotFoundException.class)\n public void testNonExistingRepository() throws AuthorCommitsFailedException,\n IOException{\n EasyMock.expect(mockManager.openRepository(new Project.NameKey(\"abcdefg\")))\n .andReturn(\n RepositoryCache.open(FileKey.lenient(new File(\n \"../../review_site/git\", \"abcdefg.git\"), FS.DETECTED)));\n EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability);\n EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true);\n replay(mockUser, mockCapability, mockManager);\n cmd_test.setCommits(new Project.NameKey(\"abcdefg\"), \"kee\");\n }", "public void scanRepo(FileDiffNotifier... notifiers) {\n try {\n final Git git = openRepo();\n log.debug(\"Scanning repo {} for commits into {}\", git.getRepository().getIdentifier(), git.getRepository().getBranch());\n ObjectId branchId = git.getRepository()\n .exactRef(\"refs/heads/\" + git.getRepository().getBranch())\n .getObjectId();\n\n // we don't include merges because that could double-count\n // and would also put us a the mercy of whether or not the\n // merge was fast-forwarded or not\n LogCommand getLog = git.log()\n .setRevFilter(RevFilter.NO_MERGES)\n .add(branchId);\n\n getLog.call().forEach(commit -> {\n log.debug(\"{} {} {}\", commit.getAuthorIdent(), commit, commit.getFullMessage());\n if (commit.getParents().length > 0) {\n RevCommit parent = commit.getParent(0);\n manageDiffs(git, commit, parent, notifiers);\n }\n\n });\n } catch (IOException | GitAPIException e) {\n throw new GitException(\"Failed to scan repo in: \" + workingDirectory, e);\n }\n }", "private static void processRepository(File repo) {\n System.out.println(\"Processing repository: \" + repo);\n for (File fileOrDir : repo.listFiles()) {\n if (fileOrDir.isDirectory()) {\n processModule(fileOrDir);\n }\n }\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withCommitsNullRevision() throws IOException {\n\t\tTreeUtils.withCommits(new FileRepository(testRepo), (String[]) null);\n\t}", "public void addCommit(Commit commit) throws IOException {\n String fileName = commit.getShaCode();\n File actualFile = new File(Main.ALL_COMMITS, fileName);\n if (!actualFile.exists()) {\n actualFile.createNewFile();\n }\n Utils.writeObject(actualFile, commit);\n }", "List<ChangedFile> getChangedFiles(Project project);", "private boolean commitChecker() {\n\t\tFile file = new File(stagePath);\n\t\tFile[] files = file.listFiles();\n\t\tif (files.length == 0 && untrackedFiles.size() == 0) {\n\t\t\tSystem.out.println(\"No changes added to the commit.\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static List<Revision> fromRepositoryExpression(\n RepositoryExpression repoEx, ProjectContext context) {\n Repository repo = context.repositories.get(repoEx.getRepositoryName());\n if (repo == null) {\n throw new MoeProblem(\"No repository \" + repoEx.getRepositoryName());\n }\n if (Strings.isNullOrEmpty(repoEx.getOption(\"revision\"))) {\n throw new MoeProblem(\n \"Repository expression must have a 'revision' option, e.g. internal(revision=3,4,5).\");\n }\n\n RevisionHistory rh = repo.revisionHistory;\n ImmutableList.Builder<Revision> revBuilder = ImmutableList.builder();\n for (String revId : repoEx.getOption(\"revision\").split(\",\")) {\n revBuilder.add(rh.findHighestRevision(revId));\n }\n return revBuilder.build();\n }", "@Test\n public void fileAddedViaChangeListShouldBeAddedToHg() throws Exception {\n final VirtualFile vf = createFileInCommand(AFILE, INITIAL_FILE_CONTENT);\n myChangeListManager.ensureUpToDate();\n myChangeListManager.addUnversionedFilesToVcs(vf);\n verifyStatus(added(AFILE));\n myChangeListManager.checkFilesAreInList(true, vf);\n }", "@Test\n public void fileAddedViaHgShouldBeAddedInChangeList() throws Exception {\n final VirtualFile vf = createFileInCommand(AFILE, INITIAL_FILE_CONTENT);\n ProcessOutput processOutput = addAll();\n LOG.debug(processOutput.getStdout());\n LOG.debug(processOutput.getStderr());\n myChangeListManager.checkFilesAreInList(true, vf);\n }", "@Repository\npublic interface CommitRepository extends JpaRepository<CommitEntity,Long> {\n\n Optional<CommitEntity> findByCommitId(String commitId);\n boolean existsByCommitId(String commitId);\n List<CommitEntity> findAllByClassFile(ClassFileEntity classFile);\n Page<CommitEntity> findAllByClassFile_Project(ProjectEntity project, Pageable pageable);\n}", "public List<String> processRepoRes(List<GitRepositories> repos){\n return repos.stream().map(repo -> repo.getName()).collect(Collectors.toList());\n }", "List<String> branches();", "public GitFile[] getFiles() { return null; }", "void fetch(String repository, String refspec) throws GitException, InterruptedException;", "public List<FileAction> getFileActions(SmallCommit commit) {\r\n return datastore.createQuery(FileAction.class)\r\n .field(\"commit_id\")\r\n .equal(commit.getId()).asList();\r\n }", "@Test\r\n public void testGetChangedFileList() throws IOException {\n helper.exportRevChangedFiles(PJ_ROOT, 1, LOCAL_ROOT);\r\n helper.exportRevChangedFiles(PJ_ROOT, 4, LOCAL_ROOT);\r\n //helper.exportRevChangedFiles(PJ_ROOT, -1, LOCAL_ROOT);\r\n //helper.exportRevChangedFiles(9, 9, true);\r\n }", "@Test(dataProvider = \"doFetchInSeparateProcess\", dataProviderClass = FetchOptionsDataProvider.class)\n public void testGetContentSubmodules(boolean fetchInSeparateProcess) throws Exception {\n System.setProperty(\"teamcity.git.fetch.separate.process\", String.valueOf(fetchInSeparateProcess));\n GitVcsSupport support = getSupport();\n VcsRoot root = getRoot(\"patch-tests\", true);\n String version = support.getCurrentVersion(root);\n byte[] data1 = support.getContent(\"submodule/file.txt\", root, version);\n byte[] data2 = FileUtil.loadFileBytes(dataFile(\"content\", \"submodule file.txt\"));\n assertEquals(data1, data2);\n }", "@Test(dataProvider = \"doFetchInSeparateProcess\", dataProviderClass = FetchOptionsDataProvider.class)\n public void testCollectBuildChangesSubmodulesIgnored(boolean fetchInSeparateProcess) throws Exception {\n System.setProperty(\"teamcity.git.fetch.separate.process\", String.valueOf(fetchInSeparateProcess));\n GitVcsSupport support = getSupport();\n VcsRoot root = getRoot(\"patch-tests\");\n final List<ModificationData> ms =\n support.collectChanges(root, BEFORE_SUBMODULE_ADDED_VERSION, SUBMODULE_ADDED_VERSION, new CheckoutRules(\"\"));\n assertEquals(1, ms.size());\n ModificationData m1 = ms.get(0);\n assertEquals(\"added submodule\\n\", m1.getDescription());\n assertEquals(2, m1.getChanges().size());\n VcsChange ch11 = m1.getChanges().get(0);\n assertEquals(VcsChange.Type.ADDED, ch11.getType());\n assertEquals(\".gitmodules\", ch11.getFileName());\n VcsChange ch12 = m1.getChanges().get(1);\n assertEquals(\"submodule\", ch12.getFileName());\n assertEquals(VcsChange.Type.ADDED, ch12.getType());\n final List<ModificationData> ms2 =\n support.collectChanges(root, SUBMODULE_ADDED_VERSION, SUBMODULE_MODIFIED_VERSION, new CheckoutRules(\"\"));\n assertEquals(1, ms.size());\n ModificationData m2 = ms2.get(0);\n assertEquals(\"submodule updated\\n\", m2.getDescription());\n assertEquals(1, m2.getChanges().size());\n VcsChange ch21 = m2.getChanges().get(0);\n assertEquals(\"submodule\", ch21.getFileName());\n assertEquals(VcsChange.Type.CHANGED, ch21.getType());\n }", "public List<GitHook> gitHooks(String owner, String repo) {\n return apiClient.deserializeAsList(apiClient.get(String.format(\"/repos/%s/%s/hooks/git\", owner, repo)), GitHook.class);\n }", "private ArrayList getCommitteList() {\r\n /**\r\n * This sends the functionType as 'G' to the servlet indicating to\r\n * get the details of all existing committees with the required\r\n * information\r\n */\r\n \r\n Vector vecBeans = new Vector();\r\n String connectTo = CoeusGuiConstants.CONNECTION_URL + \"/comMntServlet\";\r\n RequesterBean request = new RequesterBean();\r\n request.setDataObject(\"\"+CoeusConstants.IACUC_COMMITTEE_TYPE_CODE);\r\n request.setFunctionType(COMMITTEE_LIST_FOR_MODULE);\r\n AppletServletCommunicator comm = new AppletServletCommunicator(\r\n connectTo, request);\r\n /**\r\n * Updated for REF ID :0003 Feb'21 2003.\r\n * Hour Glass implementation while DB Trsactions Wait\r\n * by Subramanya Feb' 21 2003\r\n */\r\n setCursor( new Cursor( Cursor.WAIT_CURSOR ) );\r\n comm.send();\r\n ResponderBean response = comm.getResponse();\r\n setCursor( new Cursor( Cursor.DEFAULT_CURSOR ) );\r\n \r\n if (response.isSuccessfulResponse()) {\r\n vecBeans = response.getDataObjects();\r\n }\r\n return new ArrayList(vecBeans);\r\n }", "private List<ChangedFile> getChangedFiles(Repository repository, List<DiffEntry> diffs) throws IOException {\n List<ChangedFile> files = new ArrayList<>();\n DiffFormatter diffFormatter = new DiffFormatter(DisabledOutputStream.INSTANCE);\n diffFormatter.setRepository(repository);\n diffFormatter.setContext(0);\n for (DiffEntry entry : diffs) {\n FileHeader header = diffFormatter.toFileHeader(entry);\n files.add(this.getChangedFile(header));\n }\n diffFormatter.close();\n return files;\n }", "@Test(dataProvider = \"doFetchInSeparateProcess\", dataProviderClass = FetchOptionsDataProvider.class)\n public void testCollectBuildChanges(boolean fetchInSeparateProcess) throws Exception {\n System.setProperty(\"teamcity.git.fetch.separate.process\", String.valueOf(fetchInSeparateProcess));\n GitVcsSupport support = getSupport();\n VcsRoot root = getRoot(\"master\");\n // ensure that all revisions reachable from master are fetched\n final List<ModificationData> ms = support.collectChanges(root, VERSION_TEST_HEAD, CUD1_VERSION, new CheckoutRules(\"\"));\n assertEquals(2, ms.size());\n ModificationData m2 = ms.get(1);\n assertEquals(\"The second commit\\n\", m2.getDescription());\n assertEquals(3, m2.getChanges().size());\n for (VcsChange ch : m2.getChanges()) {\n assertEquals(VcsChange.Type.ADDED, ch.getType());\n assertEquals(\"dir/\", ch.getFileName().substring(0, 4));\n }\n ModificationData m1 = ms.get(0);\n assertEquals(\"more changes\\n\", m1.getDescription());\n assertEquals(CUD1_VERSION, m1.getVersion());\n assertEquals(3, m1.getChanges().size());\n VcsChange ch10 = m1.getChanges().get(0);\n assertEquals(\"dir/a.txt\", ch10.getFileName());\n assertEquals(CUD1_VERSION, ch10.getAfterChangeRevisionNumber());\n assertEquals(m2.getVersion(), ch10.getBeforeChangeRevisionNumber());\n assertEquals(VcsChange.Type.CHANGED, ch10.getType());\n VcsChange ch11 = m1.getChanges().get(1);\n assertEquals(\"dir/c.txt\", ch11.getFileName());\n assertEquals(VcsChange.Type.ADDED, ch11.getType());\n VcsChange ch12 = m1.getChanges().get(2);\n assertEquals(\"dir/tr.txt\", ch12.getFileName());\n assertEquals(VcsChange.Type.REMOVED, ch12.getType());\n // now check merge commit relatively to the branch\n final List<ModificationData> mms0 = support.collectChanges(root, MERGE_BRANCH_VERSION, MERGE_VERSION, new CheckoutRules(\"\"));\n assertEquals(2, mms0.size());\n // no check the merge commit relatively to the fork\n final List<ModificationData> mms1 = support.collectChanges(root, CUD1_VERSION, MERGE_VERSION, new CheckoutRules(\"\"));\n assertEquals(3, mms1.size());\n ModificationData md1 = mms1.get(0);\n assertFalse(md1.isCanBeIgnored());\n assertEquals(\"merge commit\\n\", md1.getDescription());\n assertEquals(MERGE_VERSION, md1.getVersion());\n assertEquals(3, md1.getChanges().size());\n VcsChange ch20 = md1.getChanges().get(0);\n assertEquals(\"dir/a.txt\", ch20.getFileName());\n assertEquals(VcsChange.Type.REMOVED, ch20.getType());\n VcsChange ch21 = md1.getChanges().get(1);\n assertEquals(\"dir/b.txt\", ch21.getFileName());\n assertEquals(VcsChange.Type.CHANGED, ch21.getType());\n VcsChange ch22 = md1.getChanges().get(2);\n assertEquals(\"dir/q.txt\", ch22.getFileName());\n assertEquals(VcsChange.Type.ADDED, ch22.getType());\n ModificationData md2 = mms1.get(1);\n assertTrue(md2.isCanBeIgnored());\n assertEquals(\"b-mod, d-add\\n\", md2.getDescription());\n assertEquals(MERGE_BRANCH_VERSION, md2.getVersion());\n assertEquals(2, md2.getChanges().size());\n ModificationData md3 = mms1.get(2);\n assertEquals(\"a-mod, c-rm\\n\", md3.getDescription());\n assertEquals(2, md3.getChanges().size());\n // check the case with broken commit\n String missing = GitUtils.makeVersion(GitUtils.versionRevision(CUD1_VERSION).replace('0', 'f'), GitUtils.versionTime(CUD1_VERSION));\n final List<ModificationData> mms2 = support.collectChanges(root, missing, MERGE_VERSION, new CheckoutRules(\"\"));\n assertEquals(4, mms2.size());\n ModificationData mb3 = mms2.get(3);\n assertEquals(GitServerUtil.SYSTEM_USER, mb3.getUserName());\n assertEquals(0, mb3.getChanges().size());\n }", "public List<String> getRepoNames() throws MetaStoreException {\n return gitSpoonMenuController.getRepoNames();\n }", "public void gitThis(){\n\t}", "private static void find(Gitlet currCommit, String[] args) {\n if (args.length != 2) {\n System.out.println(\"Specify which message you are looking for.\");\n return;\n }\n HashMap<String, HashSet<Commit>> messageToCommit = currCommit.tree\n .getMessageToCommits();\n if (!messageToCommit.containsKey(args[1])) {\n System.out.println(\"Found no commit with that message.\");\n\n } else {\n for (Commit x : messageToCommit.get(args[1])) {\n System.out.println(x.getId());\n }\n }\n }", "@Test\n\tpublic void diffRevisions() throws Exception {\n\t\tRepository repo = new FileRepository(testRepo);\n\t\tRevCommit commit1 = add(\"test.txt\", \"content\");\n\t\tRevCommit commit2 = add(\"test.txt\", \"content2\");\n\t\tTreeWalk walk = TreeUtils.diffWithCommits(repo,\n\t\t\t\tConstants.MASTER + \"~1\", Constants.MASTER);\n\t\tassertNotNull(walk);\n\t\tassertEquals(2, walk.getTreeCount());\n\t\tassertTrue(walk.next());\n\t\tassertEquals(\"test.txt\", walk.getPathString());\n\t\tassertEquals(BlobUtils.getId(repo, commit1, \"test.txt\"),\n\t\t\t\twalk.getObjectId(0));\n\t\tassertEquals(BlobUtils.getId(repo, commit2, \"test.txt\"),\n\t\t\t\twalk.getObjectId(1));\n\t\tassertFalse(walk.next());\n\t}", "public static void main(String[] args) {\nSystem.out.println(\"day one example how to use git\");\r\n\t}", "TCommit getCommitForTag(TRepo repo, String tagName);", "public List<FileAction> getFileActions(Commit commit) {\r\n return datastore.createQuery(FileAction.class)\r\n .field(\"commit_id\")\r\n .equal(commit.getId()).asList();\r\n }", "@Test\n\tpublic void getIdWithCommit() throws Exception {\n\t\tRepository repo = new FileRepository(testRepo);\n\t\tRevCommit commit = add(\"d1/f1.txt\", \"content\");\n\t\tassertNull(TreeUtils.getId(repo, commit, \"d2/f1.txt\"));\n\t\tassertNull(TreeUtils.getId(repo, commit, \"d1/f1.txt\"));\n\t\tObjectId treeId = TreeUtils.getId(repo, commit, \"d1\");\n\t\tassertNotNull(treeId);\n\t\tassertFalse(treeId.equals(commit.getTree()));\n\t\tassertNull(BlobUtils.getId(repo, commit, \"d1\"));\n\t\tassertFalse(treeId.equals(BlobUtils.getId(repo, commit, \"d1/f1.txt\")));\n\t}", "@Test\n public void filesInDirsAddedViaChangeListShouldBeAddedToHg() throws Exception {\n final VirtualFile afile = createFileInCommand(AFILE, INITIAL_FILE_CONTENT);\n final VirtualFile bdir = createDirInCommand(myWorkingCopyDir, BDIR);\n final VirtualFile bfile = createFileInCommand(bdir, BFILE, INITIAL_FILE_CONTENT);\n myChangeListManager.ensureUpToDate();\n myChangeListManager.addUnversionedFilesToVcs(afile, bdir, bfile);\n verifyStatus(added(AFILE), added(BFILE_PATH));\n myChangeListManager.checkFilesAreInList(true, afile, bfile);\n }", "Map<Project, JGitStatus> commitChanges(List<Project> projects, String commitMessage, boolean isPushImmediately,\n ProgressListener progressListener);", "@Test(dataProvider = \"doFetchInSeparateProcess\", dataProviderClass = FetchOptionsDataProvider.class)\n public void testCollectBuildChangesSubmodules(boolean fetchInSeparateProcess) throws Exception {\n System.setProperty(\"teamcity.git.fetch.separate.process\", String.valueOf(fetchInSeparateProcess));\n GitVcsSupport support = getSupport();\n VcsRoot root = getRoot(\"patch-tests\", true);\n final List<ModificationData> ms =\n support.collectChanges(root, BEFORE_SUBMODULE_ADDED_VERSION, SUBMODULE_ADDED_VERSION, new CheckoutRules(\"\"));\n assertEquals(1, ms.size());\n ModificationData m1 = ms.get(0);\n assertEquals(\"added submodule\\n\", m1.getDescription());\n assertEquals(2, m1.getChanges().size());\n VcsChange ch11 = m1.getChanges().get(0);\n assertEquals(VcsChange.Type.ADDED, ch11.getType());\n assertEquals(\".gitmodules\", ch11.getFileName());\n VcsChange ch12 = m1.getChanges().get(1);\n assertEquals(\"submodule/file.txt\", ch12.getFileName());\n assertEquals(VcsChange.Type.ADDED, ch12.getType());\n final List<ModificationData> ms2 =\n support.collectChanges(root, SUBMODULE_ADDED_VERSION, SUBMODULE_MODIFIED_VERSION, new CheckoutRules(\"\"));\n assertEquals(1, ms.size());\n ModificationData m2 = ms2.get(0);\n assertEquals(\"submodule updated\\n\", m2.getDescription());\n assertEquals(1, m2.getChanges().size());\n VcsChange ch21 = m2.getChanges().get(0);\n assertEquals(\"submodule/new file.txt\", ch21.getFileName());\n assertEquals(VcsChange.Type.ADDED, ch21.getType());\n }", "public interface GitClient {\n\n\t/**\n\t * Instances of the GitClient that are identified by the path of the git\n\t * repository.\n\t */\n\tpublic Map<IPath, GitClient> instances = new HashMap<IPath, GitClient>();\n\n\t/**\n\t * Retrieves an existing GitClient instance or creates a new instance if there\n\t * is no instance for the given path yet.\n\t * \n\t * @return GitClient instance.\n\t */\n\tpublic static GitClient getOrCreate() {\n\t\tIPath path = ConfigPersistenceManager.getPathToGit();\n\t\tString reference = ConfigPersistenceManager.getBranch();\n\t\tString projectKey = ConfigPersistenceManager.getProjectKey();\n\t\treturn getOrCreate(path, reference, projectKey);\n\t}\n\n\t/**\n\t * Retrieves an existing GitClient instance or creates a new instance if there\n\t * is no instance for the given path yet.\n\t * \n\t * @param path\n\t * to the .git folder.\n\t * @param reference\n\t * git object identifier, e.g., HEAD, refs/heads/master or commit id.\n\t * @param projectKey\n\t * of the associated JIRA project.\n\t * @return GitClient instance.\n\t */\n\tpublic static GitClient getOrCreate(IPath path, String reference, String projectKey) {\n\t\tif (instances.containsKey(path)) {\n\t\t\treturn instances.get(path);\n\t\t}\n\t\tGitClient gitClient = new GitClientImpl(path, reference, projectKey);\n\t\tinstances.put(path, gitClient);\n\t\treturn gitClient;\n\t}\n\n\t/**\n\t * Retrieve the commit message for a given line from a blamed file as a\n\t * RevCommit.\n\t * \n\t * @param filePath\n\t * path to the file to be blamed.\n\t * @param line\n\t * the line that is to be analyzed.\n\t * @return {@link GitCommit} object.\n\t */\n\tGitCommit getCommitForLine(IPath filePath, int line);\n\n\t/**\n\t * Retrieve the commit message for a given line from a blamed file.\n\t * \n\t * @param filePath\n\t * path to the file to be blamed.\n\t * @param line\n\t * the line that is to be analyzed.\n\t * @return commit message.\n\t */\n\tString getCommitMessageForLine(IPath filePath, int line);\n\n\t/**\n\t * Retrieves all commits on the current branch.\n\t * \n\t * @return set of all commits on the current branch as a list of\n\t * {@link GitCommit} objects.\n\t */\n\tList<GitCommit> getCommits();\n\n\t/**\n\t * Retrieve the commits with the JIRA issue key in their commit message.\n\t * \n\t * @param jiraIssueKey\n\t * key for which commits are searched.\n\t * @return commits with the JIRA issue key in their commit message as a list of\n\t * {@link GitCommit} objects.\n\t */\n\tList<GitCommit> getCommitsForJiraIssue(String jiraIssueKey);\n\n\t/**\n\t * Get a map of diff entries and the respective edit lists for a commit.\n\t * \n\t * @param commit\n\t * as a {@link GitCommit} object.\n\t * @return map of diff entries and respective edit lists.\n\t */\n\tMap<DiffEntry, EditList> getDiff(GitCommit commit);\n\n\t/**\n\t * Returns a set of changed files for a commit.\n\t * \n\t * @param commit\n\t * as a {@link GitCommit} object\n\t * @return set of {@link ChangedFile} objects.\n\t */\n\tSet<ChangedFile> getChangedFiles(GitCommit commit);\n\n\t/**\n\t * Returns the jgit git object.\n\t * \n\t * @return jgit git object.\n\t */\n\tGit getGit();\n\n\t/**\n\t * Returns the path to the .git folder.\n\t * \n\t * @return path to the .git folder.\n\t */\n\tIPath getPath();\n\n\t/**\n\t * Show what author and revision last modified each line of a file.\n\t * \n\t * @param filePath\n\t * path to the file to be blamed.\n\t * @return git blame result for the given file.\n\t */\n\tBlameResult getGitBlameForFile(IPath filePath);\n\n\t/**\n\t * Get the parent commit for a given commit.\n\t * \n\t * @param commit\n\t * commit as a {@link GitCommit} object.\n\t * @return parent commit as a {@link GitCommit} object.\n\t */\n\tGitCommit getParent(GitCommit commit);\n\n\t/**\n\t * Gets the git object identifier, e.g., HEAD, refs/heads/master or commit id.\n\t * \n\t * @return git object identifier.\n\t */\n\tString getReference();\n\n\t/**\n\t * Get the jgit repository object.\n\t * \n\t * @return jgit repository object\n\t */\n\tRepository getRepository();\n\n\t/**\n\t * Sets the git object identifier, e.g., HEAD, refs/heads/master or commit id.\n\t * \n\t * @param reference\n\t * git object identifier.\n\t */\n\tvoid setReference(String reference);\n}", "@Test\n public void testCollectBuildChangesWithBrokenSubmoduleOnLastCommit() throws Exception {\n GitVcsSupport support = getSupport();\n VcsRoot root = getRoot(\"wrong-submodule\", true);\n \n String brokenSubmoduleCommit = GitUtils.makeVersion(\"78cbbed3561de3417467ee819b1795ba14c03dfb\", 1282637672000L);\n try {\n support.collectChanges(root, MERGE_VERSION, brokenSubmoduleCommit, new CheckoutRules(\"\"));\n fail(\"We should throw exception if submodules in the last commit are broken\");\n } catch (Exception e) {\n assertTrue(true);\n }\n }", "public ArrayList<ModelCommit> getCommits() {\n\t\treturn commits;\n\t}", "void replaceWithHEADRevision(Collection<ChangedFile> changedFiles);", "String repoUrl();", "@Override\n public GitFile[] getFiles()\n {\n if(_files==null) try { _files = getFilesImpl(); } catch(Exception e) { throw new RuntimeException(e); }\n return _files;\n }", "@SuppressWarnings(\"unused\") \n\tprivate void extractChanges(Node commit_node, RevCommit m) throws Exception\n\t{\n\n\t\tList<String> commitIds = new ArrayList<String>(); \n\n\t\tcommitIds.add(m.toObjectId().getName());\n\t\t\n\t\tCommitInfoExtractor cie = new CommitInfoExtractor();\n\t\tcie.extractFeatureChanges(commitIds);\n\t\tList<EvolutionStep>steps = cie.getSteps();\n\t\t\n\t\ttry(Transaction tx = DBConnection.getService().beginTx())\n\t\t{\n\t\t\tfor(EvolutionStep step : steps)\n\t\t\t{\n\t\t\t\tFileChangeExtractor file_changes = new FileChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> file_nodes = file_changes.addFileChangesToCommit(step.files, commit_node);\n\t\t\t\t\n\t\t\t\tVMChangeExtractor vm_changes = new VMChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> vm_nodes = vm_changes.addVMChangesToCommit(step.fm_changes, commit_node);\n\t\t\t\t\n\t\t\t\tBuildChangeExtractor build_changes = new BuildChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> build_nodes = build_changes.addBuildChangesToCommit(step.build_changes, commit_node);\n\t\t\t\t\n\t\t\t\tCodeChangeExtractor code_changes = new CodeChangeExtractor(commit_parents_list,files);\n\t\t\t\tList<Node> code_nodes = code_changes.addCodeChangesToCommit(step.impl_changes, commit_node);\n\n//\t\t\t\tList<EvolutionStep> local = new ArrayList<EvolutionStep>(); local.add(step);\n//\t\t\t\tFeatureOrientedChangeExtractor dataextractor = new FeatureOrientedChangeExtractor(local);\n//\t\t\t\tdataextractor.buildFeatureChanges();\n//\t\t\t\t\n//\t\t\t\tList<FeatureOrientedChange> changes = dataextractor.getFeatureChanges();\n//\t\n//\t\t\t\tList<Node> focs = new ArrayList<Node>();\n//\t\t\t\tfor(FeatureOrientedChange c : changes)\n//\t\t\t\t{\n//\t\t\t\t\tNode foc_node = createFeatureOrientedChangeForCommit(c);\n//\t\t\t\t\tfocs.add(foc_node);\n//\t\t\t\t\tlink_file_and_vm_changes(c,foc_node,file_nodes, vm_nodes,build_nodes,code_nodes); \n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t\tMap<String,Node> known_focs = buildFOCMap(focs);\n//\t\t\t\tlink_mapping_artefacts(known_focs,build_nodes);\n//\t\t\t\tlink_code_artefacts(known_focs,code_nodes);\n\t\t\t}\n\t\t\ttx.success();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tthrow new Exception(\"Failed to create Neo4j nodes - \", e);\n\t\t}\n\t}", "@Test\n public void filesInDirsAddedViaHgShouldBeAddedInChangeList() throws Exception {\n final VirtualFile afile = createFileInCommand(AFILE, INITIAL_FILE_CONTENT);\n final VirtualFile bdir = createDirInCommand(myWorkingCopyDir, BDIR);\n final VirtualFile bfile = createFileInCommand(bdir, BFILE, INITIAL_FILE_CONTENT);\n ProcessOutput processOutput = addAll();\n LOG.debug(processOutput.getStdout());\n LOG.debug(processOutput.getStderr());\n verifyStatus(added(AFILE), added(BFILE_PATH));\n myChangeListManager.checkFilesAreInList(true, afile, bfile);\n }", "public static void status() {\n Set branchSet = commitPointers.readBranches().keySet();\n ArrayList<String> sortedBranches = (ArrayList) branchSet.stream().sorted().collect(Collectors.toList());\n String currBranch = commitPointers.readHeadCommit()[0];\n System.out.println(\"=== Branches ===\");\n for (String branch: sortedBranches) {\n if (currBranch.equals(branch)) {\n System.out.println(\"*\" + currBranch);\n } else {\n System.out.println(branch);\n }\n }\n stagingArea = Utils.readObject(STAGING_FILE, HashMap.class);\n\n ArrayList<String> sortedStaged = (ArrayList) stagingArea.keySet().stream().sorted().collect(Collectors.toList());\n System.out.println();\n System.out.println(\"=== Staged Files ===\");\n for (String staged : sortedStaged) {\n System.out.println(staged);\n }\n\n System.out.println();\n System.out.println(\"=== Removed Files ===\");\n stagingRemoveArea = Utils.readObject(STAGING_REMOVE_FILE, HashMap.class);\n ArrayList<String> sortedRemoved = (ArrayList) stagingRemoveArea.keySet().stream().sorted().collect(Collectors.toList());\n for (String removed : sortedRemoved) {\n System.out.println(removed);\n }\n System.out.println();\n\n System.out.println(\"=== Modifications Not Staged For Commit ===\");\n\n Commit Head = Utils.readObject(Utils.join(Commit.COMMIT_FOLDER, commitPointers.readHeadCommit()[1] + \".txt\"), Commit.class);\n //File blobs contains a SHAID + file name\n\n HashMap<String, String> modUntracked = new HashMap<>();\n\n //iterates through head Blobs\n for (HashMap.Entry<String, String> headfileBlob : Head.fileBlobs.entrySet()) {\n\n File cwdBFile = Utils.join(CWD, headfileBlob.getKey());\n\n if (!cwdBFile.exists() && !stagingRemoveArea.containsKey(headfileBlob.getKey())) {\n modUntracked.put(headfileBlob.getKey(), \"(deleted)\");\n }\n else if (cwdBFile.exists()){\n\n Blob tempBlob = new Blob(headfileBlob.getKey(), cwdBFile);\n String tempBlobId = Utils.sha1(Utils.serialize(tempBlob));\n\n\n if(!tempBlobId.equals(headfileBlob.getValue())) {\n //if not in staging area\n if (!stagingArea.containsKey(headfileBlob.getKey())) {\n modUntracked.put(headfileBlob.getKey(), \"(modified)\");\n }\n //TODO: IS THIS PART NECCESARY?\n else if (stagingArea.containsKey(headfileBlob.getKey()) && !stagingArea.get(headfileBlob.getKey()).equals(headfileBlob.getValue())) {\n modUntracked.put(headfileBlob.getKey(), \"(modified)\");\n }\n }\n }\n }\n\n ArrayList<String> sortedModNames = (ArrayList) modUntracked.keySet().stream().sorted().collect(Collectors.toList());\n for (String modFileName : sortedModNames){\n System.out.println(modFileName + \" \" + modUntracked.get(modFileName));\n }\n System.out.println();\n\n\n\n ArrayList<String> untracked = new ArrayList<>();\n System.out.println(\"=== Untracked Files ===\");\n for (String cwdfile : CWD.list()) {\n if(!cwdfile.equals(\".gitlet\")) {\n File currfile = Utils.join(CWD, cwdfile);\n if (currfile.exists() && !Head.fileBlobs.containsKey(cwdfile)) {\n untracked.add(cwdfile);\n }\n }\n }\n\n untracked = (ArrayList) untracked.stream().sorted().collect(Collectors.toList());\n\n for (String untrackedName : untracked){\n System.out.println(untrackedName);\n }\n }", "boolean isBareRepository(String GIT_DIR) throws GitException, InterruptedException;", "@Override\n public List<GEMFile> findByExtension(String extension) {\n List<GEMFile> l = Lists.newArrayList();\n List<GEMFile> list = gemFileDb.getValues();\n for (GEMFile f : list) {\n if (f.getExtension().toLowerCase().contains(extension.toLowerCase())) {\n l.add(f);\n }\n }\n return l;\n }", "private HelloGitUtil(){\n\t}", "private static Commit findSplitBranch(Gitlet currCommit, String[] args) {\n TreeSet<Commit> currCommits = currCommit.tree.getCommits();\n TreeSet<Commit> mergeCommits = currCommit.tree.getCommits(args[1]);\n Commit splitCommit = null;\n for (Commit x : currCommits) {\n if (mergeCommits.contains(x)) {\n splitCommit = x;\n break;\n }\n }\n return splitCommit;\n }", "@Test(dataProvider = \"doFetchInSeparateProcess\", dataProviderClass = FetchOptionsDataProvider.class)\n public void testConcurrentCollectBuildChanges(boolean fetchInSeparateProcess) throws Exception {\n System.setProperty(\"teamcity.git.fetch.separate.process\", String.valueOf(fetchInSeparateProcess));\n \n final GitVcsSupport support = getSupport();\n final List<Exception> errors = Collections.synchronizedList(new ArrayList<Exception>());\n \n Runnable r1 = new Runnable() {\n public void run() {\n try {\n // ensure that all revisions reachable from master are fetched\n final VcsRoot root = getRoot(\"master\");\n final List<ModificationData> ms = support.collectChanges(root, VERSION_TEST_HEAD, CUD1_VERSION, new CheckoutRules(\"\"));\n assertEquals(2, ms.size());\n ModificationData m2 = ms.get(1);\n assertEquals(\"The second commit\\n\", m2.getDescription());\n assertEquals(3, m2.getChanges().size());\n for (VcsChange ch : m2.getChanges()) {\n assertEquals(VcsChange.Type.ADDED, ch.getType());\n assertEquals(\"dir/\", ch.getFileName().substring(0, 4));\n }\n ModificationData m1 = ms.get(0);\n assertEquals(\"more changes\\n\", m1.getDescription());\n assertEquals(CUD1_VERSION, m1.getVersion());\n assertEquals(3, m1.getChanges().size());\n VcsChange ch10 = m1.getChanges().get(0);\n assertEquals(\"dir/a.txt\", ch10.getFileName());\n assertEquals(CUD1_VERSION, ch10.getAfterChangeRevisionNumber());\n assertEquals(m2.getVersion(), ch10.getBeforeChangeRevisionNumber());\n assertEquals(VcsChange.Type.CHANGED, ch10.getType());\n VcsChange ch11 = m1.getChanges().get(1);\n assertEquals(\"dir/c.txt\", ch11.getFileName());\n assertEquals(VcsChange.Type.ADDED, ch11.getType());\n VcsChange ch12 = m1.getChanges().get(2);\n assertEquals(\"dir/tr.txt\", ch12.getFileName());\n assertEquals(VcsChange.Type.REMOVED, ch12.getType());\n } catch (Exception e) {\n errors.add(e);\n }\n }\n };\n \n Runnable r2 = new Runnable() {\n public void run() {\n try {\n // now check merge commit relatively to the branch\n final VcsRoot root = getRoot(\"master\");\n final List<ModificationData> mms0 = support.collectChanges(root, MERGE_BRANCH_VERSION, MERGE_VERSION, new CheckoutRules(\"\"));\n assertEquals(2, mms0.size());\n } catch (Exception e) {\n errors.add(e);\n }\n }\n };\n \n Runnable r3 = new Runnable() {\n public void run() {\n try {\n // no check the merge commit relatively to the fork\n final VcsRoot root = getRoot(\"master\");\n final List<ModificationData> mms1 = support.collectChanges(root, CUD1_VERSION, MERGE_VERSION, new CheckoutRules(\"\"));\n assertEquals(3, mms1.size());\n ModificationData md1 = mms1.get(0);\n assertFalse(md1.isCanBeIgnored());\n assertEquals(\"merge commit\\n\", md1.getDescription());\n assertEquals(MERGE_VERSION, md1.getVersion());\n assertEquals(3, md1.getChanges().size());\n VcsChange ch20 = md1.getChanges().get(0);\n assertEquals(\"dir/a.txt\", ch20.getFileName());\n assertEquals(VcsChange.Type.REMOVED, ch20.getType());\n VcsChange ch21 = md1.getChanges().get(1);\n assertEquals(\"dir/b.txt\", ch21.getFileName());\n assertEquals(VcsChange.Type.CHANGED, ch21.getType());\n VcsChange ch22 = md1.getChanges().get(2);\n assertEquals(\"dir/q.txt\", ch22.getFileName());\n assertEquals(VcsChange.Type.ADDED, ch22.getType());\n ModificationData md2 = mms1.get(1);\n assertTrue(md2.isCanBeIgnored());\n assertEquals(\"b-mod, d-add\\n\", md2.getDescription());\n assertEquals(MERGE_BRANCH_VERSION, md2.getVersion());\n assertEquals(2, md2.getChanges().size());\n ModificationData md3 = mms1.get(2);\n assertEquals(\"a-mod, c-rm\\n\", md3.getDescription());\n assertEquals(2, md3.getChanges().size());\n } catch (Exception e) {\n errors.add(e);\n }\n }\n };\n \n Runnable r4 = new Runnable() {\n public void run() {\n try {\n // check the case with broken commit\n final VcsRoot root = getRoot(\"master\");\n String missing = GitUtils.makeVersion(GitUtils.versionRevision(CUD1_VERSION).replace('0', 'f'), GitUtils.versionTime(CUD1_VERSION));\n final List<ModificationData> mms2 = support.collectChanges(root, missing, MERGE_VERSION, new CheckoutRules(\"\"));\n assertEquals(4, mms2.size());\n ModificationData mb3 = mms2.get(3);\n assertEquals(GitServerUtil.SYSTEM_USER, mb3.getUserName());\n assertEquals(0, mb3.getChanges().size());\n } catch (Exception e) {\n errors.add(e);\n }\n }\n };\n \n for (int i = 0; i < 50; i++) {\n BaseTestCase.runAsync(4, r1, r2, r3, r4);\n }\n \n if (!errors.isEmpty()) {\n throw errors.get(0);\n }\n }", "public void setCommitList(List<GitCommit> commitList) {\r\n\t\tboolean match = false;\r\n\t\r\n\t\tfor(GitCommit commit: commitList) {\r\n\t\t\r\n\t\t\tString myTicketID = this.getTicketID();\r\n\t\t\tmatch = commit.hasTicketID(myTicketID);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (match) {\r\n\t\t\t\tthis.addGitCommitToCommitList(commit);\r\n\t\t\t\tbreak;\r\n\t\t\t} \r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n public List<GitContributors> getContributorsNames(String userName, String repoName) throws GitException, RepoUserNotFoundException {\n try {\n StrategyContext createGitApi=new StrategyContext (new GitContributorApi());\n String url=createGitApi.createAPI(userName,repoName,\"contributer\");\n ResponseEntity<?> responseEntity = processRequest(url, HttpMethod.GET, getRepoContributorsTypRef());\n List<GitContributors> repos = (List<GitContributors>) responseEntity.getBody();\n if(CollectionUtils.isEmpty(repos)) {throw new RepoUserNotFoundException(REPO_EMPTY);}\n return repos;\n\n } catch (HttpClientErrorException hce) {\n LOGGER.error(\"GitApiImpl :: getRepositories HttpClientErrorException :: \", hce);\n throw new GitException(VALID_REPO);\n }\n }", "BlameResult getGitBlameForFile(IPath filePath);", "private StupidContainer populateFileList() throws Exception {\n\n\t\tString root = getCodeRepo();\n\n\t\tif (root == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tArrayList<String> files = new ArrayList<String>();\n\t\tsearchDFS(new File(root).listFiles(), files);\n\n\t\tString dir = System.getProperty(\"user.dir\");\n\n\t\tif (gitDir == null)\n\t\t\treturn new StupidContainer(files, root);\n\n\t\tcommitCounts = new Hashtable<String, Integer>();\n\t\tProcess p = null;\n\n\t\tif (isOSWindows) {\n\t\t\tp = Runtime.getRuntime().exec(\n\t\t\t\t\t\"cmd /C \" + dir + \"\\\\scripts\\\\gitlog.sh \" + gitDir);\n\t\t} else {\n\t\t\tp = Runtime.getRuntime().exec(\"./scripts/gitlog.sh \" + gitDir);\n\t\t}\n\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\tp.getInputStream()));\n\n\t\tString line = null, name;\n\t\tInteger count;\n\t\twhile ((line = in.readLine()) != null) {\n\t\t\tif (line.contains(\".java\")) {\n\t\t\t\tname = extractName(line);\n\t\t\t\tcount = commitCounts.get(name);\n\t\t\t\tif (count == null)\n\t\t\t\t\tcount = new Integer(0);\n\t\t\t\tcommitCounts.put(name, count + 1);\n\t\t\t}\n\t\t}\n\n\t\tin.close();\n\t\treturn new StupidContainer(files, root, folderName, commitCounts);\n\t}", "public void testGetExtension() throws Exception {\n Object[] test_values = {\n new String[]{\"/foo.bar\", \".bar\"},\n new String[]{\"foo.bar#a\", \".bar\"},\n new String[]{\"foo.bar?b=c\", \".bar\"},\n new String[]{\"foo.bar#a?b=c\", \".bar\"},\n new String[]{\"foo.bar\", \".bar\"},\n new String[]{\"foo/bar\", null},\n new String[]{\"/x.html\", \".html\"},\n new String[]{\"/foo.bar.org/x.y.z.html\", \".html\"}\n };\n for (int i = 0; i < test_values.length; i++) {\n String tests[] = (String[]) test_values[i];\n String test = tests[0];\n String expected = tests[1];\n\n String result = NetUtils.getExtension(test);\n String message = \"Test \" + \"'\" + test + \"'\";\n assertEquals(message, expected, result);\n }\n }", "Set<String> getTagNames(TRepo repo);", "public String[] listFilesString(String extension) {\n\t\tFile[] FL = listFiles(extension);\n\t\treturn FU.listFilesString(FL);\n\t}", "public static void main(String[] args) {\n\t\t\tSystem.out.println(\"git_test!\");\n\t}", "public void checkUntracked(Commit givenCommit) {\n for (String fileName: givenCommit.getFile().keySet()) {\n File fileInCWD = new File(Main.CWD, fileName);\n if (fileInCWD.exists()) {\n String contentInCWD = Utils.readContentsAsString(fileInCWD);\n Blob curBlob = getHeadCommit().getFile().get(fileName);\n if (curBlob == null) {\n if (!contentInCWD.equals(givenCommit.getFile()\n .get(fileName))) {\n System.out.println(\"There is an \"\n + \"untracked file in the way;\"\n + \" delete it, or add and commit it first.\");\n System.exit(0);\n }\n } else if (curBlob != null) {\n String contentInCurr = curBlob.getContent();\n if (!contentInCurr.equals(contentInCWD)\n && !contentInCWD.equals(givenCommit.getFile()\n .get(fileName))) {\n System.out.println(\"There is \"\n + \"an untracked file in the way; \"\n + \"delete it, or add and commit it first.\");\n System.exit(0);\n }\n }\n }\n }\n }", "public static void main(String[] args){\n System.out.println(getLastGoodCommit(new char[]{}));\n System.out.println(getLastGoodCommit(new char[]{'G'}));\n System.out.println(getLastGoodCommit(new char[]{'B'}));\n System.out.println(getLastGoodCommit(new char[]{'G','G'}));\n System.out.println(getLastGoodCommit(new char[]{'B','B'}));\n System.out.println(getLastGoodCommit(new char[]{'G','G', 'G'}));\n System.out.println(getLastGoodCommit(new char[]{'B','B', 'B'}));\n System.out.println(getLastGoodCommit(new char[]{'G','B', 'B'}));\n System.out.println(getLastGoodCommit(new char[]{'G','G', 'B'}));\n System.out.println(getLastGoodCommit(new char[]{'G','G', 'B', 'B', 'B'}));\n }", "List<Project> getProjectsWithChanges(List<Project> projects);", "@Test\n public void testCanReadGitRevision() throws Exception {\n MatcherAssert.assertThat(\n new TestJenkins().jobs().findByName(\n \"test-parametrised-job\"\n ).next().builds().findByNumber(\"#4\").next().details().gitRevision(),\n new IsEqual<>(\"3d21ea7072da134395eedbc7a07bf0f00cfabf97\")\n );\n }", "String getCommitMessageForLine(IPath filePath, int line);", "void fetch() throws GitException, InterruptedException;", "String getSubmoduleUrl(String name) throws GitException, InterruptedException;", "public void list(String repository) throws IOException {\n String[] command = {SVN, LOG, NON_INTERACTIVE, VERBOSE, repository};\n\n long before = System.currentTimeMillis();\n run(command, null, null, null);\n long after = System.currentTimeMillis();\n }", "public String getRepos() {\n return repos;\n }", "public abstract URI[] getKnownRepositories();", "public interface IRepoListPresenter {\n public void loadCommits(String userName);\n}", "public static void main(String[] args) {\nSystem.out.println(\"This is for git\");\n\t}", "public void log() {\n String headID = head.getCommitID();\n while (headID != null) {\n File curr = new File(\".gitlet/commits/\" + headID);\n Comm currcomm = Utils.readObject(curr, Comm.class);\n System.out.println(\"===\");\n System.out.println(\"commit \" + currcomm.getCommitID());\n if (currcomm.getMergepointer() != null) {\n System.out.println(\"Merge: \"\n + currcomm.getParent().getCommitID()\n .substring(0, 7) + \" \"\n + currcomm.getMergepointer().getCommitID()\n .substring(0, 7));\n }\n System.out.println(\"Date: \" + currcomm.getDate());\n System.out.println(currcomm.getMessage());\n System.out.println();\n if (currcomm.getParent() == null) {\n break;\n } else {\n headID = currcomm.getParent().getCommitID();\n }\n }\n }", "GitCommit(RevCommit anRC) { _rev = anRC; }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withCommitsNullRepository() {\n\t\tTreeUtils.withCommits(null, ObjectId.zeroId());\n\t}", "@Test\n public void branchspec() throws Throwable {\n MergeFilesOptions opts = new MergeFilesOptions();\n opts.setBranch(\"branch1\");\n\n List<IFileSpec> merged = client.mergeFiles(null, null, opts);\n assertEquals(\"wrong number of files\", 2, merged.size());\n\n List<IFileSpec> opened = client.openedFiles(null, null);\n assertEquals(\"files should not have been opened\", 2, opened.size());\n }", "List<BinaryArtifact> getArtifacts(String instanceUrl, String repoName, long lastUpdated);", "@Test\n\tpublic void diffWithNoParents() throws Exception {\n\t\tRevCommit commit = add(\"test.txt\", \"content\");\n\t\tRepository repo = new FileRepository(testRepo);\n\t\tTreeWalk walk = TreeUtils.diffWithParents(repo, Constants.HEAD);\n\t\tassertNotNull(walk);\n\t\tassertEquals(2, walk.getTreeCount());\n\t\tassertTrue(walk.next());\n\t\tassertEquals(\"test.txt\", walk.getPathString());\n\t\tassertEquals(ObjectId.zeroId(), walk.getObjectId(0));\n\t\tassertEquals(BlobUtils.getId(repo, commit, \"test.txt\"),\n\t\t\t\twalk.getObjectId(1));\n\t\tassertFalse(walk.next());\n\t}", "boolean hasGitModules(String treeIsh) throws GitException, InterruptedException;", "public static void main(String[] args) {\n\t\tSystem.out.println(\" commit\");\n\t\tSystem.out.println(\"3rd commit\");\n\t\tSystem.out.println(\"final commit\");\n\t\tSystem.out.println(\"pull\");\n\t}", "String getRepositoryPath(String name);" ]
[ "0.6132215", "0.61174726", "0.6097702", "0.60872614", "0.5821318", "0.5659247", "0.5639082", "0.5629009", "0.5619644", "0.5602705", "0.5503631", "0.543122", "0.5423152", "0.54152715", "0.53489757", "0.5269015", "0.52269477", "0.5214142", "0.5203056", "0.5201922", "0.51747936", "0.51512414", "0.51354367", "0.5109794", "0.51012594", "0.5099265", "0.5082745", "0.5073893", "0.5069975", "0.5059815", "0.50595737", "0.5039436", "0.50301486", "0.5013524", "0.4998214", "0.49862087", "0.49861014", "0.49839553", "0.49573445", "0.4936398", "0.4906434", "0.49048316", "0.4904726", "0.49042344", "0.4884604", "0.48844025", "0.48800755", "0.48767686", "0.4875131", "0.48627347", "0.4862521", "0.48615628", "0.48614883", "0.48608947", "0.4845826", "0.48351726", "0.48333186", "0.4814454", "0.4813775", "0.47908133", "0.47875607", "0.4779148", "0.47751752", "0.47625303", "0.47549826", "0.47525808", "0.47475135", "0.47424287", "0.47365358", "0.47355524", "0.4720179", "0.47132972", "0.47105226", "0.4702862", "0.46966007", "0.46842837", "0.4679414", "0.46789715", "0.46622324", "0.4656968", "0.46507537", "0.46495578", "0.46434355", "0.4623532", "0.4619913", "0.46157333", "0.46154264", "0.46116605", "0.4610799", "0.46032402", "0.46027794", "0.46007362", "0.45970255", "0.45956945", "0.45910713", "0.45900583", "0.4575879", "0.4573896", "0.45715287", "0.4569168" ]
0.69083846
0
/ Test to check if exception is thrown when a non existing repository is entered
@Test(expected = RepositoryNotFoundException.class) public void testNonExistingRepository() throws AuthorCommitsFailedException, IOException{ EasyMock.expect(mockManager.openRepository(new Project.NameKey("abcdefg"))) .andReturn( RepositoryCache.open(FileKey.lenient(new File( "../../review_site/git", "abcdefg.git"), FS.DETECTED))); EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability); EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true); replay(mockUser, mockCapability, mockManager); cmd_test.setCommits(new Project.NameKey("abcdefg"), "kee"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void setRepositoryThrowsIOException() throws Exception {\n\t\tNoteContentFilter filter = new NoteContentFilter();\n\t\tfinal IOException exception = new IOException(\"message\");\n\t\tRepository repo = new BadRepository(testRepo, exception);\n\t\ttry {\n\t\t\tfilter.setRepository(repo);\n\t\t\tfail(\"Exception not thrown when reading bad refs\");\n\t\t} catch (GitException e) {\n\t\t\tassertNotNull(e);\n\t\t\tassertEquals(exception, e.getCause());\n\t\t}\n\t}", "@Test\n public void testOnlyOneRepoPerName() throws IOException, DuplicateRepoNameException, RepositoryNotFoundException {\n ConfigDatabase.instance().addRepo(testRepo1);\n assert testRepo1.getName().equals(testRepo1a.getName()); // conflicting names\n try {\n ConfigDatabase.instance().addRepo(testRepo1a);\n fail(\"An exception should have been raised because a repo with this name already exists\");\n } catch (DuplicateRepoNameException dke) {\n /* This should happen - fail otherwise */\n }\n assertEquals(testRepo1.getCRSID(), ConfigDatabase.instance().getRepoByName(\"test-repo-name1\").getCRSID());\n }", "@Test\n public void testStoringRepos() throws IOException, DuplicateRepoNameException, RepositoryNotFoundException {\n ConfigDatabase.instance().addRepo(testRepo1);\n ConfigDatabase.instance().addRepo(testRepo2);\n assertEquals(testRepo1.getCRSID(),\n ConfigDatabase.instance().getRepoByName(\"test-repo-name1\").getCRSID());\n assertEquals(testRepo2.getCRSID(),\n ConfigDatabase.instance().getRepoByName(\"test-repo-name2\").getCRSID());\n assertNotEquals(ConfigDatabase.instance().getRepoByName(\"test-repo-name1\").getCRSID(),\n ConfigDatabase.instance().getRepoByName(\"test-repo-name2\").getCRSID());\n }", "@Test(expected = UsernameNotFoundException.class)\n public void createNewComputerBuildFailure() {\n ComputerBuild computerBuild = createComputerBuild(SAMPLE_BUDGET_COMPUTER_BUILD_NAME, SAMPLE_GAMING_COMPUTER_BUILD_DESCRIPTION);\n computerBuildService.createNewComputerBuild(computerBuild);\n }", "@Override\n public boolean error(final Message message,\n final Throwable throwable) {\n final Throwable _throwable = (throwable.getCause() == null ? throwable : throwable.getCause());\n if (_throwable instanceof GAVAlreadyExistsException) {\n final GAVAlreadyExistsException gae = (GAVAlreadyExistsException) _throwable;\n conflictingRepositoriesPopup.setContent(gae.getGAV(),\n gae.getRepositories(),\n new Command() {\n @Override\n public void execute() {\n conflictingRepositoriesPopup.hide();\n doRepositoryStructureInitialization(DeploymentMode.FORCED);\n }\n });\n conflictingRepositoriesPopup.show();\n return true;\n } else {\n return super.error(message,\n _throwable);\n }\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void visitNullRepository() {\n\t\tTreeUtils.visit(null, ObjectId.zeroId(), new ITreeVisitor() {\n\n\t\t\tpublic boolean accept(FileMode mode, String path, String name,\n\t\t\t\t\tAnyObjectId id) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t}", "public NoRemoteRepositoryException(URIish uri, String s) {\n\t\tsuper(uri, s);\n\t}", "boolean isBareRepository() throws GitException, InterruptedException;", "public void testAccessObrRepositoryWithWrongCredentialsFail() throws Exception {\n try {\n org.osgi.service.cm.Configuration configuration = m_configAdmin.getConfiguration(m_authConfigPID);\n assertNotNull(configuration);\n\n // Simulate incorrect credentials by updating the config of the connection factory...\n configuration.getProperties().put(\"authentication.user.name\", \"foo\");\n\n configuration.update();\n\n URL url = new URL(\"http://localhost:\" + TestConstants.PORT + m_endpoint + \"/index.xml\");\n\n // do NOT use connection factory as it will supply the credentials for us...\n URLConnection conn = url.openConnection();\n assertNotNull(conn);\n\n // we expect a 403 for this URL...\n assertTrue(NetUtils.waitForURL(url, HttpURLConnection.HTTP_FORBIDDEN));\n\n try {\n // ...causing all other methods on URLConnection to fail...\n conn.getContent(); // should fail!\n fail(\"IOException expected!\");\n }\n catch (IOException exception) {\n // Ok; ignored...\n }\n finally {\n NetUtils.closeConnection(conn);\n }\n }\n catch (Exception e) {\n printLog(m_logReader);\n throw e;\n }\n }", "@Test\n public void testInitialiseOnExistingRepo() throws Exception {\n moveToTempTestDirectory(\"test-project-initialise\", \"pom.xml\");\n\n final File rootFolder = getFolder().getRoot();\n assertTrue(rootFolder.exists());\n Git.init().setDirectory(rootFolder).call();\n\n verifyRepositoryInitializedWithoutErrors(rootFolder);\n }", "@Test\n public void testUpdateRepo() throws IOException, DuplicateRepoNameException, RepositoryNotFoundException {\n ConfigDatabase.instance().addRepo(testRepo1);\n ConfigDatabase.instance().updateRepo(testRepo1);\n }", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExists() {\n assertThrows(NotFoundException.class, () -> projectService.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "@Test\n public void testInitialiseNewGitRepo() throws Exception {\n moveToTempTestDirectory(\"test-project-initialise\", \"pom.xml\");\n\n final File rootFolder = getFolder().getRoot();\n assertTrue(rootFolder.exists());\n\n verifyRepositoryInitializedWithoutErrors(rootFolder);\n }", "@Test\n\tpublic void testExistsProjectInexistent() throws Exception {\n\t\tIRodinProject other = getRodinProject(\"Inexistent\");\n\t\tassertFalse(\"An existent project should not be open\",\n\t\t\t\tother.isOpen());\n\t\tassertNotExists(\"The Rodin project should not exist\", other);\n\t\tassertFalse(\"The existence test should not have opened the project\",\n\t\t\t\tother.isOpen());\n\t}", "@Test\n public void testSearchRepositoryByQueryRepositoryNotNull() throws Exception {\n TestSubscriber testSubscriber = new TestSubscriber();\n Observable<ApiSearchRepository> searchRepositoryObservable = githubApi.getSearchRepository(testedString, null);\n searchRepositoryObservable.subscribe(testSubscriber);\n testSubscriber.awaitTerminalEvent();\n ApiSearchRepository apiSearchUser = (ApiSearchRepository) testSubscriber.getOnNextEvents().get(0);\n assertTrue(apiSearchUser.getItems().size() > 0);\n }", "Boolean repositoryUrlIsValid(URL repositoryUrl);", "@Test\n public void testSearchRepositoryByQueryNotNull() throws Exception {\n TestSubscriber testSubscriber = new TestSubscriber();\n Observable<ApiSearchRepository> searchRepositoryObservable = githubApi.getSearchRepository(testedString, null);\n searchRepositoryObservable.subscribe(testSubscriber);\n testSubscriber.awaitTerminalEvent();\n ApiSearchRepository apiSearchRepository = (ApiSearchRepository) testSubscriber.getOnNextEvents().get(0);\n assertNotNull(apiSearchRepository.getItems());\n }", "@Test\n void shouldThrowExceptionWhenUpdatedProjectWithTheEnteredUuidDoesNotExistsMockVersion() {\n assertThrows(NotFoundException.class, () -> projectServiceMock.updateProject(UUID.randomUUID(), projectUpdateForm));\n }", "boolean isBareRepository(String GIT_DIR) throws GitException, InterruptedException;", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withCommitsNullRepository() {\n\t\tTreeUtils.withCommits(null, ObjectId.zeroId());\n\t}", "@Test\n @NessieApiVersions(versions = NessieApiVersion.V2)\n void invalidCreateRepositoryConfig() throws Exception {\n api().getConfig();\n\n assumeTrue(fullPagingSupport());\n\n @SuppressWarnings(\"resource\")\n NessieApiV2 api = apiV2();\n\n soft.assertThatThrownBy(\n () ->\n api.updateRepositoryConfig()\n .repositoryConfig(\n GarbageCollectorConfig.builder()\n .defaultCutoffPolicy(\"foo\")\n .newFilesGracePeriod(Duration.of(3, ChronoUnit.HOURS))\n .build())\n .update()\n .getPrevious())\n .isInstanceOf(IllegalArgumentException.class)\n .hasMessageContaining(\"Failed to parse default-cutoff-value\");\n }", "@Test\n public void testGetAndDeleteRepos() throws IOException, DuplicateRepoNameException, RepositoryNotFoundException {\n assertFalse(containsRepo(ConfigDatabase.instance().getRepos(), \"test-repo-name1\"));\n\n ConfigDatabase.instance().addRepo(testRepo1);\n assertTrue(containsRepo(ConfigDatabase.instance().getRepos(), \"test-repo-name1\"));\n\n ConfigDatabase.instance().delRepoByName(\"test-repo-name1\");\n assertFalse(containsRepo(ConfigDatabase.instance().getRepos(), \"test-repo-name1\"));\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withCommitsNullRepository2() {\n\t\tTreeUtils.withCommits(null, Constants.MASTER);\n\t}", "@Test\n\tpublic void new_build_project_repository_is_dirty() {\n\t\tEnvironmentContext cx = null;\n\t\ttry {\n\t\t\tcx = new EnvironmentContext();\n\t\t} catch (Exception e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t// When I create a new repository with that connection\n\t\tBuildProjectRepository repository = new BuildProjectRepositoryApiClient(cx);\n\t\t// Then it is initially dirty\n\t\tboolean dirty = false;\n\t\ttry {\n\t\t\tdirty = repository.isDirty();\n\t\t} catch (BuildProjectRepositoryException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\tassertTrue(dirty);\n\t}", "public boolean _is_a(String repository_id) {\n throw new NO_IMPLEMENT(reason);\n }", "@Test\n void shouldThrowExceptionWhenProjectWithGivenProjectNameDoesNotExists() {\n assertThrows(NotFoundException.class, () -> projectService.findProjectByProjectName(\"non-existing\"));\n }", "public void testAccessObrRepositoryWithoutCredentialsFail() throws Exception {\n try {\n URL url = new URL(\"http://localhost:\" + TestConstants.PORT + m_endpoint + \"/index.xml\");\n\n // do NOT use connection factory as it will supply the credentials for us...\n URLConnection conn = url.openConnection();\n assertNotNull(conn);\n\n // we expect a 403 for this URL...\n assertTrue(NetUtils.waitForURL(url, HttpURLConnection.HTTP_FORBIDDEN));\n\n try {\n // ...causing all other methods on URLConnection to fail...\n conn.getContent(); // should fail!\n fail(\"IOException expected!\");\n }\n catch (IOException exception) {\n // Ok; ignored...\n }\n finally {\n NetUtils.closeConnection(conn);\n }\n }\n catch (Exception e) {\n printLog(m_logReader);\n throw e;\n }\n }", "void validate() {\n assertNotNull(getType(), \"Must set repository type.\");\n assertFalse(getType().trim().isEmpty(), \"Must set repository type.\");\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void getIdNullRepository2() {\n\t\tTreeUtils.getId(null, Constants.MASTER, \"folder\");\n\t}", "public RepositoryException(final String message) {\n super(message);\n }", "public abstract boolean manipulateRepositories();", "@Test(expected = RuntimeException.class)\r\n \tpublic void testCommit() throws ESException {\n \t\tlocalProject.commit();\r\n \t\tfail(\"Should not be able to commit an unshared Project!\");\r\n \t}", "private void repositoryCheckButtonActionPerformed() {\n checkRepositoryMismatch = true;\n CopyToASpaceButtonActionPerformed();\n }", "@Test\n public void testSearchRepositoryByQueryError() throws Exception {\n TestSubscriber testSubscriber = new TestSubscriber();\n Observable<ApiSearchRepository> searchRepositoryObservable = githubApi.getSearchRepository(\"\", null);\n searchRepositoryObservable.subscribe(testSubscriber);\n testSubscriber.awaitTerminalEvent();\n testSubscriber.assertError(HttpException.class);\n }", "public RepositoryException(final Exception ex) {\n super(ex);\n }", "@Test\n\tpublic void getProjectByIdInvalid() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.getProjectById(7L);\n\t}", "@Test(expected = IllegalArgumentException.class)\n\tpublic void getIdNullRepository1() {\n\t\tTreeUtils.getId(null, ObjectId.zeroId(), \"folder\");\n\t}", "public void testGetProjectByNameDoesNotExist() throws Exception {\r\n ProjectServiceRemote projectService = lookupProjectServiceRemoteWithUserRole();\r\n\r\n // 1 is the user id\r\n try {\r\n projectService.getProjectByName(\"xxxxx\", 1);\r\n fail(\"ProjectNotFoundFault expected.\");\r\n } catch (ProjectNotFoundFault e) {\r\n // expected\r\n }\r\n }", "public void testRecordPluginDownload_NonPersistedName() throws Exception {\n try {\n dao.recordPluginDownload(\"test\");\n fail(\"EntryNotFoundException expected\");\n } catch (EntryNotFoundException e) {\n // should land here\n }\n }", "@Test\n void shouldThrowExceptionWhenProjectWithGivenProjectNameDoesNotExistsMockVersion() {\n assertThrows(NotFoundException.class, () -> projectServiceMock.findProjectByProjectName(\"non-existing\"));\n }", "private void createNewRepository() {\n\t\tRepositoryConfiguration conf = repositorySettingsJPanel\n\t\t\t\t.getRepositoryConfiguration();\n\n\t\t/*\n\t\t * if (RepositoryType.HTTP.equals(conf.getType())) { new\n\t\t * MessageDialog(this, \"TBD\",\n\t\t * \"The support for HTTP repository is not implemented yet\"\n\t\t * ).setVisible(true); return; }\n\t\t */\n\n\t\tif (!validateRepositoryConfiguration(conf)) {\n\t\t\t// fixme igor; mark what is wrong!!\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tContextHolder.getInstance().getApplicationConfiguration()\n\t\t\t\t\t.addRepositoryConfiguration(conf);\n\t\t} catch (AddRepositoryException e) {\n\t\t\tnew MessageDialog(this, \"Cannot create new repository\",\n\t\t\t\t\te.getMessage()).setVisible(true);\n\t\t\treturn;\n\t\t}\n\n\t\tAppEventsManager.getInstance().fireRepositoriesChanagedEvent(this);\n\t\tdispose();\n\t}", "@Test\n public void testStoreProductWithExistingNameShouldFail() {\n when(repository().queryByPredicates(any(Predicate.class))).thenAnswer(env -> productMock);\n\n // when\n org.jboss.pnc.dto.Product productDTO = org.jboss.pnc.dto.Product.builder()\n .name(productMock.getName())\n .abbreviation(\"test\")\n .build();\n\n // then\n assertThatThrownBy(() -> provider.store(productDTO)).isInstanceOf(ConflictedEntryException.class);\n }", "private void onNewRepo() {\n RepositoryImpl repoImpl = BugtrackingUtil.createRepository();\n if(repoImpl == null) {\n return;\n }\n Repository repo = repoImpl.getRepository();\n repositoryComboBox.addItem(repo);\n repositoryComboBox.setSelectedItem(repo);\n }", "@Test\n public void testNonGavArtifacts()\n throws Exception\n {\n new DeployUtils( this ).deployWithWagon( \"http\", getRepositoryUrl( getTestRepositoryId() ),\n getTestFile( \"pom.xml\" ), \"foo/bar\" );\n\n // now get the info for it\n Response response =\n RequestFacade.doGetRequest( \"service/local/repositories/\" + getTestRepositoryId() + \"/content/\"\n + \"foo/bar\" + \"?describe=maven2\" );\n String responseText = response.getEntity().getText();\n Assert.assertEquals( response.getStatus().getCode(), 404, \"Response was: \" + responseText );\n\n }", "public void testRetrievePaymentTerm_NotExistDatabase() throws Exception {\r\n try {\r\n new SimpleCommonManager(\"SimpleCommonManager_Error_13\").retrievePaymentTerm(1);\r\n fail(\"PaymentTermDAOException is expected\");\r\n } catch (PaymentTermDAOException e) {\r\n assertTrue(e.getMessage()\r\n .indexOf(\"DBConnectionException occurs when creating the database connection\") >= 0);\r\n }\r\n }", "public void testCheckoutExceptions() {\n boolean buildEx = false;\n\n // Set up a sosCheckout task\n sosCheckout.setProject(project);\n // No options set - SosServerPath should fail\n try {\n commandline = sosCheckout.buildCmdLine();\n } catch (BuildException be) {\n if (be.getMessage().compareTo(\"sosserverpath attribute must be set!\") == 0) {\n buildEx = true;\n }\n }\n assertTrue(\"CheckoutException SosServerPath\", buildEx);\n buildEx = false;\n\n // Set SosServerPath - Username should fail\n sosCheckout.setSosServerPath(SOS_SERVER_PATH);\n try {\n commandline = sosCheckout.buildCmdLine();\n } catch (BuildException be) {\n if (be.getMessage().compareTo(\"username attribute must be set!\") == 0) {\n buildEx = true;\n }\n }\n assertTrue(\"CheckoutException Username\", buildEx);\n buildEx = false;\n\n // Set Username - VssServerPath should fail\n sosCheckout.setUsername(SOS_USERNAME);\n try {\n commandline = sosCheckout.buildCmdLine();\n } catch (BuildException be) {\n if (be.getMessage().compareTo(\"vssserverpath attribute must be set!\") == 0) {\n buildEx = true;\n }\n }\n assertTrue(\"CheckoutException VssServerPath\", buildEx);\n buildEx = false;\n\n // Set VssServerPath - ProjectPath should fail\n sosCheckout.setVssServerPath(VSS_SERVER_PATH);\n try {\n commandline = sosCheckout.buildCmdLine();\n } catch (BuildException be) {\n if (be.getMessage().compareTo(\"projectpath attribute must be set!\") == 0) {\n buildEx = true;\n }\n }\n assertTrue(\"CheckoutException ProjectPath\", buildEx);\n\n // Set ProjectPath - All required options set\n sosCheckout.setProjectPath(VSS_PROJECT_PATH);\n try {\n commandline = sosCheckout.buildCmdLine();\n buildEx = true;\n } catch (BuildException be) {\n buildEx = false;\n }\n assertTrue(\"CheckoutException All required options set\", buildEx);\n }", "@Override\n public boolean isMultiple() throws RepositoryException {\n return false;\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withCommitsNullRevision() throws IOException {\n\t\tTreeUtils.withCommits(new FileRepository(testRepo), (String[]) null);\n\t}", "public void testGetPuzzle_NoPuzzle() throws PersistenceException {\n try {\n dao.getPuzzle(1);\n fail(\"EntryNotFoundException expected.\");\n } catch (EntryNotFoundException e) {\n // should land here\n }\n }", "private boolean validateRepositoryConfiguration(\n\t\t\tIRepositoryConfiguration conf) {\n\t\treturn true; // fixme igor: valid for all configurations (development\n\t\t\t\t\t\t// mode)\n\t}", "ValidationResult isRepositoryConfigurationValid(RepositoryConfiguration repositoryConfiguration);", "@Test\n void doesNotFindNonexistentUser() {\n assertThat(userRepository.findUser(\"[email protected]\")).isEqualTo(null);\n }", "public void testGetDomain_NoDomain() throws PersistenceException {\n try {\n dao.getDomain(1);\n fail(\"EntryNotFoundException expected\");\n } catch (EntryNotFoundException e) {\n // should land here\n }\n }", "@Override\r\n\tpublic boolean itemExists(String absPath) throws RepositoryException {\n\t\treturn false;\r\n\t}", "@Test(expected = IllegalArgumentException.class)\n\tpublic void getIdEmptyRevision() throws IOException {\n\t\tTreeUtils.getId(new FileRepository(testRepo), \"\", \"folder\");\n\t}", "@Test\n public void contexLoads() throws Exception\n {\n assertThat(einheitentypRepository).isNotNull();\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withParentsNullRepository2() {\n\t\tTreeUtils.withParents(null, Constants.MASTER);\n\t}", "@Test\n public void testGetRepos() throws Exception\n {\n String userName = \"ahmed-fathy-aly\";\n List<Repo> repoList = gitHubAPIService.getRepos(userName);\n\n assertNotNull(repoList);\n assertTrue(repoList.size() > 0);\n for (Repo repo : repoList)\n {\n assertNotNull(repo.getName());\n assertNotNull(repo.getId());\n }\n }", "public void testGetGame() throws Exception {\n try {\n dao.getGame(1);\n fail(\"EntryNotFoundException expected\");\n } catch (EntryNotFoundException e) {\n // should land here\n }\n }", "public void testPropFindForNonExistingWorkspace() throws Exception\n {\n String file = TestUtils.getFileName();\n\n ContainerResponse response =\n service(WebDAVMethods.PROPFIND, getPathWS() + \"_\" + file, \"\", null, null);\n assertEquals(HTTPStatus.CONFLICT, response.getStatus());\n }", "@Test\n\tpublic void getGameTestGameNotFound() {\n\t\tGame game = gameRepository.getGame(9999);\n\t\tassertNull(\"Game should be returned as null if not found in the repository\", game);\n\n\t}", "@Test\n @DisplayName(\"Deve lançar erro de negocio ao tentar salvar um livro com isbn duplicado\")\n public void shouldNotSaveABookWithDuplicatedISBN() {\n given(bookToSaveMocked.getIsbn()).willReturn(BookHelperTest.DOM_CASMURRO_ISBN);\n given(bookRepositoryMocked.existsByIsbn(BookHelperTest.DOM_CASMURRO_ISBN)).willReturn(true);\n\n // When execute save\n Throwable exception = Assertions.catchThrowable(() -> bookService.save(bookToSaveMocked));\n\n // Then validate exception\n assertThat(exception)\n .isNotNull()\n .isInstanceOf(BusinessException.class)\n .hasMessage(\"Isbn ja cadastrado\");\n\n // And verify mocks interaction\n verify(bookToSaveMocked, times(1)).getIsbn();\n verify(bookRepositoryMocked, times(1)).existsByIsbn(BookHelperTest.DOM_CASMURRO_ISBN);\n }", "public void testCheckinExceptions() {\n boolean buildEx = false;\n\n // Set up a sosCheckin task\n sosCheckin.setProject(project);\n // No options set - SosServerPath should fail\n try {\n commandline = sosCheckin.buildCmdLine();\n } catch (BuildException be) {\n if (be.getMessage().compareTo(\"sosserverpath attribute must be set!\") == 0) {\n buildEx = true;\n }\n }\n assertTrue(\"CheckinException SosServerPath\", buildEx);\n buildEx = false;\n\n // Set SosServerPath - Username should fail\n sosCheckin.setSosServerPath(SOS_SERVER_PATH);\n try {\n commandline = sosCheckin.buildCmdLine();\n } catch (BuildException be) {\n if (be.getMessage().compareTo(\"username attribute must be set!\") == 0) {\n buildEx = true;\n }\n }\n assertTrue(\"CheckinException Username\", buildEx);\n buildEx = false;\n\n // Set Username - VssServerPath should fail\n sosCheckin.setUsername(SOS_USERNAME);\n try {\n commandline = sosCheckin.buildCmdLine();\n } catch (BuildException be) {\n if (be.getMessage().compareTo(\"vssserverpath attribute must be set!\") == 0) {\n buildEx = true;\n }\n }\n assertTrue(\"CheckinException VssServerPath\", buildEx);\n buildEx = false;\n\n // Set VssServerPath - ProjectPath should fail\n sosCheckin.setVssServerPath(VSS_SERVER_PATH);\n try {\n commandline = sosCheckin.buildCmdLine();\n } catch (BuildException be) {\n if (be.getMessage().compareTo(\"projectpath attribute must be set!\") == 0) {\n buildEx = true;\n }\n }\n assertTrue(\"CheckinException ProjectPath\", buildEx);\n\n // Set ProjectPath - All required options set\n sosCheckin.setProjectPath(VSS_PROJECT_PATH);\n try {\n commandline = sosCheckin.buildCmdLine();\n buildEx = true;\n } catch (BuildException be) {\n buildEx = false;\n }\n assertTrue(\"CheckinException All required options set\", buildEx);\n }", "private void commitRepChanges() {\r\n\t\t\r\n\t\t// get repository info\r\n\t\tString repURL = repURLFld.getText();\r\n\t\tString boURI = repBaseOntFld.getText();\r\n\t\tthis.repositoryAuthor = repAuthorFld.getText();\r\n\t\tthis.reposityCreatedDate = repDateFld.getText();\r\n\t\t\r\n\t\tString status = \"Status: [ACTION - Commit to Repository]...\";\r\n\t\ttry {\r\n\t\t\tthis.repositoryURI = new URI(repURL);\r\n\t\t\tthis.baseOntologyURI = new URI(boURI);\r\n\t\t}\r\n\t\tcatch (URISyntaxException ex) {\r\n\t\t\tstatusBar.setText(status+\"Invalid Repository URL and/or Base Ontology URI\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// check if repository already exists\r\n\t\t\tboolean repExists = this.loadRepositoryHeader();\r\n\t\t\t\r\n\t\t\tif (!repExists) {\r\n\t\t\t\t// creating new repository\r\n\t\t\t\t// form repository header\r\n\t\t\t\tURI[] headerURI = new URI[1];\r\n\t\t\t\theaderURI[0] = new URI(this.repositoryURI+\"#header\");\r\n\t\t\t\t\r\n\t\t\t\tif (this.repositoryAuthor.equals(\"\") || this.reposityCreatedDate.equals(\"\")) {\r\n\t\t\t\t\tint opt = JOptionPane.showConfirmDialog(null, \"Repository Author and/or Date not specified. Continue?\", \"Creating Repository\", JOptionPane.YES_NO_OPTION);\r\n\t\t\t\t\tif (opt == JOptionPane.NO_OPTION) return;\r\n\t\t\t\t}\r\n\t\t\t\t// create annotea description for header\r\n\t\t\t\tDescription header = new Description();\r\n\t\t\t\theader.setAnnotates(headerURI);\r\n\t\t\t\theader.setAuthor(this.repositoryAuthor);\r\n\t\t\t\theader.setCreated(this.reposityCreatedDate);\r\n\t\t\t\theader.setAnnotatedEntityDefinition(this.baseOntologyURI.toString());\r\n\t\t\t\tthis.headVersionNumber = 0;\r\n\t\t\t\theader.setBody(String.valueOf(this.headVersionNumber));\r\n\t\t\t\theader.setBodyType(\"text/html\");\r\n\t\t\t\theader.setAnnotationType(this.annotType);\r\n\t\t\t\tclient.post(header);\r\n\t\t\t\tstatusBar.setText(status+\"Ontology Repository Header posted at \"+headerURI[0]);\r\n\t\t\t\ttoggleRepOptions(false);\r\n\t\t\t\tversionDescriptions[0] = header;\r\n\t\t\t\tswoopModel.updateVersionRepository(repositoryURI, versionDescriptions);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// test changes\r\n\t\t\tboolean success = this.testChanges(true);\r\n\t\t\tif (success){\r\n\t\t\t\t// prompt user for comment on commit\r\n\t\t\t\tString commitComment = JOptionPane.showInputDialog(this, \"COMMIT New Version (Details):\");\r\n\t\t\t\t\r\n\t\t\t\tif (commitComment==null) {\r\n\t\t\t\t\tstatusBar.setText(status+\"CANCELLED\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// transform SwoopChange list to Description list (to save author, date, uris etc)\r\n\t\t\t\tList descList = transformChangeList(repChanges);\r\n\t\t\t\t// serialize each description into RDF/XML\r\n\t\t\t\t// and make it one large string with separator (\"[SWOOP-ANNOTATED-CHANGE-SET]\") in the middle\r\n\t\t\t\tString largeChangeSetString = \"\";\r\n\t\t\t\tfor (Iterator iter = descList.iterator(); iter.hasNext();) {\r\n\t\t\t\t\tDescription desc = (Description) iter.next();\r\n\t\t\t\t\tString descStr = desc.serializeIntoString(swoopModel);\t\t\t\t\t\r\n\t\t\t\t\tlargeChangeSetString += descStr + separator;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// ENCODE CDATA\r\n\t\t\t\tlargeChangeSetString = largeChangeSetString.replaceAll(\"CDATA\", \"ENCODED-CDATA\");\r\n\t\t\t\tlargeChangeSetString = largeChangeSetString.replaceAll(\"]]>\", \"]ENCODED]>\");\r\n\t\t\t\t\r\n\t\t\t\t// finally commit a single annotation with the entire changeset string in the body\r\n\t\t\t\t// also allow author to make annotation on commit\r\n\t\t\t\tDescription commit = new Description();\r\n\t\t\t\tcommit.setAuthor(swoopModel.getUserName());\r\n\t\t\t\tcommit.setCreated(swoopModel.getTimeStamp());\r\n\t\t\t\tcommit.setBody(largeChangeSetString);\r\n\t\t\t\tcommit.setBodyType(\"text/html\");\r\n\t\t\t\tcommit.setAnnotatedEntityDefinition(commitComment);\r\n\t\t\t\tcommit.setAnnotationType(this.annotType);\r\n\t\t\t\t\r\n\t\t\t\t// increment headVersionNum and write new commit\r\n\t\t\t\t// at repURL+\"#\"+headVersionNum\r\n\t\t\t\tthis.headVersionNumber++;\r\n\t\t\t\tURI[] annotates = new URI[1];\r\n\t\t\t\tannotates[0] = new URI(repositoryURI.toString()+\"#\"+String.valueOf(this.headVersionNumber));\r\n\t\t\t\tcommit.setAnnotates(annotates);\r\n\t\t\t\t// COMMIT!\r\n\t\t\t\tclient.post(commit);\r\n\t\t\t\t\r\n\t\t\t\t// post-process:\r\n\t\t\t\t// 1. rewrite rep header added newly incremented headVersionNumber \r\n\t\t\t\tthis.rewriteRepHeader();\r\n\t\t\t\t// 2. set newCommitNode params to current commit\r\n\t\t\t\tnewCommitNode.swoopChange.setAuthor(commit.getAuthor());\r\n\t\t\t\tnewCommitNode.swoopChange.setTimeStamp(commit.getCreated());\r\n\t\t\t\tnewCommitNode.swoopChange.setDescription(commit.getAnnotatedEntityDefinition());\r\n\t\t\t\t// 3. save newCommitNode in versionCommits array and Description in versionDescriptions array\r\n\t\t\t\tversionNodes[this.headVersionNumber] = newCommitNode;\r\n\t\t\t\tversionDescriptions[this.headVersionNumber] = commit;\r\n\t\t\t\tswoopModel.updateVersionRepository(repositoryURI, versionDescriptions);\r\n\t\t\t\t// 4. for each child of newCommitNode, set its swoopChange.onRepository value to true\r\n\t\t\t\tfor (Iterator iter3=newCommitNode.children.iterator(); iter3.hasNext();) {\r\n\t\t\t\t\tTreeTableNode child = (TreeTableNode) iter3.next();\r\n\t\t\t\t\tchild.swoopChange.isOnRepository = true;\r\n\t\t\t\t}\r\n\t\t\t\t// 5. create newCommitNode and add to root at the end\r\n\t\t\t\tnewCommitNode = new TreeTableNode(new SwoopChange(swoopModel.getUserName(), null, null, swoopModel.getTimeStamp(), \"New Version Commit\", true, false));\r\n\t\t\t\tnewCommitNode.swoopChange.isTopNode = true;\r\n\t\t\t\trepRoot.addChild(newCommitNode);\r\n\t\t\t\trepChanges = new ArrayList(); // also clear this\r\n\t\t\t\tstatusBar.setText(status+\"Committed New Version \"+this.headVersionNumber);\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\tcatch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tstatusBar.setText(status+\"FAILED\");\r\n\t\t}\r\n\t\tthis.refreshRepTreeTable(false);\r\n\t}", "@Test(expected = IllegalArgumentException.class)\r\n\tpublic void testFindOneIfPrincipalNegative() {\r\n\t\tunauthenticate();\r\n\r\n\t\t// ID de la brotherhood 2\r\n\t\tbrotherhoodService.findOneIfPrincipal(34);\r\n\t}", "@Test(expected = TermsOfUsePersistenceException.class)\r\n public void test_getTermsOfUse_PersistenceError() throws Exception {\r\n instance = new ProjectTermsOfUseDaoImpl(TestsHelper.getConfig(TestsHelper.CONFIG_INVALID));\r\n\r\n instance.getTermsOfUse(1, 1, null);\r\n }", "private void foundNonExistent() {\n\t\tstate = BridgeState.NON_EXISTENT;\n\t}", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withCommitsEmptyRevision() throws IOException {\n\t\tTreeUtils.withCommits(new FileRepository(testRepo), new String[0]);\n\t}", "public void test_NullCase() throws Exception {\n\t\tinit(null) ;\n\t\t\n\t\trepo = factory.createRepository(null) ;\n\n\t\t((DelegatingRepository) repo).setDelegate(notifier);\n\t\trepo.initialize() ;\n\t\tfunctionalTest();\n\t}", "@Test\n public void getLatestScanResults_nonexistentProject() {\n testMissingResultsCase(\"nonexistent-project-name\");\n }", "public void testGetProjectByNameRepeated() throws Exception {\r\n ProjectServiceRemote projectService = lookupProjectServiceRemoteWithUserRole();\r\n\r\n // null name\r\n try {\r\n projectService.getProjectByName(\"repeated\", 1);\r\n fail(\"PersistenceException expected.\");\r\n } catch (PersistenceFault e) {\r\n // expected\r\n }\r\n }", "@Test\n @DisplayName(\"Deve retornar vazio ao obter um livro por Id que ele nao existe na base\")\n public void bookNotFoundByIdTest() {\n given(bookRepositoryMocked.findById(ID_NOT_FOUND)).willReturn(Optional.empty());\n\n // When execute save\n Optional<Book> foundBook = bookService.findById(ID_NOT_FOUND);\n\n // Then\n assertThat(foundBook.isPresent()).isFalse();\n\n // And verify mocks interaction\n verify(bookRepositoryMocked, times(1)).findById(ID_NOT_FOUND);\n }", "@Test(expected = RuntimeException.class)\r\n \tpublic void testCommit2() throws ESException {\n \t\tlocalProject.commit(ESLogMessage.FACTORY.createLogMessage(\"test\", \"super\"), null, new NullProgressMonitor());\r\n \t\tfail(\"Should not be able to commit an unshared Project!\");\r\n \t}", "@Test\n public void testCorrectUsage() throws\n IOException, AuthorCommitsFailedException {\n EasyMock.expect(mockManager.openRepository(new Project.NameKey(\"trial\")))\n .andReturn(\n RepositoryCache.open(FileKey.lenient(new File(\n \"../../review_site/git\", \"trial.git\"), FS.DETECTED)));\n EasyMock.expect(mockUser.getCapabilities()).andReturn(mockCapability);\n EasyMock.expect(mockCapability.canListAuthorCommits()).andReturn(true);\n replay(mockUser, mockCapability, mockManager);\n List<CommitInfo> expected = new LinkedList<CommitInfo>();\n CommitInfo ex = new CommitInfo();\n ex.setId(\"ede945e22cba9203ce8a0aae1409e50d36b3db72\");\n ex.setAuth(\"Keerath Jaggi <[email protected]> 1401771779 +0530\");\n ex.setMsg(\"init commit\\n\");\n ex.setDate(\"Tue Jun 03 10:32:59 IST 2014\");\n expected.add(ex);\n cmd_test.setCommits(new Project.NameKey(\"trial\"), \"kee\");\n assertEquals(expected, cmd_test.getCommits());\n }", "public RepositoryException(final String message, final Exception ex) {\n super(message, ex);\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void getIdNullRevision() throws IOException {\n\t\tTreeUtils.getId(new FileRepository(testRepo), (String) null, \"folder\");\n\t}", "public boolean doesDataExist(String repository,String id){\n boolean result = true;\n\n //Check if the repository is there\n HashMap<String,Data> repositoryData = storage.get(repository);\n\n if(repositoryData!=null){\n\n //Try to get the data with that id\n Data temp = repositoryData.get(id);\n\n if(temp==null){\n //Object doesn't exist\n result = false;\n }\n\n } else {\n //Repository doesn't exist\n result = false;\n }\n\n return result;\n }", "boolean isActive() throws RepositoryException;", "public void test_WrapNonNotifyingCase() throws Exception {\n\t\tinit(null);\n\t\trepo = factory.createRepository(sail) ;\n\t\trepo.initialize() ;\n\t\t\n\t\tassertTrue(repo instanceof NamedQueryRepositoryWrapper) ;\n\t\tfunctionalTest();\n\t}", "public static void main(String[] args) throws IOException {\n Validate.command(args);\n\n String firstArg = args[0];\n switch(firstArg) {\n /** 1. Calls the repository set up initializing method which creates a .gitlet directory */\n case \"init\":\n Validate.numArgs(args, 1);\n Validate.reInit();\n Repository.init();\n break;\n case \"add\":\n Validate.numArgs(args, 2);\n Validate.initialization();\n String filename = args[1];\n Repository.add(filename);\n break;\n case \"commit\":\n Validate.noCommitMessage(args);\n Validate.initialization();\n String message = args[1];\n Repository.commit(message);\n break;\n case \"rm\":\n Validate.numArgs(args, 2);\n Validate.initialization();\n filename = args[1];\n Repository.rm(filename);\n break;\n case \"log\":\n Validate.numArgs(args, 1);\n Validate.initialization();\n Repository.log();\n break;\n case \"global-log\":\n Validate.numArgs(args, 1);\n Validate.initialization();\n Repository.globalLog();\n break;\n case \"find\":\n Validate.numArgs(args, 2);\n Validate.initialization();\n message = args[1];\n Repository.find(message);\n break;\n case \"status\":\n Validate.numArgs(args, 1);\n Validate.initialization();\n Repository.status();\n break;\n case \"checkout\":\n Validate.numArgs(args, 2,4);\n Validate.initialization();\n Repository.checkout(args);\n break;\n case \"branch\":\n Validate.numArgs(args, 2);\n Validate.initialization();\n String name = args[1];\n Repository.branch(name);\n break;\n case \"rm-branch\":\n Validate.numArgs(args, 2);\n Validate.initialization();\n name = args[1];\n Repository.rmBranch(name);\n break;\n case \"reset\":\n Validate.numArgs(args, 2);\n Validate.initialization();\n name = args[1];\n Repository.reset(name);\n break;\n case \"merge\":\n Validate.numArgs(args, 2);\n Validate.initialization();\n name = args[1];\n Repository.merge(name);\n break;\n default:\n Validate.noExistingCmd();\n }\n }", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testValidAddInvalidArgument() throws Exception {\n\t\tIllegalArgumentException iae = null;\n\t\tString[] args = new String(\"add -repo dummyrepo -cmt dummycommit -br dummybranch -p2v 0.0-DUMMY -invalidarg abcd\").split(\" \");\n\t\ttry {\n\t\t\tVersionManifest m = (VersionManifest)createManifestMethod.invoke(null, new Object[] { args });\n\t\t} catch (InvocationTargetException e) {\n\t\t\tiae = (IllegalArgumentException)e.getCause();\n\t\t}\n\n\t\tassertNotNull(iae);\n\t}", "@Test(expected = IllegalArgumentException.class)\n\tpublic void withParentsEmptyRevision() throws IOException {\n\t\tTreeUtils.withParents(new FileRepository(testRepo), \"\");\n\t}", "@Test(dataProvider = \"repositoryFactories\")\r\n\tpublic void testError_doubleMapping(RepositoryFactory factory)\r\n\t{\r\n\t\t\r\n\t}", "Repository getFallbackRepository();", "public void test_VoidCase() throws Exception {\n\t\tinit(null) ;\n\t\tNamedQueryRepository named = factory.createRepository(notifier) ;\t\t\n\t\trepo = factory.createRepository(named) ;\n\t\trepo.initialize() ;\n\t\t\n\t\tassertTrue(repo == named) ;\n\t\tfunctionalTest();\n\t}", "public void testGetSlot_NoSlot() throws PersistenceException {\n try {\n dao.getSlot(1);\n fail(\"EntryNotFoundException expected\");\n } catch (EntryNotFoundException e) {\n // should land here\n }\n }", "@Test (expected = NoSuchDatabaseEntryException.class)\r\n\tpublic void failOnFindByIdWithNoMatch() throws NoSuchDatabaseEntryException {\n\t\tdao.findById(-1);\r\n\t}", "public void testAccessObrRepositoryWithCredentialsOk() throws Exception {\n URL url = new URL(\"http://localhost:\" + TestConstants.PORT + m_endpoint + \"/index.xml\");\n URLConnection conn = null;\n try {\n conn = m_connectionFactory.createConnection(url);\n assertNotNull(conn);\n Object content = conn.getContent();\n assertNotNull(content);\n }\n catch (Exception e) {\n printLog(m_logReader);\n throw e;\n } finally {\n NetUtils.closeConnection(conn);\n }\n }", "@Test\n public void throwWrappedExOrOriginEx() {\n assertThatThrownBy(() -> repository.findMemberWithSpringEx())\n .isInstanceOf(EmptyResultDataAccessException.class);\n\n // 2) throw origin ex\n assertThatThrownBy(() -> repository.findMemberWithOriginEx())\n .isInstanceOf(NoResultException.class);\n }", "private void createRepository(URL repository) throws IOException, ProcessingException {\n if(repository.getPath().equals(\"/\"))\n throw new ProcessingException(\"Illegal repository name\");\n try {\n exec(buildSvnWithUsername(\"proplist \"+repository),new File(\".\"),\"N/A\");\n } catch (ProcessingException e) {\n // directory doesn't exist\n URL parent;\n if(repository.getPath().endsWith(\"/\"))\n parent = new URL(repository, \"..\");\n else\n parent = new URL(repository, \".\");\n createRepository(parent);\n\n listener.info(repository+\" doesn't exist. creating\");\n exec(buildSvnWithUsername(\"mkdir -m \\\"\"+commitMessage+\"\\\" \"+repository),new File(\".\"),\"Failed to create directory\");\n }\n }", "@Test\n void findByIdNotFound() {\n // I return an Optional here because \"findById\" in OwnerSDJpaService return either the owner, either null\n when(ownerRepository.findById(anyLong())).thenReturn(Optional.empty());\n\n Owner owner = service.findById(1L);\n\n // I'm expecting to return null\n assertNull(owner);\n }", "@Test\n void saveAndExpectServiceException() {\n DomainUser expected = DomainUser.builder()\n .userName(\"someone\")\n .password(\"short\")\n .build();\n when(ldaptiveTemplate.exists(any(), any())).thenReturn(false);\n assertThrows(\n ServiceException.class,\n () -> userRepository.save(expected, true));\n }", "public void testInexistentNumber() {\n\t\t// Arrange\n\t\tString exceptionNumber = null;\n\t\tPhoneNumberDTO dto = new PhoneNumberDTO(NON_EXISTING_NUMBER);\n\t\tGetLastMadeCommunicationService service\n\t\t\t= new GetLastMadeCommunicationService(dto);\n\t\t\n\t\t// Act\n\t\ttry {\n\t\t\tservice.execute();\n\t\t\tfail(\"Should have thrown PhoneNotExists\");\n\t\t} catch(PhoneNotExists pne) {\n\t\t\texceptionNumber = pne.getNumber();\n\t\t}\n\t\t\n\t\t// Assert\n\t\tassertEquals(\"The number in the exception should be \"\n\t\t\t\t+ NON_EXISTING_NUMBER + \" but it was \" + exceptionNumber,\n\t\t\t\tNON_EXISTING_NUMBER, exceptionNumber);\n\t}", "protected void createRepository() throws Exception {\r\n\t\t\r\n\t\t//Creating MLSesame Connection object Using MarkLogicRepositoryConfig\r\n\t\t\r\n\t\tMarkLogicRepositoryConfig adminconfig = new MarkLogicRepositoryConfig();\r\n\t\tadminconfig.setHost(host);\r\n\t\tadminconfig.setAuth(\"DIGEST\");\r\n\t\tadminconfig.setUser(\"admin\");\r\n\t\tadminconfig.setPassword(\"admin\");\r\n\t\tadminconfig.setPort(restPort);\r\n\t\tRepositoryFactory factory = new MarkLogicRepositoryFactory();\r\n Assert.assertEquals(\"marklogic:MarkLogicRepository\", factory.getRepositoryType());\r\n try {\r\n\t\t\ttestAdminRepository = (MarkLogicRepository) factory.getRepository(adminconfig);\r\n\t\t} catch (RepositoryConfigException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n try {\r\n\t\t\ttestAdminRepository.initialize();\r\n\t\t\ttestAdminCon = (MarkLogicRepositoryConnection) testAdminRepository.getConnection();\r\n\t\t} catch (RepositoryException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n \r\n // Creating testAdminCon with MarkLogicRepositoryConfig constructor\r\n testAdminCon.close();\r\n testAdminRepository.shutDown();\r\n testAdminRepository = null; \r\n testAdminCon = null; \r\n \r\n adminconfig = new MarkLogicRepositoryConfig(host,restPort,\"admin\",\"admin\",\"DIGEST\");\r\n Assert.assertEquals(\"marklogic:MarkLogicRepository\", factory.getRepositoryType());\r\n testAdminRepository = (MarkLogicRepository) factory.getRepository(adminconfig);\r\n testAdminRepository.initialize();\r\n \r\n testAdminCon = testAdminRepository.getConnection();\r\n Assert.assertTrue(testAdminCon instanceof MarkLogicRepositoryConnection);\r\n \r\n Repository otherrepo = factory.getRepository(adminconfig);\r\n RepositoryConnection conn = null;\r\n try{\r\n \t //try to get connection without initializing repo, will throw error\r\n conn = otherrepo.getConnection();\r\n Assert.assertTrue(false);\r\n }\r\n catch(Exception e){\r\n \tAssert.assertTrue(e instanceof RepositoryException);\r\n \tAssert.assertTrue(conn == null);\r\n \totherrepo.shutDown();\r\n }\r\n \r\n Assert.assertTrue(testAdminCon instanceof MarkLogicRepositoryConnection);\r\n graph1 = testAdminCon.getValueFactory().createURI(\"http://marklogic.com/Graph1\");\r\n graph2 = testAdminCon.getValueFactory().createURI(\"http://marklogic.com/Graph2\");\r\n dirgraph = testAdminCon.getValueFactory().createURI(\"http://marklogic.com/dirgraph\");\r\n dirgraph1 = testAdminCon.getValueFactory().createURI(\"http://marklogic.com/dirgraph1\");\r\n \r\n \r\n //Creating MLSesame Connection object Using MarkLogicRepository overloaded constructor\r\n if(testReaderCon == null || testReaderRepository ==null){\r\n \ttestReaderRepository = new MarkLogicRepository(host, restPort, \"reader\", \"reader\", \"DIGEST\");\r\n\t try {\r\n\t\t\t\ttestReaderRepository.initialize();\r\n\t\t\t\tAssert.assertNotNull(testReaderRepository);\r\n\t\t\t\ttestReaderCon = (MarkLogicRepositoryConnection) testReaderRepository.getConnection();\r\n\t\t\t} catch (RepositoryException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t Assert.assertTrue(testReaderCon instanceof MarkLogicRepositoryConnection);\r\n\t \r\n\t }\r\n \r\n \r\n //Creating MLSesame Connection object Using MarkLogicRepository(databaseclient) constructor\r\n if (databaseClient == null){\r\n \tdatabaseClient = DatabaseClientFactory.newClient(host, restPort, \"writer\", \"writer\", DatabaseClientFactory.Authentication.valueOf(\"DIGEST\"));\r\n }\r\n \t\t\r\n\t\tif(testWriterCon == null || testWriterRepository ==null){\r\n\t\t\ttestWriterRepository = new MarkLogicRepository(databaseClient);\r\n\t\t\tqmgr = databaseClient.newQueryManager();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\ttestWriterRepository.initialize();\r\n\t\t\t\tAssert.assertNotNull(testWriterRepository);\r\n\t\t\t\ttestWriterCon = (MarkLogicRepositoryConnection) testWriterRepository.getConnection();\r\n\t\t\t} catch (RepositoryException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\n public void shouldReturnEmptyForInvalidClue()\n {\n assertEquals(0, DatabaseHelper.getCluesForCodename(\"supercalifragilisticexpialidocious\").length);\n }", "public void testupdateAddress_EntityNotFoundException() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.setCreationDate(new Date());\r\n address.setId(1);\r\n this.dao.updateAddress(address, false);\r\n fail(\"EntityNotFoundException expected\");\r\n } catch (EntityNotFoundException e) {\r\n //good\r\n }\r\n }", "public void testAddPaymentTerm_NotExistDatabase() throws Exception {\r\n try {\r\n new SimpleCommonManager(\"SimpleCommonManager_Error_13\")\r\n .addPaymentTerm(this.getPaymentTermWithOutId()); //Will generate 11\r\n fail(\"PaymentTermDAOException is expected\");\r\n } catch (PaymentTermDAOException e) {\r\n assertTrue(e.getMessage()\r\n .indexOf(\"DBConnectionException occurs when creating the database connection\") >= 0);\r\n }\r\n }", "public void initializeRepository() throws ApplicationException;", "@Test(expected = IllegalArgumentException.class)\n\tpublic void getIdEmptyPath2() throws IOException {\n\t\tTreeUtils.getId(new FileRepository(testRepo), Constants.MASTER, \"\");\n\t}", "@Test(expected = SubmarineRuntimeException.class)\n public void testGetNotFoundExperiment() {\n ExperimentId experimentId = new ExperimentId();\n experimentId.setServerTimestamp(System.currentTimeMillis());\n experimentId.setId(1);\n\n // Stub service select\n // Pretend that we cannot find the entity\n when(mockService.select(any(String.class))).thenReturn(null);\n\n // get experiment\n experimentManager.getExperiment(experimentId.toString());\n }" ]
[ "0.646668", "0.6454857", "0.6365912", "0.63468724", "0.6202128", "0.6175904", "0.61428046", "0.61312187", "0.60898536", "0.6070759", "0.60561764", "0.60508657", "0.59864235", "0.5971846", "0.5955056", "0.5940303", "0.59163046", "0.58758897", "0.5873839", "0.5861071", "0.585334", "0.58305323", "0.5761814", "0.5733074", "0.57303214", "0.57259583", "0.57231414", "0.5714119", "0.57098055", "0.56972575", "0.5694724", "0.56815135", "0.56772685", "0.5649825", "0.5642757", "0.5608072", "0.55799025", "0.55681527", "0.55624914", "0.5558182", "0.55574715", "0.5548439", "0.55426335", "0.5506792", "0.54964226", "0.5469759", "0.5464878", "0.54468286", "0.5446312", "0.543966", "0.5436772", "0.5434886", "0.5429247", "0.54206294", "0.54111344", "0.540265", "0.5401353", "0.53932035", "0.53930926", "0.53894466", "0.53875417", "0.5378097", "0.5374854", "0.537087", "0.53671", "0.5366974", "0.5366072", "0.5360937", "0.5352563", "0.5348982", "0.5347607", "0.53438693", "0.5339459", "0.53389025", "0.5326959", "0.53055507", "0.5298488", "0.52943206", "0.52905524", "0.52892506", "0.5287171", "0.5275436", "0.52719134", "0.5270824", "0.5266096", "0.5265132", "0.5265037", "0.5262227", "0.5261191", "0.5259542", "0.52566767", "0.52565265", "0.5255142", "0.5252962", "0.5250523", "0.5250386", "0.52490294", "0.52487504", "0.5248586", "0.52450305" ]
0.74008423
0
Creates a new exception.
public DataException(String field, String reason) { super(reason); this.field = field; this.reason = reason; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Exception() {\n\t\t\tsuper();\n\t\t}", "private SmartServiceException createException(Throwable t, String key, Object... args) {\n return new SmartServiceException.Builder(getClass(), t).userMessage(key, args).build();\n }", "public Exception() {\n\tsuper();\n }", "public NSException() {\n\t\tsuper();\n\t\tthis.exception = new Exception();\n\t}", "SpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException createSpaceInvaderTest_test_UnNouveauVaisseauPositionneHorsEspaceJeu_DoitLeverUneException();", "public CIMException() {\n\t\tthis((String) null, (Object[]) null);\n\t}", "protected static ExceptionSignalingNode createExceptionNode(final SourceSection ss) {\n CompilerDirectives.transferToInterpreter();\n return ExceptionSignalingNode.createNode(Symbols.symbolFor(\"TypeError\"), ss);\n }", "public Exception(String s) {\n\tsuper(s);\n }", "public EmailException()\n {\n super();\n }", "public HttpException() {\n }", "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "public static EntityServiceException create(final Throwable ex) throws EntityServiceException {\n if (ex instanceof EntityServiceException) {\n LOGGER.trace(\"create() - {}\", ex.getMessage());\n\n return (EntityServiceException) ex;\n } else {\n LOGGER.debug(\"create() - wrapping exception\", ex);\n\n return unwrap(ex);\n }\n }", "public IllegalArgumentException buildException() {\n return this.buildException(null);\n }", "public OperationException() {\n super();\n }", "public TechnicalException() {\r\n }", "MyException(String str)\n {\n //parametrize constructor\n super(str);\n }", "public MyException(String message)\n { super(message); }", "public JavaException()\r\n\t{\r\n\t\tsuper();\r\n\t}", "public NoTraceOntimizeJEEException() {\r\n this((String) null);\r\n }", "public SMSLibException(Throwable originalE)\n/* 17: */ {\n/* 18:45 */ this.originalE = originalE;\n/* 19: */ }", "public SMSLibException() {}", "public PriceModelException() {\n\n }", "public TypeException() {\n }", "public Error() {\n }", "public AditoGitException(Exception pE)\n {\n super(pE);\n }", "public OLMSException() {\r\n super();\r\n }", "public TrafficspacesAPIException() {\n \tthis(null, DEFAULT_MESSAGE);\n }", "public Exception(String message) {\n\t\t\tsuper(message);\n\t\t}", "public static BillingServiceException createException(URISyntaxException e, FlowName flowName, String queueName) {\r\n return BillingServiceException.createBugDisturbance(\"Azure problem for integration \" + flowName + \" azure queue: \" +\r\n queueName + \" URISyntaxException towards Azure. Input: \" + e.getInput() +\r\n \" Reason: \" + e.getReason() + \" Message: \" + e.getMessage());\r\n }", "public static BillingServiceException createException(InvalidKeyException e, FlowName flowName, String queueName) {\r\n return BillingServiceException.createBugDisturbance(\"Azure problem for integration \" + flowName + \" azure queue: \" +\r\n queueName + \" InvalidKeyException towards Azure: \" + e.getMessage());\r\n }", "public BusinessObjectException(Exception e) {\r\n super( \"\" + e );\r\n }", "public XDBBaseException() {\n }", "public StockException() {\r\n\t\tsuper();\r\n\t}", "public SMSLibException(String errorMessage, Throwable originalE)\n/* 22: */ {\n/* 23:50 */ super(errorMessage);\n/* 24:51 */ this.originalE = originalE;\n/* 25: */ }", "public AditoGitException(String pMessage, Exception pE)\n {\n super(pMessage, pE);\n }", "public ScheduleException() {\r\n }", "public UnmatchedException(){\r\n\r\n\t}", "protected abstract SVGException createSVGException(short type, String key, Object[] args);", "public EmailException(String msg)\n {\n super(msg);\n }", "public PizzaException() {\n super(\"That pizza has been eaten.\");\n }", "public MyException(String message) {\r\n\t\tsuper(message);\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public OperationFailedException(String message, Exception causeOfException){\n super(message, causeOfException);\n }", "public BusinessObjectException() {\r\n super();\r\n }", "public QueryException() {\n\n }", "public ExceptionBase( ExceptionType exceptionType ) {\n\t\tsuper();\n\t\texceptionsCatching( exceptionType );\n\t}", "public TeWeinigGeldException(Exception e) {this.e = e;}", "public MyMoneyException() {\r\n\t\tsuper();\r\n\t}", "public MRFException() {\n\t\tsuper();\n\t}", "public ViaturaExistenteException(){\n super();\n }", "public ElFicheroNoExisteException() {\n }", "public BaseException(String message) {\n super(message);\n setErrorCode();\n }", "@Test\n public void testConstructorWithMessageAndCause()\n {\n final RuntimeException cause = new RuntimeException();\n final LoaderException e = new LoaderException(\"Custom message\", cause);\n assertEquals(\"Custom message\", e.getMessage());\n assertEquals(cause, e.getCause());\n }", "GitletException() {\n super();\n }", "com.palantir.paxos.persistence.generated.PaxosPersistence.ExceptionProto getException();", "public GameBuyException() {\n }", "public void testApplicationsManagerExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n ApplicationsManagerException ce = new ApplicationsManagerException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", ce.getMessage());\n assertEquals(\"cause is incorrect.\", e, ce.getCause());\n }", "public Neo4jException(String message) {\n this(\"N/A\", message);\n }", "public static BillingServiceException createException(StorageException e, FlowName flowName, String queueName) {\r\n String errorMessage = getStorageExceptionString(e, flowName, queueName);\r\n return BillingServiceException.createIntegrationDisturbance(errorMessage, e.getHttpStatusCode());\r\n }", "public ResourceException(Exception exception) {\r\n super(exception);\r\n }", "public ExcelImportException() {\r\n\t\tsuper();\r\n\t}", "public void testConfigurationExceptionCtor2_Exception() {\n Throwable cause = new Exception();\n\n // create a exception instance for test.\n test = new ConfigurationException(TEST_MESSAGE, cause);\n\n // check null here.\n assertNotNull(\"Create ConfigurationException failed.\", test);\n\n // check the type here.\n assertTrue(\"The ConfigurationException should extend from ReviewManagementException.\",\n test instanceof ReviewManagementException);\n\n // check error message and cause here.\n assertNotNull(\"Error message expected.\", test.getMessage());\n assertEquals(\"Equal inner cause expected.\", cause, test.getCause());\n }", "public void testCtor_ProjectConfigurationException() {\n System.setProperty(\"exception\", \"ProjectConfigurationException\");\n try {\n new AddActionStateAction(state, activityGraph, manager);\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n } finally {\n System.clearProperty(\"exception\");\n }\n }", "public void testPersistenceExceptionAccuracy2() throws Exception {\n Exception e = new Exception(\"error1\");\n PersistenceException pe = new PersistenceException(\"error2\", e);\n assertEquals(\"message is incorrect.\", \"error2\", pe.getMessage());\n assertEquals(\"cause is incorrect.\", e, pe.getCause());\n }", "public EntityTransactionException() {\r\n\t\tsuper();\r\n\t}", "public SmppException() {\n\t\tsuper();\n\t}", "static private ArithmeticException exception(String exp, int ofs, String txt) {\r\n return new ArithmeticException(txt+\" at offset \"+ofs+\" in expression \\\"\"+exp+\"\\\"\");\r\n }", "public ShopingCartException() {\n\tsuper(); // call superclass constructor\n\tmistake = \"unknown\";\n }", "public static TypeReference newExceptionReference(int exceptionIndex) {\n/* 282 */ return new TypeReference(0x17000000 | exceptionIndex << 8);\n/* */ }", "public void testConstructorWithMessageAndCauseAndRejectReason() {\r\n RejectReasonNotFoundException exception = new RejectReasonNotFoundException(message, cause, reason);\r\n\r\n assertNotNull(\"Unable to instantiate RejectReasonNotFoundException\", exception);\r\n assertTrue(\"Message is not initialized correctly\", exception.getMessage().matches(message + \".*\"));\r\n assertEquals(\"Cause is not initialized correctly\", cause, exception.getCause());\r\n assertEquals(\"ProblemRejectReason is not initialized correctly\", reason, exception.getProblemRejectReason());\r\n }", "public EntityAlreadyExistsException() {\n\t\tsuper(\"exception.entity.already.exists\");\n\t}", "public SearchException() {\n }", "static EnigmaException error(String msgFormat, Object... arguments) {\n return new EnigmaException(String.format(msgFormat, arguments));\n }", "public void testStorageException()\n {\n // 1. Test StorageException(aMsg) constructor.\n String expMessage = \"Test Message!\";\n StorageException exp = new StorageException(expMessage);\n assertTrue(\"Invalid message\", expMessage.equals(exp.getMessage()));\n\n // 2. Test StorageException(aMsg, rootExp) constructor.\n String rootMessage = \"Root Message!\";\n Exception rootExp = new Exception(rootMessage);\n\n // 3. Test getRootException return root exception.\n exp = new StorageException(expMessage, rootExp);\n assertTrue(\"Invalid message\", expMessage.equals(exp.getMessage()));\n\n Exception rootThrowable = (Exception) exp.getRootException();\n assertTrue(\"Invalid root message\",\n rootMessage.equals(rootThrowable.getMessage()));\n }", "public DynamicDeckDynamoException() {\n }", "public EmployeeException(String message) {\n\t\tsuper(message);\n\t}", "public SmppException(Exception e) {\n\t\tsuper(e);\n\t}", "public PropagationException() {\n }", "public TypeException(String msg, Throwable ex) {\n super(msg,ex);\n }", "public CacheException() {\r\n\t\tsuper();\r\n\t}", "private ModelValidationException constructClassException (String className, \n\t\tObject relatedField, String keyBase)\n\t{\n\t\treturn constructClassException(ModelValidationException.ERROR, \n\t\t\tclassName, relatedField, keyBase);\n\t}", "static GitletException error(String msgFormat, Object... arguments) {\n return new GitletException(String.format(msgFormat, arguments));\n }", "protected CustomException getException(int code, String message, Object... objects) {\n return new CustomException(code, String.format(message, objects));\n }", "public CalculadoraException() {\r\n }", "public Win32Exception(HRESULT hr) {\n this(W32Errors.HRESULT_CODE(hr.intValue()), hr);\n }", "public ResourceException(String reason, Exception exception) {\r\n super(reason, exception);\r\n }", "public RDISException(String msg) {\n\t\tthis(msg, null);\n\t}", "public ItemInvalidoException() {\r\n }", "public KillException() {}", "public SMSLibException(String errorMessage)\n/* 10: */ {\n/* 11:34 */ super(errorMessage);\n\n/* 12: */ }", "public CanyonException()\r\n {\r\n super();\r\n }", "public VelocityEmailException()\n {\n super();\n }", "GitletException(String msg) {\n super(msg);\n }", "public CommunicationException() {\r\n\t\tsuper();\r\n\t}", "public JsonParseException _constructError(String msg) {\n return new JsonParseException(this, msg).withRequestPayload(this._requestPayload);\n }", "public ExceptionDate(){\n\t\tsuper();\n\t}", "public EmployeeNotFoundException() {\n super();\n }", "public MyException(){\r\n super(\"Loi sai nhap du lieu!!!!\");// super là nói về lớp cha- đại diện đối tượng cha\r\n }", "public negativeNumberException() {\r\n\t \t \r\n\t }", "public AuthException()\n {\n\n }", "Constructor<? extends RefException> getExceptionConstructor(\n String qualifiedExceptionName,\n String qualifiedPackageName\n );", "@Test(expected = IllegalArgumentException.class)\r\n public void constructorExceptionTest(){\n Owner invalid = new Owner(\"First\", \"Last\", \"333\");\r\n }" ]
[ "0.6823352", "0.67047155", "0.6681301", "0.6571406", "0.6513819", "0.6426842", "0.6401606", "0.6356658", "0.6334693", "0.62799597", "0.62499267", "0.62492573", "0.62174106", "0.61786336", "0.6164709", "0.61283827", "0.6114958", "0.6093963", "0.60892016", "0.6083234", "0.6079918", "0.6073458", "0.60522926", "0.60511947", "0.6047091", "0.6003209", "0.59996146", "0.5996047", "0.5990224", "0.59574467", "0.5948505", "0.5947366", "0.59241855", "0.5923184", "0.59177274", "0.5908782", "0.5899587", "0.58985054", "0.58966905", "0.58944535", "0.5888874", "0.5886018", "0.58775884", "0.5873347", "0.5867625", "0.58649087", "0.58585435", "0.5853193", "0.5829664", "0.58228874", "0.5818702", "0.5811452", "0.5809833", "0.58039033", "0.5801814", "0.57967645", "0.57912374", "0.57819796", "0.5780156", "0.57796615", "0.5778053", "0.5765398", "0.576203", "0.5759445", "0.5753963", "0.57537144", "0.5751886", "0.5746946", "0.57436496", "0.5743241", "0.5743181", "0.57430965", "0.573679", "0.57298994", "0.57291454", "0.57262063", "0.57219344", "0.5710175", "0.5709312", "0.57090324", "0.5706548", "0.5698568", "0.5696962", "0.5694657", "0.5692832", "0.56920844", "0.5688517", "0.5686607", "0.56857353", "0.56778514", "0.56762284", "0.5664152", "0.5660703", "0.5656148", "0.5652439", "0.56513035", "0.56511486", "0.56366116", "0.5630395", "0.5629653", "0.56243" ]
0.0
-1
EventListener for basic/common events send from the drone.
public interface CommonEventListener extends EventListener { default boolean filterProject(byte[] data, int project, int clazz, int cmd) { return data[7] == project && data[8] == clazz && data[9] == cmd; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}", "@Override\r\n public void onEvent(FlowableEvent event) {\n }", "@Subscribe\n public void onEvent(Object event) {\n }", "@Subscribe\n public void onEvent(Object event) {\n }", "@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}", "public void handleSensorEvents(){\n\t}", "public void simpleEvent() {\n AdGyde.onSimpleEvent(\"SimpleEventID\");\n Toast.makeText(this, \"Simple event clicked\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onEvent(String eventName, HashMap dataFromHansel) {\n if (\"hansel_nudge_event\".equals(eventName)) {\n FirebaseAnalyticsHelper.logEvent(this, \"hansel_nudge_event\", dataFromHansel);\n }\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}", "public void dataSent(LLRPDataSentEvent event);", "public void processEvent(SimEvent ev) {\n switch(ev.getTag()) {\n case OBSERVE: //It is my custom event\n //I must observe the datacenter\n balanceLoadCheck();\n //Observation loop, re-observe in `delay` seconds\n send(this.getId(), delay, OBSERVE, null);\n }\n }", "void onNewEvent(Event event);", "void subscribeToEvents(Listener listener);", "@Override\n\t\tpublic void onDeviceEventReceived(DeviceEvent ev, String client) {\n\t\t\t\n\t\t}", "void onBusEvent(Event event);", "@Override\n public void onEventReceived(Event event) {\n super.onEventReceived(event);\n\n switch (event.getRawEventType())\n {\n case Track:\n trackManager.manageTrackEvent(event);\n break;\n case TentativeTracking:\n manageTentativeTrackingEvent(event);\n break;\n case Tracking:\n manageTrackingEvent(event);\n break;\n }\n }", "@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 handleEvent(EnOceanMessage data) {\n\t}", "void onNetworkEvent(NetworkEvent event);", "public void onEvent(TCPReceiverThread receiverThread, Event event) throws IOException;", "void handleEvent(int event, String remainder) {\n switch (event) {\n case DISCONNECTED:\n handleNetworkStateChange(NetworkInfo.DetailedState.DISCONNECTED, remainder);\n break;\n\n case CONNECTED:\n handleNetworkStateChange(NetworkInfo.DetailedState.CONNECTED, remainder);\n break;\n\n case SCAN_RESULTS:\n mWifiStateTracker.notifyScanResultsAvailable();\n break;\n\n case TERMINATING:\n supplicantConnected = false;\n mWifiStateTracker.notifySupplicantLost();\n break;\n\n case UNKNOWN:\n break;\n }\n }", "private void readEvent() {\n\t\t\t\n\t\t\thandlePacket();\n\t\t\t\n\t\t}", "public abstract void onEvent(T event);", "public void addEventListener(EventListener evl) {\n m_eventSender.addListener(evl);\n }", "@Override\r\n public void driverBaseDataReceived(PeripheralHardwareDataEvent oEvent);", "void onEvent (ZyniEvent event, Object ... params);", "public void consulterEvent() {\n\t\t\n\t}", "protected void onEvent(DivRepEvent e) {\n\t\t}", "protected void onEvent(DivRepEvent e) {\n\t\t}", "public void callSendEvent(PacketEvent event) {\n\t\tfor(PacketListener l : PACKET_OUT_LISTENER) \n\t\t\tl.onEvent(event);\n\t}", "@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}", "public void transmitEvents(){\n Log.info(\"Transmitting Events\", EventShare.class);\n for(Entry<Class, List<EventTrigger>> eventGroup: HandlerRegistry.getHandlers().entrySet()){\n String annotation = eventGroup.getKey().getName();\n for(EventTrigger trigger : eventGroup.getValue()){\n if(trigger.getServer()!=this) { // do not send own events...\n if(trigger.getMethod()!=null){ // its a local event\n if(trigger.getMethod().isAnnotationPresent(ES.class)){\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }else {\n try {\n eventBusServer.write(new ESSharedEvent(annotation, trigger.getTrigger()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n }\n }\n }", "private static void handleEvent(Object listener, Object event) {\n RxAnnotatedHandlerFinder.handleEvent(listener, event);\n }", "private void registerEvents(){\n\t\tPluginManager pm = getServer().getPluginManager();\r\n\t\t//PlayerListener stuff\r\n\t pm.registerEvent(Event.Type.PLAYER_CHAT, playerListener, Event.Priority.Normal, this);\r\n\t pm.registerEvent(Event.Type.PLAYER_MOVE, playerListener, Event.Priority.Normal, this);\r\n\t pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.PLAYER_INTERACT, playerListener, Event.Priority.Normal, this);\r\n\t //BlockListener stuff\r\n pm.registerEvent(Event.Type.BLOCK_PLACE, blockListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.BLOCK_DAMAGE, blockListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.BLOCK_BREAK, blockListener, Event.Priority.Normal, this);\r\n //EntityListener stuff\r\n pm.registerEvent(Event.Type.CREATURE_SPAWN, entityListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.ENTITY_DAMAGE, entityListener, Event.Priority.Normal, this);\r\n //ServerListener stuff\r\n pm.registerEvent(Event.Type.PLUGIN_ENABLE, serverListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.PLUGIN_DISABLE, serverListener, Event.Priority.Normal, this);\r\n }", "@Override\n\tprotected void onEventComming(EventCenter eventCenter) {\n\t}", "public void handleEvent(Event event) {\n\t\t\t\t}", "@Override\n\tpublic void eventFired(TChannel channel, TEvent event, Object[] args) {\n\t\t\n\t}", "@Override\n\tpublic void ACC_X_ObjectEvent(Interface.ACC_X_ObjectEvent e, String data) {\n\t\t\n\t}", "public interface NewDeviceDetectedEventListener extends EventListener {\r\n\tpublic void newDeviceDetectedEventOccurred(NewDeviceDetectedEvent evt);\r\n }", "public void onEvent(Event connectionEvent) {\n\t\tlog(connectionEvent);\n\t}", "@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}", "public void startNewEvent() {\n // JCudaDriver.cuEventRecord(cUevent,stream);\n }", "public synchronized void dispatch(IpcEvent event) {\n\t\tfor (IIpcEventListener listener : listeners) {\n\t\t\tlistener.handleEvent(event);\n\t\t}\n\t}", "private void registerEvents(){\n Bukkit.getPluginManager().registerEvents(new RegionListener(), this);\n Bukkit.getPluginManager().registerEvents(new SignListener(), this);\n Bukkit.getPluginManager().registerEvents(new PrisonerListener(), this);\n Bukkit.getPluginManager().registerEvents(new PrisonBlockListener(), this);\n Bukkit.getPluginManager().registerEvents(new MonitorListener(), this);\n Bukkit.getPluginManager().registerEvents(new PortalListener(), this);\n }", "public void driverBaseDataReceivedProxy(PeripheralHardwareDataEvent oEvent);", "public void listener() {\n\t\tif (this.command.getMode().equals(Command.MODE_TRACK)) {\n\t\t\tFilterQuery filterQuery = new FilterQuery();\n\t\t\tfilterQuery.track(this.command.getKeywords().toArray(new String[this.command.getKeywords().size()]));\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.filter(filterQuery);\n\t\t} else if (this.command.getMode().equals(Command.MODE_SAMPLE)) {\n\t\t\ttwitterStream.addListener(myListener);\n\t\t\ttwitterStream.sample();\n\t\t} else {\n\t\t\t// do search\n\t\t}\n\t}", "public void callReceiveEvent(PacketEvent event) {\n\t\tfor(PacketListener l : PACKET_IN_LISTENER) \n\t\t\tl.onEvent(event);\n\t}", "@Override\n public void handle(Event event) {\n }", "public void registerEvents()\n {\n \t\tfinal pchestPlayerListener playerListener = new pchestPlayerListener(this, chestManager);\n \t\tfinal pchestEntityListener entityListener = new pchestEntityListener(this, chestManager);\n \t\tfinal pchestBlockListener blockListener = new pchestBlockListener(this, chestManager);\n \t\t\n \t\t\n pm = getServer().getPluginManager();\n \n /* Entity events */\n pm.registerEvent(Type.ENTITY_EXPLODE, entityListener, Event.Priority.Normal, this);\n \n /* Player events */\n pm.registerEvent(Type.PLAYER_INTERACT, playerListener, Event.Priority.Normal, this);\n \n /* Block events */\n \t\tpm.registerEvent(Type.BLOCK_PLACE, blockListener, Event.Priority.Normal, this);\n \t\tpm.registerEvent(Type.BLOCK_BREAK, blockListener, Event.Priority.Normal, this);\n \n \t\t\n /* Spout Required events */\n \t\tif(SpoutLoaded)\n \t\t{\n \t\t\tfinal pchestInventoryListener inventoryListener = new pchestInventoryListener(this, chestManager);\n \n \t /* Inventory events */\n \t\t\tpm.registerEvent(Type.CUSTOM_EVENT, inventoryListener, Event.Priority.Normal, this);\n \t\t}\n }", "@Override\n public void TouchEventArose(int eventType, List<TouchPointer> avaiPointers) {\n byte[] byteData = Utilities.getByteDataOfTouchEvent(eventType,avaiPointers);\n wsListener.sendBytes(byteData);\n }", "@Override\n public void onEvent(Event event) {\n if (event.getClass() != MessageReceivedEvent.class)\n return;\n MessageReceivedEvent msgEvent = (MessageReceivedEvent) event;\n\n String threadName = Thread.currentThread().getName();\n\n for (Command command : commands) {\n if (!command.match(msgEvent))\n continue;\n\n LOG.info(\"Dispatching event to command {}\", command);\n\n // Metrics\n METRICS_RUNNING.labels(command.toString(), threadName)\n .inc();\n Histogram.Timer timer = METRICS_LATENCY.labels(command.toString(), threadName)\n .startTimer();\n\n // Invoke\n Object ret = null;\n try {\n ret = command.getMethod().invoke(command.getInstance(), event);\n } catch (InvocationTargetException ex) {\n // Exception in listener's code\n //todo better logging\n LOG.error(ex.getTargetException());\n continue;\n } catch (IllegalAccessException ex) {\n // Should never happen\n throw new RuntimeException(ex);\n } finally {\n // Metrics\n Runnable endMetrics = () -> {\n LOG.debug(\"Finished dispatching event for {}\", command);\n METRICS_RUNNING.labels(command.toString(), threadName)\n .dec();\n timer.observeDuration();\n };\n\n if (ret instanceof CompletionStage) {\n CompletionStage<?> future = (CompletionStage<?>) ret;\n future.thenRunAsync(endMetrics);\n } else {\n endMetrics.run();\n }\n }\n }\n }", "public abstract void callback(VixHandle handle, int eventType, \n\t\tVixHandle moreEventInfo, Object clientData);", "protected void notifyListeners(BAEvent event) {\n \t\ttmc.callListeners(event); /// Call our listeners listening to only this match\n \t\tevent.callEvent(); /// Call bukkit listeners for this event\n \t}", "@Override\n public void onEvent(EMNotifierEvent event) {\n\n }", "@Override\n\tpublic void WEIGHT_ObjectEvent(Interface.WEIGHT_ObjectEvent e, String data) {\n\t\t\n\t}", "@Override\n\t\tprotected void onEvent(DivRepEvent arg0) {\n\t\t\t\n\t\t}", "public void processEvent(GovernanceEngineEvent event)\n {\n if (listener != null)\n {\n // todo\n }\n }", "@Override\n public void onEvent(Event t) throws CSenseException {\n }", "@Override\n\t\t\tpublic void onEvent(ObjectEvent event) {\n\t\t\t\t\n\t\t\t\tRankTempInfo rankInfo = RankServerManager.getInstance().getRankTempInfo(player.getPlayerId());\n\t\t\t\tif(rankInfo!=null){\n\t\t\t\t\tgetTask().updateProcess((int)rankInfo.getSoul());\n\t\t\t\t}\n\t\t\n\t\t\t\t\n\t\t\t}", "@EventName(\"receivedMessageFromTarget\")\n EventListener onReceivedMessageFromTarget(EventHandler<ReceivedMessageFromTarget> eventListener);", "@Override\n\tpublic boolean onEvent( HCI_Event evt) {\n\t\tif ( evt instanceof HCI_CommandComplete) {\n\t\t} else if ( evt instanceof HCI_CommandStatus) {\n\t\t} else if ( evt instanceof HCI_InquiryComplete) {\n\t\t} else if ( evt instanceof HCI_InquiryResult) {\n\t\t} else if ( evt instanceof HCI_ConnectionComplete) {\n\t\t} else if ( evt instanceof LE_AdvertisingReport) {\n\t\t\tfinal LE_AdvertisingReport le_ar = (LE_AdvertisingReport) evt;\n\t\t\tDate timeOfCapture = new Date(); // current time\n\t\t\treturn this.handle_LE_AdvertisingReport( le_ar, timeOfCapture);\n\t\t} else {\n\t\t\tlogger.warning( \"unhandled event: \" + evt.toString());\n\t\t}\n\t\treturn true;\n\t}", "@Override\n\tpublic void GYR_X_ObjectEvent(Interface.GYR_X_ObjectEvent e, String data) {\n\t\t\n\t}", "@EncoderThread\n protected void onEvent(@NonNull String event, @Nullable Object data) {}", "@Override\r\n public void run() {\r\n if (event.getEventType().equals(DrivingEventType.OVERSPEED)) {\r\n overspeedStartTimestamp = System.currentTimeMillis();\r\n LocationController.addListenerToContainer(this);\r\n } else {\r\n AccelerometerValuesController.addListenerToContainer(this);\r\n }\r\n }", "private void initializeEvents() {\r\n\t}", "public void onDocumentoSubidoEventListener(DocumentoSubidoEvent event){}", "@Override\n\tpublic void ACC_Y_ObjectEvent(Interface.ACC_Y_ObjectEvent e, String data) {\n\t\t\n\t}", "private void delegate(MessageEvent event) throws IOException {\n MessageChannel channel = event.getChannel();\n BullyAlgorithmParticipantImpl.Message messageType = BullyAlgorithmParticipantImpl.Message.valueOf(event.getActionCommand());\n\n int senderProcessId = 0;\n try {\n senderProcessId = channel.readNextInt();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n switch(messageType) {\n case Election:\n self.onElectionMessage(senderProcessId);\n break;\n case Answer:\n self.onAnswerMessage(senderProcessId);\n break;\n case Victory:\n self.onVictoryMessage(senderProcessId);\n break;\n }\n }", "protected abstract void collectFires(Collection<Object> evAndListeners);", "public interface EventListener\n{\n\n /**\n * This method is called when data is received from the DMM.\n *\n * <p>\n * More specifically, the received packet must be valid, then decoded, then the Data Object is updated, *then* this method is called.\n */\n public void dataUpdateEvent();\n\n}", "public void handleEvent(Event event) {\n switch(event.type) {\n case Arrival:\n arrival(event.intersection, event.direction, event.time, event.vehicle);\n break;\n case Departure:\n departure(event.intersection, event.time, event.vehicle, event.direction);\n break;\n // Northbound traffic light events\n case GreenSouth:\n greenSouth(event.intersection, event.direction, event.time);\n break;\n case RedSouth:\n redSouth(event.intersection, event.direction, event.time);\n break;\n // Westbound traffic light turn right\n case GreenEastTurnRight:\n greenEastTurnRight(event.intersection, event.time);\n break;\n case RedEastTurnRight:\n redEastTurnRight(event.intersection);\n break;\n // Eastbound traffic light turn left\n case GreenWestTurnLeft:\n greenWestTurnLeft(event.intersection, event.time);\n break;\n case RedWestTurnLeft:\n redWestTurnLeft(event.intersection);\n break;\n case Exit:\n exit(event.intersection, event.time, event.vehicle, event.direction);\n break;\n default:\n System.out.println(\"Error - EventHandler.handleEvent: Wrong Event!\");\n }\n }", "@EventName(\"targetInfoChanged\")\n EventListener onTargetInfoChanged(EventHandler<TargetInfoChanged> eventListener);", "public void logEvent(String message) {\n System.out.println(\"PC Log.listener: \"+message);\n\n }", "public interface EventListener {\n\n /**\n * Called when an event (function call) finishes successfully in MockRestRequest. Does *not* trigger if the event\n * (function) fails.\n * @param mockRestRequest the {@link MockRestRequest} where the event occurred.\n * @param event the {@link Event} that occurred.\n */\n public void onEventComplete(MockRestRequest mockRestRequest, Event event);\n }", "private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}", "private void fireEvent(CardView cardView, EventType<CardEvent> eventType) {\n if (cardEventHandler != null) {\n cardEventHandler.handle(new CardEvent(cardView, eventType));\n }\n }", "void doEvent(LightEvent what);", "@Override\n\tpublic void listenerStarted(ConnectionListenerEvent evt) {\n\t\t\n\t}", "public synchronized void asyncEvent(int eventCode, int eventData1, int eventData2)\n {\n StorageManagerEvent event = null;\n if (log.isDebugEnabled())\n {\n log.debug(\" ASync Event : EventCode: \" + eventCode + \" Native Handle \" + eventData1 + \" Status \"\n + eventData2);\n }\n switch (eventCode)\n {\n case StorageManagerEvent.STORAGE_PROXY_ADDED:\n {\n // Creates the new StorageProxy object, stores the Object and\n // Notify\n // to all Listeners.\n StorageProxy storageProxy = createStorageProxy(eventData1, (byte) eventData2);\n storageProxyHolder.put(new Integer(eventData1), storageProxy);\n event = new StorageManagerEvent(storageProxy, StorageManagerEvent.STORAGE_PROXY_ADDED);\n if (log.isDebugEnabled())\n {\n log.debug(\" asyncEvent:New Device added, Name :\" + storageProxy.getDisplayName());\n }\n break;\n }\n case StorageManagerEvent.STORAGE_PROXY_REMOVED:\n {\n // Removes the StorageProxy object for the Handle and Notifies\n // to\n // all Listeners.\n StorageProxyImpl storageProxy = (StorageProxyImpl) storageProxyHolder.get(new Integer(eventData1));\n storageProxyHolder.remove(new Integer(eventData1));\n // Set the state in the proxy to OFFLINE to signify the device\n // does not exist\n storageProxy.onStatusChange(StorageProxy.OFFLINE);\n event = new StorageManagerEvent(storageProxy, StorageManagerEvent.STORAGE_PROXY_REMOVED);\n if (log.isDebugEnabled())\n {\n log.debug(\"asyncEvent: New Device Removed Name :\" + storageProxy.getDisplayName());\n }\n break;\n }\n case StorageManagerEvent.STORAGE_PROXY_CHANGED:\n {\n // Informs the storage proxy the status has been changed via\n // onStatusChange()and Notifies all Listeners.\n StorageProxyImpl storageProxy = (StorageProxyImpl) storageProxyHolder.get(new Integer(eventData1));\n storageProxy.onStatusChange((byte) eventData2);\n event = new StorageManagerEvent(storageProxy, StorageManagerEvent.STORAGE_PROXY_CHANGED);\n if (log.isDebugEnabled())\n {\n log.debug(\"asyncEvent: Device Status Changed :\" + storageProxy.getDisplayName());\n }\n break;\n }\n default:\n {\n if (log.isDebugEnabled())\n {\n log.debug(\"asyncEvent:Not a Valid Event\");\n }\n }\n }\n if (event != null)\n {\n postEvent(event);\n }\n }", "abstract public void fireEvent(String eventkey, Object listener, Object event);", "public void recvSensorEvent(Object data_)\n\t{\n\t\tList<Tuple> event = ConstructSensingEvent((Message) data_) ;\n\t\tmicroLearner.handleSensorEvent(event);\t\t\n\t}", "private void registerGlobalEvents() {\n\t\tsubmit(new CycleEvent());\n\t\tsubmit(new CleanupEvent());\n\t\tsubmit(new FloorItemEvent());\n\t}", "@Override\n public void onEvent(Event event) {\n lock.lock();\n\n try {\n runtime.onEvent(event);\n } finally {\n lock.unlock();\n }\n }", "public void sendEvent(Event event);", "protected void dispatchEvent(GraphEvent event) {\n synchronized (listenerConfigs) {\n Iterator<ListenerConfiguration> iter = listenerConfigs.iterator();\n while (iter.hasNext()) {\n ListenerConfiguration config = iter.next();\n GraphListener registeredListener = config.getListener();\n if (registeredListener == null) {\n iter.remove();\n continue;\n }\n if (config.getFilter().match(event.getTriple())) {\n delayedNotificator.sendEventToListener(registeredListener, event);\n }\n }\n }\n }", "@Override\n public void onDataChanged(DataEventBuffer dataEvents) {\n // Not used\n }", "public interface OnEventAvailableListener {\n\tpublic void OnEventAvailable(Message msg);\n}", "@Override\n\tpublic void DataAcquisitionObjectEvent(Interface.DataAcquisitionObjectEvent e,String data) {\n\t\t\n\t}", "@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}", "@Override\r\n\tprotected void bindEvents() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void bindEvents() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}", "Event () {\n // Nothing to do here.\n }" ]
[ "0.7135387", "0.6599015", "0.659037", "0.646429", "0.646429", "0.6428546", "0.6428546", "0.6428546", "0.6428546", "0.6428546", "0.64027745", "0.6370631", "0.63398874", "0.62998277", "0.62998277", "0.62998277", "0.62812734", "0.6276186", "0.6273385", "0.6259089", "0.62561524", "0.62439895", "0.62342304", "0.6200361", "0.6200361", "0.61742765", "0.6161753", "0.6141277", "0.61367065", "0.6126869", "0.6108259", "0.6107269", "0.6101207", "0.6100669", "0.61002284", "0.60993147", "0.60993147", "0.60948", "0.6078976", "0.6077267", "0.60492873", "0.604489", "0.6042345", "0.60160863", "0.60001457", "0.5978332", "0.59620816", "0.5936752", "0.59329206", "0.59242594", "0.59090936", "0.5908407", "0.5906004", "0.5905015", "0.59043217", "0.59020615", "0.59010226", "0.5898291", "0.5890922", "0.5879975", "0.58661956", "0.58639395", "0.58637124", "0.5862512", "0.58592665", "0.5857467", "0.5857234", "0.5848188", "0.58401287", "0.58323574", "0.5819427", "0.58057445", "0.5798727", "0.5795889", "0.5795397", "0.5791178", "0.5785761", "0.5779512", "0.5772063", "0.57662815", "0.57634044", "0.5756573", "0.5755596", "0.5751868", "0.57515675", "0.57479554", "0.5744921", "0.57391435", "0.573066", "0.57233465", "0.571892", "0.5715695", "0.57021904", "0.569636", "0.56956744", "0.56952375", "0.56941795", "0.569299", "0.569299", "0.56864595", "0.56757647" ]
0.0
-1
Register Click Button Clicked
public void RegisterClick(View view) { Intent intent = new Intent(this, RegisterActivity.class); startActivity(intent); Toast.makeText(getApplicationContext(), "Register as a new user", Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onTapToRegister();", "public void buttonClicked();", "public void clickOnRegisterButton() {\n Reporter.addStepLog(\" Click on register button \" + _registerBtn.toString());\n clickOnElement(_registerBtn);\n log.info(\" Click on register button \" + _registerBtn.toString());\n }", "@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}", "private void addClick() {\n\t\tfindViewById(R.id.top_return).setOnClickListener(this);\n\t\tfm1_jhtx.setOnClickListener(this);\n\t\tfm1_sx.setOnClickListener(this);\n\t}", "public void addListenerOnButton() {\n\n\t\t//koppel de button code aan een widget en voeg een onclicklistener toe\n\t\tsettings = (Button) findViewById(R.id.settings);\n\n\t\tsettings.setOnClickListener(new OnClickListener() {\n\t\t\t//koppel de button aan een nieuw xml scherm wat opent\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\n\t\t\t\tIntent myIntent = new Intent(view.getContext(), Settings.class);\n\t\t\t\tstartActivityForResult(myIntent, 0);\n\t\t\t}\n\n\t\t});\n\n\t\tsearch = (Button) findViewById(R.id.search);\n\n\t\tsearch.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\n\t\t\t\tIntent myIntent = new Intent(view.getContext(), Search.class);\n\t\t\t\tstartActivityForResult(myIntent, 0);\n\t\t\t}\n\t\t});\n\t\tterug = (Button) findViewById(R.id.terug);\n\n\t\tterug.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tsetResult(RESULT_OK, intent);\n\t\t\t\tfinish();\n\t\t\t}\n\n\t\t});\n\n\n\t}", "void enablButtonListener();", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tregistrar();\n\t\t\t}", "private void setUpButton() {\n // Find view\n Button button = (Button) findViewById(R.id.this_weekend_dialog_match_button);\n // Set click mListener\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mListener.onMatchMadeDialogSeen();\n dismiss();\n }\n });\n }", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttoRegister();\n\t\t\t}", "@Override\r\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\r\n\t\tcase R.id.button1:\r\n\t\t\tregistration();\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}", "@Override\n public void onClick(View v) {\n buttonAddClicked();\n }", "@Override\n protected void onAfterSetContentView() {\n super.onAfterSetContentView();\n View.OnClickListener onClickListener = new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n switch (v.getId()) {\n case R.id.btn_scan:\n btnSignalScan();\n break;\n default:\n break;\n }\n }\n };\n btn_scan.setOnClickListener(onClickListener);\n }", "void buttonPressed(ButtonType type);", "private void setRegisterButtonListener(ActionListener actionListener) {\n System.out.println(\"ShareView: adding register listener\");\n buttonRegister.addActionListener(actionListener);\n buttonRegister.setActionCommand(GlobalControlCodes.TRACK_OPEN.name());\n }", "void configureButtonListener();", "private void defineButtonClick(){\n activityForgetPassBinding.backButton.setOnClickListener(this);\n activityForgetPassBinding.changePasswordButton.setOnClickListener(this);\n }", "public void clickOnAddVehicleButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-primary\"), SHORTWAIT);\r\n\t}", "void onAddParameterButtonClick();", "public void clickToRegisterButton() {\n\t\twaitToElementClickable(driver,RegisterPageUI.REGISTER_BUTTON);\n\t\tclickToElement(driver,RegisterPageUI.REGISTER_BUTTON);\n\t}", "void userPressConnectButton();", "public void submit_intsatpos(View button) {\n }", "public void registerButtons()\n\t{\n\t\tplot.addActionListener(new ButtonListener());\n\t\tin.addActionListener(new ButtonListener(1));\n\t\tout.addActionListener(new ButtonListener(2));\n\t\t\n\t}", "public void settingBtnClick() {\n\t}", "private void registerPayButton(){\n this.btnPay.setOnClickListener(v -> {\n pay();\n });\n }", "void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }", "public void onClicked();", "@Step\n public void clickRegistrationButton(){\n actionWithWebElements.clickOnElement(registrationButton);\n }", "@Override\n\tprotected void OnClick() {\n\t\t\n\t}", "public void onButtonAPressed();", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\tbindingSource.setItemId(this, true, bindingSource.getItemId());\n\t\t\t\t\n\t\t\t\t// fire the app event if it's implemented\n\t\t\t\tif (listenerDownButton != null)\n\t\t\t\t\tlistenerDownButton.downButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, 0));\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View v) {\n mListener.onAddButtonClicked();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tllistenBtnset();\n\t\t\t}", "private void OnClick(){\n onWidgetClickListener.onClick(getViewId());\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tattempt_register();\n\t\t\t}", "public void clickAddButton() {\n\t\tfilePicker.fileManButton(locAddButton);\n\t}", "void onAddClicked();", "public void click() {\n\t\tif(this.buttonListener != null) {\n\t\t\tthis.buttonListener.onClicked();\n\t\t}\n\t}", "private void setButtonListener(Button button){\n \tfinal Context ctx = this.getActivity();\n \tfinal String tag = button.getText().toString();\n \t// button on click listers\n \t\tbutton.setOnClickListener(new OnClickListener() {\n \t\t\t@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tIntent intent = new Intent(ctx, Questions_Tab_Activity.class);\n \t\t\t\tintent.putExtra(\"tagPressed\", tag);\n \t\t\t\tintent.putExtra(\"UserID\", userId);\n// \t\t\t\tif(multiTag)\n \t\t\t\t\tintent.putExtra(\"typeSearch\", 3);\n// \t\t\t\telse\n// \t\t\t\t\tintent.putExtra(\"typeSearch\", 1);\n \t\t\t\tstartActivity(intent);\n \t\t\t\t\n \t\t\t}\n \t\t});\n }", "public void clickButton()\n {\n fieldChangeNotify( 0 );\n }", "String handleButtonPress(Button button);", "private void addSearchBtnClickHandler() {\n view.getSearchBtn().addClickHandler(new ClickHandler() {\n @Override\n public void onClick(ClickEvent event) {\n executeSearch();\n }\n });\n }", "public void clickCreateButton() {\n this.action.click(this.createButton);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmButtonListener.onButtonListener();\n\t\t\t}", "void click(int slot, ClickType type);", "@Override\r\n\tpublic void onButtonEvent(GlassUpEvent event, int contentId) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "public void onSignupClick(MouseEvent e){signup();}", "private void button1MouseClicked(MouseEvent e) {\n\t}", "private void btnModificarMouseClicked(java.awt.event.MouseEvent evt) {\n }", "private void createButton(){\n addButton();\n addStartButton();\n }", "public void button_clicked(View v) {\n mCallback.onButtonClicked(v);\n }", "@Override\n public void getStartedSignUpClicked() {\n\n }", "private void button1MouseClicked(MouseEvent e) {\n }", "public void listenButtons() {\n\n playGameButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mActivities = MyActivities.PLAY_GAME;\n startActivity();\n }\n });\n\n freePlayButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mActivities = MyActivities.FREE_PLAY;\n startActivity();\n }\n });\n\n informationIcon.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mActivities = MyActivities.POP_UP;\n startActivity();\n }\n });\n }", "public abstract void buttonPressed();", "void onClick();", "HasClickHandlers getCreateNewButton();", "private void setupClickEvents() {\n ivAddNewCategory.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n addNewCategory();\n }\n });\n }", "@Override\n public void onClick(View v) {\n mOnButtonClickListener.onButtonClicked(v);\n }", "protected GuiTestObject button_registerNowsubmit() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"button_registerNowsubmit\"));\n\t}", "@Override\n public void onClick(View v) {\n myCallback.buttonClicked();\n Log.d(TAG, \"onClick: \");\n }", "public interface customButtonListener {\n public void onNavigateButtonClickListener(int position,String value);\n\n public void onFeedbackButtonClickListener(int position,String value);\n }", "public void actionButton(String text);", "public void buttonOnClick(View v) {\n\n }", "@Override\n\tpublic void pressed(PushButton button) {\n\t\tvm.getConfigurationPanel().getButton(index);\n\t\t\n\t}", "public interface OnNextButtonClicked {\n // TODO: Update argument type and name\n void OnNextButtonClicked(String buttonClicked,StoriesClass currentStor);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tnew Register().execute();\r\n\r\n\t\t\t}", "private void registerButtonListener(int fomActivityVal) {\n switch (fomActivityVal) {\n case ActivityConstants.EDIT_CHILD_ACTIVITY:\n _viewActivity.setText(getResources().getString( R.string.edit ));\n _viewActivity.setOnClickListener( new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent openRegistrationIntent = new Intent( ViewChildActivity.this, StudentRegistrationActivity.class );\n openRegistrationIntent.putExtra( ActivityConstants.FROM_EDIT_STUDENT_ACTIVITY,\n ActivityConstants.EDIT_CHILD_ACTIVITY );\n //Loading Student Details\n Student student = _dbOperations.getStudent( _firstName, _lastName );\n openRegistrationIntent.putExtra( ActivityConstants.STUDENTDATA, student );\n startActivity( openRegistrationIntent );\n }\n } );\n break;\n\n case ActivityConstants.VIEW_CHILD_SURVEY:\n _viewActivity.setText(getResources().getString(R.string.add_survey));\n _viewActivity.setOnClickListener( new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent openSurveyIntent = new Intent( ViewChildActivity.this, EnterSurveyActivity.class );\n openSurveyIntent.putExtra( ActivityConstants.FROM_EDIT_STUDENT_ACTIVITY,\n ActivityConstants.VIEW_CHILD_SURVEY );\n //Loading Student Details\n Student student = _dbOperations.getStudent( _firstName, _lastName );\n openSurveyIntent.putExtra( ActivityConstants.STUDENTID, student.getId() );\n startActivity( openSurveyIntent );\n }\n } );\n break;\n\n default:\n break;\n\n }\n }", "public void registerComponents() \r\n {\r\n grantsByPIForm.jbnRunButton.addActionListener(this);\r\n grantsByPIForm.jbnCloseButton.addActionListener(this);\r\n \r\n }", "@Override\n\tpublic void setOnClick() {\n\n\t}", "private void addAdvanceSearchBtnClickHandler() {\n view.getAdvSearchBtn().addClickHandler(new ClickHandler() {\n\n @Override\n public void onClick(ClickEvent event) {\n eventBus.goToAdvancedSearch();\n }\n });\n }", "@Override\n public void registerBtnClick(View view) {\n isRegisteredOnGCM(2);\n//\t\t\tfinish();\n }", "@Override\n public void onClick(View view) {\n DialogAddEvent();\n }", "private void callEventListener(){\n //Listener for Button add service\n btn_Appointment.setOnClickListener(\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialogCreateAppointment();\n }\n }\n );\n\n }", "public void sButton() {\n\n\n\n }", "private void clickOn() {\n\t\tll_returnbtn.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void onClick(View v) {\n buttonSetLocation();\n }", "@Override\n\tpublic void onClick(ClickEvent arg0) {\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.btn_scan:\n btnSignalScan();\n break;\n default:\n break;\n }\n }", "public void onButtonBPressed();", "public void onAddPaymentClickListner(){\n AddPayment = (Button)findViewById(R.id.btnAdd);\n\n AddPayment.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n addPayment(StudentIDPos, ClassIDPos);\n }\n });\n\n }", "void clickSomewhereElse();", "@Override\n\t\tpublic void onClick(Widget sender) {\n\t\t\t\n\t\t}", "public void clickOnCreateButton() {\n\t\twaitForElement(createButton);\n\t\tclickOn(createButton);\n\t}", "private void createbuttons(){\n newPatient = (Button) findViewById(R.id.newButton);\n newPatient.setOnClickListener(buttonClick);\n\n registeredPatient = (Button) findViewById(R.id.registeredButton);\n registeredPatient.setOnClickListener(buttonClick);\n\n viewManagement = (Button) findViewById(R.id.viewStaffActivitiesButton);\n viewManagement.setOnClickListener(buttonClick);\n }", "@Override\n public void onClick(View view) {\n registerUser();\n\n\n }", "public void btn_geri2(View v) {\n }", "private void setButtonListener2(Button button){\n \tfinal String tag = button.getText().toString();\n \t// button on click listers\n \t\tbutton.setOnClickListener(new OnClickListener() {\n \t\t\t@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tint pos = tagList.indexOf(tag);\n \t\t\t\tmViewPager.setCurrentItem(pos);\n \t\t\t\t\n\n \t\t\t}\n \t\t});\n }", "@Override\n\tpublic void callButton(TrafficSignal TS) {\n\t\t\n\t}", "public void clickYes ();", "@Listen(\"onClick=#createEntryButton\")\n public void createEntryButtonOnClick(){\n Window window = (Window) Executions.createComponents(\"entry.zul\", phonePageWindow, new HashMap());\n window.doModal();\n }", "public void registerMouseClick(IMouseClickSub click){\n mouseClickSubs.add(click);\n }", "public void initCallBack() {\n saveTodoButton.setOnClickListener(this);\n }", "public interface IButtonClickProvider {\n public void onBtnClick();\n}", "private void registerListener(int btnId) {\n\n View btn = findViewById(btnId);\n\n if (btn != null) {\n btn.setOnClickListener(this);\n } else {\n debug(\"registerListener\", \"error\", \"resource not available\");\n }\n }", "private void addCheckCustomerButtonFunction() {\n\t\tcheckCustomerButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tGUICheckCustomer check = new GUICheckCustomer();\n\t\t\t\tcloseFrame();\n\t\t\t}\t\t\n\t\t});\n\t}", "@Override\n public void onBoomButtonClick(int index) {\n }", "@Override\n protected void addListener() {\n button.addActionListener(new DeleteWorkoutButton.ClickHandler());\n }", "private void createJButtonActionPerformed( ActionEvent event )\r\n {\r\n \r\n }", "private void button1MousePressed(MouseEvent e) {\n }" ]
[ "0.7355176", "0.7333045", "0.71355027", "0.69830364", "0.69600856", "0.69225293", "0.691264", "0.6890032", "0.6857991", "0.684016", "0.6839456", "0.68379784", "0.6825976", "0.6807813", "0.67812616", "0.6714113", "0.67139775", "0.6695401", "0.6649138", "0.6644082", "0.6640897", "0.66386896", "0.663401", "0.6625757", "0.6624149", "0.6611261", "0.6583885", "0.6574409", "0.65621156", "0.6558009", "0.6551786", "0.65440094", "0.6522877", "0.65187925", "0.64827496", "0.6479026", "0.6476894", "0.64742094", "0.6469436", "0.64587694", "0.6454662", "0.6439968", "0.64388406", "0.6423886", "0.64056665", "0.63520306", "0.63419616", "0.63374597", "0.6336713", "0.6327904", "0.63240236", "0.63006186", "0.6296541", "0.62912154", "0.62907696", "0.62862736", "0.62830085", "0.62756634", "0.6273977", "0.6271541", "0.62714654", "0.62707657", "0.62697786", "0.62639046", "0.62596", "0.62526613", "0.6242397", "0.6229482", "0.62263834", "0.62251663", "0.6220644", "0.6208704", "0.6205715", "0.6205595", "0.6201678", "0.619999", "0.6199772", "0.61983675", "0.6191947", "0.61906016", "0.61894816", "0.6184457", "0.6174002", "0.61712205", "0.6167333", "0.6155272", "0.6153319", "0.6145854", "0.6143433", "0.6143062", "0.6135248", "0.61276263", "0.6125402", "0.6124433", "0.6121679", "0.61188424", "0.611743", "0.61144906", "0.61077183", "0.61015224", "0.60881114" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws FileNotFoundException { FileReader fileReader = null; try { // 파일 생성 부분 추가 필요 20151222 // 파일 생성(R/W) 및 초기 데이터 추가한다. // 한글좀 그만 꺠져라.. // 아좀.. // 다시 테스트 // 다시.. fileReader = new FileReader("D:/wordList.txt"); } catch (FileNotFoundException e1) { // TODO Auto-generated catch block System.out.println("파일을 찾을 수 없습니다."); System.exit(-1); } BufferedReader bufferedReader = null; bufferedReader = new BufferedReader(fileReader); StringBuffer stringBuffer = null; String line = null; ArrayList<String> wordList = new ArrayList<String>(); try { while((line = bufferedReader.readLine()) != null) { stringBuffer = new StringBuffer(); stringBuffer.append(line); wordList.add(stringBuffer.toString()); } } catch (IOException e) { // TODO Auto-generated catch block System.out.println("파일을 읽는 중 오류가 발생하였습니다."); System.exit(-1); } Random random = new Random(); int randomIndex = random.nextInt(wordList.size()); String temp = wordList.get(randomIndex); char[] randomChar = temp.toCharArray(); char[] encChar = new char[randomChar.length]; System.out.println(String.valueOf(randomChar)); for(int i = 0; i < randomChar.length; i++) { encChar[i] = '*'; } System.out.println(String.valueOf(encChar)); Career_2015 cc = new Career_2015(); Scanner in = new Scanner(System.in); char inputChar = 0; boolean isContain = false; boolean isExists = false; int ascii = 0; int errorCount = 0; Map<Character, Boolean> inputCharMap = new HashMap<Character, Boolean>(); Map<Character, ArrayList<Integer>> changeCharMap = new HashMap<Character, ArrayList<Integer>>(); do { System.out.print("알파벳 소문자를 입력하세요. : "); try { inputChar = (char)cc.read(); ascii = (int)inputChar; // 입력한 문자가 이미 입력한 문자인지 체크 if(inputCharMap.containsKey(inputChar)) { System.out.println("입력했던 문자입니다. 다시 입력해주세요."); isContain = true; } else inputCharMap.put(inputChar, true); // 입력한 글자가 선택한 단어에 포함되는지 체크 changeCharMap = cc.isChangeChar(randomChar, inputChar); if(!changeCharMap.isEmpty()) { cc.changeChar(encChar, changeCharMap, inputChar); System.out.println(String.valueOf(encChar)); if(String.valueOf(randomChar).equals(String.valueOf(encChar))) { System.out.println("모두 맞히셨습니다. 종료합니다."); System.exit(-1); } } else { errorCount++; System.out.println(errorCount + "번 틀리셨습니다."); } } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } while((ascii < 97 || ascii > 122) || isContain || errorCount < 7); System.out.println("종료"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public int read() throws IOException { int c; do { c = System.in.read(); } while(c != -1 && (c == '\n' || c == '\r')); return c; }
{ "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
onMenuIsOpen onDownOrMove closeMenu menuIsOpen
@Override public void onMenuIsOpen(View view) { mMenu = (SlidingButtonView) view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void closeMenu() {\n if (!isMenuOpen()) {\n return;\n }\n\n if (mIsVersionI || mIsVersionJ || mIsVersionK) {\n // Click menu button to close menu (this is NOT for taking pictures)\n String uiMenuButton = (mIsVersionK)? UI_MENU_BUTTON_ID_4X:UI_MENU_BUTTON_ID_3X;\n UiObject2 backButton = mDevice.findObject(By.res(UI_PACKAGE_NAME, uiMenuButton));\n if (backButton != null) {\n backButton.click();\n }\n } else {\n // Click shutter button to close menu (this is NOT for taking pictures)\n UiObject2 shutter = mDevice.findObject(By.res(UI_PACKAGE_NAME, UI_SHUTTER_BUTTON_ID_2X));\n if (shutter != null) {\n shutter.click();\n }\n }\n }", "public boolean isOnMenu ();", "@Override\n\t\tpublic void closeMenu() {\n\t\t}", "@Override\n public void onMenuToggle(boolean b) {\n }", "public void onMenuNew() {\n handleMenuOpen(null);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.close, menu);\n return true;\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n //boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n //menu.findItem(<MENU_ITEMS>).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n public void onContextMenuClosed(Menu menu) {\n \tsuper.onContextMenuClosed(menu);\n \tToast.makeText(this, \"Menu Contextual finalizado\", Toast.LENGTH_LONG).show();\n }", "@Override\n\t\tpublic void openMenu() {\n\t\t}", "private void closeFABMenu(){\n isFABOpen=false;\n\n layoutFabProject.animate().translationY(0);\n layoutFabNote.animate().translationY(0);\n layoutFabTask.animate().translationY(0).setListener(new Animator.AnimatorListener() {\n\n @Override\n public void onAnimationStart(Animator animator) {\n\n }\n\n @Override\n public void onAnimationEnd(Animator animator) {\n if (!isFABOpen) {\n layoutFabProject.setVisibility(View.GONE);\n layoutFabNote.setVisibility(View.GONE);\n layoutFabTask.setVisibility(View.GONE);\n }\n }\n\n @Override\n public void onAnimationCancel(Animator animator) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animator animator) {\n\n }\n });\n }", "MenuItem getMenuItemClose();", "@Override\n public void onOpened() {\n menu.callOnResumeForUpdate();\n menu.showData();\n isMenuShowing = true;\n }", "void clickAmFromMenu();", "@Override\n public void onClose() {\n isMenuShowing = false;\n if (0 == vp.getCurrentItem()) {\n menu.callOnPauseForUpdate();\n }\n hideKeyboard(mySlidingMenu);\n Recommend r = (Recommend) list.get(0);\n r.showUser();\n }", "public void exitToMenu()\n {\n exitToMenuFlag = true;\n }", "public void openMenu() {\r\n\t\tmenu.click();\r\n\t}", "public void menuClicked(MenuItem menuItemSelected);", "private void toggleMenue() {\n if (menuIsShown) {\n menuIsShown = false;\n spendMoney.startAnimation(fadeOutAnim);\n spendMoney.setClickable(false);\n closeAvtiveChallenge.startAnimation(fadeOutAnim);\n closeAvtiveChallenge.setClickable(false);\n listAllClosedChallanges.startAnimation(fadeOutAnim);\n listAllClosedChallanges.setClickable(false);\n } else {\n menuIsShown = true;\n spendMoney.startAnimation(fadeInAnim);\n spendMoney.setClickable(true);\n closeAvtiveChallenge.startAnimation(fadeInAnim);\n closeAvtiveChallenge.setClickable(true);\n listAllClosedChallanges.startAnimation(fadeInAnim);\n listAllClosedChallanges.setClickable(true);\n }\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmenu.toggle();\r\n\t\t\t}", "void clickFmFromMenu();", "@Override\n\tpublic boolean onPrepareOptionsMenu(Menu menu) {\n\t\tboolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n\t\treturn super.onPrepareOptionsMenu(menu);\n\t}", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // mDrawerLayout.isDrawerOpen(mDrawerView);\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n if (MainAct.longClicked) {\n DebugUtil.showDebug(\"MainAct.onCreateOptionsMenu(), when item longClicked\");\n getMenuInflater().inflate(R.menu.menu_main_long_clicked, menu);\n } else {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n }\n return true;\n }", "@Override\r\n\t\t\t\tpublic void onDialogMenuPressed() {\n\r\n\t\t\t\t}", "public void closeMenu(View view) {\n menuDialog.dismiss();\n }", "private void startAnimationMenu(){\n \t\tCreateMenus me = CreateMenus.this;\n TextView menuHeader = (TextView) findViewById(R.id.MenuHeader);\n menuHeader.setText(\"SideMenu options\");\n Animation anim;\n \n int w = appLayout.getMeasuredWidth();\n int h = appLayout.getMeasuredHeight();\n \n int left = (int) (appLayout.getMeasuredWidth() * 0.8);\n \n if (!menuOut) {//OPEN SIDEMENU\n anim = new TranslateAnimation(0, left, 0, 0);\n sideMenuLayout.setVisibility(View.VISIBLE);\n animParams.init(left, 0, left + w, h);\n } else {//CLOSE SIDEMENU\n anim = new TranslateAnimation(0, -left, 0, 0);\n animParams.init(0, 0, w, h);\n }\n \n anim.setDuration(500);\n anim.setAnimationListener(me);\n \n // Only use fillEnabled and fillAfter if we don't call layout ourselves.\n // We need to do the layout ourselves and not use fillEnabled and fillAfter because when the anim is finished\n // although the View appears to have moved, it is actually just a drawing effect and the View hasn't moved.\n // Therefore clicking on the screen where the button appears does not work, but clicking where the View *was* does\n // work.\n // anim.setFillEnabled(true);\n // anim.setFillAfter(true);\n \n appLayout.startAnimation(anim);\n \t}", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_MENU) {\n dismiss();\n }\n return false;\n }", "@Override\n\tpublic boolean onMenuOpened(int featureId, Menu menu) {\n\t\tif (((BiosenseApplication) getApplication()).serviceIsRunning()) {\n\n\t\t\tmenu.findItem(R.id.itemToggleService).setTitle(\n\t\t\t\t\tR.string.titleItemStopService);\n\t\t\tmenu.findItem(R.id.itemToggleService).setIcon(\n\t\t\t\t\tandroid.R.drawable.ic_media_pause);\n\t\t} else {\n\n\t\t\tmenu.findItem(R.id.itemToggleService).setTitle(\n\t\t\t\t\tR.string.titleItemStartService);\n\n\t\t\tmenu.findItem(R.id.itemToggleService).setIcon(\n\t\t\t\t\tandroid.R.drawable.ic_media_play);\n\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\r\npublic void menuCanceled(MenuEvent arg0) {\n\t\r\n}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n if (drawerLayout.isDrawerOpen(listViewSliding)){\n drawerLayout.closeDrawer(listViewSliding);\n }else{\n drawerLayout.openDrawer(listViewSliding);\n }\n break;\n\n default:\n break;\n }\n return true;\n\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu)\n {\n boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerRelativeLayout);\n return super.onPrepareOptionsMenu(menu);\n }", "public void onDrawerClosed(View view) {\n if (Build.VERSION.SDK_INT >= 11) {\n invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()\n } else {\n //Call it directly on gingerbread.\n onPrepareOptionsMenu(mMenu);\n }\n\n// startFullscreenIfNeeded();\n }", "public boolean onClose() {\n\t\t\n\t\t TransitionContext transition = new TransitionContext(TransitionContext.TRANSITION_SLIDE);\n\t transition.setIntAttribute(TransitionContext.ATTR_DURATION, 200);\n\t transition.setIntAttribute(TransitionContext.ATTR_DIRECTION, TransitionContext.DIRECTION_RIGHT);\n\t transition.setIntAttribute(TransitionContext.ATTR_STYLE, TransitionContext.STYLE_PUSH);\n\t \n\t UiEngineInstance engine = Ui.getUiEngineInstance();\n\t engine.setTransition(this, null, UiEngineInstance.TRIGGER_PUSH, transition);\n\t // openScreen(new Menu());\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.settings, menu);\n MenuItem settings = menu.findItem(R.id.settings);\n if(currentScreenGameState == GameState.STOPPED ){\n settings.setVisible(true);\n }else{\n settings.setVisible(false);\n }\n return true;\n }", "@Override\n public void menuCanceled(MenuEvent e) {\n\n }", "public void exitMenu(){\n }", "@Override\r\npublic void menuDeselected(MenuEvent arg0) {\n\t\r\n}", "@Override\n public void onClick(View v) {\n mySlidingMenu.toggle();\n }", "boolean isMenuShowing() {\n return game.r != null;\n }", "@Override\n\tpublic boolean onTouchEvent(MotionEvent ev) {\n\t\tint action = ev.getAction();\n\t\tswitch (action) {\n\t\tcase MotionEvent.ACTION_UP:\n\t\t\t//content隐藏在左边的宽度\n\t\t\tint scrollX = getScrollX();\n\t\t\tif(scrollX>=mMenuWidth/2){\n\t\t\t\tthis.smoothScrollTo(mMenuWidth, 0);\n\t\t\t\tisOpen = false;\n\t\t\t}else{\n\t\t\t\tthis.smoothScrollTo(0, 0);\n\t\t\t\tisOpen = true;\n\t\t\t}\n\t\t\treturn true;\n\t\t\t\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onTouchEvent(ev);\n\t}", "public Menu getOpenMenu() {\n return openMenu;\n }", "public void menuActiviated() {\n\t\t\t((LinearLayout) PieMenu.getParent()).removeView(PieMenu);\n\t\t\tadd_shangpin.setVisibility(View.VISIBLE);\n\t\t\tif(text_details != null){\n\t\t\t\ttext_details.setText(\"\");\n\t\t\t}\n\t\t\t\n\t\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n getMenuInflater().inflate(R.menu.main, menu);\r\n if (userType.equalsIgnoreCase(\"TSE\")) {\r\n MenuItem item = menu.findItem(R.id.home_button);\r\n item.setVisible(false);\r\n }\r\n return true;\r\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n menu.findItem(R.id.action_settings).setVisible(false);\n menu.findItem(R.id.action_cambiar_pass).setVisible(false);\n menu.findItem(R.id.action_ayuda).setVisible(false);\n menu.findItem(R.id.action_settings).setVisible(false);\n menu.findItem(R.id.action_cancel).setVisible(false);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n menu.getItem(0).setVisible(false);\n return true;\n }", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tmenu.setMouseClick(false);\n\t\t\t}", "@Override\n public boolean onPrepareOptionsMenu(Menu menu)\n {\n // If the nav drawer is open, hide action items related to the content view\n boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n //getMenuInflater().inflate(R.menu.activity_main, menu);\n \tsuper.onCreateOptionsMenu(menu);\n getSupportMenuInflater().inflate(R.menu.actionbar, menu);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n BatteryIcon = (MenuItem)menu.findItem(R.id.acb_battery);\n setActBarBatteryIcon(Callbacksplit.getsavedBatteryStateIcon());\n ConnectIcon = (MenuItem)menu.findItem(R.id.acb_connect);\n setActBarConnectIcon();\n \n ((MenuItem)menu.findItem(R.id.acb_m_5)).setVisible(false);\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu2, menu);\n this.menu=menu;\n if(idName!=null) {menu.getItem(1).setVisible(false);\n menu.getItem(2).setVisible(true);}\n if(create) menu.getItem(0).setVisible(false);\n else menu.getItem(0).setVisible(true);\n /* if(extrasBundle!=null) if(extrasBundle.getBoolean(\"From Option\")==true) {\n menu.getItem(1).setVisible(false);\n menu.getItem(0).setVisible(true);\n\n }*/\n return true;\n }", "void onMenuItemClicked();", "public void onDrawerClosed(View view) {\n menuvalue = 0;\n getSupportActionBar().setHomeAsUpIndicator(R.mipmap.menu);\n }", "@Override\r\n\tpublic boolean onPrepareOptionsMenu(Menu menu) {\n\t\tboolean drawerOpened = drawerLayout.isDrawerOpen(drawerList);\r\n\r\n\t\tmenu.findItem(R.id.settingsMenuItem).setVisible(!drawerOpened);\r\n\r\n\t\tif (drawerOpened)\r\n\t\t\tmenu.findItem(R.id.refreshMenuItem).setVisible(false);\r\n\t\telse {\r\n\t\t\tif (selectedItem == 0)\r\n\t\t\t\tmenu.findItem(R.id.refreshMenuItem).setVisible(true);\r\n\t\t\telse\r\n\t\t\t\tmenu.findItem(R.id.refreshMenuItem).setVisible(false);\r\n\t\t}\r\n\r\n\t\treturn super.onPrepareOptionsMenu(menu);\r\n\t}", "@Override\n public void onMenuClick() {\n Toast.makeText(activity.getApplicationContext(), \"Menu click\",\n Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic boolean onPrepareOptionsMenu(Menu menu) {\n\t\tboolean drawerOpen = drawerLayout.isDrawerOpen(drawerList);\n\t\t// if (getSupportFragmentManager().findFragmentByTag(\"TaskList\") !=\n\t\t// null) {\n\t\tif (getSupportFragmentManager().getBackStackEntryCount() > 0) {\n\t\t\tif (getSupportFragmentManager().getBackStackEntryAt(\n\t\t\t\t\tgetSupportFragmentManager().getBackStackEntryCount() - 1)\n\t\t\t\t\t.getName() == \"TaskList\") {\n\t\t\t\tLog.d(TAG, \"made it in here!\");\n\t\t\t\tmenu.findItem(R.id.add).setVisible(!drawerOpen);\n\t\t\t} else if (getSupportFragmentManager().getBackStackEntryAt(\n\t\t\t\t\tgetSupportFragmentManager().getBackStackEntryCount() - 1)\n\t\t\t\t\t.getName() == \"DETAILTASK\") {\n\t\t\t\tmenu.findItem(R.id.deletedetailedtask).setVisible(!drawerOpen);\n\t\t\t}\n\t\t}\n\t\tmenu.findItem(R.id.settings).setVisible(!drawerOpen);\n\t\tmenu.findItem(R.id.about).setVisible(!drawerOpen);\n\t\treturn super.onPrepareOptionsMenu(menu);\n\t}", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerLeftList);\n //menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n public boolean onMenuItemClick(MenuItem item) {\n return true;\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n Timer timing = new Timer();\n timing.schedule(new TimerTask() {\n\n @Override\n public void run() {\n closeOptionsMenu();\n }\n }, 5000);\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.dashboard, menu);\n shareItem = menu.findItem(R.id.close);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.activity_man__hinh__chinh_drawer, menu);\n return true;\n }", "private void MenuHOOKS() {\n drawerLayout = findViewById(R.id.drawer_layout);\n navigationView = findViewById(R.id.navigation_view);\n burger_icon = findViewById(R.id.burger_icon);\n contentView = findViewById(R.id.content);\n\n //Navigation Drawer\n navigationView.bringToFront();\n navigationView.setNavigationItemSelectedListener(this);\n navigationView.setCheckedItem(R.id.nav_home);\n\n burger_icon.setOnClickListener(this);\n\n //Animation Function\n animateNavigationDrawer();\n\n }", "public void menuItemClicked( Menu2DEvent e );", "@Override\r\n\tpublic boolean onMenuItemSelected(int featureId, MenuItem item) {\n\t\t\r\n\t\tint id = item.getItemId();\r\n\t\t\r\n\t\tif(id==R.id.close){\r\n\t\t//\tIntent intent = new Intent(ArticleLatestMoreDetailActivity.this, ArticleMainActivity.class);\r\n\t\t//\tstartActivity(intent);\r\n\t\t\tArticleLatestMoreDetailActivity.this.finish();\r\n\t\t}\r\n\t\t\r\n\t\treturn super.onMenuItemSelected(featureId, item);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n super.onCreateOptionsMenu(menu);\n MenuItem helpButton = menu.findItem(R.id.menu1);\n helpButton.setVisible(true);\n return true;\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n boolean drawerOpen = myDrawerLayout.isDrawerOpen(myDrawerList);\n // Þetta getur falið icon þegar drawer er opin\n // menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }", "public boolean onPrepareOptionsMenu(Menu menu) {\n boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n\n // menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }", "public void onDrawerClosed(View view) {\n\t\t\t\t\t invalidateOptionsMenu(); \n\t\t\t\t\t }", "@SuppressLint(\"NonConstantResourceId\")\n private void menuButtonCLicked(ImageView btnMenu, String classCode, String joinCode, String subjectName, RelativeLayout classroomParent) {\n btnMenu.setOnClickListener(v -> {\n PopupMenu popupMenu = new PopupMenu(context, btnMenu);\n popupMenu.getMenuInflater()\n .inflate(R.menu.drop_down_menu, popupMenu.getMenu());\n\n popupMenu.setOnMenuItemClickListener(item -> {\n switch (item.getItemId()) {\n case R.id.inviteUser:\n openInviteActivity(classCode, joinCode, subjectName);\n break;\n case R.id.delete:\n deleteClass(classCode, btnMenu, classroomParent);\n break;\n }\n return true;\n });\n popupMenu.show();\n });\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_window, menu);\n MenuItem m = menu.add(2,4,9,\"Debug Service\");\n m.setCheckable(true);\n m.setChecked(GRClient.getInstance().isDebug());\n\n menu.add(3,9,1, (isSocalConnected) ? \"Sign Out\" : \"Sign In\");\n menu.add(3,8,100,\"Send Feedback\");\n return true;\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n /*boolean drawerOpen = myDrawerLayout.isDrawerOpen(myDrawerList);\n menu.findItem(R.string.action_websearch).setVisible(!drawerOpen);*/\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n //boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n //menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // if nav drawer is opened, hide the action items\n boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n menu.findItem(R.id.action_alert).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n\t\t\tpublic boolean onMenuItemClick(int position,\n\t\t\t\t\tSwipeMenu menu, int index) {\n\t\t\t\tswitch (index) {\n\t\t\t\tcase 0:\n\t\t\t\t\t// open\n\t\t\t\t\t// open(item);\n\n\t\t\t\t\tHashMap<String, String> deleteItem = List.get(position);\n\n\t\t\t\t\tString itemId = deleteItem.get(BaseActivity.id);\n\n\t\t\t\t\tdeleteActivityItem(position, itemId);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\tHashMap<String, String> edittem = List.get(position);\n\n\t\t\t\t\tString editemId = edittem.get(BaseActivity.id);\n\t\t\t\t\t\n\t\t\t\t\teditActivityItem(position, editemId);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n menuItemClicked = menuItem;\n drawerLayout.closeDrawers();\n return true;\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n// boolean drawerOpen = mDrawerLayout.isDrawerOpen();\n //menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onPrepareOptionsMenu(Menu menu) {\n\t\t// if nav drawer is opened, hide the action items\n\t\tboolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n\t\t// menu.findItem(R.id.action_settings).setVisible(!drawerOpen);\n\t\treturn super.onPrepareOptionsMenu(menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_pop_up, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n mOption = menu;\n getMenuInflater().inflate(R.menu.menu, menu);\n int menunya = sharedpreferences.getInt(\"menu\", 0);\n SharedPreferences.Editor editor = sharedpreferences.edit();\n if (menunya == 0) {\n editor.putInt(\"menu\", 2);\n editor.commit();\n f2.setVisibility(View.VISIBLE);\n f3.setVisibility(View.GONE);\n navigation.setSelectedItemId(R.id.navigation_dashboard);\n } else if (menunya == 2) {\n f2.setVisibility(View.VISIBLE);\n f3.setVisibility(View.GONE);\n navigation.setSelectedItemId(R.id.navigation_dashboard);\n } else if (menunya == 3) {\n f2.setVisibility(View.GONE);\n f3.setVisibility(View.VISIBLE);\n navigation.setSelectedItemId(R.id.navigation_notifications);\n } else {\n editor.putInt(\"menu\", 2);\n editor.commit();\n f2.setVisibility(View.VISIBLE);\n f3.setVisibility(View.GONE);\n }\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n MenuItem helpButton = menu.findItem(R.id.menu1);\n helpButton.setVisible(true);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_all, menu);\n // set correct powerState icon\n MenuItem ON_OFF = menu.findItem(R.id.action_powerState);\n if (!on_off) {\n ON_OFF.setIcon(R.drawable.poweroff);\n ON_OFF.setTitle(\"Power OFF\");\n } else {\n ON_OFF.setIcon(R.drawable.poweron);\n ON_OFF.setTitle(\"Power ON\");\n }\n return true;\n }", "public void openMenu(GameContainer gc, int delta){\r\n\t\tInput input = gc.getInput(); // Creating our input object\r\n\t\tif(input.isKeyPressed(Input.KEY_ESCAPE)){\r\n\t\t\tmenuOpen = !menuOpen; // ! Makes the escape toggle\r\n\t\t}\r\n\t}", "public void moveMenuInOut() {\n\t\tLayoutParams temp = sideMenuContent.getLayoutParams();\n\t\t\n\n\t\tif (menu_expanded) {\n\t\t\t\n\t\t\tResizeAnimation animation = new ResizeAnimation(sideMenuContent,\n\t\t\t\t\t(temp.width), (temp.height), CentralStyleGenerator.getMenuWidthHidden(this),\n\t\t\t\t\t(temp.height));\n\t\t\tsideMenuContent.startAnimation(animation);\n\t\t\tmenu_expanded = false;\n\n\t\t} else {\n\t\t\t\n\t\t\tResizeAnimation animation = new ResizeAnimation(sideMenuContent,\n\t\t\t\t\t(temp.width), (temp.height), CentralStyleGenerator.getMenuWidthExpanded(this),\n\t\t\t\t\t(temp.height));\n\t\t\tsideMenuContent.startAnimation(animation);\n\t\t\tmenu_expanded = true;\n\n\t\t}\n\t}", "@Override\n public boolean onMenuItemClick(MenuItem item) {\n Block_Dialog();\n return false;\n }", "@Override\n\t\t\tpublic void onDrawerOpened() {\n\t\t\t\tshowDown();\n\t\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_screen_drawer, menu);\n return true;\n }", "private void showFABMenu(){\n isFABOpen=true;\n\n layoutFabProject.setVisibility(View.VISIBLE);\n layoutFabNote.setVisibility(View.VISIBLE);\n layoutFabTask.setVisibility(View.VISIBLE);\n\n layoutFabProject.animate().translationY(-getResources().getDimension(R.dimen.standard_55));\n layoutFabNote.animate().translationY(-getResources().getDimension(R.dimen.standard_100));\n layoutFabTask.animate().translationY(-getResources().getDimension(R.dimen.standard_145));\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tif(menu_Drawder.isOpened()){\n\t\t\tmenu_Drawder.close();\n\t\t}\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n itemIdMSCSM = menu.findItem(R.id.action_registration);\n itemAutoReg = menu.findItem(R.id.action_auto_reg);\n itemExit = menu.findItem(R.id.action_exit);\n itemRegister = menu.findItem(R.id.action_register);\n if (registered) {\n itemIdMSCSM.setVisible(false);\n itemAutoReg.setVisible(false);\n itemExit.setVisible(false);\n } else {\n itemIdMSCSM.setVisible(true);\n itemAutoReg.setVisible(true);\n itemExit.setVisible(true);\n }\n return true;\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // if nav drawer is opened, hide the action items\n boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n menu.findItem(R.id.action_settings).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n public void menuDeselected(MenuEvent e) {\n\n }", "private static void returnMenu() {\n\t\t\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_drawer, menu);\n return true;\n }", "public boolean isClicked() {\n\n// Cycles through all menu cursors\n for (MenuCursor cursor : Main.cursors) {\n\n// If the cursor has a controller and the select button is clicked, return true\n if (cursor.controller != null) {\n if (Main.contains(Main.recentButtons.get(cursor.controller), ControllerButtons.A)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n\n// Otherwise, if the cursor is using a keyboard and the select button is pressed, return true\n } else {\n if (Gdx.input.isKeyJustPressed(Keys.MENU_SELECT)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n }\n }\n// If none of these events occur, return false\n return false;\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // If the nav drawer is open, hide action items related to the content view\n// boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerLeftLayout);\n// menu.findItem(R.id.action_websearch).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }", "public void closeMenu(boolean closeBukkitInv) {\n if (!viewingMenu()) return;\n openMenu.getViewers().remove(this);\n openMenu.onClose(this);\n if (closeBukkitInv)\n getPlayer().closeInventory();\n openMenu = null;\n }", "@Override\n\tpublic boolean onPrepareOptionsMenu(Menu menu) {\n\t\tboolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n\t\tmenu.findItem(R.id.search).setVisible(!drawerOpen);\n\t\treturn super.onPrepareOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.drawer, menu);\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.order_list_actions,menu);\n if(isFinalized){\n MenuItem item = menu.findItem(R.id.action_finalized);\n item.setVisible(false);\n //this.invalidateOptionsMenu();\n }\n return super.onCreateOptionsMenu(menu);\n }", "private void closeFABMenu(){\n isFABOpen=false;\n rotateFabBackward();\n fab1.hide();\n labelFab1.setVisibility(View.INVISIBLE);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_game_over, menu);\n return true;\n }" ]
[ "0.73543274", "0.7180578", "0.70949334", "0.6953009", "0.6797707", "0.6666393", "0.66340655", "0.66336346", "0.6606013", "0.6598927", "0.65489614", "0.6519796", "0.6502828", "0.63946736", "0.6391747", "0.63757706", "0.6363303", "0.63622713", "0.635832", "0.6320561", "0.6240211", "0.6230066", "0.6227393", "0.62270254", "0.62201715", "0.62116337", "0.62034756", "0.61863387", "0.618413", "0.61837", "0.61765474", "0.6173608", "0.61709297", "0.616237", "0.6158523", "0.6132518", "0.6120247", "0.61184347", "0.6102956", "0.60940313", "0.6090386", "0.6089348", "0.6073658", "0.606284", "0.6059222", "0.6057822", "0.60531867", "0.60529923", "0.605071", "0.60329586", "0.6028351", "0.60228103", "0.6020325", "0.6018132", "0.60091174", "0.60059035", "0.6004584", "0.6004548", "0.5998569", "0.5990595", "0.5984356", "0.59822875", "0.5979504", "0.5977435", "0.5976618", "0.5975721", "0.5970803", "0.5956473", "0.59534013", "0.59359276", "0.5934484", "0.5933784", "0.59288675", "0.59265226", "0.59258604", "0.59245765", "0.5924533", "0.5924481", "0.5919764", "0.5919606", "0.5916244", "0.5908865", "0.59087646", "0.5906329", "0.59050107", "0.5897864", "0.5896367", "0.589496", "0.58935153", "0.58768094", "0.58766913", "0.5874988", "0.5873421", "0.5872301", "0.5866668", "0.5863607", "0.58635414", "0.58572054", "0.58563566", "0.58500063" ]
0.7115328
2
Add new event to calendar
public boolean addEvent(Calendar initial_date, Calendar final_date, String name) { boolean result = false; Event event = new Event(); event.setName(name); event.setInitial_date(initial_date); event.setFinal_date(final_date); /* if event was created */ if (event.getFinal_date() != null && event.getInitial_date() != null) { events.add(event); result = true; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addToCalendar() {\r\n if (!requireCalendarPermissions())\r\n return;\r\n\r\n if (CalendarUtil.createEntry(this, event))\r\n onAddToCalendarSuccess();\r\n else\r\n onRequireCalendarPermissionsDenied();\r\n }", "public void addEvent(View v){\n\t\tif(applicationDB.getCalendarList().size() < 1){\n\t\t\tIntent toCalendarEditor = new Intent(this, CalendarEditor.class);\n\t\t\tnew AppDialogs(this).noCalendarDialog(\"No calendar exists. Create one before adding events.\", toCalendarEditor, this);\n\t\t}\n\t\telse{\n\t\t\tIntent addEvent = new Intent(this, EventEditor.class);\n\t \tEventEditor.setIsModify(false);\n\t \tstartActivity(addEvent);\n\t\t}\n }", "private void onAddToCalendarSuccess() {\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_add_event_sucess), Toast.LENGTH_LONG);\r\n }", "public void add(DiaryCalendarEvent event){\n this.dates.add(new CalendarDay(event.getYear(),event.getMonth(),event.getDay()));\n }", "public void add_events_screen(View view) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(selectedYear, selectedMonth, selectedDay);\n\n Intent intent = new Intent(Intent.ACTION_EDIT);\n intent.setType(\"vnd.android.cursor.item/event\");\n intent.putExtra(CalendarContract.Events.TITLE, \"\");\n intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, calendar.getTimeInMillis());\n intent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, calendar.getTimeInMillis());\n intent.putExtra(CalendarContract.Events.ALL_DAY, false);\n intent.putExtra(CalendarContract.Events.DESCRIPTION,\"\");\n startActivity(intent);\n }", "com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();", "public void addEvent() {\n TimetableUserItem event;\n try {\n String description = getDescription();\n String date = getDate();\n String startTime = getStartTime();\n String endTime = getEndTime();\n verifyCorrectTime(startTime, endTime);\n String location = getLocation();\n event = new TimetableUserItem(description, date, startTime, endTime, location);\n verifyNoConflict(event);\n timetable.addEvent(event.getDayOfWeek(), event);\n timetable.addToEvents(event);\n addUI.printEventMessage(event);\n } catch (AddException e) {\n e.printMessage();\n logger.log(Level.WARNING, \"Invalid event created, event has not been added to timetable\");\n }\n }", "public void onAdd(TimelineAddEvent e) {\n\t\tevent = new TimelineEvent(new Booking(), e.getStartDate(), e.getEndDate(), true, e.getGroup());\n\n\t\t// add the new event to the model in case if user will close or cancel the \"Add dialog\"\n\t\t// without to update details of the new event. Note: the event is already added in UI.\n\t\tmodel.add(event);\n\t}", "@SuppressWarnings(\"deprecation\")\r\n\tprivate void createCalendarEntry(){\r\n\t\t\r\n\t\tUri calendars = Uri.parse(CALENDAR_URI);\r\n\t\t \r\n\t\tCursor managedCursor = managedQuery(calendars, projection, null, null, null);\r\n\t\tString calName = \"\"; \r\n\t\tString calId = \"\"; \r\n\t\tif (managedCursor.moveToFirst()) {\r\n\t\t\t \r\n\t\t\t int idColumn = managedCursor.getColumnIndex(projection[0]);\r\n\t\t\t int nameColumn = managedCursor.getColumnIndex(projection[1]); \r\n\t\t\t \r\n\t\t\t do {\r\n\t\t\t calName = managedCursor.getString(nameColumn);\r\n\t\t\t calId = managedCursor.getString(idColumn);\r\n\t\t\t if (calName.contains(\"gmail\"))\r\n\t\t\t \tbreak;\r\n\t\t\t } while (managedCursor.moveToNext());\r\n\t }\r\n\t\t\r\n\t\tlong start = System.currentTimeMillis() + 120000;\r\n\t\tlong duration = DURATION + start;\r\n\t\t\r\n\t\tContentValues values = new ContentValues();\r\n\t\tvalues.put(DATE_START, start);\r\n\t\tvalues.put(DATE_END, duration);\r\n\t\tvalues.put(EVENT_TITLE, ocrData.getMedicine().getMedicine());\r\n\t\tvalues.put(EVENT_DESCRIPTION, \"Take \" + ocrData.getPatient2Medicine().getFrequencyOfIntake() \r\n\t\t\t\t+ \" by \" + ocrData.getPatient2Medicine().getMode());\r\n\t\tvalues.put(CALENDAR_ID, calId);\r\n\t\tvalues.put(EVENT_RULE, \"FREQ=\" + ocrData.getPatient2Medicine().getFrequencyOfIntake() + \";\");\r\n\t\tvalues.put(HAS_ALARM, 1);\r\n\t\t\r\n\t\tContentResolver cr = getContentResolver();\r\n\t\tUri event = cr.insert(Uri.parse(EVENT_URI), values);\r\n\t\t\r\n\t\tvalues = new ContentValues();\r\n\t\tvalues.put(\"event_id\", Long.parseLong(event.getLastPathSegment()));\r\n\t\tvalues.put(\"method\", 1);\r\n\t\tvalues.put(\"minutes\", 10 );\r\n\t\tcr.insert(Uri.parse(REMINDER_URI), values);\r\n\t}", "public void createEvent(Event e) {\n\t\tLocalDate date = e.sDate;\n\t\tif(!map.containsKey(date)) {\n\t\t\tArrayList<Event> newList = new ArrayList<>();\n\t\t\tnewList.add(e);\n\t\t\tmap.put(date, newList);\n\t\t}\n\t\telse {\n\t\t\tmap.get(date).add(e);\n\n\t\t}\n\t}", "public void addEvent(Event event) {\n\t\t\n\t}", "public abstract CalendarEvent addEvent(User user, Date start, Date end,\n\t\t\tString eventName, Visibility visibility, String description);", "public CalendarEvent addEvent(CalendarEvent p_calendarEvent) {\n String stringifiedDate = String.valueOf(p_calendarEvent.getDay()) + String.valueOf(p_calendarEvent.getMonth()) + String.valueOf(p_calendarEvent.getYear());\n\n if (_events.containsKey(stringifiedDate)) {\n if (dayContainsEvent(_events.get(stringifiedDate), p_calendarEvent)) { return p_calendarEvent; }\n _events.get(stringifiedDate).add(p_calendarEvent);\n _eventsByStamp.put(p_calendarEvent.getTimeStamp(), p_calendarEvent);\n }else{\n _events.put(stringifiedDate, new ArrayList<CalendarEvent>());\n _events.get(stringifiedDate).add(p_calendarEvent);\n _eventsByStamp.put(p_calendarEvent.getTimeStamp(), p_calendarEvent);\n }\n\n ContentValues newVals = new ContentValues();\n newVals.put(CalendarDBOpenHelper.KEY_TIMESTAMP, p_calendarEvent.getTimeStamp());\n newVals.put(CalendarDBOpenHelper.KEY_SENDER, p_calendarEvent.getSender());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_NAME, p_calendarEvent.getEventName());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_LOCATION, p_calendarEvent.getLocation());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_YEAR, p_calendarEvent.getYear());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_MONTH, p_calendarEvent.getMonth());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_DAY, p_calendarEvent.getDay());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_HOUR, p_calendarEvent.getHour());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_MINUTE, p_calendarEvent.getMinute());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_REMINDER, p_calendarEvent.getReminder());\n\n _dbOpener.getWritableDatabase().insert(CalendarDBOpenHelper.EVENTS_DATABASE_TABLE, null, newVals);\n _dbOpener.close();\n notifyListener();\n\n return p_calendarEvent;\n }", "public void addEvent(Event e){\r\n\t\tallEvents.add(e);\r\n\t}", "public String addCourseEvent(Events events);", "public static void addEvent(Context context, @NonNull Reminder reminder) {\n int mId = Prefs.getInstance(context).getCalendarId();\n if (mId != 0) {\n TimeZone tz = TimeZone.getDefault();\n String timeZone = tz.getDisplayName();\n ContentResolver cr = context.getContentResolver();\n ContentValues values = new ContentValues();\n long startTime = TimeUtil.getDateTimeFromGmt(reminder.getEventTime());\n values.put(CalendarContract.Events.DTSTART, startTime);\n values.put(CalendarContract.Events.DTEND, startTime +\n (60 * 1000 * Prefs.getInstance(context).getCalendarEventDuration()));\n if (!TextUtils.isEmpty(reminder.getSummary())) {\n values.put(CalendarContract.Events.TITLE, reminder.getSummary());\n }\n values.put(CalendarContract.Events.CALENDAR_ID, mId);\n values.put(CalendarContract.Events.EVENT_TIMEZONE, timeZone);\n values.put(CalendarContract.Events.ALL_DAY, 0);\n values.put(CalendarContract.Events.STATUS, CalendarContract.Events.STATUS_CONFIRMED);\n values.put(CalendarContract.Events.DESCRIPTION, context.getString(R.string.from_reminder));\n Uri lEventUri = Uri.parse(\"content://com.android.calendar/events\");\n Uri event;\n try {\n event = cr.insert(lEventUri, values);\n if (event != null) {\n long eventID = Long.parseLong(event.getLastPathSegment());\n RealmDb.getInstance().saveObject(new CalendarEvent(reminder.getUuId(), event.toString(), eventID));\n }\n } catch (Exception ignored) {\n }\n }\n }", "@Override\n\tpublic void createEvent(CalendarCreate calendar) {\n\t\tprojectDao.createEvent(calendar);\n\t\t\n\t}", "public void addEvent(OrgEvent event) {\n if (event != null) {\n this.events.add(event);\n }\n }", "@Override\n\tprotected void addItineraryToCalendar() {\n\t\tstartActivity(generateHotelCalendarIntent(false));\n\t\tstartActivity(generateHotelCalendarIntent(true));\n\n\t\tOmnitureTracking.trackHotelConfirmationAddToCalendar();\n\t}", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(Intent.ACTION_INSERT).setData(CalendarContract.Events.CONTENT_URI);\n startActivity(intent);\n }", "public void handleAddEvent(ActionEvent event)\n {\n if(eventDate.getValue() == null)\n {\n MessageAlert.showErrorMessage(null, \"Date was not selected!\");\n return;\n }\n if(eventHour.getValue() == null)\n {\n MessageAlert.showErrorMessage(null, \"Hour was not selected!\");\n return;\n }\n if(eventMinute.getValue() == null)\n {\n MessageAlert.showErrorMessage(null, \"Minute was not selected!\");\n return;\n }\n DecimalFormat decimalFormat = new DecimalFormat(\"00\");\n String date = eventDate.getValue().format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd\")) + \" \" + decimalFormat.format(eventHour.getValue()) + \":\" + decimalFormat.format(eventMinute.getValue());\n try\n {\n service.addEvent(new Event(mainPage.getId(), eventName.getText(), date, new ArrayList<Long>()));\n MessageAlert.showMessage(null, Alert.AlertType.CONFIRMATION, \"SUCCESS!\", \"Event added successfully!\");\n\n Node node = (Node) event.getSource();\n Stage thisStage = (Stage) node.getScene().getWindow();\n thisStage.hide();\n }\n catch (ValidationException e)\n {\n MessageAlert.showErrorMessage(null, e.getMessage());\n }\n }", "public static void addEventToStock(Context context, String summary, long startTime) {\n Intent intent = new Intent(Intent.ACTION_INSERT)\n .setData(CalendarContract.Events.CONTENT_URI)\n .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)\n .putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, startTime)\n .putExtra(CalendarContract.EXTRA_EVENT_END_TIME, startTime +\n (60 * 1000 * Prefs.getInstance(context).getCalendarEventDuration()))\n .putExtra(CalendarContract.Events.TITLE, summary)\n .putExtra(CalendarContract.Events.DESCRIPTION, context.getString(R.string.from_reminder));\n try {\n context.startActivity(intent);\n } catch (ActivityNotFoundException ignored) {\n }\n }", "public void addEvent(Event event) {\n events.add(event);\n }", "public void addNewEvent(String description, String date) {\n Events event = new Events(description, date);\n taskList.add(event);\n printSuccessfulAddMessage(event.toString());\n }", "public void addEvent(FbEvent event) throws SQLException{\n\t\tSQLiteDatabase db = tableHelper.getWritableDatabase();\n\t\ttry {\n\t\t\tContentValues contents = prepareContentValues(event);\n\t\t\tdb.insert(SQLTablesHelper.MY_EVENT_TABLE_NAME, null, contents);\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t}", "public void createCalendar() throws Exception, IOException, ServiceException {\n // If true, the calendar already exists\n if (getDestinationCalendarUrl() != null) {\n return;\n }\n\n CalendarEntry calendar = new CalendarEntry();\n calendar.setTitle(new PlainTextConstruct(destinationCalendarName));\n// calendar.setSummary(new PlainTextConstruct(\"Lotus Notes Calendar\"));\n // Get this machine's current time zone when creating the new Google calendar\n TimeZone localTimeZone = TimeZone.getDefault();\n calendar.setTimeZone(new TimeZoneProperty(localTimeZone.getID()));\n \n calendar.setHidden(HiddenProperty.FALSE);\n calendar.setSelected(SelectedProperty.TRUE);\n calendar.setColor(new ColorProperty(COLOR));\n\n CalendarEntry returnedCalendar = service.insert(mainCalendarFeedUrl, calendar);\n returnedCalendar.update();\n\n // Get the feed url reference so that we can add events to the new calendar.\n destinationCalendarFeedUrl = new URL(returnedCalendar.getLink(\"alternate\", \"application/atom+xml\").getHref());\n\n return;\n }", "@WebMethod public void createEvent(String description, LocalDate eventDate) throws EventAlreadyExist;", "private void addEvent() {\n String name = selectString(\"What is the name of this event?\");\n ReferenceFrame frame = selectFrame(\"Which frame would you like to define the event in?\");\n double time = selectDouble(\"When does the event occur (in seconds)?\");\n double x = selectDouble(\"Where does the event occur (in light-seconds)?\");\n world.addEvent(new Event(name, time, x, frame));\n System.out.println(\"Event added!\");\n }", "public void addUpcomingEvents(String day,String events,String details) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_DAY,day);\n values.put(KEY_EVENTS,events);\n values.put(KEY_DETAILS,details);\n // Inserting Row\n long id = db.insert(TABLE_UPCOMING_EVENTS, null, values);\n //db.close(); // Closing database connection\n\n Log.d(TAG, \"Upcoming events inserted into sqlite: \" + id);\n }", "@Test\n public void testAddEventConvinienceMethod() {\n // Start and end dates to query for\n java.util.Calendar cal = getInstance();\n Date start = cal.getTime();\n cal.add(MONTH, 1);\n Date end = cal.getTime();\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n // Add an event\n BasicEvent event = new BasicEvent(\"Test\", \"Test\", start);\n calendar.addEvent(event);\n // Ensure event exists\n List<CalendarEvent> events = calendar.getEvents(start, end);\n Assert.assertEquals(1, events.size());\n Assert.assertEquals(events.get(0).getCaption(), event.getCaption());\n Assert.assertEquals(events.get(0).getDescription(), event.getDescription());\n Assert.assertEquals(getStart(), event.getStart());\n }", "public boolean addEvent(Event event) {\n\t\tboolean result = false;\n\t\t/* if event was created */\n\t\tif (event != null && event.getFinal_date() != null && event.getInitial_date() != null) {\n\t\t\tevents.add(event);\n\t\t\tresult = true;\n\t\t}\n\t\treturn result;\n\t}", "public void addEvent(String date, String name, String start, String end) {\n\n // Create event based on the parameters\n Event event = new Event(name, start, end);\n\n Boolean foundEventList = false;\n\n for (EventList e : events) {\n if (e.getDate().equals(date)) {\n e.add(event);\n foundEventList = true;\n break;\n }\n }\n\n if (!foundEventList) {\n EventList eventList = new EventList(date);\n eventList.add(event);\n events.add(eventList);\n }\n\n update();\n }", "public void onPressAddToCalendar() {\r\n new ActionConfirmationFragment(this, this)\r\n .setTitle(getString(R.string.event_confirmation_add_event_calendar_entry))\r\n .setMessage(getString(R.string.action_confirmation_can_be_undone))\r\n .setRequestID(REQUEST_CONFIRMATION_ADD_EVENT_CALENDAR_ENTRY)\r\n .show(getSupportFragmentManager(), null);\r\n }", "public static void create() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString title = \"\";\n\t\tString date = \"\";\n\t\tString startTime = \"\";\n\t\tString endTime = \"\";\n\t\tSystem.out.println(\"Enter the title of the event you would like to create: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\ttitle = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the date on MM/DD/YYYY format: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tdate = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the starting time in 24 hour format (ex 15:30): \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tstartTime = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the ending time: in 24 hour format (ex 15:30): \"); // if there's no end time set the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// end time to the start time.\n\t\tif (sc.hasNextLine()) {\n\t\t\tendTime = sc.nextLine().toLowerCase();\n\t\t\tif (endTime.equals(\"\")) {\n\t\t\t\tendTime = startTime;\n\t\t\t}\n\t\t}\n\t\tEvent toAdd = new Event(title, date, startTime, endTime);\n\n\t\tGregorianCalendar calendar = new GregorianCalendar(toAdd.getYear(), toAdd.getMonth(), toAdd.getDay());\n\t\tif (calendarToEvent.get(calendar) == null) { // there are no events under this date\n\t\t\tTreeSet<Event>treeSetForMap = new TreeSet<Event>();\n\t\t\ttreeSetForMap.add(toAdd);\n\t\t\tcalendarToEvent.put(calendar, treeSetForMap);\n\t\t} else { // there are already events, add event to the treeset\n\t\t\tboolean canAdd = true;\n\t\t\tfor (Event e : calendarToEvent.get(calendar)) {\n\t\t\t\tif (e.conflictCheck(toAdd)) { //check this (e.getIntEndTime()) < (toAdd.getIntStartTime()) ////return true if there is a conflict, false if there isn't\n\t\t\t\t\tSystem.out.println(\"Sorry can't add that event, there is a conflict\");\n\t\t\t\t\tcanAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (canAdd) {\n\t\t\t\tcalendarToEvent.get(calendar).add(toAdd); // THAT'S WHAT IT USED TO BE calendarToEvent.get(toAdd.getDate()).add(toAdd);\n\t\t\t}\n\t\t}\n\t}", "public void addEvent(Event e) {\n\t\t\n\t}", "public void addEvent(Event e) {\n\t\t\n\t}", "public void addEvent(Event event) {\n getEvents().add(event);\n }", "@ApiMethod(name = \"insertEvent\")\n public Event insertEvent(Event event) {\n DatastoreService datastoreService = DatastoreServiceFactory.getDatastoreService();\n // TODO: Implement this function\n logger.info(\"Calling insertEvent method\");\n return event;\n }", "@POST\n Response createCalendar(Calendar calendar);", "private CalendarEventEdit calendarEvent(Calendar calendar, SignupMeeting meeting, SignupSite site)\n\t\t\tthrows IdUnusedException, PermissionException {\n\t\tCalendarEventEdit addEvent = calendar.addEvent();\n\t\taddEvent.setType(\"Meeting\");\n\t\tif (!site.isSiteScope()) {\n\t\t\tList<Group> groups = groupIds(site);\n\t\t\taddEvent.setGroupAccess(groups, true);\n\t\t}\n\n\t\treturn addEvent;\n\t}", "@SuppressLint(\"MissingPermission\") // Performed using PermissionHelper\n private boolean addAgendaEventViaProvider(AgendaItem item) {\n if(!PermissionHelper.canExportCalendar()) {\n return false;\n }\n\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(App.getContext());\n String calendarId = preferences.getString(\"calendar_selected_id\", \"false\");\n\n if(calendarId.equals(\"false\")) {\n return false;\n }\n\n ContentValues values = new ContentValues();\n values.put(Events.DTSTART, item.getStart().getMillis());\n values.put(Events.DTEND, item.getEnd().getMillis());\n values.put(Events.TITLE, item.getTitle());\n values.put(Events.DESCRIPTION, getAgendaItemDescription(item));\n values.put(Events.CALENDAR_ID, calendarId);\n values.put(Events.EVENT_TIMEZONE, \"Europe/Amsterdam\");\n values.put(Events.EVENT_LOCATION, item.getLocation());\n values.put(Events.GUESTS_CAN_INVITE_OTHERS, \"0\");\n values.put(Events.GUESTS_CAN_SEE_GUESTS, \"0\");\n values.put(Events.ACCESS_LEVEL, Events.ACCESS_PUBLIC);\n values.put(Events.AVAILABILITY, Events.AVAILABILITY_BUSY);\n values.put(Events.CUSTOM_APP_PACKAGE, \"nl.uscki.appcki.android\");\n values.put(Events.CUSTOM_APP_URI,\n String.format(Locale.ENGLISH,\n \"https://www.uscki.nl/?pagina=Agenda/Item&id=%d\", item.getId()\n )\n );\n\n Uri result = cr.insert(Events.CONTENT_URI, values);\n\n return result != null;\n }", "public String creaEvento(String summary,\n \t\t\t\t\t\t String dateStartEvent,\n \t\t\t\t\t\t String dateEndEvent,\n \t\t\t\t\t\t String calendarId) throws IOException, GeneralSecurityException {\n final NetHttpTransport HTTP_TRANSPORT = GoogleNetHttpTransport.newTrustedTransport();\n Calendar service = new Calendar.Builder(HTTP_TRANSPORT, JSON_FACTORY, getCredentials(HTTP_TRANSPORT))\n .setApplicationName(APPLICATION_NAME)\n .build();\n\n Event event = new Event()\n \t .setSummary(summary);\n\n //Inizio Evento\n \tDateTime startDateTime = new DateTime(dateStartEvent);\n \tEventDateTime start = new EventDateTime()\n \t\t\t.setDateTime(startDateTime);\n \tevent.setStart(start);\n\n \t//Fine Evento\n \tDateTime endDateTime = new DateTime(dateEndEvent);\n \tEventDateTime end = new EventDateTime()\n \t\t\t.setDateTime(endDateTime);\n \tevent.setEnd(end);\n\n \t//Link di Meet\n \tConferenceSolutionKey key = new ConferenceSolutionKey()\n \t\t\t.setType(\"hangoutsMeet\");\n \tCreateConferenceRequest request = new CreateConferenceRequest()\n \t\t\t.setRequestId(String.valueOf(new Random().nextInt(999999)))\n \t\t\t.setConferenceSolutionKey(key);\n \tConferenceData conferenceData = new ConferenceData()\n \t\t\t.setCreateRequest(request);\n \tevent.setConferenceData(conferenceData);\n \t\n \t//Notifiche\n \tEventReminder[] reminderOverrides = new EventReminder[] {\n \t new EventReminder().setMethod(\"popup\").setMinutes(5),\n \t};\n \tEvent.Reminders reminders = new Event.Reminders()\n \t .setUseDefault(false)\n \t .setOverrides(Arrays.asList(reminderOverrides));\n \tevent.setReminders(reminders);\n\n \t//Creazione Evento\n \tevent = service.events().insert(calendarId, event).setConferenceDataVersion(1).execute();\n \t\n \treturn \"Event created: \" + event.getHtmlLink();\n }", "public void addEvent(TimelineEvent event) {\n events.add(event);\n }", "public Event insertEvent() throws IOException {\n Event event = new Event()\n .setSummary(\"Cita médica\")\n .setLocation(\"Virtual\")\n .setDescription(\"Cita médica Virtual\");\n \n DateTime startDateTime = new DateTime(\"2020-03-25T16:00:00-05:00\");\n EventDateTime start = new EventDateTime()\n .setDateTime(startDateTime)\n .setTimeZone(TIME_ZONE);\n event.setStart(start);\n \n DateTime endDateTime = new DateTime(\"2020-03-25T17:00:00-05:00\");\n EventDateTime end = new EventDateTime()\n .setDateTime(endDateTime)\n .setTimeZone(TIME_ZONE);\n event.setEnd(end);\n \n EventAttendee[] attendees = new EventAttendee[] {\n new EventAttendee().setEmail(\"[email protected]\"),\n new EventAttendee().setEmail(\"[email protected]\"),\n };\n event.setAttendees(Arrays.asList(attendees));\n \n EventReminder[] reminderOverrides = new EventReminder[] {\n new EventReminder().setMethod(\"popup\").setMinutes(10)\n };\n Event.Reminders reminders = new Event.Reminders()\n .setUseDefault(false)\n .setOverrides(Arrays.asList(reminderOverrides));\n event.setReminders(reminders);\n \n String calendarId = DEFAULT_CALENDAR;\n event = service.events().insert(calendarId, event).execute();\n \n return event;\n }", "@Override\n public Event createSlotEventService(String discordId, String eventId,\n com.bot.insched.model.Event eventModel) {\n Calendar calendar = getCalendarbyId(discordId);\n if (calendar == null) {\n return null;\n }\n try {\n // event di google calendar\n Event eventCalendar = new Event();\n\n DateTimeFormatter dateFormatter = DateTimeFormatter.ISO_DATE_TIME;\n\n DateTime dateTime = new DateTime(eventModel.getStartTime().minusHours(7)\n .format(dateFormatter));\n eventCalendar.setStart(new EventDateTime().setDateTime(dateTime));\n dateTime = new DateTime(eventModel.getEndTime().minusHours(7).format(dateFormatter));\n eventCalendar.setEnd(new EventDateTime().setDateTime(dateTime));\n eventCalendar.setSummary(eventModel.getDescription());\n eventCalendar = calendar.events().insert(\"primary\", eventCalendar).execute();\n eventModel.setIdGoogleEvent(eventCalendar.getId());\n eventRepository.save(eventModel);\n return eventCalendar;\n\n } catch (Exception e) {\n log.error(\"------ Error when createSlotEventService: {}\", e.getMessage());\n return null;\n }\n }", "@WebMethod public Event createEvent(Date date, Team a, Team b) throws EventAlreadyExist;", "public String addEvent(Event event) {\r\n // Gets the events collection and the event as a document\r\n MongoCollection<Document> events = mongoDB.getCollection(\"Events\");\r\n Document obj = event.getEventAsDocument();\r\n\r\n // Inserts the event and sets the id of the event to the one given\r\n events.insertOne(obj);\r\n event.setID(obj.getObjectId(\"_id\").toHexString());\r\n\r\n // Returns the id of the event\r\n return event.getID();\r\n }", "@Override\n public void add(Event event) {\n persist(event);\n }", "public AddOrEditCalendarEvent(LocalDate date, TermCalendarController controller) {\n\t\tthis.date = date;\n\t\tthis.controller = controller;\n\t\tdisplay();\n\t}", "@Override\r\n public boolean addEvent(Events event) {\r\n java.text.SimpleDateFormat SQL_Datetime = new java.text.SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n String currentTime = SQL_Datetime.format(LocalDateTime.now());\r\n String EventDatetime = SQL_Datetime.format( event.getDate());\r\n \r\n if (currentTime.compareTo(EventDatetime)<0) {\r\n return false;\r\n }\r\n else {\r\n em.persist(event);\r\n }\r\n return true;\r\n }", "public void clickAddEvent(View view) {\n if(true){\n\n boolean czy = false;\n if(mGroupClose.isChecked()){\n czy=true;\n }\n int day = mDate.getDayOfMonth();\n int month= mDate.getMonth();\n int year = mDate.getYear() - 1900;\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String formatedDate = sdf.format(new Date(year, month, day));\n\n String formattedTime = \"\";\n int hour = mTime.getCurrentHour();\n String sHour = \"00\";\n if(hour < 10){\n sHour = \"0\"+hour;\n } else {\n sHour = String.valueOf(hour);\n }\n\n int minute = mTime.getCurrentMinute();\n String sMinute = \"00\";\n if(minute < 10){\n sMinute = \"0\"+minute;\n } else {\n sMinute = String.valueOf(minute);\n }\n\n formattedTime = sHour+\":\"+sMinute;;\n\n\n AddNewEvent = new AddNewEvent((mName.getText().toString()), (mDescrition.getText().toString()), czy, mMembers.getText().toString(), formattedTime ,formatedDate ,mDuration.getText().toString());\n AddNewEvent.execute((Void) null);\n\n }\n }", "public long createEvent(Event event) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(EVENT_NAME, event.getName());\n values.put(EVENT_DATE, event.getDate());\n\n // insert row\n long _id = db.insert(EVENTS_TABLE_NAME, null, values);\n\n return _id;\n }", "public void createEvent(View view){\n showDatePickerDialog();\n }", "public void addEvent()\n throws StringIndexOutOfBoundsException, ArrayIndexOutOfBoundsException {\n System.out.println(LINEBAR);\n try {\n String taskDescription = userIn.split(EVENT_IDENTIFIER)[DESCRIPTION].substring(EVENT_HEADER);\n String timing = userIn.split(EVENT_IDENTIFIER)[TIMING];\n Event event = new Event(taskDescription, timing);\n tasks.add(event);\n storage.writeToFile(event);\n ui.echoUserInput(event, tasks.taskIndex);\n } catch (StringIndexOutOfBoundsException e) {\n ui.printStringIndexOOB();\n } catch (ArrayIndexOutOfBoundsException e) {\n ui.printArrayIndexOOB();\n }\n System.out.println(LINEBAR);\n }", "public void addEvent(Event t, Room r, ArrayList<Speaker> s, LocalDateTime start, LocalDateTime end){\n EventMapFeatures q = new EventMapFeatures(r, s, start, end);\n eventMap.put(t, q);\n eventList.add(t);\n Collections.sort(eventList, Comparator.comparing(Event::getStartTime));\n eventIdsList.clear();\n for (Event e : eventList){\n eventIdsList.add(e.getEventId());\n }\n }", "public void addItemToCalendar(AgendaItem item) {\n if(!addAgendaEventViaProvider(item)) addAgendaEventViaIntention(item);\n }", "public void addCalendar(View v){\n \tIntent addCalendar = new Intent(this, CalendarEditor.class);\n \tCalendarEditor.setIsModify(false);\n \tstartActivity(addCalendar);\n }", "private void addAgendaEventViaIntention(AgendaItem item) {\n Intent intent = new Intent(Intent.ACTION_INSERT);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.setType(\"vnd.android.cursor.item/event\");\n intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, item.getStart().getMillis());\n intent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, item.getEnd().getMillis());\n intent.putExtra(Events.TITLE, item.getTitle());\n intent.putExtra(Events.DESCRIPTION, getAgendaItemDescription(item));\n intent.putExtra(Events.EVENT_TIMEZONE, \"Europe/Amsterdam\");\n intent.putExtra(Events.EVENT_LOCATION, item.getLocation());\n intent.putExtra(Events.ACCESS_LEVEL, Events.ACCESS_PUBLIC);\n intent.putExtra(Events.AVAILABILITY, Events.AVAILABILITY_BUSY);\n\n App.getContext().startActivity(intent);\n }", "private Void postDataToApi() throws IOException, ParseException {\r\n // List the next 10 events from the primary calendar.\r\n // Quick-add an event\r\n // Refer to the Java quickstart on how to setup the environment:\r\n // https://developers.google.com/google-apps/calendar/quickstart/java\r\n // Change the scope to CalendarScopes.CALENDAR and delete any stored\r\n // credentials.\r\n\r\n Event event = new Event()\r\n .setSummary(calendarText)\r\n .setLocation(martLocation)\r\n .setDescription(\"Reminder to eat healthy food!\");\r\n\r\n DateTime startDateTime = new DateTime(shoppingDateTime);\r\n EventDateTime start = new EventDateTime()\r\n .setDateTime(startDateTime)\r\n .setTimeZone(\"America/New_York\");\r\n event.setStart(start);\r\n DateTime endDateTime = new DateTime(shoppingDateTime);\r\n EventDateTime end = new EventDateTime()\r\n .setDateTime(endDateTime)\r\n .setTimeZone(\"America/New_York\");\r\n event.setEnd(end);\r\n String calendarId = \"primary\";\r\n event = mService.events().insert(calendarId, event).execute();\r\n System.out.printf(\"Event created: %s\\n\", event.getHtmlLink());\r\n return null;\r\n }", "public static boolean addToCalendar(FragmentActivity fa, long startMillis){\n\t\t\n\t\tlong cid = getCalendarID(fa);\n\t\t\n\t\tCalendar beginTime = Calendar.getInstance();\n\t\tbeginTime.setTimeInMillis(startMillis);\n\t\tLog.e(\"CalendarHelper\", \"start milis: \" + startMillis );\n\t\t\n\t\t// 30 minutes \n\t\tlong endMillis = startMillis + 30 * 60 * 1000; \n\t\t\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(Events.DTSTART, startMillis);\n\t\tvalues.put(Events.DTEND, endMillis);\n\t\tvalues.put(Events.TITLE, \"BPPV Physio Reminder\");\n\t\tvalues.put(Events.DESCRIPTION, \"Workout\");\n\t\tvalues.put(Events.CALENDAR_ID, cid);\n\t\t//values.put(Events.EVENT_TIMEZONE, beginTime.getTimeZone().toString());\n//\t\tvalues.put(Events.EVENT_TIMEZONE, \"America/Chicago\");\n\t\tvalues.put(Events.EVENT_TIMEZONE, \"America/Los_Angeles\");\n\t\tvalues.put(Events.HAS_ALARM, true);\n\t\t\n\t\tfa.getContentResolver().insert(Events.CONTENT_URI, values);\n\t\t\n\t\tLog.e(\"ReminderCalendarHelper.java\", \"added reminder to calendar id = \" + cid);\n\t\t\n\t\t\n\t\treturn true; \n\t}", "public void addEvent(Event e) throws MalformedEventException {\n addEvent(e.getLinkedUserId(), e.getName(), e.getStartDate(), e.getEndDate(), e.getStartTime(), e.getEndTime());\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tAddEvent.currentDateCalendar=(Calendar) c.clone();\n\t\t\t\tstartActivity(new Intent(\"com.calendar.ADDEVENT\"));\n\t\t\t}", "@Test\n public void testAddEventConvinienceMethodWithCustomEventProvider() {\n calendar.setEventProvider(new ContainerEventProvider(new com.vaadin.v7.data.util.BeanItemContainer<BasicEvent>(BasicEvent.class)));\n // Start and end dates to query for\n java.util.Calendar cal = getInstance();\n Date start = cal.getTime();\n cal.add(MONTH, 1);\n Date end = cal.getTime();\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n // Add an event\n BasicEvent event = new BasicEvent(\"Test\", \"Test\", start);\n calendar.addEvent(event);\n // Ensure event exists\n List<CalendarEvent> events = calendar.getEvents(start, end);\n Assert.assertEquals(1, events.size());\n Assert.assertEquals(events.get(0).getCaption(), event.getCaption());\n Assert.assertEquals(events.get(0).getDescription(), event.getDescription());\n Assert.assertEquals(getStart(), event.getStart());\n }", "public String addEvent(String description, LocalDate at) {\n Event toAdd = new Event(description, at);\n records.add(toAdd);\n return String.format(\"Got it. I've added this event:\\n\\t %1$s \\n\\t\" +\n \"Now you have %2$d tasks in the list.\\n\\t\", toAdd.toString(), records.size());\n }", "public void addNewEventToWall(String event, String userUuid);", "public static void InsertEvent(Event newEvent){\r\n\t int index=0;\r\n\t while (newEvent.date > alteredEventsFile.get(index).date ){\r\n\t\t index++;\r\n\t }\r\n\t alteredEventsFile.add(index, newEvent);\r\n }", "@Override\n\tpublic CalendarEdit addCalendar(String ref) throws IdUsedException,\n\t\t\tIdInvalidException, PermissionException {\n\t\treturn null;\n\t}", "public void addAppointment(String orgname) {\r\n\t\tVEvent event = new VEvent();\r\n\t\tevent.addAttendee(new Attendee(user.getName(), \"\"));\r\n\t\tlocalCalendar.addEvent(event);\r\n\t\tevent.setOrganizer(new Organizer(orgname, \"\"));\r\n\t\t\r\n\t}", "void addPreferedCalendar(String calendarId);", "public Event addEvent(Event event) {\n\t\t\tif (events == null) {\n\t\t\t\tevents = new ArrayList<Event>();\n\t\t\t}\n\t\t\tif (!events.contains(event)) {\n\t\t\t\tevents.add(event);\n\t\t\t\tevent.addClient(this);\n\t\t\t}\n\t\t\n\t\t\treturn event;\n\t\t}", "private void pushNewEvent(Event e) {\n\t\tec.pushNewElement(e);\n\t}", "public static void createEvent(String token){\n ensureGraphClient(token);\n\n LinkedList<Option> requestOptions = new LinkedList<Option>();\n //requestOptions.add(new HeaderOption(\"Authorization\", \"Bearer nupl9.C5rb]aO5:yvT:3L.TKcH7tB1Im\" ));\n\n // Participantes:\n LinkedList<Attendee> attendeesList = new LinkedList<Attendee>();\n Attendee mentor = new Attendee();\n Attendee mentorado = new Attendee();\n\n EmailAddress mentorMail = new EmailAddress();\n mentorMail.address = \"[email protected]\";\n mentorMail.name = \"Daniell Wagner\";\n mentor.emailAddress = mentorMail;\n\n EmailAddress mentoradoMail = new EmailAddress();\n mentoradoMail.address = \"[email protected]\";\n mentoradoMail.name = \"Guilherme Carneiro\";\n mentorado.emailAddress = mentoradoMail;\n\n mentor.type = AttendeeType.REQUIRED;\n mentorado.type = AttendeeType.REQUIRED;\n\n attendeesList.add(mentor);\n attendeesList.add(mentorado);\n\n // Evento:\n Event event = new Event();\n event.subject = \"Mentoria com \" + mentor.emailAddress.name;\n\n ItemBody body = new ItemBody();\n body.contentType = BodyType.HTML;\n body.content = \"\" +\n \"<b>Mentoria sobre SCRUM</b> <br>\" +\n \"Olá, \" + mentorado.emailAddress.name + \" <br> \" +\n \"Você tem uma mentoria marcada com o mentor \"\n + mentor.emailAddress.name + \"!!\";\n\n event.body = body;\n\n DateTimeTimeZone start = new DateTimeTimeZone();\n start.dateTime = \"2020-03-26T16:00:00\";\n start.timeZone = \"Bahia Standard Time\";\n event.start = start;\n\n DateTimeTimeZone end = new DateTimeTimeZone();\n end.dateTime = \"2020-03-26T18:00:00\";\n end.timeZone = \"Bahia Standard Time\";\n event.end = end;\n\n Location location = new Location();\n location.displayName = \"Stefanini Campina Grande\";\n event.location = location;\n\n event.attendees = attendeesList;\n\n try {\n graphClient.me().calendar().events()\n .buildRequest()\n .post(event);\n }catch(Exception e) {\n\n System.out.println(\"Deu águia: \");\n e.printStackTrace();\n }\n }", "private void addClubEvent (ClubEvent clubEvent) {\n position = clubEventList.add (position.getClubEvent());\n if (position.hasValidIndex (clubEventList)) {\n writer.save(eventsFile, clubEvent, true, false);\n positionAndDisplay();\n }\n }", "private void onPressCalendarEntry() {\r\n if (event.hasCalendarEntry())\r\n onPressRemoveFromCalendar();\r\n else\r\n onPressAddToCalendar();\r\n }", "public void createCalendarEventsTable(SQLiteDatabase db){\n\t\t\tfinal String CALENDAR_EVENTS_CREATE_TABLE =\n\t\t\t\t \"CREATE TABLE if not exists \" + CALENDAR_EVENTS_TABLE + \" (\" +\n\t\t\t\t \t\tBaseColumns._ID + \" INTEGER PRIMARY KEY,\" +\n\t\t\t\t \t\tCOL_EVENTTYPE + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t\tCOL_EVENT_ID + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t\tCOL_USERID + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t\tCOL_DESCRIPTION + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t\tCOL_LOCATION + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t\tCOL_CATEGORY + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t COL_COMMENTS + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t COL_JUSTIFICATION + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t COL_REMINDER + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t COL_STARTDATE + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t COL_ENDDATE + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t COL_STATUS + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t\tCOL_EDITED + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t\tCOL_DELETED+TEXT_TYPE+\n\t\t\t\t \" )\";\n\t\t\tdb.execSQL(CALENDAR_EVENTS_CREATE_TABLE);\n\t\t}", "public long insertEntry(CampusEvent event) {\n\n ContentValues value = new ContentValues();\n\n value.put(KEY_TITLE, event.getTitle());\n\n value.put(KEY_DATE, event.getstrDate());\n value.put(KEY_START, event.getstrStart());\n value.put(KEY_END, event.getstrEnd());\n\n value.put(KEY_LOCATION, event.getLocation());\n value.put(KEY_DESCRIPTION, event.getDescription());\n value.put(KEY_URL, event.getURL());\n value.put(KEY_LATITUDE, event.getLatitude());\n value.put(KEY_LONGITUDE, event.getLongitude());\n value.put(KEY_FOOD, event.getFood());\n value.put(KEY_EVENT_TYPE, event.getEventType());\n value.put(KEY_PROGRAM_TYPE, event.getProgramType());\n value.put(KEY_YEAR, event.getYear());\n value.put(KEY_MAJOR, event.getMajor());\n value.put(KEY_GENDER, event.getGender());\n value.put(KEY_GREEK_SOCIETY, event.getGreekSociety());\n dbObj = getWritableDatabase();\n long id = dbObj.insert(TABLE_EVENT_ENTRIES, null, value);\n dbObj.close();\n return id;\n }", "@RequestMapping(value = \"/add-event\", method = RequestMethod.POST)\n public String addEvent(@RequestParam(\"event-date\") Date eventDate, @RequestParam(\"event-time\") String time, @RequestParam(\"event-type\") String eventType, @RequestParam(\"event-name\") String eventName) {\n Time eventTime = helper.getTimeToSql(time);\n EventModel eventModel = new EventModel(eventDate, eventTime, eventType, eventName);\n eventService.addEvent(eventModel);\n return \"redirect:home\";\n }", "@PUT\n @Path(\"{id}\")\n @RolesAllowed({\"administrator\", \"user\", \"visitor\"})\n Response createOrUpdateCalendar(@PathParam(\"id\") Long id, Calendar calendar);", "public void createReminder(Calendar calendar, Event event) throws LogicLayerException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tdataService.createReminder(new Reminder(calendar, event));\r\n\t\t}\r\n\t\tcatch (DataLayerException e)\r\n\t\t{\r\n\t\t\tthrow new LogicLayerException(e.getMessage());\r\n\t\t}\r\n\t}", "public void addDate(java.util.Calendar value) {\r\n\t\tBase.add(this.model, this.getResource(), DATE, value);\r\n\t}", "int insert(CalendarDate record);", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_add_user, container, false);\n name = view.findViewById(R.id.name);\n date = view.findViewById(R.id.date);\n time = view.findViewById(R.id.time);\n description = view.findViewById(R.id.description);\n addevent = view.findViewById(R.id.addevent);\n addevent.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n String Name = name.getText().toString();\n String Date = date.getText().toString();\n String Time= time.getText().toString();\n String Description= description.getText().toString();\n\n Event event = new Event();\n event.setName(Name);\n event.setTime(Time);\n event.setDescription(Description);\n event.setDate(Date);\n Main2Activity.eventDatabase.myDao().addEvent(event);\n Toast.makeText(getActivity(), \"Event added\", Toast.LENGTH_SHORT).show();\n event.setName(\"\");\n event.setTime(\"\");\n event.setDate(\"\");\n event.setDescription(\"\");\n\n }\n });\n\n return view;\n }", "public void addEvent(eNode newEvent)\r\n {\r\n eNode newNode = new eNode(newEvent);\r\n if(this.head == null)\r\n this.head = newNode;\r\n else\r\n recursiveInsert(this.head, newNode);\r\n }", "public static boolean create(String title, String date, String startTime, String endTime) {\n\t\tboolean canAdd = true;\n\t\tif (date.length() != 10) { //not in the correct format MM/DD/YYYY\n\t\t\tString month = date.substring(0, date.indexOf(\"/\"));\n\t\t\tSystem.out.println(\"month within create: \" + month);\n\t\t\tif (month.length() != 2) {\n\t\t\t\tmonth = \"0\" + month;\n\t\t\t}\n\t\t\tString day = date.substring(date.indexOf(\"/\") + 1, date.indexOf(\"/\", date.indexOf(\"/\") + 1));\n\t\t\tSystem.out.println(\"day within create: \" + day);\n\t\t\tif (day.length() != 2) {\n\t\t\t\tday = \"0\" + day;\n\t\t\t}\n\t\t\tString year = date.substring(date.indexOf(\"/\", date.indexOf(\"/\") + 1) + 1);\n\t\t\tSystem.out.println(\"year within create: \" + year);\n\t\t\tdate = month + \"/\" + day + \"/\" + year;\n\t\t}\n\t\tEvent toAdd = new Event(title, date, startTime, endTime);\n\n\t\tGregorianCalendar calendar = new GregorianCalendar(toAdd.getYear(), toAdd.getMonth(), toAdd.getDay());\n\t\tif (calendarToEvent.get(calendar) == null) { // there are no events under this date\n\t\t\tTreeSet<Event> treeSetForMap = new TreeSet<Event>();\n\t\t\ttreeSetForMap.add(toAdd);\n\t\t\tcalendarToEvent.put(calendar, treeSetForMap);\n\t\t} else { // there are already events, add event to the treeset\n\t\t\t\n\t\t\tfor (Event e : calendarToEvent.get(calendar)) {\n\t\t\t\tif (e.conflictCheck(toAdd)) { //check this (e.getIntEndTime()) < (toAdd.getIntStartTime()) ////return true if there is a conflict, false if there isn't\n\t\t\t\t\tSystem.out.println(\"Sorry can't add that event, there is a conflict\");\n\t\t\t\t\tcanAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (canAdd) {\n\t\t\t\tcalendarToEvent.get(calendar).add(toAdd); // THAT'S WHAT IT USED TO BE calendarToEvent.get(toAdd.getDate()).add(toAdd);\n\t\t\t}\n\t\t}\n\t\treturn canAdd;\n\t}", "public abstract EventSeries addEventSeries(User user, Date start,\n\t\t\tDate end, String eventName, Visibility visibility, Repetition repetition, String description);", "public void addEvent(AbstractEvent _event){\n\t\tif(_event!=null){\n\t\t\tevent.addEvent(_event);\n\t\t}\n\t}", "public void addEvents(ArrayList<FbEvent> events) throws SQLException{\n\t\tSQLiteDatabase db = tableHelper.getWritableDatabase();\n\t\ttry {\n\t\t\tfor (FbEvent event : events) {\n\t\t\t\tContentValues contents = prepareContentValues(event);\n\t\t\t\tdb.insert(SQLTablesHelper.MY_EVENT_TABLE_NAME, null, contents);\n\t\t\t}\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t}", "public void addEvent(Event event)\n throws DatabaseException, InvalidValuesException {\n\n if (event.getEventID() == null\n || event.getDescendant() == null\n || event.getPersonID() == null\n || event.getCountry() == null\n || event.getCity() == null\n || event.getEventType() == null) {\n throw new InvalidValuesException();\n }\n\n PreparedStatement stmt = null;\n try {\n\n String sql =\n \"insert into Events (\" +\n \"EventID, Descendant, PersonID, Latitude, Longitude, \" +\n \"Country, City, EventType, EventYear\" +\n \") \" +\n \"values (?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n stmt = connection.prepareStatement(sql);\n stmt.setString(1, event.getEventID());\n stmt.setString(2, event.getDescendant());\n stmt.setString(3, event.getPersonID());\n stmt.setDouble(4, event.getLatitude());\n stmt.setDouble(5, event.getLongitude());\n stmt.setString(6, event.getCountry());\n stmt.setString(7, event.getCity());\n stmt.setString(8, event.getEventType());\n stmt.setInt(9, event.getYear());\n\n if (stmt.executeUpdate() != 1) {\n throw new DatabaseException();\n }\n } catch (SQLException e) {\n throw new DatabaseException(e);\n } finally {\n\n if (stmt != null) {\n try {\n stmt.close();\n } catch (SQLException e) {\n logger.log(Level.FINEST, e.getMessage(), e);\n }\n }\n\n }\n }", "private void saveEvent(){\n String eventName = eventNameView.getText().toString().trim();\n String dateString = eventDateView.getText().toString();\n String timeString = eventTimeView.getText().toString();\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd hh:mm a\");\n Calendar cal = Calendar.getInstance();\n try{\n Date date = sdf.parse(dateString+ \" \" + timeString);\n cal.setTime(date);\n }\n catch (Exception e){\n Log.d(\">>>\",e.toString());\n }\n\n if(eventName.length()>=1){\n final Event event = new Event(eventName, dateString, timeString, memberStatus, chat.getChatKey());\n String reminderPreferenceKeyTemp = \"\";\n if(this.event!=null){\n event.setEventKey(this.event.getEventKey());\n final DatabaseReference database = FirebaseDatabase.getInstance().getReference(\"events\");\n database.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for(DataSnapshot e : dataSnapshot.getChildren()){\n if(e.child(\"eventKey\").getValue().toString().equals(event.getEventKey())){\n database.child(e.getKey()).setValue(event);\n Calendar cal = Calendar.getInstance();\n SimpleDateFormat sdf = new SimpleDateFormat(patternDate);\n try {\n Date date = sdf.parse(eventDateView.getText().toString());\n cal.setTime(date);\n ActivityEventCalendar.dateLong = cal.getTimeInMillis();\n if(ActivityEventCalendar.dateLong == cal.getTimeInMillis()){\n ActivityEventCalendar.displayEventList();\n finish();\n }\n }\n catch(Exception exception){\n\n }\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n reminderPreferenceKeyTemp = event.getEventKey() + \"reminders\";\n }\n else{\n //creating event for the first time\n DatabaseReference database = FirebaseDatabase.getInstance().getReference(\"events\");\n eventFirebase = database.push();\n event.setEventKey(eventFirebase.getKey());\n database.push().setValue(event);\n reminderPreferenceKeyTemp = eventFirebase.getKey() + \"reminders\";\n }\n //write sharedpreferences for reminder\n final String reminderPreferenceKey = reminderPreferenceKeyTemp;\n Spinner spinner = (Spinner) findViewById(R.id.reminder_spinner);\n final SharedPreferences pref = getApplicationContext().getSharedPreferences(\"MyPref\", 0);\n final SharedPreferences.Editor editor = pref.edit();\n spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) {\n if(position==0){\n //turn on\n editor.putBoolean(reminderPreferenceKey, true);\n editor.commit();\n }\n else if(position == 1){\n //turn off\n editor.putBoolean(reminderPreferenceKey, false);\n editor.commit();\n }\n }\n @Override\n public void onNothingSelected(AdapterView<?> parentView) { }\n });\n\n //create reminders\n boolean notify = pref.getBoolean(reminderPreferenceKey, false);\n\n if(notify){\n Intent intent = new Intent(Intent.ACTION_EDIT);\n intent.setType(\"vnd.android.cursor.item/event\");\n intent.putExtra(\"beginTime\", cal.getTimeInMillis());\n intent.putExtra(\"allDay\", false);\n intent.putExtra(\"title\", event.getEventName());\n startActivity(intent);\n }\n if(!creatingNewChat){\n statusAdapter.updateFirebase();\n }\n ActivityEventCalendar.dateLong = cal.getTimeInMillis();\n if(ActivityEventCalendar.dateLong == cal.getTimeInMillis()){\n ActivityEventCalendar.displayEventList();\n finish();\n }\n }\n else{\n Toast.makeText(this, \"Event name is invalid\", Toast.LENGTH_SHORT).show();\n }\n }", "public boolean insertData(Event event) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues contentValues = new ContentValues();\n contentValues.put(DAY, event.getDay());\n contentValues.put(COLOR, event.getColor());\n contentValues.put(COL_1, event.getStartDate().getTimeInMillis());\n contentValues.put(COL_2, event.getEndDate().getTimeInMillis());\n contentValues.put(COL_3, event.getTitle());\n contentValues.put(COL_4, event.getDescription());\n\n long result = db.insert(TABLE_NAME, null, contentValues);\n Cursor res = db.query(true, TABLE_NAME, new String[]{ID},\n DAY + \" = '\" + event.getDay() + \"' AND \"\n + COL_3 + \" = '\" + event.getTitle() + \"'\",\n null, null, null, null, null);\n res.moveToNext();\n event.setDatabaseID(res.getInt(0));\n db.close();\n return result != -1;\n\n }", "public org.hl7.fhir.CodeableConcept addNewEvent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.CodeableConcept target = null;\n target = (org.hl7.fhir.CodeableConcept)get_store().add_element_user(EVENT$0);\n return target;\n }\n }", "public void addItemToCalendar(MeetingItem item) {\n if(!exportMeetingViaProvider(item)) exportMeetingViaIntention(item);\n }", "public Boolean insertEventToCalendar(String[] eventStringArray) throws Exception {\n\t\tcom.google.api.services.calendar.Calendar service = getCalendarService(UserUtils.getInstance().getCredential());\n\n\t\tEvent event = new Event().setSummary(eventStringArray[0]).setLocation(eventStringArray[3])\n\t\t\t\t.setDescription(eventStringArray[4]);\n\n\t\tDateTime startDateTime = new DateTime(eventStringArray[1]);\n\t\tEventDateTime start = new EventDateTime().setDateTime(startDateTime);\n\t\tevent.setStart(start);\n\n\t\tDateTime endDateTime = new DateTime(eventStringArray[2]);\n\t\tEventDateTime end = new EventDateTime().setDateTime(endDateTime);\n\t\tevent.setEnd(end);\n\n\t\tString calendarId = \"primary\";\n\t\tevent = service.events().insert(calendarId, event).execute();\n\n\t\tcreateCalendarEvents();\n\n\t\treturn true;\n\t}", "public void addGameStartedEvent(GameStartedEvent gameStartedEvent) {\n\t\ttry{\n\t\t\tGameStartedMongoEvent mongoEvent = GameStartedMongoEvent.convertIntoMongoEvent(gameStartedEvent);\n\t\t\t\n\t\t\tmongoTemplate.insert(mongoEvent, \"GameStartedEvents\");\t\t\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tlogger.error(\"Failed to save GameStartedMongoEvent into mongo events store\");\n\t\t\tlogger.error(ex.getMessage());\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void addEvent(Event newEvent)\r\n {\r\n eNode newNode = new eNode(newEvent);\r\n if(this.head == null)\r\n head = newNode;\r\n else\r\n recursiveInsert(this.head, newNode);\r\n }", "Event createEvent();", "Event createEvent();", "public void insertEvent(@NonNull Event event, @NonNull OnEventCreatedCallback callback) {\n mEventCollection.create(event, res -> {\n if(res.isSuccessful()) {\n callback.onSuccess(res.getData());\n } else {\n callback.onFailure(res.getException());\n }\n });\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB)\n\t@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.event_details);\n\t\tgetActionBar().setDisplayHomeAsUpEnabled(true);\n\n\t\ttitle = (TextView) findViewById(R.id.event_name);\n\t\torganization = (TextView) findViewById(R.id.organization);\n\t\tdepartment = (TextView) findViewById(R.id.department);\n\t\tlocation = (TextView) findViewById(R.id.location);\n\t\tdate = (TextView) findViewById(R.id.date);\n\t\ttime = (TextView) findViewById(R.id.time);\n\t\tdescription = (TextView) findViewById(R.id.description);\n\n\t\tIntent i = getIntent();\n\t\tevent = (EventData)i.getSerializableExtra(\"the_event\");\n\n\t\ttitle.setText(event.getTitle());\n\t\torganization.setText(event.getOrganization());\n\t\tif (event.getOrganization().equals(event.getDepartment()))\n\t\t\tdepartment.setText(\"\");\n\t\telse\n\t\t\tdepartment.setText(event.getDepartment());\n\t\tlocation.setText(event.getLocation());\n\t\tif (event.getDateFrom().equals(event.getDateTo())) \n\t\t\tdate.setText(event.getRegularDateFrom());\n\t\telse \n\t\t\tdate.setText(event.getRegularDateFrom() + \" to \" + event.getRegularDateTo());\n\n\t\tif (event.getTimeFrom().equals(event.getTimeTo())) \n\t\t\ttime.setText(event.getRegularTimeFrom());\n\t\telse \n\t\t\ttime.setText(event.getRegularTimeFrom() + \" to \" + event.getRegularTimeTo());\n\t\tdescription.setText(event.getDescription());\n\n\t\tfinal Button calendar = (Button) findViewById(R.id.btn1);\n\t\tcalendar.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tCalendar cal = Calendar.getInstance(); \n\t\t\t\tIntent intent = new Intent(Intent.ACTION_EDIT);\n\t\t\t\tintent.setType(\"vnd.android.cursor.item/event\");\n\t\t\t\tintent.putExtra(\"beginTime\", event.getBeginTime());\n\t\t\t\tintent.putExtra(\"endTime\", event.getEndTime());\n\t\t\t\tintent.putExtra(\"title\", event.getOrganization() + \"- \" + event.getTitle());\n\t\t\t\tintent.putExtra(Events.EVENT_LOCATION, event.getLocation());\n\t\t\t\tintent.putExtra(Events.DESCRIPTION, event.getDescription());\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\n\t\tfinal Button reminder = (Button) findViewById(R.id.btn2);\n\t\treminder.setOnClickListener(new View.OnClickListener() {\n\t\t\tprivate Calendar mcurrentTime;\n\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmcurrentTime = Calendar.getInstance();\n\n\t\t\t\tDatePickerDialog datePicker = new DatePickerDialog(EventDetailsActivity.this, new DatePickerDialog.OnDateSetListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onDateSet(DatePicker view, int year, int monthOfYear,\n\t\t\t\t\t\t\tint dayOfMonth) {\n\t\t\t\t\t\tmcurrentTime.set(Calendar.YEAR, year);\n\t\t\t\t\t\tmcurrentTime.set(Calendar.MONTH, monthOfYear);\n\t\t\t\t\t\tmcurrentTime.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\t\t\t\t\t}\n\t\t\t\t}, mcurrentTime.get(Calendar.YEAR), mcurrentTime.get(Calendar.MONTH), mcurrentTime.get(Calendar.DAY_OF_MONTH));\n\t\t\t\t\n\t\t\t\t//now add the time\n\t\t\t\tint hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n\t\t\t\tint minute = mcurrentTime.get(Calendar.MINUTE);\n\t\t\t\tTimePickerDialog mTimePicker = new TimePickerDialog(EventDetailsActivity.this, new TimePickerDialog.OnTimeSetListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n\t\t\t\t\t\tmcurrentTime.set(Calendar.HOUR_OF_DAY, selectedHour);\n\t\t\t\t\t\tmcurrentTime.set(Calendar.MINUTE, selectedMinute);\n\n\t\t\t\t\t\t//create alarm notification\n\t\t\t\t\t\tcreateAlarm(mcurrentTime);\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\"Sucessfully added reminder\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}, hour, minute, false);\n\t\t\t\t\n\t\t\t\tmTimePicker.setTitle(\"Select Time\");\n\t\t\t\tmTimePicker.show();\n\t\t\t\t\n\t\t\t\tdatePicker.show();\n\t\t\t\tdatePicker.setTitle(\"Select Date\");\n\t\t\t}\n\t\t});\n\t}", "public int createCalendarEntries(List cals, boolean inMainCalendar) throws Exception, ServiceException, IOException {\n int createdCount = 0;\n\n for (int i = 0; i < cals.size(); i++) {\n NotesCalendarEntry cal = (NotesCalendarEntry) cals.get(i);\n CalendarEventEntry event = new CalendarEventEntry();\n event.setTitle(new PlainTextConstruct(cal.getSubject()));\n\n Where location = new Where();\n location.setValueString(cal.getLocation());\n event.addLocation(location);\n\n DateTime startTime, endTime;\n if (cal.getEntryType() == NotesCalendarEntry.EntryType.TASK ||\n cal.getAppointmentType() == NotesCalendarEntry.AppointmentType.ALL_DAY_EVENT ||\n cal.getAppointmentType() == NotesCalendarEntry.AppointmentType.ANNIVERSARY )\n {\n // Create a Google all-day event. All-day events are created by\n // setting start/end dates the same and having no time portion.\n startTime = DateTime.parseDate(cal.getStartDateGoogle());\n endTime = DateTime.parseDate(cal.getStartDateGoogle());\n }\n else if (cal.getAppointmentType() == NotesCalendarEntry.AppointmentType.APPOINTMENT ||\n cal.getAppointmentType() == NotesCalendarEntry.AppointmentType.MEETING)\n {\n // Create a standard event\n startTime = DateTime.parseDateTime(cal.getStartDateTimeGoogle());\n endTime = DateTime.parseDateTime(cal.getEndDateTimeGoogle());\n }\n else if (cal.getAppointmentType() == NotesCalendarEntry.AppointmentType.REMINDER)\n {\n // Create a standard event with the start and end times the same\n startTime = DateTime.parseDateTime(cal.getStartDateTimeGoogle());\n endTime = DateTime.parseDateTime(cal.getStartDateTimeGoogle());\n }\n else\n {\n throw new Exception(\"Couldn't determine Lotus Notes event type.\\nEvent subject: \" + cal.getSubject() +\n \"\\nEntry Type: \" + cal.getEntryType() +\n \"\\nAppointment Type: \" + cal.getAppointmentType());\n }\n\n When eventTimes = new When();\n eventTimes.setStartTime(startTime);\n eventTimes.setEndTime(endTime);\n event.addTime(eventTimes);\n\n try {\n if (inMainCalendar) {\n service.insert(privateCalendarFeedUrl, event);\n } else {\n service.insert(getDestinationCalendarUrl(), event);\n }\n\n createdCount++;\n } catch (Exception ex) {\n throw ex;\n }\n }\n\n return createdCount;\n }" ]
[ "0.7790128", "0.7408068", "0.73038805", "0.7214498", "0.7129646", "0.6996183", "0.6993109", "0.6882151", "0.6865018", "0.68517554", "0.6836317", "0.6754477", "0.6753335", "0.67087704", "0.66872996", "0.66106594", "0.65852094", "0.6574705", "0.6523715", "0.6515698", "0.64989674", "0.64840674", "0.6470053", "0.64641905", "0.646219", "0.6432535", "0.64294916", "0.6421728", "0.64085186", "0.6406687", "0.6404494", "0.6395589", "0.6392922", "0.6354455", "0.63477445", "0.63477445", "0.630265", "0.6297973", "0.6281528", "0.628054", "0.6277026", "0.62688226", "0.6264553", "0.6223884", "0.62085766", "0.6189678", "0.6184068", "0.61610574", "0.6148786", "0.6122714", "0.6107418", "0.6097001", "0.60847527", "0.606693", "0.6064437", "0.6047875", "0.60409635", "0.60328174", "0.6030298", "0.6028828", "0.6023756", "0.60144734", "0.5995346", "0.5987867", "0.59844947", "0.5978101", "0.5966114", "0.5955927", "0.59557456", "0.59350884", "0.59016955", "0.589759", "0.5883174", "0.5870416", "0.5856297", "0.58434194", "0.58115476", "0.58078045", "0.5803849", "0.5800108", "0.5788137", "0.5759645", "0.57485425", "0.5742501", "0.5741583", "0.57318175", "0.5711536", "0.56987274", "0.569872", "0.56955045", "0.56921816", "0.569098", "0.5683493", "0.56747836", "0.5670517", "0.5665836", "0.5665836", "0.56623995", "0.56486374", "0.56278825" ]
0.6002013
62
Add new event to calendar
public boolean addEvent(Event event) { boolean result = false; /* if event was created */ if (event != null && event.getFinal_date() != null && event.getInitial_date() != null) { events.add(event); result = true; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addToCalendar() {\r\n if (!requireCalendarPermissions())\r\n return;\r\n\r\n if (CalendarUtil.createEntry(this, event))\r\n onAddToCalendarSuccess();\r\n else\r\n onRequireCalendarPermissionsDenied();\r\n }", "public void addEvent(View v){\n\t\tif(applicationDB.getCalendarList().size() < 1){\n\t\t\tIntent toCalendarEditor = new Intent(this, CalendarEditor.class);\n\t\t\tnew AppDialogs(this).noCalendarDialog(\"No calendar exists. Create one before adding events.\", toCalendarEditor, this);\n\t\t}\n\t\telse{\n\t\t\tIntent addEvent = new Intent(this, EventEditor.class);\n\t \tEventEditor.setIsModify(false);\n\t \tstartActivity(addEvent);\n\t\t}\n }", "private void onAddToCalendarSuccess() {\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_add_event_sucess), Toast.LENGTH_LONG);\r\n }", "public void add(DiaryCalendarEvent event){\n this.dates.add(new CalendarDay(event.getYear(),event.getMonth(),event.getDay()));\n }", "public void add_events_screen(View view) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(selectedYear, selectedMonth, selectedDay);\n\n Intent intent = new Intent(Intent.ACTION_EDIT);\n intent.setType(\"vnd.android.cursor.item/event\");\n intent.putExtra(CalendarContract.Events.TITLE, \"\");\n intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, calendar.getTimeInMillis());\n intent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, calendar.getTimeInMillis());\n intent.putExtra(CalendarContract.Events.ALL_DAY, false);\n intent.putExtra(CalendarContract.Events.DESCRIPTION,\"\");\n startActivity(intent);\n }", "public void addEvent() {\n TimetableUserItem event;\n try {\n String description = getDescription();\n String date = getDate();\n String startTime = getStartTime();\n String endTime = getEndTime();\n verifyCorrectTime(startTime, endTime);\n String location = getLocation();\n event = new TimetableUserItem(description, date, startTime, endTime, location);\n verifyNoConflict(event);\n timetable.addEvent(event.getDayOfWeek(), event);\n timetable.addToEvents(event);\n addUI.printEventMessage(event);\n } catch (AddException e) {\n e.printMessage();\n logger.log(Level.WARNING, \"Invalid event created, event has not been added to timetable\");\n }\n }", "com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();", "public void onAdd(TimelineAddEvent e) {\n\t\tevent = new TimelineEvent(new Booking(), e.getStartDate(), e.getEndDate(), true, e.getGroup());\n\n\t\t// add the new event to the model in case if user will close or cancel the \"Add dialog\"\n\t\t// without to update details of the new event. Note: the event is already added in UI.\n\t\tmodel.add(event);\n\t}", "@SuppressWarnings(\"deprecation\")\r\n\tprivate void createCalendarEntry(){\r\n\t\t\r\n\t\tUri calendars = Uri.parse(CALENDAR_URI);\r\n\t\t \r\n\t\tCursor managedCursor = managedQuery(calendars, projection, null, null, null);\r\n\t\tString calName = \"\"; \r\n\t\tString calId = \"\"; \r\n\t\tif (managedCursor.moveToFirst()) {\r\n\t\t\t \r\n\t\t\t int idColumn = managedCursor.getColumnIndex(projection[0]);\r\n\t\t\t int nameColumn = managedCursor.getColumnIndex(projection[1]); \r\n\t\t\t \r\n\t\t\t do {\r\n\t\t\t calName = managedCursor.getString(nameColumn);\r\n\t\t\t calId = managedCursor.getString(idColumn);\r\n\t\t\t if (calName.contains(\"gmail\"))\r\n\t\t\t \tbreak;\r\n\t\t\t } while (managedCursor.moveToNext());\r\n\t }\r\n\t\t\r\n\t\tlong start = System.currentTimeMillis() + 120000;\r\n\t\tlong duration = DURATION + start;\r\n\t\t\r\n\t\tContentValues values = new ContentValues();\r\n\t\tvalues.put(DATE_START, start);\r\n\t\tvalues.put(DATE_END, duration);\r\n\t\tvalues.put(EVENT_TITLE, ocrData.getMedicine().getMedicine());\r\n\t\tvalues.put(EVENT_DESCRIPTION, \"Take \" + ocrData.getPatient2Medicine().getFrequencyOfIntake() \r\n\t\t\t\t+ \" by \" + ocrData.getPatient2Medicine().getMode());\r\n\t\tvalues.put(CALENDAR_ID, calId);\r\n\t\tvalues.put(EVENT_RULE, \"FREQ=\" + ocrData.getPatient2Medicine().getFrequencyOfIntake() + \";\");\r\n\t\tvalues.put(HAS_ALARM, 1);\r\n\t\t\r\n\t\tContentResolver cr = getContentResolver();\r\n\t\tUri event = cr.insert(Uri.parse(EVENT_URI), values);\r\n\t\t\r\n\t\tvalues = new ContentValues();\r\n\t\tvalues.put(\"event_id\", Long.parseLong(event.getLastPathSegment()));\r\n\t\tvalues.put(\"method\", 1);\r\n\t\tvalues.put(\"minutes\", 10 );\r\n\t\tcr.insert(Uri.parse(REMINDER_URI), values);\r\n\t}", "public void createEvent(Event e) {\n\t\tLocalDate date = e.sDate;\n\t\tif(!map.containsKey(date)) {\n\t\t\tArrayList<Event> newList = new ArrayList<>();\n\t\t\tnewList.add(e);\n\t\t\tmap.put(date, newList);\n\t\t}\n\t\telse {\n\t\t\tmap.get(date).add(e);\n\n\t\t}\n\t}", "public void addEvent(Event event) {\n\t\t\n\t}", "public abstract CalendarEvent addEvent(User user, Date start, Date end,\n\t\t\tString eventName, Visibility visibility, String description);", "public CalendarEvent addEvent(CalendarEvent p_calendarEvent) {\n String stringifiedDate = String.valueOf(p_calendarEvent.getDay()) + String.valueOf(p_calendarEvent.getMonth()) + String.valueOf(p_calendarEvent.getYear());\n\n if (_events.containsKey(stringifiedDate)) {\n if (dayContainsEvent(_events.get(stringifiedDate), p_calendarEvent)) { return p_calendarEvent; }\n _events.get(stringifiedDate).add(p_calendarEvent);\n _eventsByStamp.put(p_calendarEvent.getTimeStamp(), p_calendarEvent);\n }else{\n _events.put(stringifiedDate, new ArrayList<CalendarEvent>());\n _events.get(stringifiedDate).add(p_calendarEvent);\n _eventsByStamp.put(p_calendarEvent.getTimeStamp(), p_calendarEvent);\n }\n\n ContentValues newVals = new ContentValues();\n newVals.put(CalendarDBOpenHelper.KEY_TIMESTAMP, p_calendarEvent.getTimeStamp());\n newVals.put(CalendarDBOpenHelper.KEY_SENDER, p_calendarEvent.getSender());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_NAME, p_calendarEvent.getEventName());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_LOCATION, p_calendarEvent.getLocation());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_YEAR, p_calendarEvent.getYear());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_MONTH, p_calendarEvent.getMonth());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_DAY, p_calendarEvent.getDay());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_HOUR, p_calendarEvent.getHour());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_MINUTE, p_calendarEvent.getMinute());\n newVals.put(CalendarDBOpenHelper.KEY_EVENT_REMINDER, p_calendarEvent.getReminder());\n\n _dbOpener.getWritableDatabase().insert(CalendarDBOpenHelper.EVENTS_DATABASE_TABLE, null, newVals);\n _dbOpener.close();\n notifyListener();\n\n return p_calendarEvent;\n }", "public void addEvent(Event e){\r\n\t\tallEvents.add(e);\r\n\t}", "public String addCourseEvent(Events events);", "public static void addEvent(Context context, @NonNull Reminder reminder) {\n int mId = Prefs.getInstance(context).getCalendarId();\n if (mId != 0) {\n TimeZone tz = TimeZone.getDefault();\n String timeZone = tz.getDisplayName();\n ContentResolver cr = context.getContentResolver();\n ContentValues values = new ContentValues();\n long startTime = TimeUtil.getDateTimeFromGmt(reminder.getEventTime());\n values.put(CalendarContract.Events.DTSTART, startTime);\n values.put(CalendarContract.Events.DTEND, startTime +\n (60 * 1000 * Prefs.getInstance(context).getCalendarEventDuration()));\n if (!TextUtils.isEmpty(reminder.getSummary())) {\n values.put(CalendarContract.Events.TITLE, reminder.getSummary());\n }\n values.put(CalendarContract.Events.CALENDAR_ID, mId);\n values.put(CalendarContract.Events.EVENT_TIMEZONE, timeZone);\n values.put(CalendarContract.Events.ALL_DAY, 0);\n values.put(CalendarContract.Events.STATUS, CalendarContract.Events.STATUS_CONFIRMED);\n values.put(CalendarContract.Events.DESCRIPTION, context.getString(R.string.from_reminder));\n Uri lEventUri = Uri.parse(\"content://com.android.calendar/events\");\n Uri event;\n try {\n event = cr.insert(lEventUri, values);\n if (event != null) {\n long eventID = Long.parseLong(event.getLastPathSegment());\n RealmDb.getInstance().saveObject(new CalendarEvent(reminder.getUuId(), event.toString(), eventID));\n }\n } catch (Exception ignored) {\n }\n }\n }", "@Override\n\tpublic void createEvent(CalendarCreate calendar) {\n\t\tprojectDao.createEvent(calendar);\n\t\t\n\t}", "public void addEvent(OrgEvent event) {\n if (event != null) {\n this.events.add(event);\n }\n }", "@Override\n\tprotected void addItineraryToCalendar() {\n\t\tstartActivity(generateHotelCalendarIntent(false));\n\t\tstartActivity(generateHotelCalendarIntent(true));\n\n\t\tOmnitureTracking.trackHotelConfirmationAddToCalendar();\n\t}", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(Intent.ACTION_INSERT).setData(CalendarContract.Events.CONTENT_URI);\n startActivity(intent);\n }", "public void handleAddEvent(ActionEvent event)\n {\n if(eventDate.getValue() == null)\n {\n MessageAlert.showErrorMessage(null, \"Date was not selected!\");\n return;\n }\n if(eventHour.getValue() == null)\n {\n MessageAlert.showErrorMessage(null, \"Hour was not selected!\");\n return;\n }\n if(eventMinute.getValue() == null)\n {\n MessageAlert.showErrorMessage(null, \"Minute was not selected!\");\n return;\n }\n DecimalFormat decimalFormat = new DecimalFormat(\"00\");\n String date = eventDate.getValue().format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd\")) + \" \" + decimalFormat.format(eventHour.getValue()) + \":\" + decimalFormat.format(eventMinute.getValue());\n try\n {\n service.addEvent(new Event(mainPage.getId(), eventName.getText(), date, new ArrayList<Long>()));\n MessageAlert.showMessage(null, Alert.AlertType.CONFIRMATION, \"SUCCESS!\", \"Event added successfully!\");\n\n Node node = (Node) event.getSource();\n Stage thisStage = (Stage) node.getScene().getWindow();\n thisStage.hide();\n }\n catch (ValidationException e)\n {\n MessageAlert.showErrorMessage(null, e.getMessage());\n }\n }", "public static void addEventToStock(Context context, String summary, long startTime) {\n Intent intent = new Intent(Intent.ACTION_INSERT)\n .setData(CalendarContract.Events.CONTENT_URI)\n .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)\n .putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, startTime)\n .putExtra(CalendarContract.EXTRA_EVENT_END_TIME, startTime +\n (60 * 1000 * Prefs.getInstance(context).getCalendarEventDuration()))\n .putExtra(CalendarContract.Events.TITLE, summary)\n .putExtra(CalendarContract.Events.DESCRIPTION, context.getString(R.string.from_reminder));\n try {\n context.startActivity(intent);\n } catch (ActivityNotFoundException ignored) {\n }\n }", "public void addEvent(Event event) {\n events.add(event);\n }", "public void addEvent(FbEvent event) throws SQLException{\n\t\tSQLiteDatabase db = tableHelper.getWritableDatabase();\n\t\ttry {\n\t\t\tContentValues contents = prepareContentValues(event);\n\t\t\tdb.insert(SQLTablesHelper.MY_EVENT_TABLE_NAME, null, contents);\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t}", "public void addNewEvent(String description, String date) {\n Events event = new Events(description, date);\n taskList.add(event);\n printSuccessfulAddMessage(event.toString());\n }", "public void createCalendar() throws Exception, IOException, ServiceException {\n // If true, the calendar already exists\n if (getDestinationCalendarUrl() != null) {\n return;\n }\n\n CalendarEntry calendar = new CalendarEntry();\n calendar.setTitle(new PlainTextConstruct(destinationCalendarName));\n// calendar.setSummary(new PlainTextConstruct(\"Lotus Notes Calendar\"));\n // Get this machine's current time zone when creating the new Google calendar\n TimeZone localTimeZone = TimeZone.getDefault();\n calendar.setTimeZone(new TimeZoneProperty(localTimeZone.getID()));\n \n calendar.setHidden(HiddenProperty.FALSE);\n calendar.setSelected(SelectedProperty.TRUE);\n calendar.setColor(new ColorProperty(COLOR));\n\n CalendarEntry returnedCalendar = service.insert(mainCalendarFeedUrl, calendar);\n returnedCalendar.update();\n\n // Get the feed url reference so that we can add events to the new calendar.\n destinationCalendarFeedUrl = new URL(returnedCalendar.getLink(\"alternate\", \"application/atom+xml\").getHref());\n\n return;\n }", "@WebMethod public void createEvent(String description, LocalDate eventDate) throws EventAlreadyExist;", "private void addEvent() {\n String name = selectString(\"What is the name of this event?\");\n ReferenceFrame frame = selectFrame(\"Which frame would you like to define the event in?\");\n double time = selectDouble(\"When does the event occur (in seconds)?\");\n double x = selectDouble(\"Where does the event occur (in light-seconds)?\");\n world.addEvent(new Event(name, time, x, frame));\n System.out.println(\"Event added!\");\n }", "public void addUpcomingEvents(String day,String events,String details) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_DAY,day);\n values.put(KEY_EVENTS,events);\n values.put(KEY_DETAILS,details);\n // Inserting Row\n long id = db.insert(TABLE_UPCOMING_EVENTS, null, values);\n //db.close(); // Closing database connection\n\n Log.d(TAG, \"Upcoming events inserted into sqlite: \" + id);\n }", "@Test\n public void testAddEventConvinienceMethod() {\n // Start and end dates to query for\n java.util.Calendar cal = getInstance();\n Date start = cal.getTime();\n cal.add(MONTH, 1);\n Date end = cal.getTime();\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n // Add an event\n BasicEvent event = new BasicEvent(\"Test\", \"Test\", start);\n calendar.addEvent(event);\n // Ensure event exists\n List<CalendarEvent> events = calendar.getEvents(start, end);\n Assert.assertEquals(1, events.size());\n Assert.assertEquals(events.get(0).getCaption(), event.getCaption());\n Assert.assertEquals(events.get(0).getDescription(), event.getDescription());\n Assert.assertEquals(getStart(), event.getStart());\n }", "public void addEvent(String date, String name, String start, String end) {\n\n // Create event based on the parameters\n Event event = new Event(name, start, end);\n\n Boolean foundEventList = false;\n\n for (EventList e : events) {\n if (e.getDate().equals(date)) {\n e.add(event);\n foundEventList = true;\n break;\n }\n }\n\n if (!foundEventList) {\n EventList eventList = new EventList(date);\n eventList.add(event);\n events.add(eventList);\n }\n\n update();\n }", "public void onPressAddToCalendar() {\r\n new ActionConfirmationFragment(this, this)\r\n .setTitle(getString(R.string.event_confirmation_add_event_calendar_entry))\r\n .setMessage(getString(R.string.action_confirmation_can_be_undone))\r\n .setRequestID(REQUEST_CONFIRMATION_ADD_EVENT_CALENDAR_ENTRY)\r\n .show(getSupportFragmentManager(), null);\r\n }", "public static void create() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString title = \"\";\n\t\tString date = \"\";\n\t\tString startTime = \"\";\n\t\tString endTime = \"\";\n\t\tSystem.out.println(\"Enter the title of the event you would like to create: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\ttitle = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the date on MM/DD/YYYY format: \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tdate = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the starting time in 24 hour format (ex 15:30): \");\n\t\tif (sc.hasNextLine()) {\n\t\t\tstartTime = sc.nextLine().toLowerCase();\n\t\t}\n\t\tSystem.out.println(\"Enter the ending time: in 24 hour format (ex 15:30): \"); // if there's no end time set the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// end time to the start time.\n\t\tif (sc.hasNextLine()) {\n\t\t\tendTime = sc.nextLine().toLowerCase();\n\t\t\tif (endTime.equals(\"\")) {\n\t\t\t\tendTime = startTime;\n\t\t\t}\n\t\t}\n\t\tEvent toAdd = new Event(title, date, startTime, endTime);\n\n\t\tGregorianCalendar calendar = new GregorianCalendar(toAdd.getYear(), toAdd.getMonth(), toAdd.getDay());\n\t\tif (calendarToEvent.get(calendar) == null) { // there are no events under this date\n\t\t\tTreeSet<Event>treeSetForMap = new TreeSet<Event>();\n\t\t\ttreeSetForMap.add(toAdd);\n\t\t\tcalendarToEvent.put(calendar, treeSetForMap);\n\t\t} else { // there are already events, add event to the treeset\n\t\t\tboolean canAdd = true;\n\t\t\tfor (Event e : calendarToEvent.get(calendar)) {\n\t\t\t\tif (e.conflictCheck(toAdd)) { //check this (e.getIntEndTime()) < (toAdd.getIntStartTime()) ////return true if there is a conflict, false if there isn't\n\t\t\t\t\tSystem.out.println(\"Sorry can't add that event, there is a conflict\");\n\t\t\t\t\tcanAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (canAdd) {\n\t\t\t\tcalendarToEvent.get(calendar).add(toAdd); // THAT'S WHAT IT USED TO BE calendarToEvent.get(toAdd.getDate()).add(toAdd);\n\t\t\t}\n\t\t}\n\t}", "public void addEvent(Event e) {\n\t\t\n\t}", "public void addEvent(Event e) {\n\t\t\n\t}", "public void addEvent(Event event) {\n getEvents().add(event);\n }", "@ApiMethod(name = \"insertEvent\")\n public Event insertEvent(Event event) {\n DatastoreService datastoreService = DatastoreServiceFactory.getDatastoreService();\n // TODO: Implement this function\n logger.info(\"Calling insertEvent method\");\n return event;\n }", "private CalendarEventEdit calendarEvent(Calendar calendar, SignupMeeting meeting, SignupSite site)\n\t\t\tthrows IdUnusedException, PermissionException {\n\t\tCalendarEventEdit addEvent = calendar.addEvent();\n\t\taddEvent.setType(\"Meeting\");\n\t\tif (!site.isSiteScope()) {\n\t\t\tList<Group> groups = groupIds(site);\n\t\t\taddEvent.setGroupAccess(groups, true);\n\t\t}\n\n\t\treturn addEvent;\n\t}", "@POST\n Response createCalendar(Calendar calendar);", "@SuppressLint(\"MissingPermission\") // Performed using PermissionHelper\n private boolean addAgendaEventViaProvider(AgendaItem item) {\n if(!PermissionHelper.canExportCalendar()) {\n return false;\n }\n\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(App.getContext());\n String calendarId = preferences.getString(\"calendar_selected_id\", \"false\");\n\n if(calendarId.equals(\"false\")) {\n return false;\n }\n\n ContentValues values = new ContentValues();\n values.put(Events.DTSTART, item.getStart().getMillis());\n values.put(Events.DTEND, item.getEnd().getMillis());\n values.put(Events.TITLE, item.getTitle());\n values.put(Events.DESCRIPTION, getAgendaItemDescription(item));\n values.put(Events.CALENDAR_ID, calendarId);\n values.put(Events.EVENT_TIMEZONE, \"Europe/Amsterdam\");\n values.put(Events.EVENT_LOCATION, item.getLocation());\n values.put(Events.GUESTS_CAN_INVITE_OTHERS, \"0\");\n values.put(Events.GUESTS_CAN_SEE_GUESTS, \"0\");\n values.put(Events.ACCESS_LEVEL, Events.ACCESS_PUBLIC);\n values.put(Events.AVAILABILITY, Events.AVAILABILITY_BUSY);\n values.put(Events.CUSTOM_APP_PACKAGE, \"nl.uscki.appcki.android\");\n values.put(Events.CUSTOM_APP_URI,\n String.format(Locale.ENGLISH,\n \"https://www.uscki.nl/?pagina=Agenda/Item&id=%d\", item.getId()\n )\n );\n\n Uri result = cr.insert(Events.CONTENT_URI, values);\n\n return result != null;\n }", "public String creaEvento(String summary,\n \t\t\t\t\t\t String dateStartEvent,\n \t\t\t\t\t\t String dateEndEvent,\n \t\t\t\t\t\t String calendarId) throws IOException, GeneralSecurityException {\n final NetHttpTransport HTTP_TRANSPORT = GoogleNetHttpTransport.newTrustedTransport();\n Calendar service = new Calendar.Builder(HTTP_TRANSPORT, JSON_FACTORY, getCredentials(HTTP_TRANSPORT))\n .setApplicationName(APPLICATION_NAME)\n .build();\n\n Event event = new Event()\n \t .setSummary(summary);\n\n //Inizio Evento\n \tDateTime startDateTime = new DateTime(dateStartEvent);\n \tEventDateTime start = new EventDateTime()\n \t\t\t.setDateTime(startDateTime);\n \tevent.setStart(start);\n\n \t//Fine Evento\n \tDateTime endDateTime = new DateTime(dateEndEvent);\n \tEventDateTime end = new EventDateTime()\n \t\t\t.setDateTime(endDateTime);\n \tevent.setEnd(end);\n\n \t//Link di Meet\n \tConferenceSolutionKey key = new ConferenceSolutionKey()\n \t\t\t.setType(\"hangoutsMeet\");\n \tCreateConferenceRequest request = new CreateConferenceRequest()\n \t\t\t.setRequestId(String.valueOf(new Random().nextInt(999999)))\n \t\t\t.setConferenceSolutionKey(key);\n \tConferenceData conferenceData = new ConferenceData()\n \t\t\t.setCreateRequest(request);\n \tevent.setConferenceData(conferenceData);\n \t\n \t//Notifiche\n \tEventReminder[] reminderOverrides = new EventReminder[] {\n \t new EventReminder().setMethod(\"popup\").setMinutes(5),\n \t};\n \tEvent.Reminders reminders = new Event.Reminders()\n \t .setUseDefault(false)\n \t .setOverrides(Arrays.asList(reminderOverrides));\n \tevent.setReminders(reminders);\n\n \t//Creazione Evento\n \tevent = service.events().insert(calendarId, event).setConferenceDataVersion(1).execute();\n \t\n \treturn \"Event created: \" + event.getHtmlLink();\n }", "public void addEvent(TimelineEvent event) {\n events.add(event);\n }", "public Event insertEvent() throws IOException {\n Event event = new Event()\n .setSummary(\"Cita médica\")\n .setLocation(\"Virtual\")\n .setDescription(\"Cita médica Virtual\");\n \n DateTime startDateTime = new DateTime(\"2020-03-25T16:00:00-05:00\");\n EventDateTime start = new EventDateTime()\n .setDateTime(startDateTime)\n .setTimeZone(TIME_ZONE);\n event.setStart(start);\n \n DateTime endDateTime = new DateTime(\"2020-03-25T17:00:00-05:00\");\n EventDateTime end = new EventDateTime()\n .setDateTime(endDateTime)\n .setTimeZone(TIME_ZONE);\n event.setEnd(end);\n \n EventAttendee[] attendees = new EventAttendee[] {\n new EventAttendee().setEmail(\"[email protected]\"),\n new EventAttendee().setEmail(\"[email protected]\"),\n };\n event.setAttendees(Arrays.asList(attendees));\n \n EventReminder[] reminderOverrides = new EventReminder[] {\n new EventReminder().setMethod(\"popup\").setMinutes(10)\n };\n Event.Reminders reminders = new Event.Reminders()\n .setUseDefault(false)\n .setOverrides(Arrays.asList(reminderOverrides));\n event.setReminders(reminders);\n \n String calendarId = DEFAULT_CALENDAR;\n event = service.events().insert(calendarId, event).execute();\n \n return event;\n }", "@Override\n public Event createSlotEventService(String discordId, String eventId,\n com.bot.insched.model.Event eventModel) {\n Calendar calendar = getCalendarbyId(discordId);\n if (calendar == null) {\n return null;\n }\n try {\n // event di google calendar\n Event eventCalendar = new Event();\n\n DateTimeFormatter dateFormatter = DateTimeFormatter.ISO_DATE_TIME;\n\n DateTime dateTime = new DateTime(eventModel.getStartTime().minusHours(7)\n .format(dateFormatter));\n eventCalendar.setStart(new EventDateTime().setDateTime(dateTime));\n dateTime = new DateTime(eventModel.getEndTime().minusHours(7).format(dateFormatter));\n eventCalendar.setEnd(new EventDateTime().setDateTime(dateTime));\n eventCalendar.setSummary(eventModel.getDescription());\n eventCalendar = calendar.events().insert(\"primary\", eventCalendar).execute();\n eventModel.setIdGoogleEvent(eventCalendar.getId());\n eventRepository.save(eventModel);\n return eventCalendar;\n\n } catch (Exception e) {\n log.error(\"------ Error when createSlotEventService: {}\", e.getMessage());\n return null;\n }\n }", "@WebMethod public Event createEvent(Date date, Team a, Team b) throws EventAlreadyExist;", "public String addEvent(Event event) {\r\n // Gets the events collection and the event as a document\r\n MongoCollection<Document> events = mongoDB.getCollection(\"Events\");\r\n Document obj = event.getEventAsDocument();\r\n\r\n // Inserts the event and sets the id of the event to the one given\r\n events.insertOne(obj);\r\n event.setID(obj.getObjectId(\"_id\").toHexString());\r\n\r\n // Returns the id of the event\r\n return event.getID();\r\n }", "@Override\n public void add(Event event) {\n persist(event);\n }", "public AddOrEditCalendarEvent(LocalDate date, TermCalendarController controller) {\n\t\tthis.date = date;\n\t\tthis.controller = controller;\n\t\tdisplay();\n\t}", "@Override\r\n public boolean addEvent(Events event) {\r\n java.text.SimpleDateFormat SQL_Datetime = new java.text.SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n String currentTime = SQL_Datetime.format(LocalDateTime.now());\r\n String EventDatetime = SQL_Datetime.format( event.getDate());\r\n \r\n if (currentTime.compareTo(EventDatetime)<0) {\r\n return false;\r\n }\r\n else {\r\n em.persist(event);\r\n }\r\n return true;\r\n }", "public void clickAddEvent(View view) {\n if(true){\n\n boolean czy = false;\n if(mGroupClose.isChecked()){\n czy=true;\n }\n int day = mDate.getDayOfMonth();\n int month= mDate.getMonth();\n int year = mDate.getYear() - 1900;\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String formatedDate = sdf.format(new Date(year, month, day));\n\n String formattedTime = \"\";\n int hour = mTime.getCurrentHour();\n String sHour = \"00\";\n if(hour < 10){\n sHour = \"0\"+hour;\n } else {\n sHour = String.valueOf(hour);\n }\n\n int minute = mTime.getCurrentMinute();\n String sMinute = \"00\";\n if(minute < 10){\n sMinute = \"0\"+minute;\n } else {\n sMinute = String.valueOf(minute);\n }\n\n formattedTime = sHour+\":\"+sMinute;;\n\n\n AddNewEvent = new AddNewEvent((mName.getText().toString()), (mDescrition.getText().toString()), czy, mMembers.getText().toString(), formattedTime ,formatedDate ,mDuration.getText().toString());\n AddNewEvent.execute((Void) null);\n\n }\n }", "public long createEvent(Event event) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(EVENT_NAME, event.getName());\n values.put(EVENT_DATE, event.getDate());\n\n // insert row\n long _id = db.insert(EVENTS_TABLE_NAME, null, values);\n\n return _id;\n }", "public void createEvent(View view){\n showDatePickerDialog();\n }", "public void addEvent()\n throws StringIndexOutOfBoundsException, ArrayIndexOutOfBoundsException {\n System.out.println(LINEBAR);\n try {\n String taskDescription = userIn.split(EVENT_IDENTIFIER)[DESCRIPTION].substring(EVENT_HEADER);\n String timing = userIn.split(EVENT_IDENTIFIER)[TIMING];\n Event event = new Event(taskDescription, timing);\n tasks.add(event);\n storage.writeToFile(event);\n ui.echoUserInput(event, tasks.taskIndex);\n } catch (StringIndexOutOfBoundsException e) {\n ui.printStringIndexOOB();\n } catch (ArrayIndexOutOfBoundsException e) {\n ui.printArrayIndexOOB();\n }\n System.out.println(LINEBAR);\n }", "public void addEvent(Event t, Room r, ArrayList<Speaker> s, LocalDateTime start, LocalDateTime end){\n EventMapFeatures q = new EventMapFeatures(r, s, start, end);\n eventMap.put(t, q);\n eventList.add(t);\n Collections.sort(eventList, Comparator.comparing(Event::getStartTime));\n eventIdsList.clear();\n for (Event e : eventList){\n eventIdsList.add(e.getEventId());\n }\n }", "public void addItemToCalendar(AgendaItem item) {\n if(!addAgendaEventViaProvider(item)) addAgendaEventViaIntention(item);\n }", "public void addCalendar(View v){\n \tIntent addCalendar = new Intent(this, CalendarEditor.class);\n \tCalendarEditor.setIsModify(false);\n \tstartActivity(addCalendar);\n }", "private void addAgendaEventViaIntention(AgendaItem item) {\n Intent intent = new Intent(Intent.ACTION_INSERT);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.setType(\"vnd.android.cursor.item/event\");\n intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, item.getStart().getMillis());\n intent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, item.getEnd().getMillis());\n intent.putExtra(Events.TITLE, item.getTitle());\n intent.putExtra(Events.DESCRIPTION, getAgendaItemDescription(item));\n intent.putExtra(Events.EVENT_TIMEZONE, \"Europe/Amsterdam\");\n intent.putExtra(Events.EVENT_LOCATION, item.getLocation());\n intent.putExtra(Events.ACCESS_LEVEL, Events.ACCESS_PUBLIC);\n intent.putExtra(Events.AVAILABILITY, Events.AVAILABILITY_BUSY);\n\n App.getContext().startActivity(intent);\n }", "private Void postDataToApi() throws IOException, ParseException {\r\n // List the next 10 events from the primary calendar.\r\n // Quick-add an event\r\n // Refer to the Java quickstart on how to setup the environment:\r\n // https://developers.google.com/google-apps/calendar/quickstart/java\r\n // Change the scope to CalendarScopes.CALENDAR and delete any stored\r\n // credentials.\r\n\r\n Event event = new Event()\r\n .setSummary(calendarText)\r\n .setLocation(martLocation)\r\n .setDescription(\"Reminder to eat healthy food!\");\r\n\r\n DateTime startDateTime = new DateTime(shoppingDateTime);\r\n EventDateTime start = new EventDateTime()\r\n .setDateTime(startDateTime)\r\n .setTimeZone(\"America/New_York\");\r\n event.setStart(start);\r\n DateTime endDateTime = new DateTime(shoppingDateTime);\r\n EventDateTime end = new EventDateTime()\r\n .setDateTime(endDateTime)\r\n .setTimeZone(\"America/New_York\");\r\n event.setEnd(end);\r\n String calendarId = \"primary\";\r\n event = mService.events().insert(calendarId, event).execute();\r\n System.out.printf(\"Event created: %s\\n\", event.getHtmlLink());\r\n return null;\r\n }", "public static boolean addToCalendar(FragmentActivity fa, long startMillis){\n\t\t\n\t\tlong cid = getCalendarID(fa);\n\t\t\n\t\tCalendar beginTime = Calendar.getInstance();\n\t\tbeginTime.setTimeInMillis(startMillis);\n\t\tLog.e(\"CalendarHelper\", \"start milis: \" + startMillis );\n\t\t\n\t\t// 30 minutes \n\t\tlong endMillis = startMillis + 30 * 60 * 1000; \n\t\t\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(Events.DTSTART, startMillis);\n\t\tvalues.put(Events.DTEND, endMillis);\n\t\tvalues.put(Events.TITLE, \"BPPV Physio Reminder\");\n\t\tvalues.put(Events.DESCRIPTION, \"Workout\");\n\t\tvalues.put(Events.CALENDAR_ID, cid);\n\t\t//values.put(Events.EVENT_TIMEZONE, beginTime.getTimeZone().toString());\n//\t\tvalues.put(Events.EVENT_TIMEZONE, \"America/Chicago\");\n\t\tvalues.put(Events.EVENT_TIMEZONE, \"America/Los_Angeles\");\n\t\tvalues.put(Events.HAS_ALARM, true);\n\t\t\n\t\tfa.getContentResolver().insert(Events.CONTENT_URI, values);\n\t\t\n\t\tLog.e(\"ReminderCalendarHelper.java\", \"added reminder to calendar id = \" + cid);\n\t\t\n\t\t\n\t\treturn true; \n\t}", "public void addEvent(Event e) throws MalformedEventException {\n addEvent(e.getLinkedUserId(), e.getName(), e.getStartDate(), e.getEndDate(), e.getStartTime(), e.getEndTime());\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tAddEvent.currentDateCalendar=(Calendar) c.clone();\n\t\t\t\tstartActivity(new Intent(\"com.calendar.ADDEVENT\"));\n\t\t\t}", "public boolean addEvent(Calendar initial_date, Calendar final_date, String name) {\n\t\tboolean result = false;\n\t\tEvent event = new Event();\n\t\tevent.setName(name);\n\t\tevent.setInitial_date(initial_date);\n\t\tevent.setFinal_date(final_date);\n\n\t\t/* if event was created */\n\t\tif (event.getFinal_date() != null && event.getInitial_date() != null) {\n\t\t\tevents.add(event);\n\t\t\tresult = true;\n\t\t}\n\t\treturn result;\n\t}", "@Test\n public void testAddEventConvinienceMethodWithCustomEventProvider() {\n calendar.setEventProvider(new ContainerEventProvider(new com.vaadin.v7.data.util.BeanItemContainer<BasicEvent>(BasicEvent.class)));\n // Start and end dates to query for\n java.util.Calendar cal = getInstance();\n Date start = cal.getTime();\n cal.add(MONTH, 1);\n Date end = cal.getTime();\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n // Add an event\n BasicEvent event = new BasicEvent(\"Test\", \"Test\", start);\n calendar.addEvent(event);\n // Ensure event exists\n List<CalendarEvent> events = calendar.getEvents(start, end);\n Assert.assertEquals(1, events.size());\n Assert.assertEquals(events.get(0).getCaption(), event.getCaption());\n Assert.assertEquals(events.get(0).getDescription(), event.getDescription());\n Assert.assertEquals(getStart(), event.getStart());\n }", "public String addEvent(String description, LocalDate at) {\n Event toAdd = new Event(description, at);\n records.add(toAdd);\n return String.format(\"Got it. I've added this event:\\n\\t %1$s \\n\\t\" +\n \"Now you have %2$d tasks in the list.\\n\\t\", toAdd.toString(), records.size());\n }", "public void addNewEventToWall(String event, String userUuid);", "public static void InsertEvent(Event newEvent){\r\n\t int index=0;\r\n\t while (newEvent.date > alteredEventsFile.get(index).date ){\r\n\t\t index++;\r\n\t }\r\n\t alteredEventsFile.add(index, newEvent);\r\n }", "@Override\n\tpublic CalendarEdit addCalendar(String ref) throws IdUsedException,\n\t\t\tIdInvalidException, PermissionException {\n\t\treturn null;\n\t}", "public void addAppointment(String orgname) {\r\n\t\tVEvent event = new VEvent();\r\n\t\tevent.addAttendee(new Attendee(user.getName(), \"\"));\r\n\t\tlocalCalendar.addEvent(event);\r\n\t\tevent.setOrganizer(new Organizer(orgname, \"\"));\r\n\t\t\r\n\t}", "void addPreferedCalendar(String calendarId);", "public Event addEvent(Event event) {\n\t\t\tif (events == null) {\n\t\t\t\tevents = new ArrayList<Event>();\n\t\t\t}\n\t\t\tif (!events.contains(event)) {\n\t\t\t\tevents.add(event);\n\t\t\t\tevent.addClient(this);\n\t\t\t}\n\t\t\n\t\t\treturn event;\n\t\t}", "private void pushNewEvent(Event e) {\n\t\tec.pushNewElement(e);\n\t}", "public static void createEvent(String token){\n ensureGraphClient(token);\n\n LinkedList<Option> requestOptions = new LinkedList<Option>();\n //requestOptions.add(new HeaderOption(\"Authorization\", \"Bearer nupl9.C5rb]aO5:yvT:3L.TKcH7tB1Im\" ));\n\n // Participantes:\n LinkedList<Attendee> attendeesList = new LinkedList<Attendee>();\n Attendee mentor = new Attendee();\n Attendee mentorado = new Attendee();\n\n EmailAddress mentorMail = new EmailAddress();\n mentorMail.address = \"[email protected]\";\n mentorMail.name = \"Daniell Wagner\";\n mentor.emailAddress = mentorMail;\n\n EmailAddress mentoradoMail = new EmailAddress();\n mentoradoMail.address = \"[email protected]\";\n mentoradoMail.name = \"Guilherme Carneiro\";\n mentorado.emailAddress = mentoradoMail;\n\n mentor.type = AttendeeType.REQUIRED;\n mentorado.type = AttendeeType.REQUIRED;\n\n attendeesList.add(mentor);\n attendeesList.add(mentorado);\n\n // Evento:\n Event event = new Event();\n event.subject = \"Mentoria com \" + mentor.emailAddress.name;\n\n ItemBody body = new ItemBody();\n body.contentType = BodyType.HTML;\n body.content = \"\" +\n \"<b>Mentoria sobre SCRUM</b> <br>\" +\n \"Olá, \" + mentorado.emailAddress.name + \" <br> \" +\n \"Você tem uma mentoria marcada com o mentor \"\n + mentor.emailAddress.name + \"!!\";\n\n event.body = body;\n\n DateTimeTimeZone start = new DateTimeTimeZone();\n start.dateTime = \"2020-03-26T16:00:00\";\n start.timeZone = \"Bahia Standard Time\";\n event.start = start;\n\n DateTimeTimeZone end = new DateTimeTimeZone();\n end.dateTime = \"2020-03-26T18:00:00\";\n end.timeZone = \"Bahia Standard Time\";\n event.end = end;\n\n Location location = new Location();\n location.displayName = \"Stefanini Campina Grande\";\n event.location = location;\n\n event.attendees = attendeesList;\n\n try {\n graphClient.me().calendar().events()\n .buildRequest()\n .post(event);\n }catch(Exception e) {\n\n System.out.println(\"Deu águia: \");\n e.printStackTrace();\n }\n }", "private void addClubEvent (ClubEvent clubEvent) {\n position = clubEventList.add (position.getClubEvent());\n if (position.hasValidIndex (clubEventList)) {\n writer.save(eventsFile, clubEvent, true, false);\n positionAndDisplay();\n }\n }", "private void onPressCalendarEntry() {\r\n if (event.hasCalendarEntry())\r\n onPressRemoveFromCalendar();\r\n else\r\n onPressAddToCalendar();\r\n }", "public void createCalendarEventsTable(SQLiteDatabase db){\n\t\t\tfinal String CALENDAR_EVENTS_CREATE_TABLE =\n\t\t\t\t \"CREATE TABLE if not exists \" + CALENDAR_EVENTS_TABLE + \" (\" +\n\t\t\t\t \t\tBaseColumns._ID + \" INTEGER PRIMARY KEY,\" +\n\t\t\t\t \t\tCOL_EVENTTYPE + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t\tCOL_EVENT_ID + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t\tCOL_USERID + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t\tCOL_DESCRIPTION + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t\tCOL_LOCATION + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t\tCOL_CATEGORY + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t COL_COMMENTS + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t COL_JUSTIFICATION + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t COL_REMINDER + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t COL_STARTDATE + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t COL_ENDDATE + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t COL_STATUS + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t\tCOL_EDITED + TEXT_TYPE + COMMA_SEP +\n\t\t\t\t \t\tCOL_DELETED+TEXT_TYPE+\n\t\t\t\t \" )\";\n\t\t\tdb.execSQL(CALENDAR_EVENTS_CREATE_TABLE);\n\t\t}", "public long insertEntry(CampusEvent event) {\n\n ContentValues value = new ContentValues();\n\n value.put(KEY_TITLE, event.getTitle());\n\n value.put(KEY_DATE, event.getstrDate());\n value.put(KEY_START, event.getstrStart());\n value.put(KEY_END, event.getstrEnd());\n\n value.put(KEY_LOCATION, event.getLocation());\n value.put(KEY_DESCRIPTION, event.getDescription());\n value.put(KEY_URL, event.getURL());\n value.put(KEY_LATITUDE, event.getLatitude());\n value.put(KEY_LONGITUDE, event.getLongitude());\n value.put(KEY_FOOD, event.getFood());\n value.put(KEY_EVENT_TYPE, event.getEventType());\n value.put(KEY_PROGRAM_TYPE, event.getProgramType());\n value.put(KEY_YEAR, event.getYear());\n value.put(KEY_MAJOR, event.getMajor());\n value.put(KEY_GENDER, event.getGender());\n value.put(KEY_GREEK_SOCIETY, event.getGreekSociety());\n dbObj = getWritableDatabase();\n long id = dbObj.insert(TABLE_EVENT_ENTRIES, null, value);\n dbObj.close();\n return id;\n }", "@RequestMapping(value = \"/add-event\", method = RequestMethod.POST)\n public String addEvent(@RequestParam(\"event-date\") Date eventDate, @RequestParam(\"event-time\") String time, @RequestParam(\"event-type\") String eventType, @RequestParam(\"event-name\") String eventName) {\n Time eventTime = helper.getTimeToSql(time);\n EventModel eventModel = new EventModel(eventDate, eventTime, eventType, eventName);\n eventService.addEvent(eventModel);\n return \"redirect:home\";\n }", "@PUT\n @Path(\"{id}\")\n @RolesAllowed({\"administrator\", \"user\", \"visitor\"})\n Response createOrUpdateCalendar(@PathParam(\"id\") Long id, Calendar calendar);", "public void createReminder(Calendar calendar, Event event) throws LogicLayerException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tdataService.createReminder(new Reminder(calendar, event));\r\n\t\t}\r\n\t\tcatch (DataLayerException e)\r\n\t\t{\r\n\t\t\tthrow new LogicLayerException(e.getMessage());\r\n\t\t}\r\n\t}", "public void addDate(java.util.Calendar value) {\r\n\t\tBase.add(this.model, this.getResource(), DATE, value);\r\n\t}", "int insert(CalendarDate record);", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_add_user, container, false);\n name = view.findViewById(R.id.name);\n date = view.findViewById(R.id.date);\n time = view.findViewById(R.id.time);\n description = view.findViewById(R.id.description);\n addevent = view.findViewById(R.id.addevent);\n addevent.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n String Name = name.getText().toString();\n String Date = date.getText().toString();\n String Time= time.getText().toString();\n String Description= description.getText().toString();\n\n Event event = new Event();\n event.setName(Name);\n event.setTime(Time);\n event.setDescription(Description);\n event.setDate(Date);\n Main2Activity.eventDatabase.myDao().addEvent(event);\n Toast.makeText(getActivity(), \"Event added\", Toast.LENGTH_SHORT).show();\n event.setName(\"\");\n event.setTime(\"\");\n event.setDate(\"\");\n event.setDescription(\"\");\n\n }\n });\n\n return view;\n }", "public void addEvent(eNode newEvent)\r\n {\r\n eNode newNode = new eNode(newEvent);\r\n if(this.head == null)\r\n this.head = newNode;\r\n else\r\n recursiveInsert(this.head, newNode);\r\n }", "public static boolean create(String title, String date, String startTime, String endTime) {\n\t\tboolean canAdd = true;\n\t\tif (date.length() != 10) { //not in the correct format MM/DD/YYYY\n\t\t\tString month = date.substring(0, date.indexOf(\"/\"));\n\t\t\tSystem.out.println(\"month within create: \" + month);\n\t\t\tif (month.length() != 2) {\n\t\t\t\tmonth = \"0\" + month;\n\t\t\t}\n\t\t\tString day = date.substring(date.indexOf(\"/\") + 1, date.indexOf(\"/\", date.indexOf(\"/\") + 1));\n\t\t\tSystem.out.println(\"day within create: \" + day);\n\t\t\tif (day.length() != 2) {\n\t\t\t\tday = \"0\" + day;\n\t\t\t}\n\t\t\tString year = date.substring(date.indexOf(\"/\", date.indexOf(\"/\") + 1) + 1);\n\t\t\tSystem.out.println(\"year within create: \" + year);\n\t\t\tdate = month + \"/\" + day + \"/\" + year;\n\t\t}\n\t\tEvent toAdd = new Event(title, date, startTime, endTime);\n\n\t\tGregorianCalendar calendar = new GregorianCalendar(toAdd.getYear(), toAdd.getMonth(), toAdd.getDay());\n\t\tif (calendarToEvent.get(calendar) == null) { // there are no events under this date\n\t\t\tTreeSet<Event> treeSetForMap = new TreeSet<Event>();\n\t\t\ttreeSetForMap.add(toAdd);\n\t\t\tcalendarToEvent.put(calendar, treeSetForMap);\n\t\t} else { // there are already events, add event to the treeset\n\t\t\t\n\t\t\tfor (Event e : calendarToEvent.get(calendar)) {\n\t\t\t\tif (e.conflictCheck(toAdd)) { //check this (e.getIntEndTime()) < (toAdd.getIntStartTime()) ////return true if there is a conflict, false if there isn't\n\t\t\t\t\tSystem.out.println(\"Sorry can't add that event, there is a conflict\");\n\t\t\t\t\tcanAdd = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (canAdd) {\n\t\t\t\tcalendarToEvent.get(calendar).add(toAdd); // THAT'S WHAT IT USED TO BE calendarToEvent.get(toAdd.getDate()).add(toAdd);\n\t\t\t}\n\t\t}\n\t\treturn canAdd;\n\t}", "public abstract EventSeries addEventSeries(User user, Date start,\n\t\t\tDate end, String eventName, Visibility visibility, Repetition repetition, String description);", "public void addEvent(AbstractEvent _event){\n\t\tif(_event!=null){\n\t\t\tevent.addEvent(_event);\n\t\t}\n\t}", "public void addEvents(ArrayList<FbEvent> events) throws SQLException{\n\t\tSQLiteDatabase db = tableHelper.getWritableDatabase();\n\t\ttry {\n\t\t\tfor (FbEvent event : events) {\n\t\t\t\tContentValues contents = prepareContentValues(event);\n\t\t\t\tdb.insert(SQLTablesHelper.MY_EVENT_TABLE_NAME, null, contents);\n\t\t\t}\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t}", "public void addEvent(Event event)\n throws DatabaseException, InvalidValuesException {\n\n if (event.getEventID() == null\n || event.getDescendant() == null\n || event.getPersonID() == null\n || event.getCountry() == null\n || event.getCity() == null\n || event.getEventType() == null) {\n throw new InvalidValuesException();\n }\n\n PreparedStatement stmt = null;\n try {\n\n String sql =\n \"insert into Events (\" +\n \"EventID, Descendant, PersonID, Latitude, Longitude, \" +\n \"Country, City, EventType, EventYear\" +\n \") \" +\n \"values (?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n stmt = connection.prepareStatement(sql);\n stmt.setString(1, event.getEventID());\n stmt.setString(2, event.getDescendant());\n stmt.setString(3, event.getPersonID());\n stmt.setDouble(4, event.getLatitude());\n stmt.setDouble(5, event.getLongitude());\n stmt.setString(6, event.getCountry());\n stmt.setString(7, event.getCity());\n stmt.setString(8, event.getEventType());\n stmt.setInt(9, event.getYear());\n\n if (stmt.executeUpdate() != 1) {\n throw new DatabaseException();\n }\n } catch (SQLException e) {\n throw new DatabaseException(e);\n } finally {\n\n if (stmt != null) {\n try {\n stmt.close();\n } catch (SQLException e) {\n logger.log(Level.FINEST, e.getMessage(), e);\n }\n }\n\n }\n }", "private void saveEvent(){\n String eventName = eventNameView.getText().toString().trim();\n String dateString = eventDateView.getText().toString();\n String timeString = eventTimeView.getText().toString();\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd hh:mm a\");\n Calendar cal = Calendar.getInstance();\n try{\n Date date = sdf.parse(dateString+ \" \" + timeString);\n cal.setTime(date);\n }\n catch (Exception e){\n Log.d(\">>>\",e.toString());\n }\n\n if(eventName.length()>=1){\n final Event event = new Event(eventName, dateString, timeString, memberStatus, chat.getChatKey());\n String reminderPreferenceKeyTemp = \"\";\n if(this.event!=null){\n event.setEventKey(this.event.getEventKey());\n final DatabaseReference database = FirebaseDatabase.getInstance().getReference(\"events\");\n database.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for(DataSnapshot e : dataSnapshot.getChildren()){\n if(e.child(\"eventKey\").getValue().toString().equals(event.getEventKey())){\n database.child(e.getKey()).setValue(event);\n Calendar cal = Calendar.getInstance();\n SimpleDateFormat sdf = new SimpleDateFormat(patternDate);\n try {\n Date date = sdf.parse(eventDateView.getText().toString());\n cal.setTime(date);\n ActivityEventCalendar.dateLong = cal.getTimeInMillis();\n if(ActivityEventCalendar.dateLong == cal.getTimeInMillis()){\n ActivityEventCalendar.displayEventList();\n finish();\n }\n }\n catch(Exception exception){\n\n }\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n reminderPreferenceKeyTemp = event.getEventKey() + \"reminders\";\n }\n else{\n //creating event for the first time\n DatabaseReference database = FirebaseDatabase.getInstance().getReference(\"events\");\n eventFirebase = database.push();\n event.setEventKey(eventFirebase.getKey());\n database.push().setValue(event);\n reminderPreferenceKeyTemp = eventFirebase.getKey() + \"reminders\";\n }\n //write sharedpreferences for reminder\n final String reminderPreferenceKey = reminderPreferenceKeyTemp;\n Spinner spinner = (Spinner) findViewById(R.id.reminder_spinner);\n final SharedPreferences pref = getApplicationContext().getSharedPreferences(\"MyPref\", 0);\n final SharedPreferences.Editor editor = pref.edit();\n spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id) {\n if(position==0){\n //turn on\n editor.putBoolean(reminderPreferenceKey, true);\n editor.commit();\n }\n else if(position == 1){\n //turn off\n editor.putBoolean(reminderPreferenceKey, false);\n editor.commit();\n }\n }\n @Override\n public void onNothingSelected(AdapterView<?> parentView) { }\n });\n\n //create reminders\n boolean notify = pref.getBoolean(reminderPreferenceKey, false);\n\n if(notify){\n Intent intent = new Intent(Intent.ACTION_EDIT);\n intent.setType(\"vnd.android.cursor.item/event\");\n intent.putExtra(\"beginTime\", cal.getTimeInMillis());\n intent.putExtra(\"allDay\", false);\n intent.putExtra(\"title\", event.getEventName());\n startActivity(intent);\n }\n if(!creatingNewChat){\n statusAdapter.updateFirebase();\n }\n ActivityEventCalendar.dateLong = cal.getTimeInMillis();\n if(ActivityEventCalendar.dateLong == cal.getTimeInMillis()){\n ActivityEventCalendar.displayEventList();\n finish();\n }\n }\n else{\n Toast.makeText(this, \"Event name is invalid\", Toast.LENGTH_SHORT).show();\n }\n }", "public boolean insertData(Event event) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues contentValues = new ContentValues();\n contentValues.put(DAY, event.getDay());\n contentValues.put(COLOR, event.getColor());\n contentValues.put(COL_1, event.getStartDate().getTimeInMillis());\n contentValues.put(COL_2, event.getEndDate().getTimeInMillis());\n contentValues.put(COL_3, event.getTitle());\n contentValues.put(COL_4, event.getDescription());\n\n long result = db.insert(TABLE_NAME, null, contentValues);\n Cursor res = db.query(true, TABLE_NAME, new String[]{ID},\n DAY + \" = '\" + event.getDay() + \"' AND \"\n + COL_3 + \" = '\" + event.getTitle() + \"'\",\n null, null, null, null, null);\n res.moveToNext();\n event.setDatabaseID(res.getInt(0));\n db.close();\n return result != -1;\n\n }", "public void addItemToCalendar(MeetingItem item) {\n if(!exportMeetingViaProvider(item)) exportMeetingViaIntention(item);\n }", "public org.hl7.fhir.CodeableConcept addNewEvent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.CodeableConcept target = null;\n target = (org.hl7.fhir.CodeableConcept)get_store().add_element_user(EVENT$0);\n return target;\n }\n }", "public Boolean insertEventToCalendar(String[] eventStringArray) throws Exception {\n\t\tcom.google.api.services.calendar.Calendar service = getCalendarService(UserUtils.getInstance().getCredential());\n\n\t\tEvent event = new Event().setSummary(eventStringArray[0]).setLocation(eventStringArray[3])\n\t\t\t\t.setDescription(eventStringArray[4]);\n\n\t\tDateTime startDateTime = new DateTime(eventStringArray[1]);\n\t\tEventDateTime start = new EventDateTime().setDateTime(startDateTime);\n\t\tevent.setStart(start);\n\n\t\tDateTime endDateTime = new DateTime(eventStringArray[2]);\n\t\tEventDateTime end = new EventDateTime().setDateTime(endDateTime);\n\t\tevent.setEnd(end);\n\n\t\tString calendarId = \"primary\";\n\t\tevent = service.events().insert(calendarId, event).execute();\n\n\t\tcreateCalendarEvents();\n\n\t\treturn true;\n\t}", "public void addGameStartedEvent(GameStartedEvent gameStartedEvent) {\n\t\ttry{\n\t\t\tGameStartedMongoEvent mongoEvent = GameStartedMongoEvent.convertIntoMongoEvent(gameStartedEvent);\n\t\t\t\n\t\t\tmongoTemplate.insert(mongoEvent, \"GameStartedEvents\");\t\t\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tlogger.error(\"Failed to save GameStartedMongoEvent into mongo events store\");\n\t\t\tlogger.error(ex.getMessage());\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "public void addEvent(Event newEvent)\r\n {\r\n eNode newNode = new eNode(newEvent);\r\n if(this.head == null)\r\n head = newNode;\r\n else\r\n recursiveInsert(this.head, newNode);\r\n }", "Event createEvent();", "Event createEvent();", "public void insertEvent(@NonNull Event event, @NonNull OnEventCreatedCallback callback) {\n mEventCollection.create(event, res -> {\n if(res.isSuccessful()) {\n callback.onSuccess(res.getData());\n } else {\n callback.onFailure(res.getException());\n }\n });\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB)\n\t@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.event_details);\n\t\tgetActionBar().setDisplayHomeAsUpEnabled(true);\n\n\t\ttitle = (TextView) findViewById(R.id.event_name);\n\t\torganization = (TextView) findViewById(R.id.organization);\n\t\tdepartment = (TextView) findViewById(R.id.department);\n\t\tlocation = (TextView) findViewById(R.id.location);\n\t\tdate = (TextView) findViewById(R.id.date);\n\t\ttime = (TextView) findViewById(R.id.time);\n\t\tdescription = (TextView) findViewById(R.id.description);\n\n\t\tIntent i = getIntent();\n\t\tevent = (EventData)i.getSerializableExtra(\"the_event\");\n\n\t\ttitle.setText(event.getTitle());\n\t\torganization.setText(event.getOrganization());\n\t\tif (event.getOrganization().equals(event.getDepartment()))\n\t\t\tdepartment.setText(\"\");\n\t\telse\n\t\t\tdepartment.setText(event.getDepartment());\n\t\tlocation.setText(event.getLocation());\n\t\tif (event.getDateFrom().equals(event.getDateTo())) \n\t\t\tdate.setText(event.getRegularDateFrom());\n\t\telse \n\t\t\tdate.setText(event.getRegularDateFrom() + \" to \" + event.getRegularDateTo());\n\n\t\tif (event.getTimeFrom().equals(event.getTimeTo())) \n\t\t\ttime.setText(event.getRegularTimeFrom());\n\t\telse \n\t\t\ttime.setText(event.getRegularTimeFrom() + \" to \" + event.getRegularTimeTo());\n\t\tdescription.setText(event.getDescription());\n\n\t\tfinal Button calendar = (Button) findViewById(R.id.btn1);\n\t\tcalendar.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tCalendar cal = Calendar.getInstance(); \n\t\t\t\tIntent intent = new Intent(Intent.ACTION_EDIT);\n\t\t\t\tintent.setType(\"vnd.android.cursor.item/event\");\n\t\t\t\tintent.putExtra(\"beginTime\", event.getBeginTime());\n\t\t\t\tintent.putExtra(\"endTime\", event.getEndTime());\n\t\t\t\tintent.putExtra(\"title\", event.getOrganization() + \"- \" + event.getTitle());\n\t\t\t\tintent.putExtra(Events.EVENT_LOCATION, event.getLocation());\n\t\t\t\tintent.putExtra(Events.DESCRIPTION, event.getDescription());\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\n\t\tfinal Button reminder = (Button) findViewById(R.id.btn2);\n\t\treminder.setOnClickListener(new View.OnClickListener() {\n\t\t\tprivate Calendar mcurrentTime;\n\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmcurrentTime = Calendar.getInstance();\n\n\t\t\t\tDatePickerDialog datePicker = new DatePickerDialog(EventDetailsActivity.this, new DatePickerDialog.OnDateSetListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onDateSet(DatePicker view, int year, int monthOfYear,\n\t\t\t\t\t\t\tint dayOfMonth) {\n\t\t\t\t\t\tmcurrentTime.set(Calendar.YEAR, year);\n\t\t\t\t\t\tmcurrentTime.set(Calendar.MONTH, monthOfYear);\n\t\t\t\t\t\tmcurrentTime.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\t\t\t\t\t}\n\t\t\t\t}, mcurrentTime.get(Calendar.YEAR), mcurrentTime.get(Calendar.MONTH), mcurrentTime.get(Calendar.DAY_OF_MONTH));\n\t\t\t\t\n\t\t\t\t//now add the time\n\t\t\t\tint hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n\t\t\t\tint minute = mcurrentTime.get(Calendar.MINUTE);\n\t\t\t\tTimePickerDialog mTimePicker = new TimePickerDialog(EventDetailsActivity.this, new TimePickerDialog.OnTimeSetListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n\t\t\t\t\t\tmcurrentTime.set(Calendar.HOUR_OF_DAY, selectedHour);\n\t\t\t\t\t\tmcurrentTime.set(Calendar.MINUTE, selectedMinute);\n\n\t\t\t\t\t\t//create alarm notification\n\t\t\t\t\t\tcreateAlarm(mcurrentTime);\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\"Sucessfully added reminder\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}, hour, minute, false);\n\t\t\t\t\n\t\t\t\tmTimePicker.setTitle(\"Select Time\");\n\t\t\t\tmTimePicker.show();\n\t\t\t\t\n\t\t\t\tdatePicker.show();\n\t\t\t\tdatePicker.setTitle(\"Select Date\");\n\t\t\t}\n\t\t});\n\t}", "public int createCalendarEntries(List cals, boolean inMainCalendar) throws Exception, ServiceException, IOException {\n int createdCount = 0;\n\n for (int i = 0; i < cals.size(); i++) {\n NotesCalendarEntry cal = (NotesCalendarEntry) cals.get(i);\n CalendarEventEntry event = new CalendarEventEntry();\n event.setTitle(new PlainTextConstruct(cal.getSubject()));\n\n Where location = new Where();\n location.setValueString(cal.getLocation());\n event.addLocation(location);\n\n DateTime startTime, endTime;\n if (cal.getEntryType() == NotesCalendarEntry.EntryType.TASK ||\n cal.getAppointmentType() == NotesCalendarEntry.AppointmentType.ALL_DAY_EVENT ||\n cal.getAppointmentType() == NotesCalendarEntry.AppointmentType.ANNIVERSARY )\n {\n // Create a Google all-day event. All-day events are created by\n // setting start/end dates the same and having no time portion.\n startTime = DateTime.parseDate(cal.getStartDateGoogle());\n endTime = DateTime.parseDate(cal.getStartDateGoogle());\n }\n else if (cal.getAppointmentType() == NotesCalendarEntry.AppointmentType.APPOINTMENT ||\n cal.getAppointmentType() == NotesCalendarEntry.AppointmentType.MEETING)\n {\n // Create a standard event\n startTime = DateTime.parseDateTime(cal.getStartDateTimeGoogle());\n endTime = DateTime.parseDateTime(cal.getEndDateTimeGoogle());\n }\n else if (cal.getAppointmentType() == NotesCalendarEntry.AppointmentType.REMINDER)\n {\n // Create a standard event with the start and end times the same\n startTime = DateTime.parseDateTime(cal.getStartDateTimeGoogle());\n endTime = DateTime.parseDateTime(cal.getStartDateTimeGoogle());\n }\n else\n {\n throw new Exception(\"Couldn't determine Lotus Notes event type.\\nEvent subject: \" + cal.getSubject() +\n \"\\nEntry Type: \" + cal.getEntryType() +\n \"\\nAppointment Type: \" + cal.getAppointmentType());\n }\n\n When eventTimes = new When();\n eventTimes.setStartTime(startTime);\n eventTimes.setEndTime(endTime);\n event.addTime(eventTimes);\n\n try {\n if (inMainCalendar) {\n service.insert(privateCalendarFeedUrl, event);\n } else {\n service.insert(getDestinationCalendarUrl(), event);\n }\n\n createdCount++;\n } catch (Exception ex) {\n throw ex;\n }\n }\n\n return createdCount;\n }" ]
[ "0.7792205", "0.7408997", "0.73034066", "0.72163624", "0.71294165", "0.69947255", "0.6994696", "0.68824875", "0.686479", "0.6852517", "0.68369186", "0.675484", "0.67545784", "0.67101675", "0.6688098", "0.6611438", "0.65845215", "0.6577837", "0.6524649", "0.6514607", "0.6499156", "0.6483686", "0.6472196", "0.6463623", "0.6463479", "0.6433661", "0.6429198", "0.642108", "0.6408633", "0.64064217", "0.63958985", "0.6392458", "0.6354012", "0.6347796", "0.6347796", "0.6305217", "0.6298118", "0.62822366", "0.62805885", "0.62789184", "0.62686896", "0.6267025", "0.6223852", "0.62082225", "0.61887527", "0.6185262", "0.61600125", "0.61475706", "0.61219674", "0.61063915", "0.6096826", "0.6083639", "0.6067807", "0.60649055", "0.6049606", "0.6041014", "0.60339785", "0.6029818", "0.6029751", "0.60259086", "0.6013073", "0.60019904", "0.59951246", "0.5988453", "0.598587", "0.59783286", "0.5966067", "0.5958066", "0.5956916", "0.59370935", "0.5900581", "0.58975726", "0.5883756", "0.58693224", "0.58562267", "0.58436906", "0.5812431", "0.5807525", "0.5804587", "0.5800622", "0.57864714", "0.57588357", "0.5749624", "0.5743196", "0.57430124", "0.57334113", "0.57123744", "0.57002443", "0.5697705", "0.5696221", "0.5693496", "0.56917584", "0.5684712", "0.5676842", "0.567176", "0.56632274", "0.56632274", "0.56630003", "0.56472", "0.5629118" ]
0.6406539
29
Find events by interval
public ArrayList<Event> getEventsByInterval(Calendar initial_date, Calendar final_date) { ArrayList<Event> result = new ArrayList<Event>(); boolean insert = true; for (int i = 0; i < events.size(); i++) { if (initial_date != null && final_date != null) { if (!events.get(i).getInitial_date().after(initial_date) || !events.get(i).getFinal_date().before(final_date)) { insert = false; } } else if (initial_date != null) { if (!events.get(i).getInitial_date().after(initial_date)) { insert = false; } } else if (final_date != null) { if (!events.get(i).getFinal_date().before(final_date)) { insert = false; } } if (insert) { result.add(events.get(i)); } insert = true; } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<Event> searchByInterval(Date leftDate, Date rightDate) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.dateBegin BETWEEN :leftDate and :rightDate \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"leftDate\", leftDate)\n .setParameter(\"rightDate\", rightDate);\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }", "List<AggregatedStatistics> getSnapshotsInInterval(EventInterval eventInterval, Date startDate,\n Date endDate);", "public static void main(String[] args) {\n\t\tDateTimeFormatter dateTimeFormatter = DateTimeFormat.forPattern(\"yyyy-MM-dd HH:mm:ss\");\n\t\tList<Interval> existingIntervals;\n\t\texistingIntervals = new ArrayList<Interval>();\n\t\t\n\t\texistingIntervals.add(new Interval(DateTime.parse(\"2016-06-13 08:00:00\", dateTimeFormatter), DateTime.parse(\"2016-06-13 10:00:00\", dateTimeFormatter)));\n\t\texistingIntervals.add(new Interval(DateTime.parse(\"2016-06-13 10:35:00\", dateTimeFormatter), DateTime.parse(\"2016-06-13 11:35:00\", dateTimeFormatter)));\n\t\texistingIntervals.add(new Interval(DateTime.parse(\"2016-06-13 12:00:00\", dateTimeFormatter), DateTime.parse(\"2016-06-13 14:00:00\", dateTimeFormatter)));\n\t\texistingIntervals.add(new Interval(DateTime.parse(\"2016-06-13 15:00:00\", dateTimeFormatter), DateTime.parse(\"2016-06-13 19:05:00\", dateTimeFormatter)));\n\t\t\n\t\tDateTimeGapFinder dateTimeGapFinder = new DateTimeGapFinder();\n\t\t// the search interval overshadows the extremities of existing intervals\n\t\tInterval bigSearch = new Interval(DateTime.parse(\"2016-06-13 10:00:00\", dateTimeFormatter), DateTime.parse(\"2016-06-13 12:00:00\", dateTimeFormatter));\n\t\t\n\t\tList<Interval> bigSearchResults = dateTimeGapFinder.findGaps(existingIntervals, bigSearch);\n\t\t\n\t\tSystem.out.println(bigSearchResults);\n\t\t\n\t}", "public final List<Appointment> getAppointmentsBetween(Interval interval) {\n List<Appointment> appts = new ArrayList<>();\n\n this.appointments.stream().filter(a -> {\n return interval.intersects(a.getInterval());\n }).forEachOrdered(a -> {\n appts.add(a);\n });\n\n return appts;\n }", "@Test\n\tpublic void testListReservationsOfUserInInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, -23);\n\n\t\t// first reservation is from now +1 to now +3\n\t\tDate reservation1StartDate = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +2);\n\t\tDate reservation1EndDate = cal.getTime();\n\t\tReservation reservation1 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(),\n\t\t\t\treservation1StartDate, reservation1EndDate);\n\n\t\t// second reservation is from now +4 to now +5\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2StartDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2EndDate = cal.getTime();\n\n\t\tReservation reservation2 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(),\n\t\t\t\treservation2StartDate, reservation2EndDate);\n\n\t\t// should find both above reservation\n\t\tCollection<Reservation> reservationsOfUser;\n\t\treservationsOfUser = bookingManagement.listReservationsOfUser(USER_ID, listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfUser);\n\t\tassertEquals(2, reservationsOfUser.size());\n\t\tassertTrue(reservationsOfUser.contains(reservation1));\n\t\tassertTrue(reservationsOfUser.contains(reservation2));\n\t}", "public static void intervalRange() {\n Observable.intervalRange(0L, 10L, 0L, 10L, TimeUnit.MILLISECONDS).\n subscribe(new MyObserver<>());\n }", "IEvent[] getEvents();", "@Test\n\tpublic void testListReservationsOfFacilityInInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, -23);\n\n\t\t// first reservation is from now +1 to now +3\n\t\tDate reservation1StartDate = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +2);\n\t\tDate reservation1EndDate = cal.getTime();\n\t\tReservation reservation1 = dataHelper.createPersistedReservation(USER_ID, Arrays.asList(room1.getId()),\n\t\t\t\treservation1StartDate, reservation1EndDate);\n\n\t\t// second reservation is from now +4 to now +5\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2StartDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, 1);\n\t\tDate reservation2EndDate = cal.getTime();\n\n\t\tReservation reservation2 = dataHelper.createPersistedReservation(USER_ID,\n\t\t\t\tArrays.asList(room1.getId(), infoBuilding.getId()), reservation2StartDate, reservation2EndDate);\n\n\t\t// should find both above reservation\n\t\tCollection<Reservation> reservationsOfFacility;\n\t\treservationsOfFacility = bookingManagement.listReservationsOfFacility(room1.getId(), listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfFacility);\n\t\tassertEquals(2, reservationsOfFacility.size());\n\t\tassertTrue(reservationsOfFacility.contains(reservation1));\n\t\tassertTrue(reservationsOfFacility.contains(reservation2));\n\t}", "public S interval(Long interval) {\n builder.interval(interval);\n return self;\n }", "Deque<Event> getEvents(long inId);", "public int getInterval() { return _interval; }", "boolean isNewInterval();", "Collection<EventDetector> getEventsDetectors();", "public void add(Interval<T> interval) {\n ArrayList<Interval<T>> that = new ArrayList<Interval<T>>();\n that.add(interval);\n\n /*\n * The following algorithm works with any size ArrayList<Interval<T>>.\n * We do only one interval at a time to do an insertion sort like adding of intervals, so that they don't need to be sorted.\n */\n int pos1 = 0, pos2 = 0;\n Interval<T> i1, i2, i1_2;\n\n for (; pos1 < this.size() && pos2 < that.size(); ++pos2) {\n i1 = this.intervals.get(pos1);\n i2 = that.get(pos2);\n\n if (i1.is(IntervalRelation.DURING_INVERSE, i2) || i1.is(IntervalRelation.START_INVERSE, i2) || i1.is(IntervalRelation.FINISH_INVERSE, i2) || i1.is(IntervalRelation.EQUAL, i2)) {//i1 includes i2\n //ignore i2; do nothing\n } else if (i1.is(IntervalRelation.DURING, i2) || i1.is(IntervalRelation.START, i2) || i1.is(IntervalRelation.FINISH, i2)) {//i2 includes i1\n this.intervals.remove(pos1);//replace i1 with i2\n --pos2;\n } else if (i1.is(IntervalRelation.OVERLAP, i2) || i1.is(IntervalRelation.MEET, i2)) {//i1 begin < i2 begin < i1 end < i2 end; i1 end = i2 begin\n i1_2 = new Interval<T>(i1.begin(), i2.end());//merge i1 and i2\n this.intervals.remove(pos1);\n that.add(pos2 + 1, i1_2);\n } else if (i1.is(IntervalRelation.OVERLAP_INVERSE, i2) || i1.is(IntervalRelation.MEET_INVERSE, i2)) {//i2 begin < i1 begin < i2 end < i1 end; i2 end = i1 begin\n i1_2 = new Interval<T>(i2.begin(), i1.end());//merge i2 and i1\n this.intervals.remove(pos1);\n this.intervals.add(pos1, i1_2);\n } else if (i1.is(IntervalRelation.BEFORE, i2)) {//i1 < i2 < (next i1 or next i2)\n ++pos1;\n --pos2;\n } else if (i1.is(IntervalRelation.AFTER, i2)) {//i2 < i1 < (i1 or next i2)\n this.intervals.add(pos1, i2);\n ++pos1;\n }\n }\n\n //this finishes; just append the rest of that\n if (pos2 < that.size()) {\n for (int i = pos2; i < that.size(); ++i) {\n this.intervals.add(that.get(i));\n }\n }\n }", "public Interval getInterval() { return interval; }", "public S interval(String interval) {\n builder.interval(interval);\n return self;\n }", "@Test\n\tpublic void testListReservationsOfFacilityEqualInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\tReservation reservation1 = dataHelper.createPersistedReservation(USER_ID, Arrays.asList(room1.getId()),\n\t\t\t\tlistStart, listEnd);\n\n\t\t// should find above reservation\n\t\tCollection<Reservation> reservationsOfFacility;\n\t\treservationsOfFacility = bookingManagement.listReservationsOfFacility(room1.getId(), listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfFacility);\n\t\tassertEquals(1, reservationsOfFacility.size());\n\t\tassertTrue(reservationsOfFacility.contains(reservation1));\n\t}", "public interface ReadableInterval\n{\n\n public abstract boolean contains(ReadableInstant readableinstant);\n\n public abstract boolean contains(ReadableInterval readableinterval);\n\n public abstract boolean equals(Object obj);\n\n public abstract Chronology getChronology();\n\n public abstract DateTime getEnd();\n\n public abstract long getEndMillis();\n\n public abstract DateTime getStart();\n\n public abstract long getStartMillis();\n\n public abstract int hashCode();\n\n public abstract boolean isAfter(ReadableInstant readableinstant);\n\n public abstract boolean isAfter(ReadableInterval readableinterval);\n\n public abstract boolean isBefore(ReadableInstant readableinstant);\n\n public abstract boolean isBefore(ReadableInterval readableinterval);\n\n public abstract boolean overlaps(ReadableInterval readableinterval);\n\n public abstract Duration toDuration();\n\n public abstract long toDurationMillis();\n\n public abstract Interval toInterval();\n\n public abstract MutableInterval toMutableInterval();\n\n public abstract Period toPeriod();\n\n public abstract Period toPeriod(PeriodType periodtype);\n\n public abstract String toString();\n}", "@Test\n\tpublic void testListReservationsOfFacilityAfterInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\t// first reservation is 1 second after list end\n\t\tcal.add(Calendar.SECOND, 1);\n\t\tDate reservation1StartDate = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +2);\n\t\tDate reservation1EndDate = cal.getTime();\n\t\tdataHelper.createPersistedReservation(USER_ID, Arrays.asList(room1.getId()), reservation1StartDate,\n\t\t\t\treservation1EndDate);\n\n\t\t// should not find above reservation\n\t\tCollection<Reservation> reservationsOfFacility;\n\t\treservationsOfFacility = bookingManagement.listReservationsOfFacility(room1.getId(), listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfFacility);\n\t\tassertTrue(reservationsOfFacility.isEmpty());\n\t}", "@Query(\"SELECT id, measured_at FROM measurements WHERE measured_at >= :startDate AND measured_at < :endDate\")\n @TypeConverters({DateConverter.class})\n List<MeasurementEvent> findForPeriodTest(Date startDate, Date endDate);", "long getIntervalInSeconds();", "public boolean overlaps(ReadableInterval interval) {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[11]++;\r\n long thisStart = getStartMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[12]++;\r\n long thisEnd = getEndMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[13]++;\nint CodeCoverConditionCoverageHelper_C4;\r\n if ((((((CodeCoverConditionCoverageHelper_C4 = 0) == 0) || true) && (\n(((CodeCoverConditionCoverageHelper_C4 |= (2)) == 0 || true) &&\n ((interval == null) && \n ((CodeCoverConditionCoverageHelper_C4 |= (1)) == 0 || true)))\n)) && (CodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.conditionCounters[4].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C4, 1) || true)) || (CodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.conditionCounters[4].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C4, 1) && false)) {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.branches[7]++;\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[14]++;\r\n long now = DateTimeUtils.currentTimeMillis();\r\n return (thisStart < now && now < thisEnd);\n\r\n } else {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.branches[8]++;\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[15]++;\r\n long otherStart = interval.getStartMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[16]++;\r\n long otherEnd = interval.getEndMillis();\r\n return (thisStart < otherEnd && otherStart < thisEnd);\r\n }\r\n }", "private static List<Event> getMyEvents(List<Registration> registrations) {\n List<Event> result = new ArrayList<>();\n for (Registration registration : registrations) {\n result.add(registration.getEvent());\n }\n return result;\n }", "@Test\n\tpublic void testListReservationsOfUserEqualInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\tReservation reservation1 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(),\n\t\t\t\tlistStart, listEnd);\n\n\t\t// should find above reservation\n\t\tCollection<Reservation> reservationsOfUser;\n\t\treservationsOfUser = bookingManagement.listReservationsOfUser(USER_ID, listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfUser);\n\t\tassertEquals(1, reservationsOfUser.size());\n\t\tassertTrue(reservationsOfUser.contains(reservation1));\n\t}", "Collection<CalendarEvent> getActiveEvents(long when)\n{\n List<CalendarEvent> rslt = new ArrayList<CalendarEvent>();\n try {\n getAllEvents(when);\n rslt.addAll(cal_events);\n }\n catch (Exception e) {\n BasisLogger.logE(\"GOOGLECAL: problem getting events\",e);\n }\n return rslt;\n}", "List<Event> findAllBy();", "public Collection<TimeRange> query(Collection<Event> events, MeetingRequest request) {\n if(request.getAttendees().isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n // nobody has time to meet for more than a day\n if(request.getDuration() > TimeRange.WHOLE_DAY.duration()){\n return Arrays.asList();\n }\n // if there're no already existing events, whole day is available, \n if(events.isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n\n Collection<String> listOfAttendees = request.getAttendees();\n List<TimeRange> unavailableTimes = getUnavailableTimesForAttendees(events, listOfAttendees);\n\n return getAvailableTimes(unavailableTimes, request.getDuration());\n }", "@Test\n\tpublic void testListReservationsOfUserAfterInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\t// first reservation is 1 second after list end\n\t\tcal.add(Calendar.SECOND, 1);\n\t\tDate reservation1StartDate = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +2);\n\t\tDate reservation1EndDate = cal.getTime();\n\t\tdataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(), reservation1StartDate,\n\t\t\t\treservation1EndDate);\n\n\t\t// should not find above reservation\n\t\tCollection<Reservation> reservationsOfUser;\n\t\treservationsOfUser = bookingManagement.listReservationsOfUser(USER_ID, listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfUser);\n\t\tassertTrue(reservationsOfUser.isEmpty());\n\t}", "void setStatisticsInterval(long interval, TimeUnit timeUnit);", "public int getAvpfRrInterval();", "public int getPollInterval();", "public abstract Map<String, Event> getEvents();", "public Intervals(Interval<T> interval) {\n add(interval);\n }", "protected static<T extends FitbitInterval> List<T> filterResults( List<T> results, FitbitQuery query ) {\n\t\tif ( query.atResolution( ) == FitbitResolution.DAILY )\n\t\t\treturn results;\n\t\t\n\t\tList<T> filteredResults = new ArrayList<T>( );\n\t\tfor ( T r : results )\n\t\t\tif ( r.getInterval( ).getStart( ).isAfter( query.from( ) ) && r.getInterval( ).getStart( ).isBefore( query.to( ) ) )\n\t\t\t\tfilteredResults.add( r );\n\t\t\t\t\n\t\treturn filteredResults;\n\t}", "public int getInterval() {\r\n return interval;\r\n }", "ScheduledEvents getScheduledEvents();", "public static int searchForIntervalBoundary(long time) {\n\n int intakeIndex = 1;\n\n for (int i = theirIntakes.size() - 1; i > 0; i--) {\n if (theirIntakes.get(i).getCreationTime() < time) {\n intakeIndex = i;\n break;\n }\n }\n\n return intakeIndex;\n\n }", "protected int findInterval( Double val ){\n\t\tfor( int i = 0; i < histogram.length; i++ ){\n\t\t\tif( (lowerBound + i * this.interval) >= val )\n\t\t\t\treturn Math.max( 0, i - 1 );\n\t\t}\n\t\treturn histogram.length - 1;\n\t}", "public void test800324() {\n TaskSeries s1 = new TaskSeries(\"S1\");\n s1.add(new Task(\"Task 1\", new SimpleTimePeriod(new Date(), new Date())));\n s1.add(new Task(\"Task 2\", new SimpleTimePeriod(new Date(), new Date())));\n s1.add(new Task(\"Task 3\", new SimpleTimePeriod(new Date(), new Date())));\n TaskSeriesCollection tsc = new TaskSeriesCollection();\n tsc.add(s1);\n try {\n tsc.getStartValue(0, 3);\n assertTrue(false);\n } catch (IndexOutOfBoundsException e) {\n }\n try {\n tsc.getEndValue(0, 3);\n assertTrue(false);\n } catch (IndexOutOfBoundsException e) {\n }\n try {\n tsc.getSubIntervalCount(0, 3);\n assertTrue(false);\n } catch (IndexOutOfBoundsException e) {\n }\n }", "private void findNearByEvents() {\n LatLng latLng = mMapFragment.getCenterOfScreen();\n double longitude = latLng.longitude;\n double latitude = latLng.latitude;\n\n int spEventsPosition = mEventsSpinner.getSelectedItemPosition();\n int spTimesPosition = mTimesSpinner.getSelectedItemPosition();\n\n Log.e(\"MainAct\", \"Lat: \" + latitude + \" Lon: \" + longitude);\n mEventInteractor = new EventInteractor(this);\n EventSearchRequest eventSearchRequest = new EventSearchRequest();\n eventSearchRequest.setLat(String.valueOf(latitude));\n eventSearchRequest.setLon(String.valueOf(longitude));\n eventSearchRequest.setEventTime(spTimesPosition);\n eventSearchRequest.setEventType(spEventsPosition);\n mEventInteractor.eventSearch(eventSearchRequest, new EventSearchListener() {\n @Override\n public void onEventSearch(EventSearchResponse response) {\n mBottomSheetListFragment.refreshEvents(response.getEvents());\n mMapFragment.getEventsAndPin(response.getEvents());\n }\n\n @Override\n public void onError(String errorMessage) {\n showErrorMessage(errorMessage);\n }\n\n @Override\n public void onBeforeRequest() {\n showWaitingDialog();\n }\n\n @Override\n public void onAfterRequest() {\n dismissWaitingDialog();\n }\n });\n }", "public static List<MissingDataInterval> getMissingRanges(TreeMap<LocalDateTime, Consumption> data, LocalDateTime start, LocalDateTime end, int interval) {\n List<MissingDataInterval> result = new ArrayList<>();\n boolean inMissing = false;\n LocalDateTime lastStart = null;\n\n LocalDateTime time = start;\n while (!time.isAfter(end)) {\n if (!inMissing && !data.containsKey(time)) {\n inMissing = true;\n lastStart = time;\n }\n if (inMissing && data.containsKey(time)) {\n inMissing = false;\n result.add(new MissingDataInterval(lastStart, time.minusSeconds(interval)));\n lastStart = null;\n }\n time = time.plusSeconds(interval);\n }\n if (inMissing) {\n result.add(new MissingDataInterval(lastStart, time.minusSeconds(interval)));\n }\n return result;\n }", "public long getIntervals(){\n return this.interval;\n }", "public static List<MissingDataInterval> getMissingRanges(TreeMap<LocalDateTime, Consumption> data, int interval) {\n return getMissingRanges(data, data.firstKey(), data.lastKey(), interval);\n }", "@Override\n public Set<Event> getNextEvents(LocalDateTime to) {\n return null;\n }", "List<Event> selectByExample(EventExample example);", "public List<MeteringDataSec> findWithinTimeRange(final Instant startTime, final Instant untilTime) {\n\t\tInstant until = untilTime == null ? startTime.plus(5, ChronoUnit.MINUTES) : untilTime;\n\n\t\tList<MeteringDataSec> matches = meteringDataRepository.findWithinTimeRange(Timestamp.from(startTime), Timestamp.from(until));\n\t\tif (!matches.isEmpty()) {\n\t\t\tLOG.info(\"findWithinTimeRange found {} entries starting with: {}\", matches.size(), matches.get(0).getCreationTime());\n\t\t}\n\n\t\treturn matches;\n\t}", "private Interval readRecordInterval(Record row, Session session) {\n Timestamp start = (Timestamp) session.getDatasourcePlatform().convertObject(row.get(\"recordinterval_0\"), java.sql.Timestamp.class);\n Timestamp end = (Timestamp) session.getDatasourcePlatform().convertObject(row.get(\"recordinterval\"), java.sql.Timestamp.class);\n return new Interval(start.getTime(), end.getTime());\n }", "public static List<String> recommendAlgorithm(TreeMap<LocalDateTime, Consumption> data, int interval) {\n return recommendAlgorithm(data, data.firstKey(), data.lastKey(), interval);\n }", "abstract public int getServiceInterval();", "void queryTimeSeries(final Message<JsonObject> msg) {\n\n final JsonObject query = msg.body();\n LOG.debug(\"{}\\n{}\", address, query.encodePrettily());\n\n // get the paramsters from the query\n final Range range = rangeParser.parse(query.getJsonObject(\"range\").getString(\"from\"),\n query.getJsonObject(\"range\").getString(\"to\"));\n final long interval = intervalParser.parseToLong(query.getString(\"interval\"));\n final JsonArray targets = query.getJsonArray(\"targets\")\n .stream()\n .map(o -> ((JsonObject) o).getString(\"target\"))\n .collect(toJsonArray());\n\n //build the query and options\n final JsonObject tsQuery = $and(obj(\"n.begin\", $gte(range.getStart())),\n obj(\"n.begin\", $lte(range.getEnd())),\n obj(\"t.name\", $in(targets)));\n\n final FindOptions findOptions = new FindOptions().setFields(obj().put(\"t.name\", 1)\n .put(\"n.begin\", 1)\n .put(\"n.value\", 1)\n .put(\"_id\", 0)).setSort(obj(\"n.begin\", 1));\n\n long start = System.currentTimeMillis();\n //execute search and process response\n client.findWithOptions(collectionName, tsQuery, findOptions, result -> {\n\n if (result.succeeded()) {\n JsonArray resp = processResponse(range, r -> range.splitEvery(interval), targets, result);\n long end = System.currentTimeMillis();\n LOG.debug(\n \"Sending response with {} timeseries and {} datapoints (after {} ms)\",\n resp.size(),\n resp.stream()\n .map(o -> ((JsonObject) o).getJsonArray(\"datapoints\"))\n .collect(Collectors.summingInt(JsonArray::size)),\n (end - start));\n msg.reply(resp);\n\n } else {\n LOG.error(\"Annotation query failed\", result.cause());\n msg.reply(arr());\n }\n\n });\n }", "public List<Timetable> getListSearch(String from, String to) throws Exception;", "public List<Events> getAllSystemEventsListForAll();", "private OWLIndividual getTimesliceIndividualFor(\n\t\t\tOWLIndividual individual, TimeInterval interval) {\n\t\tMap<TimeInterval, OWLIndividual> intervalToTimesliceIndividual \n\t\t\t= timesliceToIndividual.get(individual);\n\t\tif(intervalToTimesliceIndividual == null) {\n\t\t\tintervalToTimesliceIndividual = new HashMap<TimeInterval, OWLIndividual>();\n\t\t\ttimesliceToIndividual.put(individual, intervalToTimesliceIndividual);\n\t\t}\n\t\t\n\t\t// Then, search by interval and obtain the timesliceIndividual.\n\t\tOWLIndividual timesliceIndividual = intervalToTimesliceIndividual.get(interval);\n\t\tif(timesliceIndividual == null) {\n\t\t\ttimesliceIndividual = getOWLDataFactory().getOWLAnonymousIndividual();\n\t\t\tintervalToTimesliceIndividual.put(interval, timesliceIndividual);\n\t\t}\n\t\t\n\t\treturn timesliceIndividual;\n\t}", "@Override\r\n\t public boolean equals(Object obj) {\n\t Interval inteval = (Interval)obj;\r\n\t return this.getStart().equals(inteval.getStart()) && this.getEnd().equals(inteval.getEnd()) ;\r\n\t }", "public ArrayList<Interval> merge(ArrayList<Interval> intervals) {\n if (intervals.size() > 1) {\n int[] startArray = new int[intervals.size()];\n int[] endArray = new int[intervals.size()];\n ArrayList<Interval> ans = new ArrayList<>();\n int count = 0;\n for (Interval val : intervals) {\n startArray[count] = val.start;\n endArray[count] = val.end;\n count++;\n }\n Arrays.sort(startArray);\n Arrays.sort(endArray);\n\n\n for (int i = 0; i < intervals.size()-1; i++) {\n int start = startArray[i];\n int end = endArray[i];\n\n while (i<intervals.size()-1 && startArray[i+1]<=end){\n end=endArray[i+1];\n i++;\n }\n\n Interval interval = new Interval(start,end);\n ans.add(interval);\n\n }\n\n return ans;\n }\n return intervals;\n }", "@SuppressWarnings(\"unchecked\")\n public List<ConnectionMeterEvent> findConnectionMeterEventsForPeriod(LocalDate fromDate, LocalDate endDate) {\n StringBuilder queryString = new StringBuilder();\n queryString.append(\"SELECT cme FROM ConnectionMeterEvent cme \");\n queryString.append(\" WHERE cme.dateTime >= :fromDate \");\n // it is inclusive because i add a day to the endDate\n queryString.append(\" AND cme.dateTime < :endDate \");\n\n Query query = getEntityManager().createQuery(queryString.toString());\n query.setParameter(\"fromDate\", fromDate.toDateMidnight().toDateTime().toDate(), TemporalType.TIMESTAMP);\n query.setParameter(\"endDate\", endDate.plusDays(1).toDateMidnight().toDateTime().toDate(), TemporalType.TIMESTAMP);\n\n return query.getResultList();\n }", "List<EventsWaitsSummaryByInstance> selectByExample(EventsWaitsSummaryByInstanceExample example);", "public static ArrayList<Date> events(Task task, Date start, Date end){\n ArrayList<Date> dates = new ArrayList<>();\n for (Date i = task.nextTimeAfter(start); !end.before(i); i = task.nextTimeAfter(i))\n dates.add(i);\n return dates;\n }", "public int getCheckInterval();", "public List<ScheduledInterview> getInRange(Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n scheduledInterviewsInRange.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n return scheduledInterviewsInRange;\n }", "public GameEvent[] getEvents();", "public boolean within(final LocalDateInterval interval) {\n return interval.asInterval().contains(asInterval());\n }", "public List<Measurement> findMeasurementsByTimeRange(Date fromDate, Date toDate) {\n return entityManager.createQuery(\"SELECT m from \" +\n \"Measurement m where m.date >= :fromDate and m.date <= :toDate\", Measurement.class)\n .setParameter(\"fromDate\", fromDate)\n .setParameter(\"toDate\", toDate)\n .getResultList();\n\n }", "public List<List<PvPEvent>> defineNextEvents(String day, int serverHour, List<\n PvPEvent> events) {\n String[] days = defineDaysLine(day);\n\n List<List<PvPEvent>> testDefinedEvents = new ArrayList<>();\n List<PvPEvent> innerEventsCurrent = new ArrayList<>();\n List<PvPEvent> innerEvents1h = new ArrayList<>();\n List<PvPEvent> innerEvents2h = new ArrayList<>();\n List<PvPEvent> innerEvents3h = new ArrayList<>();\n\n for (int i = 0; i < 10; i++) {\n innerEventsCurrent.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n innerEvents1h.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n innerEvents2h.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n innerEvents3h.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n }\n\n for (PvPEvent e : events) {\n String currentDay = days[0];\n for (int i = 0; i < e.getTime().size(); i++) {\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (serverHour == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < serverHour && e.getTime().get(i).getEndTime() > serverHour) &&\n e.getTime().get(i).getEndTime() < serverHour + 3) {\n if (innerEventsCurrent.size() == 10) {\n innerEventsCurrent.clear();\n }\n innerEventsCurrent.add(e);\n }\n if ((serverHour + 1) == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < (serverHour + 1) && e.getTime().get(i).getEndTime() > (serverHour + 1) &&\n e.getTime().get(i).getEndTime() < serverHour + 4)) {\n if (innerEvents1h.size() == 10) {\n innerEvents1h.clear();\n }\n innerEvents1h.add(e);\n }\n if ((serverHour + 2) == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < (serverHour + 2) && e.getTime().get(i).getEndTime() > (serverHour + 2) &&\n e.getTime().get(i).getEndTime() < serverHour + 5)) {\n if (innerEvents2h.size() == 10) {\n innerEvents2h.clear();\n }\n innerEvents2h.add(e);\n }\n if ((serverHour + 3) == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < (serverHour + 3) && e.getTime().get(i).getEndTime() > (serverHour + 3) &&\n e.getTime().get(i).getEndTime() < serverHour + 6)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n }\n\n if (serverHour == 21) {\n currentDay = days[1];\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (0 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n }\n }\n if (serverHour == 22) {\n currentDay = days[1];\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (0 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n if (1 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents2h.size() == 10) {\n innerEvents2h.clear();\n }\n innerEvents2h.add(e);\n }\n }\n }\n if (serverHour == 23) {\n currentDay = days[1];\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (0 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n if (1 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents2h.size() == 10) {\n innerEvents2h.clear();\n }\n innerEvents2h.add(e);\n }\n if (2 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents1h.size() == 10) {\n innerEvents1h.clear();\n }\n innerEvents1h.add(e);\n }\n }\n }\n }\n }\n\n testDefinedEvents.add(0, innerEventsCurrent);\n testDefinedEvents.add(1, innerEvents1h);\n testDefinedEvents.add(2, innerEvents2h);\n testDefinedEvents.add(3, innerEvents3h);\n\n return testDefinedEvents;\n }", "LinkedList<Tuple<Long,Long>> ContainWithinTimeWindow(LinkedList<Tuple<Long,Long>> q, long current_time, long time_window){\n LinkedList<Tuple<Long,Long>> output = new LinkedList<Tuple<Long,Long>>();\n for(Tuple<Long,Long> e: q){\n //if it starts after the start of the window:\n if(e.x>current_time-time_window){\n if(e.y==LongMin || e.y==0){\n output.add(new Tuple<Long,Long>(e.x,current_time));\n }\n // if it ends before the current time\n else{\n output.add(new Tuple<Long,Long>(e.x,e.y));\n }\n }\n //if it starts before the window but ends within it\n else if(e.y>current_time-time_window){\n output.add(new Tuple<Long,Long>(current_time-time_window,e.y));\n }\n }\n //DisplayDropPercentList(q, time_window,\"q\");\n //DisplayDropPercentList(output, time_window,\"output\");\n return output;\n }", "public void setAvpfRrInterval(int interval);", "public TimeIntervalCollection getSatisfiedIntervalIntersection() {\n Preconditions.checkNotNull(analysisInterval);\n TimeIntervalCollection allSatisfiedIntervals = new TimeIntervalCollection();\n if (results.isEmpty()) {\n return allSatisfiedIntervals;\n }\n\n allSatisfiedIntervals.add(analysisInterval);\n for (AccessQueryConstraintResult result : results.values()) {\n allSatisfiedIntervals = allSatisfiedIntervals.intersect(result.getSatisfiedIntervals());\n }\n\n return allSatisfiedIntervals;\n }", "Map<Long,LinkedList<Event>> getAllEvents(List<Long> inRequestIds);", "private void intervalsRootScan(SearchContext ctx, Intervals result) {\n\t\tfinal int dimension = numDim;\n\t\tfinal int[] mins = ctx.qmins;\n\t\tfinal int[] maxs = ctx.qmaxs;\n\t\tfinal SearchNode curNode = ctx.current();\n\t\tfinal int contained = curNode.contained;\n\t\tfinal int rootStart = curNode.rootStart;\n\t\tfinal int rootEnd = rootStart + curNode.width;\n\t\tfinal int notContained = dimension - Integer.bitCount(contained);;\n\t\tint intervalStart = -1;\n\t\tif (notContained == 1) {\n\t\t\t// sequential-scan on final dimension\n\t\t\tfinal int last1d = Integer.numberOfLeadingZeros(~contained);\n\t\t\tfinal int[] basearray = zoPoints[last1d];\n\t\t\tfinal int min = mins[last1d];\n\t\t\tfinal int max = maxs[last1d];\n\t\t\tfor (int j = rootStart; j < rootEnd; j++) {\n\t\t\t\tint val = basearray[j];\n\t\t\t\tif (val >= min && val <= max) {\n\t\t\t\t\tif (intervalStart < 0) {\n\t\t\t\t\t\tintervalStart = j;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (intervalStart >= 0) {\n\t\t\t\t\t\tresult.addRoot(intervalStart, j);\n\t\t\t\t\t\tintervalStart = -1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// sequential-scan on not contained dimensions\n\t\t\tfinal int[] dims = ctx.work1;\n\t\t\tfor (int ptr = 0, d = 0; d < dimension; d++) {\n\t\t\t\tif (contained << d < 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdims[ptr++] = d;\n\t\t\t}\n\t\t\tJLOOP: for (int j = rootStart; j < rootEnd; j++) {\n\t\t\t\tfor (int ptr = 0; ptr < notContained; ptr++) {\n\t\t\t\t\tfinal int d = dims[ptr];\n\t\t\t\t\tfinal int val = zoPoints[d][j];\n\t\t\t\t\tif (val < mins[d] || val > maxs[d]) {\n\t\t\t\t\t\tif (intervalStart >= 0) {\n\t\t\t\t\t\t\tresult.addRoot(intervalStart, j);\n\t\t\t\t\t\t\tintervalStart = -1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue JLOOP;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (intervalStart < 0) {\n\t\t\t\t\tintervalStart = j;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (intervalStart >= 0) {\n\t\t\tresult.addRoot(intervalStart, rootEnd);\n\t\t}\n\t}", "private VoltTable[] getTransactionData(long interval, final long now) {\n ParameterSet parameters = new ParameterSet();\n parameters.setParameters((byte)interval, now);\n \n return this.executeOncePerSite(SysProcFragmentId.PF_txnData,\n SysProcFragmentId.PF_txnDataAggregator,\n parameters);\n }", "boolean isInInterval(int baseIndex);", "private ArrayList<String> getRecurringEvents(long eventID,\n\t\t\tlong startMillis, long endMillis) {\n\n\t\tArrayList<String> eventList = new ArrayList<String>();\n\n\t\tfinal String[] INSTANCE_PROJECTION = new String[] { Instances.EVENT_ID, // 0\n\t\t\t\tInstances.BEGIN, // 1\n\t\t\t\tInstances.TITLE // 2\n\t\t};\n\n\t\t// The indices for the projection array above.\n\t\tfinal int PROJECTION_ID_INDEX = 0;\n\t\tfinal int PROJECTION_BEGIN_INDEX = 1;\n\t\tfinal int PROJECTION_TITLE_INDEX = 2;\n\n\t\tCursor cur = null;\n\t\tContentResolver cr = getContentResolver();\n\n\t\t// The ID of the recurring event whose instances you are searching\n\t\t// for in the Instances table\n\t\tString selection = Instances.EVENT_ID + \" = ?\";\n\t\tString[] selectionArgs = new String[] { \"\" + eventID };\n\n\t\t// Construct the query with the desired date range.\n\t\tUri.Builder builder = Instances.CONTENT_URI.buildUpon();\n\t\tContentUris.appendId(builder, startMillis);\n\t\tContentUris.appendId(builder, endMillis);\n\n\t\t// Submit the query\n\t\tcur = cr.query(builder.build(), INSTANCE_PROJECTION, selection,\n\t\t\t\tselectionArgs, null);\n\n\t\twhile (cur.moveToNext()) {\n\t\t\tString title = null;\n\n\t\t\t// Get the field values\n\t\t\ttitle = cur.getString(PROJECTION_TITLE_INDEX);\n\n\t\t\teventList.add(title);\n\t\t}\n\n\t\treturn eventList;\n\t}", "private List grepTopLevelEvents(Collection events) throws Exception {\n\t // Grep all events that are contained by other events\n\t Set containedEvents = new HashSet();\n\t GKInstance event = null;\n\t for (Iterator it = events.iterator(); it.hasNext();) {\n\t event = (GKInstance) it.next();\n\t if (event.getSchemClass().isValidAttribute(ReactomeJavaConstants.hasEvent)) {\n\t List components = event.getAttributeValuesList(ReactomeJavaConstants.hasEvent);\n\t if (components != null && components.size() > 0) { \n\t for (Iterator it1 = components.iterator(); it1.hasNext();) {\n\t GKInstance tmp = (GKInstance) it1.next();\n\t Boolean dnr = (Boolean) tmp.getAttributeValue(DO_NOT_RELEASE);\n\t if (dnr != null && !dnr.booleanValue())\n\t containedEvents.add(tmp);\n\t }\n\t }\n\t }\n\t }\n\t List topEvents = new ArrayList(events);\n\t topEvents.removeAll(containedEvents);\n\t return topEvents;\n\t}", "public interface OnSearchRecDataListener {\n\n public void OnSearchRecData(int startTime, int endTime, int recType, int index, int end);\n}", "ArrayList<HabitEvent> getHabitEvents();", "DataFrameEvents events();", "@Override\n public List<Score> findExperimentsBySnoTime(int sno) {\n String sql = \" select * from score where sno=? and eno in (select eno from experiment where now() between time and date_add(time,interval 180 minute))\";\n try {\n QueryRunner queryRunner = new QueryRunner(TransactionManager.getSource());\n return queryRunner.query(sql, new BeanListHandler<Score>(Score.class), sno);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "private int getNumberOfEventsByMinuteOrHour(boolean isByMinute) {\n int counter = 0;\n long currentTimeSeconds = getCurrentTimeInSeconds();\n long currentTimeIndex = (currentTimeSeconds - startTime) % SECONDS_IN_DAY;\n int timePeriod = isByMinute ? SECONDS_IN_MINUTE : SECONDS_IN_HOUR;\n\n if (currentTimeIndex + 1 - timePeriod >= 0) {\n for (int i = (int) currentTimeIndex; i > currentTimeIndex - timePeriod; i--) {\n synchronized (records[i]) {\n if (currentTimeSeconds - records[i].getLastTimeReset() < SECONDS_IN_DAY) {\n counter += records[i].getCount();\n }\n }\n }\n } else {\n for (int i = (int) currentTimeIndex; i >= 0; i--) {\n synchronized (records[i]) {\n if (currentTimeSeconds - records[i].getLastTimeReset() < SECONDS_IN_DAY) {\n counter += records[i].getCount();\n }\n }\n }\n\n for (int i = records.length - 1; i > records.length + currentTimeIndex - timePeriod; i--) {\n synchronized (records[i]) {\n if (currentTimeSeconds - records[i].getLastTimeReset() < SECONDS_IN_DAY) {\n counter += records[i].getCount();\n }\n }\n }\n }\n\n return counter;\n }", "ArrayList<HabitEvent> getHabitEvents(Habit forHabit);", "public void pollTest(int count, String region) {\r\n Date d = new Date();\r\n System.out.println(d.toString() + \" // \" + count + \" second interval // \" + region);\r\n }", "@Override\n public List<Event> searchByDay(Date day) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.dateBegin = :day \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"day\", day);\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }", "void parseEventList() {\n\t\tfor (int eventsId : events.keySet()) {\n\t\t\tfinal Event event = events.get(eventsId);\n\t\t\tif (users.get(event.getUser().getName()).isActiveStatus()\n\t\t\t\t\t&& !event.isViewed()\n\t\t\t\t\t&& event.getInnerSisdate().compareTo(\n\t\t\t\t\t\t\tnew GregorianCalendar()) >= 0) {\n\t\t\t\tevent.setViewed(true);\n\t\t\t\tfinal SimpleDateFormat fm = new SimpleDateFormat(\n\t\t\t\t\t\t\"dd.MM.yyyy-HH:mm:ss\");\n\t\t\t\tt.schedule(new TimerTask() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (event.isActive()) {\n\t\t\t\t\t\t\tgenerateEventMessage(\"User \"\n\t\t\t\t\t\t\t\t\t+ event.getUser().getName()\n\t\t\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t\t\t+ fm.format(event.getInnerSisdate()\n\t\t\t\t\t\t\t\t\t\t\t.getTime()) + \" \" + event.getText());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}, event.getInnerSisdate().getTime());\n\n\t\t\t}\n\t\t}\n\n\t}", "public List<TaskMaster> retrieveTasksForIntervalById(long userId, Calendar startTime, Calendar endTime);", "public void testGetSubIntervalCount() {\n TaskSeriesCollection tsc = createCollection3();\n }", "public List<PostEntity> getInterval(int auth_id, String token, int s, int c, String order, String query, String date) {\n\n\n if (sessionRepository.findAll().stream().anyMatch(session -> session.getUser_id() == auth_id && session.getToken().equals(token))) {\n\n List<ProviderEntity> providerList = userService.getProviderListForUser(auth_id, token, auth_id, 0, 10);\n\n StringBuilder sb = new StringBuilder();\n\n for(var provider : providerList)\n {\n sb.append(\"list=\").append(provider.getId()).append(\"&\");\n }\n\n System.out.println(sb.toString());\n return ingestionLinker.getInterval(s, c, sb.toString(), order, query, date);\n }\n\n return null;\n }", "public Collection<String> retrieveTraceEventInfoTracingIDWithGroup(Hashtable criteria)\n {\n String mn = \"retrieveTraceEventInfoTracingIDWithGroup\";\n \n Long fromStartDateTime = (Long)criteria.get(IArchiveConstant.CRITERIA_FROM_START_DATE_TIME);\n Long toStartDateTime = (Long)criteria.get(IArchiveConstant.CRITERIA_TO_START_DATE_TIME);\n String groupListInStr = (String)criteria.get(IArchiveConstant.GROUP_INFO);\n Collection<String> groupList = convertStrToCollection(groupListInStr);\n \n if(fromStartDateTime == null)\n throw new NullPointerException(\"[AuditTrailArchiveManager.archiveOrphanTraceEventInfo] fromStartDateTime can't be Null ...\");\n if(toStartDateTime == null)\n {\n throw new NullPointerException(\"[AuditTrailArchiveManager.archiveOrphanTraceEventInfo] toStartDateTime can't be Null ...\");\n } \n else\n {\n ArrayList<String> tracingIDsWithGroup = new ArrayList<String>();\n TraceEventInfoDAO dao = new TraceEventInfoDAO();\n \n List<String> tracingIDs = dao.getTraceEventInfoTracingIDByEventOccuredTime(new Date(fromStartDateTime), new Date(toStartDateTime));\n \n return filterTracingIDs(tracingIDs, true, groupList);\n }\n }", "@Override\r\n\t public int compareTo(Interval o) {\n\r\n\t SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t try{\r\n\t Date startDate = sdf.parse(start);\r\n\t Date endDate = sdf.parse(end);\r\n\t Date pstartDate = sdf.parse(o.start);\r\n\t Date pendDate = sdf.parse(o.end);\r\n\r\n\t return startDate.compareTo(pstartDate);\r\n\r\n\t }catch(Exception ex){\r\n\t ex.printStackTrace();\r\n\t }\r\n\t return 0;\r\n\t }", "private List<ComparisonExpression> comparisons(HashMap<TimeSelector, Long> lowerBounds,\n HashMap<TimeSelector, Long> upperBounds) {\n List<ComparisonExpression> newComparisons = new ArrayList<>();\n // for all selectors, as lowerBounds has the same keys as upperBounds\n for (Map.Entry<TimeSelector, Long> entry : lowerBounds.entrySet()) {\n TimeSelector selector = entry.getKey();\n Long lower = entry.getValue();\n Long upper = upperBounds.get(selector);\n if (lower.equals(upper)) {\n newComparisons.add(new ComparisonExpression(\n new Comparison(selector, EQ, new TimeLiteral(lower)),\n new ComparableTPGMFactory()));\n } else {\n if (lower > TemporalElement.DEFAULT_TIME_FROM) {\n // check if informative: lower bound of from is trivial lower bound of to\n if (selector.getTimeProp().equals(TX_TO)) {\n TimeSelector txFromSel = new TimeSelector(selector.getVariable(), TX_FROM);\n if (lowerBounds.getOrDefault(txFromSel, TemporalElement.DEFAULT_TIME_FROM).equals(lower)) {\n continue;\n }\n } else if (selector.getTimeProp().equals(VAL_TO)) {\n TimeSelector valFromSel = new TimeSelector(selector.getVariable(), VAL_FROM);\n if (lowerBounds.getOrDefault(valFromSel, TemporalElement.DEFAULT_TIME_FROM).equals(lower)) {\n continue;\n }\n }\n // informative => build comparison\n newComparisons.add(new ComparisonExpression(\n new Comparison(new TimeLiteral(lower), LTE, selector),\n new ComparableTPGMFactory()));\n }\n if (upper < TemporalElement.DEFAULT_TIME_TO) {\n // analagously as for lower bounds\n // upper bound of to is trivial upper of from\n if (selector.getTimeProp().equals(TimeSelector.TimeField.TX_FROM)) {\n TimeSelector txToSel = new TimeSelector(selector.getVariable(), TX_TO);\n if (upperBounds.getOrDefault(txToSel, TemporalElement.DEFAULT_TIME_TO).equals(upper)) {\n continue;\n }\n } else if (selector.getTimeProp().equals(TimeSelector.TimeField.VAL_FROM)) {\n TimeSelector valToSel = new TimeSelector(selector.getVariable(), VAL_TO);\n if (upperBounds.getOrDefault(valToSel, TemporalElement.DEFAULT_TIME_TO).equals(upper)) {\n continue;\n }\n }\n // informative => build comparison\n newComparisons.add(new ComparisonExpression(\n new Comparison(selector, LTE, new TimeLiteral(upper)),\n new ComparableTPGMFactory()));\n }\n }\n }\n return newComparisons;\n }", "public ArrayList<FbEvent> getOngoingEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" >= ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}", "List<EventDetail> selectByExample(EventDetail eventDetail);", "public int[] exclusiveTime(int n, List<String> logs) {\n Stack<Integer> s = new Stack<Integer>();\n \n int[] timeForFunctions = new int[n];\n \n // pre means the start of the interval\n int pre = 0;\n for (String l : logs) {\n String[] arr = l.split(\":\");\n int curTime = Integer.parseInt(arr[2]);\n \n if (arr[1].equals(\"start\")) {\n if (!s.isEmpty()) timeForFunctions[s.peek()] += curTime - pre;\n \n s.push(Integer.parseInt(arr[0]));\n pre = curTime;\n } else {\n int curFunctionId = s.pop();\n timeForFunctions[curFunctionId] += curTime - pre + 1;\n \n // arr[2] is end of current interval, belong to current interval. That's why we have +1 here\n pre = curTime + 1;\n // pre means the start of next interval, so we need to +1\n }\n }\n \n return timeForFunctions;\n }", "List<Schedule> selectByExampleWithRowbounds(ScheduleCriteria example, RowBounds rowBounds);", "@Test\n\tpublic void testListReservationsOfFacilityBeforeInterval() {\n\t\t// create a reservation\n\t\tCalendar cal = Calendar.getInstance();\n\n\t\t// list start is now\n\t\tDate listStart = cal.getTime();\n\t\tcal.add(Calendar.HOUR, 24);\n\t\t// list end is now + 24h\n\t\tDate listEnd = cal.getTime();\n\n\t\t// first reservation start date is 1 hour before list start\n\t\tcal.add(Calendar.HOUR, -26);\n\t\tDate reservation1StartDate = cal.getTime();\n\t\tcal.add(Calendar.HOUR, +1);\n\t\tDate reservation1EndDate = cal.getTime();\n\t\tdataHelper.createPersistedReservation(USER_ID, Arrays.asList(room1.getId()), reservation1StartDate,\n\t\t\t\treservation1EndDate);\n\n\t\t// should not find above reservation\n\t\tCollection<Reservation> reservationsOfFacility;\n\t\treservationsOfFacility = bookingManagement.listReservationsOfFacility(room1.getId(), listStart, listEnd);\n\n\t\tassertNotNull(reservationsOfFacility);\n\t\tassertTrue(reservationsOfFacility.isEmpty());\n\t}", "public interface Interval extends Comparable<Interval> {\n\n /**\n * Returns the start coordinate of this interval.\n * \n * @return the start coordinate of this interval\n */\n int getStart();\n\n /**\n * Returns the end coordinate of this interval.\n * <p>\n * An interval is closed-open. It does not include the returned point.\n * \n * @return the end coordinate of this interval\n */\n int getEnd();\n\n default int length() {\n return getEnd() - getStart();\n }\n\n /**\n * Returns whether this interval is adjacent to another.\n * <p>\n * Two intervals are adjacent if either one ends where the other starts.\n * \n * @param interval - the interval to compare this one to\n * @return <code>true</code> if the intervals are adjacent; otherwise\n * <code>false</code>\n */\n default boolean isAdjacent(Interval other) {\n return getStart() == other.getEnd() || getEnd() == other.getStart();\n }\n \n /**\n * Returns whether this interval overlaps another.\n * \n * This method assumes that intervals are contiguous, i.e., there are no\n * breaks or gaps in them.\n * \n * @param o - the interval to compare this one to\n * @return <code>true</code> if the intervals overlap; otherwise\n * <code>false</code>\n */\n default boolean overlaps(Interval o) {\n return getEnd() > o.getStart() && o.getEnd() > getStart();\n }\n \n /**\n * Compares this interval with another.\n * <p>\n * Ordering of intervals is done first by start coordinate, then by end\n * coordinate.\n * \n * @param o - the interval to compare this one to\n * @return -1 if this interval is less than the other; 1 if greater\n * than; 0 if equal\n */\n default int compareTo(Interval o) {\n if (getStart() > o.getStart()) {\n return 1;\n } else if (getStart() < o.getStart()) {\n return -1;\n } else if (getEnd() > o.getEnd()) {\n return 1;\n } else if (getEnd() < o.getEnd()) {\n return -1;\n } else {\n return 0;\n }\n }\n}", "public static MissingRangesStatistics getMissingRangeStatistics(TreeMap<LocalDateTime, Consumption> data, int interval) {\n return getMissingRangeStatistics(data, data.firstKey(), data.lastKey(), interval);\n }", "public void iterateEventList();", "private boolean isIntervalSelected(Date startDate, Date endDate)\n/* */ {\n/* 133 */ if (isSelectionEmpty()) return false;\n/* 134 */ return (((Date)this.selectedDates.first()).equals(startDate)) && (((Date)this.selectedDates.last()).equals(endDate));\n/* */ }", "public ArrayList<FbEvent> getPastEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" < ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}", "private PeriodicEvent getPeriod (ArrayList shiftGraph, int eventOffset)\n {\n int matchCount = 0;\n int bestMatchCount = 0;\n int bestPeriod = 0;\n\n int lastOffset = shiftGraph.size() - this.minPeriodLength;\n int periodOffset = 0;\n\n for (periodOffset = minPeriodLength; periodOffset < lastOffset; periodOffset++)\n {\n matchCount = 0;\n\n int lastComparisonIndex = shiftGraph.size() - periodOffset;\n for (int j = 0 ; j < lastComparisonIndex; j++)\n {\n Double staticElement = null;\n Double shiftElement = null;\n\n try\n {\n staticElement = (Double) shiftGraph.get (j);\n shiftElement = (Double) shiftGraph.get (j + periodOffset);\n }\n catch (Exception e)\n { ; }\n\n if (elementsAreEqual (staticElement, shiftElement))\n matchCount++;\n } // end for (j)\n\n if (matchCount > bestMatchCount)\n {\n bestMatchCount = matchCount;\n bestPeriod = periodOffset;\n } // end if\n\n } // end for (offset)\n\n ArrayList event = new ArrayList (bestPeriod);\n\n for (int i = 0; i < bestPeriod; i++)\n {\n Double elt = (Double) shiftGraph.get (i);\n event.add (i, elt);\n }\n\n PeriodicEvent pe = new PeriodicEvent ();\n pe.setOffset (eventOffset);\n pe.setPeriod (bestPeriod);\n pe.setEvent (event);\n\n return pe;\n }", "private void initEventList() {\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n calendar.add(Calendar.MINUTE, -1 * 60 * 12);\n startTime = calendar.getTimeInMillis();\n stopTime = System.currentTimeMillis();\n mSearchType = 0;\n eventType = AVIOCTRLDEFs.AVIOCTRL_EVENT_ALL;\n searchEventList(startTime, stopTime, eventType, mCameraChannel);\n }" ]
[ "0.59475887", "0.5614661", "0.5508879", "0.5321006", "0.5297015", "0.5282474", "0.52811164", "0.5228613", "0.5119456", "0.511037", "0.51051533", "0.5098456", "0.5097642", "0.5076535", "0.5062212", "0.5047648", "0.50300777", "0.50258124", "0.50153375", "0.4998075", "0.4969506", "0.49603015", "0.49547976", "0.49451265", "0.49441814", "0.49247518", "0.49210614", "0.49199796", "0.4918803", "0.4912978", "0.48905644", "0.48873886", "0.48770192", "0.4871836", "0.4859047", "0.48238295", "0.4818103", "0.48022166", "0.48000938", "0.47935373", "0.4787567", "0.47866085", "0.47858593", "0.47786725", "0.47743964", "0.47638315", "0.47610998", "0.47540843", "0.47457543", "0.47455692", "0.47437713", "0.47374573", "0.47291273", "0.47249353", "0.47153294", "0.47052565", "0.4698278", "0.46958196", "0.46854693", "0.46829945", "0.46777272", "0.46726406", "0.46704552", "0.4667871", "0.4653101", "0.465205", "0.46480924", "0.46412942", "0.46399462", "0.46370593", "0.4635204", "0.46261424", "0.4616168", "0.46140468", "0.46135342", "0.46127602", "0.4603383", "0.45946145", "0.4593439", "0.4586177", "0.45812014", "0.45783648", "0.45627615", "0.45550817", "0.45488492", "0.4545052", "0.45441362", "0.45436803", "0.4532137", "0.452843", "0.4518731", "0.4512202", "0.45117596", "0.4509166", "0.44983852", "0.44941413", "0.44886005", "0.4479924", "0.44790912", "0.44783238" ]
0.52493227
7
Find events from today
public ArrayList<Event> getEventsByToday() { ArrayList<Event> result = new ArrayList<Event>(); Calendar today = Calendar.getInstance(); for (int i = 0; i < events.size(); i++) { if (events.get(i).getInitial_date().get(Calendar.YEAR) == today.get(Calendar.YEAR) && events.get(i).getInitial_date().get(Calendar.MONTH) == today.get(Calendar.MONTH) && events.get(i).getInitial_date().get(Calendar.DAY_OF_MONTH) == today.get(Calendar.DAY_OF_MONTH)) { result.add(events.get(i)); } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Event> getCalendarEventsByDay()\n {\n ArrayList<Event> dayListOfEvents = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n if( (events.get(i).getCalendar().get(Calendar.YEAR) == currentCalendar.get(Calendar.YEAR)) &&\n (events.get(i).getCalendar().get(Calendar.MONTH) == currentCalendar.get(Calendar.MONTH)) &&\n (events.get(i).getCalendar().get(Calendar.DAY_OF_MONTH) == currentCalendar.get(Calendar.DAY_OF_MONTH)))\n {\n dayListOfEvents.add(events.get(i));\n }\n }\n\n return dayListOfEvents;\n }", "@Override\n public List<Event> searchByDay(Date day) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.dateBegin = :day \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"day\", day);\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }", "private List<Event> getEventsOnDate(Date date) {\r\n List<Event> eventsOnDate = new ArrayList<>();\r\n for (Event event : this.events) {\r\n if (event.getDate().equals(date)) {\r\n eventsOnDate.add(event);\r\n }\r\n }\r\n\r\n return eventsOnDate;\r\n }", "public ArrayList<Event> eventsInDay(LocalDate day) {\n ArrayList<Event> myList = new ArrayList<>();\n for (Event e : myAgenda) {\n if (e.isInDay(day)) {\n myList.add(e);\n }\n }\n return myList;\n }", "public ArrayList<Event> getEventsByPastDays(int days, Calendar today) {\n\t\tArrayList<Event> result = new ArrayList<Event>();\n\t\ttoday.add(Calendar.DATE, days * (-1));\n\t\tfor (int i = 0; i < events.size(); i++) {\n\t\t\tif (events.get(i).getInitial_date().get(Calendar.YEAR) == today.get(Calendar.YEAR)\n\t\t\t\t\t&& events.get(i).getInitial_date().get(Calendar.MONTH) == today.get(Calendar.MONTH)\n\t\t\t\t\t&& events.get(i).getInitial_date().get(Calendar.DAY_OF_MONTH) == today\n\t\t\t\t\t\t\t.get(Calendar.DAY_OF_MONTH)) {\n\t\t\t\tresult.add(events.get(i));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public abstract SortedSet<CalendarEvent> getEventsAt(User user, Date day);", "Collection<CalendarEvent> getActiveEvents(long when)\n{\n List<CalendarEvent> rslt = new ArrayList<CalendarEvent>();\n try {\n getAllEvents(when);\n rslt.addAll(cal_events);\n }\n catch (Exception e) {\n BasisLogger.logE(\"GOOGLECAL: problem getting events\",e);\n }\n return rslt;\n}", "List<Event> findAllBy();", "private void queryEvents() {\n ParseQuery<Event> query = ParseQuery.getQuery(Event.class);\n // include data referred by user key\n query.include(Event.KEY_HOST);\n // limit query to latest 20 items\n query.setLimit(30);\n // order posts by creation date (newest first)\n query.addDescendingOrder(\"createdAt\");\n // start an asynchronous call for events\n query.findInBackground(new FindCallback<Event>() {\n @Override\n public void done(List<Event> events, com.parse.ParseException e) {\n\n // check for errors\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n\n // for debugging purposes let's print every event description to logcat\n for (Event event : events) {\n Log.i(TAG, \"Event: \" + event.getDescription() + \", username: \" + event.getHost().getUsername());\n }\n\n // save received events to list and notify adapter of new data\n allEvents.addAll(events);\n }\n\n });\n }", "public List<Events> getAllSystemEventsListForAll();", "AbstractList<Event> getEventByCreateDate(Date d){\r\n\t\treturn events;\r\n\t}", "@Query(nativeQuery = true, value = \"select * from vamus.eventos where \" +\n \"ini_evento>=:inicio and fim_evento<=:fim\")\n List<EventoEntity> findByDate(@Param(\"inicio\") LocalDateTime ini,\n @Param(\"fim\") LocalDateTime fim);", "@Override\n public Set<Event> getNextEvents(LocalDateTime to) {\n return null;\n }", "public ArrayList<FbEvent> getOngoingEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" >= ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}", "public Vector<Event> getEventsInDay(Date par){\n Connection con = null;\n PreparedStatement st = null;\n ResultSet rs = null;\n Vector<Event> result = new Vector<Event>();\n try {\n //obtain the database connection by calling getConn()\n con = getConn();\n \n SimpleDateFormat format1 = new SimpleDateFormat(\"dd-MM-YY\");\n \n //build the sql statement\n String sql = \"select * from event where to_date('\" + format1.format(par) + \"','DD-MM-YY') \";\n sql+= \"between to_date(start_time,'DD-MM-YY') and to_date(end_time,'DD-MM-YY')\";\n \n \n //System.out.println(sql);\n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql that is constructed using the supplied parameters\n st = con.prepareCall(sql);\n \n \n //Calls executeQuery and the resulting data is returned in the resultset\n rs = st.executeQuery();\n \n //loop through the result set and save the data in the datamodel objects\n while (rs.next()){\n \n Event e = new Event(rs.getLong(\"id\"),rs.getString(\"id\") + \",\" + rs.getString(\"name\"),rs.getDate(\"start_time\"),rs.getDate(\"end_time\"));\n ;\n result.add(e);\n \n }\n \n }\n catch (SQLException e){\n e.printStackTrace();\n }\n //close the resultset,preparedstatement and connection to relase resources \n if (rs != null){\n try{\n rs.close();\n rs = null;\n }\n catch (SQLException e){\n \n }\n }\n if (st != null){\n try{\n st.close();\n st = null;\n }\n catch (SQLException e){\n \n }\n }\n \n \n \n if (con != null){\n try{\n con.close();\n con = null;\n }\n catch (SQLException e){\n \n }\n }\n return result;\n \n \n }", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n\n\n java.text.SimpleDateFormat toDateTime = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZ\");\n //Date todayDate = new Date();\n // String todayName = dayName.format(todayDate);\n\n java.util.Calendar calendar = java.util.Calendar.getInstance();\n\n calendar.setTime(nowToday);\n calendar.add(Calendar.HOUR, 2);\n Date twoFromNow = calendar.getTime();\n\n\n\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setTimeMax(new DateTime(twoFromNow, TimeZone.getDefault()))\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n // String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n\n // Only get events with exact start time set, exclude all day\n if (start != null) {\n eventStrings.add(\n String.format(\"%s //// %s)\", event.getSummary(), start));\n }\n\n\n }\n\n return eventStrings;\n }", "private ArrayList<Meeting> getTodayMeetings(ArrayList<Meeting> list) throws ParseException {\n DateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n String now = df.format(new Date());\n Date today = new SimpleDateFormat(\"dd/MM/yyyy\").parse(now);\n ArrayList<Meeting> relevant = new ArrayList<Meeting>();\n for(Meeting meeting : list){\n Date meetingDate = new SimpleDateFormat(\"dd/MM/yyyy\").parse(meeting.getDate().toString());\n if(meetingDate.compareTo(today)==0){\n relevant.add(meeting);\n }\n }\n return relevant;\n }", "public ArrayList<FbEvent> getPastEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" < ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}", "@Override\n\tpublic List<FilterStock> today() {\n\t\treturn filterStockRepo.findToday();\n\t}", "boolean findEvent(long when,String desc,Map<String,String> fields)\n{\n try {\n getAllEvents(when);\n }\n catch (Exception e) {\n BasisLogger.logE(\"Problem getting calendar events: \" + e,e);\n }\n\n EventMatcher em = new EventMatcher(desc);\t// might want to cache these\n for (CalEvent ce : cal_events) {\n // BasisLogger.logD(\"CALENDAR MATCH \" + ce + \" \" + ce.isCurrent(when) + \" \" + em.match(ce));\n if (!ce.isCurrent(when)) continue;\n if (em.match(ce)) {\n\t ce.getFields(fields);\n\t return true;\n }\n }\n\n\n return false;\n}", "public ArrayList<Event> getAllEventsFromDate(Calendar date)\r\n\t{\r\n\t\tArrayList<Event> eventsList = new ArrayList<Event>();\r\n\t\t\r\n\t\tfor(Event event : this.getAllEvents() )\r\n\t\t{\t\t\t\r\n\t\t\tif (event.getCalendar().get(Calendar.YEAR) == date.get(Calendar.YEAR) && \r\n\t\t\t\tevent.getCalendar().get(Calendar.MONTH)\t== date.get(Calendar.MONTH) && \r\n\t\t\t\tevent.getCalendar().get(Calendar.DATE) == date.get(Calendar.DATE))\r\n\t\t\t{\r\n\t\t\t\teventsList.add(event);\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn eventsList;\r\n\t}", "@WebMethod public Vector<Event> getEvents(Date date);", "public EventList getEventList(String date) {\n for (EventList e : events) {\n if (e.getDate().equals(date)) {\n return e;\n }\n }\n return null;\n }", "public List<CalendarEvent> getEventsOnDate(int p_year, int p_day, int p_month){\n String date = String.valueOf(p_day) + String.valueOf(p_month) + String.valueOf(p_year);\n LinkedList<CalendarEvent> returnList = new LinkedList<CalendarEvent>();\n\n if (!_events.containsKey(date)) { return returnList; }\n List<CalendarEvent> dayList = _events.get(date);\n\n for (CalendarEvent event : dayList) {\n if (returnList.size() == 0)\n returnList.add(event);\n else {\n int j = returnList.size();\n for (int i = 0; i < j; i++) {\n if (returnList.get(i).getTime() > event.getTime()) {\n returnList.add(i, event);\n break;\n }\n else if (i+1 == j)\n returnList.add(event);\n }\n\n }\n }\n\n return returnList;\n }", "@LogExceptions\n public synchronized List<Event> getEvents(String date) throws SQLException {\n Connection conn = DatabaseConnection.getConnection();\n \n try(PreparedStatement stmt = \n conn.prepareStatement(SELECT_EVENT_DATE))\n {\n stmt.setString(1, date);\n evtList.clear();\n try(ResultSet rs = stmt.executeQuery()) {\n while(rs.next()) {\n Event event = new Event();\n event.setID(rs.getInt(1));\n event.setEvent(rs.getString(2));\n event.setDescription(rs.getString(3));\n event.setLocation(rs.getString(4));\n event.setDate(rs.getString(5));\n event.setStart(rs.getString(9));\n event.setEnd(rs.getString(10));\n evtList.add(event);\n }\n } \n } \n return evtList;\n }", "private void getDataFromApi() throws IOException {\n DateTime now = new DateTime(System.currentTimeMillis());\n Events events = mService.events().list(\"primary\")\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n List<Event> items = events.getItems();\n ScheduledEvents scheduledEvents;\n EventsList.clear();\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n start = event.getStart().getDate();\n }\n DateTime end = event.getEnd().getDateTime();\n if (end == null) {\n end = event.getStart().getDate();\n }\n scheduledEvents = new ScheduledEvents();\n scheduledEvents.setEventId(event.getId());\n scheduledEvents.setDescription(event.getDescription());\n scheduledEvents.setEventSummery(event.getSummary());\n scheduledEvents.setLocation(event.getLocation());\n scheduledEvents.setStartDate(dateTimeToString(start));\n scheduledEvents.setEndDate(dateTimeToString(end));\n StringBuffer stringBuffer = new StringBuffer();\n if(event.getAttendees()!=null) {\n for (EventAttendee eventAttendee : event.getAttendees()) {\n if(eventAttendee.getEmail()!=null)\n stringBuffer.append(eventAttendee.getEmail() + \" \");\n }\n scheduledEvents.setAttendees(stringBuffer.toString());\n }\n else{\n scheduledEvents.setAttendees(\"\");\n }\n EventsList.add(scheduledEvents);\n }\n }", "@Override\r\n public List<Events> findAllEvents() {\r\n return em.createNamedQuery(\"Events.findAll\").getResultList();\r\n }", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and SUBSTRING(a.startMoment, 1, 10) = SUBSTRING(current_timestamp, 1, 10) order by a.startMoment asc\")\n\tCollection<Appointment> findAllTodayActiveByDoctor(int doctorId);", "public Collection<TimeRange> query(Collection<Event> events, MeetingRequest request) {\n if(request.getAttendees().isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n // nobody has time to meet for more than a day\n if(request.getDuration() > TimeRange.WHOLE_DAY.duration()){\n return Arrays.asList();\n }\n // if there're no already existing events, whole day is available, \n if(events.isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n\n Collection<String> listOfAttendees = request.getAttendees();\n List<TimeRange> unavailableTimes = getUnavailableTimesForAttendees(events, listOfAttendees);\n\n return getAvailableTimes(unavailableTimes, request.getDuration());\n }", "@WebMethod\t\r\n\tpublic Vector<Event> getEvents(Date date) {\r\n\t\tDataAccess dbManager=new DataAccess();\r\n\t\tVector<Event> events=dbManager.getEvents(date);\r\n\t\tdbManager.close();\r\n\t\treturn events;\r\n\t}", "public void getData() {\n\t\tcurrentDate = model.getCurrentDate();\n\t\tLocalDate firstDateOfMonth = LocalDate.of(currentDate.getYear(), currentDate.getMonthValue(), 1);\n\t\tevents = EventProcessor.filterEvents(model.getEvents(), firstDateOfMonth, firstDateOfMonth.plusMonths(1).minusDays(1));\n\t}", "public ArrayList<Event> remainingEventsForTheWeek() {\n\t\tArrayList<Event> result = new ArrayList();\n\n\t\tLocalDateTime now = this.now.get();\n\t\tLocalDate today = now.toLocalDate();\n\t\tLocalTime moment = now.toLocalTime();\n\t\tboolean after = false;\n\n\t\tdo {\n\t\t\tTreeSet<Event> todayEvents = this.events.get(today);\n\t\t\tif (todayEvents != null) {\n\t\t\t\t// Events are sorted\n\t\t\t\tfor (Event e: todayEvents) {\n\t\t\t\t\tif (after) {\n\t\t\t\t\t\tresult.add(e);\n\t\t\t\t\t} else if (e.startTime.compareTo(moment) >= 0) {\n\t\t\t\t\t\tresult.add(e);\n\t\t\t\t\t\tafter = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\tafter = true;\n\t\ttoday = today.plusDays(1);\n\t\t// Week ends on Sunday.\n\t\t} while (today.getDayOfWeek() != DayOfWeek.MONDAY);\n\n\t\treturn result;\n\t}", "@WebMethod public ArrayList<Event> getEvents(LocalDate date);", "List<Event> getAllEventsByTitle(String title);", "public ArrayList<Event> getCalendarEventsByMonth()\n {\n ArrayList<Event> monthListOfEvents = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n if( (events.get(i).getCalendar().get(Calendar.YEAR) == currentCalendar.get(Calendar.YEAR)) &&\n (events.get(i).getCalendar().get(Calendar.MONTH) == currentCalendar.get(Calendar.MONTH)))\n {\n monthListOfEvents.add(events.get(i));\n }\n }\n return monthListOfEvents;\n }", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n List<Event> items = events.getItems();\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n // All-day events don't have start times, so just use\n // the start date.\n start = event.getStart().getDate();\n }\n eventStrings.add(\n String.format(\"%s (%s)\", event.getSummary(), start));\n }\n return eventStrings;\n }", "@Path(\"/showAll\")\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List<EventData> getAllEvent() throws JSONException {\n\t\tString today_frm = DateUtil.getNow(DateUtil.SHORT_FORMAT_TYPE);\n\t\tList<Event> list = eventService.getEventsByType(today_frm,\n\t\t\t\tEventType.EVENTTODAY);\n\t\tList<EventData> d = null;\n\t\tif (null != list && list.size() > 0) {\n\t\t\td = getEventsByDateList(list);\n\t\t} else {\n\t\t\td = new ArrayList<EventData>();\n\t\t}\n\t\treturn d;\n\t}", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n Log.d(\"@@@@@LOOK HERE TIME@@\", show);\n Log.d(\"@@@@@LOOK HERE DATE@@\", show2);\n Log.d(\"@@@@@LOOK HERE DATETIME\", show3);\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n // All-day events don't have start times, so just use\n // the start date.\n start = event.getStart().getDate();\n }\n\n eventStrings.add(\n String.format(\"%s (%s)\", event.getSummary(), start));\n }\n List<String> realStrings = new ArrayList<String>();\n for (String a:eventStrings\n ) {\n // Log.d(\"@@@@\", a);\n String day;\n String korTimeSpeech = null;\n String newSpeech = null;\n day = a.substring(a.indexOf(\"(\"), a.indexOf(\")\"));\n day = day.substring(1);\n\n if(day.length() > 16) {\n int hour = Integer.parseInt(day.substring(11, 13));\n if(hour < 12) {\n korTimeSpeech = \"오전 \";\n } else{\n korTimeSpeech = \"오후 \";\n hour = hour - 12;\n }\n korTimeSpeech = korTimeSpeech + hour + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = korTimeSpeech + newSpeech;\n //Make it in day format\n day = day.substring(0, day.indexOf(\"T\"));\n }else {\n // korTimeSpeech = day.substring(11, 13) + \"시 \" + day.substring(14, 16) + \"분에 \";\n newSpeech = a.substring(0, a.indexOf(\"(\"));\n newSpeech = newSpeech;\n }\n\n if (day.equals(nowDay)) {\n realStrings.add(newSpeech);\n }\n }\n\n return realStrings;\n }", "public List<Task> getCesarTasksExpiringToday() {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tDate date = DateUtils.truncate(new Date(), Calendar.DATE);\n\t\tcalendar.setTime(date);\n\t\tint dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK);\n\t\tList<Task> tasks = taskRepository.getTaskByDateAndOwnerAndExpireAtTheEndOfTheDay(date,\n\t\t\t\tTVSchedulerConstants.CESAR, true);\n\t\tif (tasks.size() == 0) {\n\t\t\tTask task;\n\t\t\tswitch (dayOfWeek) {\n\t\t\tcase Calendar.SATURDAY:\n\t\t\t\ttask = new Task(\"Mettre la table\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Faire le piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Sortir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"jeu de Société\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Lecture\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.SUNDAY:\n\t\t\t\ttask = new Task(\"Faire du sport (piscine/footing)\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Sortir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Jouer tout seul\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Lecture\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Aider à faire le ménage\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Jeu de société\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"S'habiller\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.MONDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.TUESDAY:\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.WEDNESDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Aider à faire le ménage\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.THURSDAY:\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.FRIDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\treturn tasks;\n\t}", "@WebMethod\n\tpublic ExtendedIterator<Event> getEvents(Date date) {\n\t\tdbManager.open(false);\n\t\tVector<Event> events = (Vector<Event>) dbManager.getEvents(date);\n\t\tdbManager.close();\n\t\tExtendedIterator<Event> it = new IteratorDate(events);\n\t\treturn it;\n\t}", "public ArrayList<Event> getEventArray(int year, int month, int day){\n\t\t\tArrayList<Event> events = new ArrayList<Event>();\n\t\t\t\n\t\t\ttry{\n\t\t\t\tresultSet = statement.executeQuery(\"select eid, uid, name, startTime, endTime, description from Calendar where day=\"+day+\" and month=\"+month+\" and year=\"+year);\n\t\t\t\twhile (resultSet.next()){\n\t\t\t\t\tevents.add(new Event(resultSet.getString(3),month,day,year,resultSet.getString(4),resultSet.getString(5),resultSet.getString(6),Integer.parseInt(resultSet.getString(1)), Integer.parseInt(resultSet.getString(2))));\n\t\t\t\t}\n\t\t\t} catch (SQLException e1){\n\t\t\t\tSystem.out.println(\"SQL Exception.\");\n\t\t\t\te1.printStackTrace();\n\t\t\t} catch (Exception e2){\n\t\t\t\tSystem.out.println(\"I hope this doesn't happen\");\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\treturn events;\n\t\t}", "@WebMethod public boolean findEvent(String event, Date date);", "private void doRemoteSearch(String query) {\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.YEAR,2018);\n cal.set(Calendar.MONTH,12);\n\n String[] titles = {\"Search Party\", \"Lunchtime Search Basketball\", \"Search Games\", \"Pickup Soccer Search\"};\n\n for(int i = 0 ; i < 10; i++ ) {\n cal.set(Calendar.DAY_OF_MONTH,i);\n eventList.add(new Event(titles[i % titles.length], \"test description\", \"test host\", cal.getTime(),cal.getTime(), cal.getTime(), \"test category\", \"test URL\", \"test owner\", \"test location\"));\n }\n }", "public void getDateEvents(Connection connection, StoreData data){\n\t\t//The following code is used to prepare a sql statement to get all the events\n\t\tdata.resetSingle();\n\t\tPreparedStatement preStmt=null;\n\t\tString stmt = \"SELECT * FROM Event\";\n\t\t//prepares the date given to this method to be used to get the correct events \n\t\tString passedDate = data.getDate();\n\t\tSimpleDateFormat displayDate = new SimpleDateFormat(\"MM-dd-yyyy\");\n\t\tSimpleDateFormat dbDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tSimpleDateFormat theDay = new SimpleDateFormat(\"dd\");\n\t\tSimpleDateFormat month = new SimpleDateFormat(\"MM\");\n\t\tSimpleDateFormat year = new SimpleDateFormat(\"yyyy\");\n\t\tString formatSDate = null;\n\t\tString formatEDate = null;\n\t\tString sMonth = null;\n\t\tString eMonth = null;\n\t\tString sDay = null;\n\t\tString eDay = null;\n\t\tString curDay = null;\n\t\tString curMonth = null;\n\t\tint startD = 0;\n\t\tint endD = 0;\n\t\tint curD = 0;\n\t\tint startM = 0;\n\t\tint curM = 0;\n\t\tint endM = 0;\n\t\t\n\t\t//This try catch block is used to get the events that are returned based on\n\t\t//the dates that the event has\n\t\ttry{\n\t\t\tpreStmt = (PreparedStatement) connection.prepareStatement(stmt);\n\t\t\tResultSet rs = preStmt.executeQuery();\n\t\t\tStoreData newDay;\n\t\t\t//loops through all of the events storing the ones that have the matching dates\n\t\t\twhile(rs.next()){\n\t\t\t\tnewDay = new StoreData();\n\t\t\t\tString name = rs.getString(\"Name\");\n\t\t\t\tString description = rs.getString(\"Description\");\n\t\t\t\tString location = rs.getString(\"Location\");\n\t\t\t\tString date = rs.getString(\"Start_Date\");\n\t\t\t\tString endDate = rs.getString(\"End_Date\");\n\t\t\t\t//This try catch formats the dates to be used to check to see if they are correct\n\t\t\t\ttry {\n\n\t\t\t\t\tformatSDate = displayDate.format(dbDate.parse(date));\n\t\t\t\t\tformatEDate = displayDate.format(dbDate.parse(endDate));\n\t\t\t\t\tsDay = theDay.format(dbDate.parse(date));\n\t\t\t\t\teDay = theDay.format(dbDate.parse(endDate));\n\t\t\t\t\tcurDay = theDay.format(displayDate.parse(passedDate));\n\t\t\t\t\tsMonth = month.format(dbDate.parse(date));\n\t\t\t\t\teMonth = month.format(dbDate.parse(endDate));\n\t\t\t\t\tcurMonth = month.format(displayDate.parse(passedDate));\n\t\t\t\t\tstartD = Integer.parseInt(sDay);\n\t\t\t\t\tendD = Integer.parseInt(eDay);\n\t\t\t\t\tcurD = Integer.parseInt(curDay);\n\t\t\t\t\tstartM = Integer.parseInt(sMonth);\n\t\t\t\t\tcurM = Integer.parseInt(curMonth);\n\t\t\t\t\tendM = Integer.parseInt(eMonth);\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tString sTime = rs.getString(\"Start_Time\");\n\t\t\t\tString eTime = rs.getString(\"End_Time\");\n\t\t\t\tnewDay.setName(name);\n\t\t\t\tnewDay.setDescription(description);\n\t\t\t\tnewDay.setLocation(location);\n\t\t\t\tnewDay.setDate(date);\n\t\t\t\tnewDay.setEndDate(endDate);\n\t\t\t\tnewDay.setSTime(sTime);\n\t\t\t\tnewDay.setETime(eTime);\n\t\t\t\t//stores the events that match the date that was given\n\t\t\t\tif(curD >= startD && curD <= endD && curM == startM){\n\t\t\t\t\tdata.addDayEvent(newDay);\n\t\t\t\t}else if(startM < curM && curM == endM && curD <= endD){\n\t\t\t\t\tdata.addDayEvent(newDay);\n\t\t\t\t}else if(curD < startD || curD > endD){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Man you got problems now\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void getDaysEvents(int userid, int day, int month, int year) {\r\n\t\t// Populate DaysEventsListIDs, DaysEventsListStartHour, DaysEventsListStopHour, DaysEventsListStartMin, DaysEventsListStopMin, DaysEventsListTitles\r\n\t\teventList.clear();\r\n\t\tEventList myEvent = new EventList();\r\n\t\ttry {\r\n\t\t Statement statement = connection.createStatement();\r\n\t\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\t\t ResultSet rs = statement.executeQuery(\r\n\t\t \t\t \"select id, starthour, startmin, stophour, stopmin, title, details from events where userid = \" + userid\r\n\t\t \t\t + \" and day = \" + day\r\n\t\t \t\t + \" and month = \" + month\r\n\t\t \t\t + \" and year = \" + year\r\n\t\t \t\t + \" order by starthour, startmin\");\r\n\t\t while(rs.next())\r\n\t\t {\r\n\t\t \tmyEvent = new EventList();\r\n\t\t // read the result set\r\n\t\t \tmyEvent.eid = rs.getInt(\"id\");\r\n\t\t \tmyEvent.starthour = rs.getInt(\"starthour\");\r\n\t\t \tmyEvent.startmin = rs.getInt(\"startmin\");\r\n\t\t \tmyEvent.stophour = rs.getInt(\"stophour\");\r\n\t\t \tmyEvent.stopmin = rs.getInt(\"stopmin\");\r\n\t\t \tmyEvent.title = rs.getString(\"title\");\r\n\t\t \tmyEvent.details = rs.getString(\"details\");\r\n\t\t \teventList.add(myEvent);\r\n\t\t }\r\n\t\t\t}\r\n\t\t catch(SQLException e)\r\n\t\t {\r\n\t\t // if the error message is \"out of memory\", \r\n\t\t // it probably means no database file is found\r\n\t\t System.err.println(e.getMessage());\r\n\t\t \r\n\t\t }\r\n\t\t\r\n\t\t//Query DB to get those details.\r\n\t}", "@FXML\n public void todaySelected() {\n ArrayList<Interview> todayInterviews = new ArrayList<>();\n for (Interview it : this.interviewer.getPendingInterviews()) {\n Date itDate = it.getDate();\n if (itDate.getYear() == new Date().getYear() &&\n itDate.getMonth() == new Date().getMonth() &&\n itDate.getDay() == new Date().getDay()) {\n todayInterviews.add(it);\n }\n }\n this.populateListInterview(todayInterviews);\n }", "public static ArrayList<Date> events(Task task, Date start, Date end){\n ArrayList<Date> dates = new ArrayList<>();\n for (Date i = task.nextTimeAfter(start); !end.before(i); i = task.nextTimeAfter(i))\n dates.add(i);\n return dates;\n }", "public List<Event> getEvents() {\n List<Event> events = new ArrayList<>();\n\n Query query = new Query(\"Event\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID eventId = UUID.fromString(idString);\n String speaker = (String) entity.getProperty(\"speaker\");\n String organization = (String) entity.getProperty(\"organization\");\n String eventDate = (String) entity.getProperty(\"eventDate\");\n Location location = (Location) entity.getProperty(\"location\");\n List<String> amenities = getAmenities(eventId);\n String externalLink = (String) entity.getProperty(\"externalLink\");\n PublicType publicType = (PublicType) entity.getProperty(\"publicType\");\n long ownerId = (long) entity.getProperty(\"ownerId\");\n List<ThreadComment> thread = getThread(eventId);\n // long timeStamp = (long) entity.getProperty(\"timestamp\");\n\n Event event = new Event(eventId, speaker, organization, eventDate, location, amenities, externalLink,\n publicType, ownerId);\n event.copyThread(thread);\n events.add(event);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading event.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return events;\n }", "public List<List<PvPEvent>> defineNextEvents(String day, int serverHour, List<\n PvPEvent> events) {\n String[] days = defineDaysLine(day);\n\n List<List<PvPEvent>> testDefinedEvents = new ArrayList<>();\n List<PvPEvent> innerEventsCurrent = new ArrayList<>();\n List<PvPEvent> innerEvents1h = new ArrayList<>();\n List<PvPEvent> innerEvents2h = new ArrayList<>();\n List<PvPEvent> innerEvents3h = new ArrayList<>();\n\n for (int i = 0; i < 10; i++) {\n innerEventsCurrent.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n innerEvents1h.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n innerEvents2h.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n innerEvents3h.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n }\n\n for (PvPEvent e : events) {\n String currentDay = days[0];\n for (int i = 0; i < e.getTime().size(); i++) {\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (serverHour == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < serverHour && e.getTime().get(i).getEndTime() > serverHour) &&\n e.getTime().get(i).getEndTime() < serverHour + 3) {\n if (innerEventsCurrent.size() == 10) {\n innerEventsCurrent.clear();\n }\n innerEventsCurrent.add(e);\n }\n if ((serverHour + 1) == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < (serverHour + 1) && e.getTime().get(i).getEndTime() > (serverHour + 1) &&\n e.getTime().get(i).getEndTime() < serverHour + 4)) {\n if (innerEvents1h.size() == 10) {\n innerEvents1h.clear();\n }\n innerEvents1h.add(e);\n }\n if ((serverHour + 2) == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < (serverHour + 2) && e.getTime().get(i).getEndTime() > (serverHour + 2) &&\n e.getTime().get(i).getEndTime() < serverHour + 5)) {\n if (innerEvents2h.size() == 10) {\n innerEvents2h.clear();\n }\n innerEvents2h.add(e);\n }\n if ((serverHour + 3) == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < (serverHour + 3) && e.getTime().get(i).getEndTime() > (serverHour + 3) &&\n e.getTime().get(i).getEndTime() < serverHour + 6)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n }\n\n if (serverHour == 21) {\n currentDay = days[1];\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (0 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n }\n }\n if (serverHour == 22) {\n currentDay = days[1];\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (0 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n if (1 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents2h.size() == 10) {\n innerEvents2h.clear();\n }\n innerEvents2h.add(e);\n }\n }\n }\n if (serverHour == 23) {\n currentDay = days[1];\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (0 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n if (1 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents2h.size() == 10) {\n innerEvents2h.clear();\n }\n innerEvents2h.add(e);\n }\n if (2 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents1h.size() == 10) {\n innerEvents1h.clear();\n }\n innerEvents1h.add(e);\n }\n }\n }\n }\n }\n\n testDefinedEvents.add(0, innerEventsCurrent);\n testDefinedEvents.add(1, innerEvents1h);\n testDefinedEvents.add(2, innerEvents2h);\n testDefinedEvents.add(3, innerEvents3h);\n\n return testDefinedEvents;\n }", "boolean hasFromDay();", "@GetMapping(\"/events/search/{eventName}\")\n public List<Events> searchEvent(@PathVariable String eventName) {\n return eventsRepository.findEventsByEventName(eventName);\n }", "public ArrayList<Event> getCalendarEventsByWeek()\n {\n ArrayList<Event> weekListOfEvents = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n if( (events.get(i).getCalendar().get(Calendar.YEAR) == currentCalendar.get(Calendar.YEAR)) &&\n (events.get(i).getCalendar().get(Calendar.MONTH) == currentCalendar.get(Calendar.MONTH)) &&\n (events.get(i).getCalendar().get(Calendar.WEEK_OF_MONTH) == currentCalendar.get(Calendar.WEEK_OF_MONTH)))\n {\n weekListOfEvents.add(events.get(i));\n }\n }\n return weekListOfEvents;\n }", "Collection<Campanha> findInVigencia(Date fimVigencia, Date inicioVigencia);", "public List<Task> getTaskForToday() {\n\t\tDate currentDate = DateUtils.truncate(new Date(), Calendar.DATE);\n\n\t\tgetCesarTasksExpiringToday();\n\t\tgetHomeTasksExpiringToday();\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.add(Calendar.HOUR, -2);\n\t\tList<Task> tasksPermanentTasks = taskRepository\n\t\t\t\t.getTaskByExpireAtTheEndOfTheDayAndCompletionDateAfterOrCompletionDateIsNullOrderByDoneAsc(false,\n\t\t\t\t\t\tcalendar.getTime());\n\t\tList<Task> tasksTemp = taskRepository\n\t\t\t\t.getTaskByExpireAtTheEndOfTheDayAndDateAndCompletionDateAfterOrderByDoneAsc(true, currentDate,\n\t\t\t\t\t\tcalendar.getTime());\n\t\ttasksPermanentTasks.addAll(tasksTemp);\n\t\treturn tasksPermanentTasks;\n\t}", "@Override\r\n public Collection<EventBean> findAllEvents(String idTxoko) throws BusinessLogicException{\n return null;\r\n }", "public DefaultListModel<Event> getAllEventsFromDateDLM(Calendar date)\r\n\t{\r\n\t\tDefaultListModel<Event> eventsList = new DefaultListModel<Event>();\r\n\t\t\r\n\t\tArrayList<Event> list = this.getAllEventsFromDate(date);\r\n\t\tlist.sort(null);\r\n\t\t\r\n\t\tfor(Event event : list )\r\n\t\t{\t\t\t\r\n\t\t\teventsList.addElement(event);\r\n\t\t}\r\n\t\t\r\n\t\treturn eventsList;\r\n\t}", "private boolean isToday(Calendar currentCal){\n return currentCal.get(Calendar.DATE) == Calendar.getInstance().get(Calendar.DATE)\n && currentCal.get(Calendar.MONTH) == Calendar.getInstance().get(Calendar.MONTH)\n && currentCal.get(Calendar.YEAR) == Calendar.getInstance().get(Calendar.YEAR);\n }", "public void setTodayCalendar()\n {\n this.currentCalendar = Calendar.getInstance();\n }", "@NonNull\n public static List<EventItem> getEvents(Context context, int id) throws SecurityException {\n List<EventItem> list = new ArrayList<>();\n if (!Permissions.checkPermission(context, Permissions.READ_CALENDAR, Permissions.WRITE_CALENDAR)) {\n return list;\n }\n ContentResolver contentResolver = context.getContentResolver();\n Cursor c = contentResolver.query(CalendarContract.Events.CONTENT_URI,\n new String[]{CalendarContract.Events.TITLE,\n CalendarContract.Events.DESCRIPTION,\n CalendarContract.Events.DTSTART,\n CalendarContract.Events.DTEND,\n CalendarContract.Events.RRULE,\n CalendarContract.Events.RDATE,\n CalendarContract.Events._ID,\n CalendarContract.Events.CALENDAR_ID,\n CalendarContract.Events.ALL_DAY},\n CalendarContract.Events.CALENDAR_ID + \"='\" + id + \"'\",\n null, \"dtstart ASC\");\n if (c != null && c.moveToFirst()) {\n do {\n String title = c.getString(c.getColumnIndex(CalendarContract.Events.TITLE));\n String description = c.getString(c.getColumnIndex(CalendarContract.Events.DESCRIPTION));\n String rrule = c.getString(c.getColumnIndex(CalendarContract.Events.RRULE));\n String rDate = c.getString(c.getColumnIndex(CalendarContract.Events.RDATE));\n int calendarId = c.getInt(c.getColumnIndex(CalendarContract.Events.CALENDAR_ID));\n int allDay = c.getInt(c.getColumnIndex(CalendarContract.Events.ALL_DAY));\n long dtStart = c.getLong(c.getColumnIndex(CalendarContract.Events.DTSTART));\n long dtEnd = c.getLong(c.getColumnIndex(CalendarContract.Events.DTEND));\n long eventID = c.getLong(c.getColumnIndex(CalendarContract.Events._ID));\n list.add(new EventItem(title, description, rrule, rDate,\n calendarId, allDay, dtStart, dtEnd, eventID));\n } while (c.moveToNext());\n c.close();\n }\n return list;\n }", "public Observable getEvents(){\n QBRequestGetBuilder requestBuilder = new QBRequestGetBuilder();\n requestBuilder.sortDesc(\"startDate\");\n return makeObservable(requestBuilder);\n }", "public String getEvents(int year, int month, int day){\n\t\tString result = \"\";\n\t\ttry{\n\t\t\tresultSet = statement.executeQuery(\"select eid, uid, name, startTime, endTime, description from Calendar where day=\"+day+\" and month=\"+month+\" and year=\"+year);\n\t\t\twhile (resultSet.next()){\n\t\t\t\tresult +=(resultSet.getInt(1)+\"|\"+resultSet.getInt(2)+\"|\"+resultSet.getString(3)+\"|\"+resultSet.getString(4)+\"|\"+resultSet.getString(5)+\"|\"+resultSet.getString(6)+\"\\n\");\n\t\t\t}\n\t\t} catch (SQLException e1){\n\t\t\tSystem.out.println(\"SQL Exception.\");\n\t\t\te1.printStackTrace();\n\t\t} catch (Exception e2){\n\t\t\tSystem.out.println(\"I hope this doesn't happen\");\n\t\t\te2.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public static List<Event> loadEvents() throws JSONException {\n \t\t\n \t\tString data = getJSON(Constants.GOOGLEEVENTS);\n \t\t\n \t\tJSONObject json_obj = new JSONObject(data).getJSONObject(\"feed\");\n \t\tJSONArray json_arr = json_obj.getJSONArray(\"entry\");\n \t\t\t\n \t\tList<Event> events = new ArrayList<Event>();\n \t\t\t\n \t\t//Collection the right content from JSON\n \t\tfor (int i = 0; i < json_arr.length(); i++){\n \t\t\tString title = json_arr.getJSONObject(i).getJSONObject(\"title\").optString(\"$t\");\n \t\t\tString description = json_arr.getJSONObject(i).getJSONObject(\"content\").optString(\"$t\");\n \t\t\tString time = json_arr.getJSONObject(i).getJSONArray(\"gd$when\").getJSONObject(0).optString(\"startTime\");\n \t\t\tString where = json_arr.getJSONObject(i).getJSONArray(\"gd$where\").getJSONObject(0).optString(\"valueString\");\n \t\t\t\t\n \t\t\t//If time is not an all day event\n \t\t\tif(time.length() > \"1967-09-03\".length()){\n \t\t\t\ttime = fromDate(time);\n \t\t\t}\n \t\t\t\n \t\t\t//Add events if it has i title\n \t\t\tif (!title.equals(\"\")){\n \t\t\t\tevents.add(new Event(title, description, where, time + \". \"));\n \t\t\t}\n \t\t}\t\n \t\treturn events;\n \t}", "public List<Task> getTaskForToday(String owner) {\n\n\t\tList<Task> tasksEOD = null;\n\t\tif (owner.equals(TVSchedulerConstants.CESAR)) {\n\t\t\ttasksEOD = getCesarTasksExpiringToday();\n\t\t} else if (owner.equals(TVSchedulerConstants.HOME)) {\n\t\t\ttasksEOD = getHomeTasksExpiringToday();\n\t\t}\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.add(Calendar.HOUR, -2);\n\t\tList<Task> tasksPermanentTasks = taskRepository\n\t\t\t\t.getTaskByOwnerAndExpireAtTheEndOfTheDayAndCompletionDateAfter(owner, false, calendar.getTime());\n\t\tList<Task> tasks = tasksEOD;\n\t\ttasks.addAll(tasksPermanentTasks);\n\t\tDate date = DateUtils.truncate(new Date(), Calendar.DATE);\n\t\ttasksPermanentTasks = taskRepository.getTaskByDateAndOwnerAndExpireAtTheEndOfTheDayAndDone(date, owner, false,\n\t\t\t\ttrue);\n\t\ttasks.addAll(tasksPermanentTasks);\n\t\treturn tasks;\n\t}", "@Override\n public Flux<PersistentAuditEvent> findAllByAuditEventDateBetween(Instant fromDate, Instant toDate, Pageable pageable) {\n OffsetDateTime fromDateH2 = OffsetDateTime.ofInstant(fromDate, ZoneId.systemDefault());\n OffsetDateTime toDateH2 = OffsetDateTime.ofInstant(toDate, ZoneId.systemDefault());\n Criteria criteria = Criteria\n .where(\"event_date\").greaterThan(fromDateH2)\n .and(\"event_date\").lessThan(toDateH2);\n return findAllFromSpec(select().matching(criteria).page(pageable));\n }", "public List<Event> getEventsList() {\n List<Event> eventDetails = eventRepository.findAll();\n return eventDetails;\n }", "public List<Meal> findMealsToday()\n\t{\n\t\tDate date = DateUtil.removeTime(new Date());\n\t\treturn mealRepository.findByDateOfServing(date);\n\t}", "public EventList getEvents(String userName) {\n try {\n PreparedStatement s = sql.prepareStatement(\"SELECT userId, eventName, startMonth, startDay, startYear, startHour, startMinute\" +\n \", endMonth, endDay, endYear, endHour, endMinute FROM Events WHERE userId=?\");\n s.setInt(1, getIdOfUser(userName));\n s.execute();\n ResultSet results = s.getResultSet();\n\n EventList events = new EventList();\n if (!results.isBeforeFirst()) {\n return events;\n }\n\n while (!results.isLast()) {\n results.next();\n Event e = new Event(userName, results.getString(2),\n results.getInt(3), results.getInt(4), results.getInt(5),\n results.getInt(6), results.getInt(7), results.getInt(8),\n results.getInt(9), results.getInt(10), results.getInt(11),\n results.getInt(12));\n events.add(e);\n }\n results.close();\n s.close();\n events.sort();\n\n return events;\n } catch (SQLException e) {\n System.err.println(\"SQLE\");\n sqlException(e);\n return null;\n }\n }", "private static List<Event> filterEvents(List<Event> allEvents) {\n Set<String> myLocations = MainActivity.getPreferences()\n .getStringSet(LOCATIONS_INTEREST.get(), null);\n if (myLocations != null) {\n List<Event> result = new ArrayList<>();\n for (Event event : allEvents) {\n String location = event.getLocation().getName();\n if (myLocations.contains(location)) {\n result.add(event);\n }\n }\n return result;\n }\n return allEvents;\n }", "private void findNearByEvents() {\n LatLng latLng = mMapFragment.getCenterOfScreen();\n double longitude = latLng.longitude;\n double latitude = latLng.latitude;\n\n int spEventsPosition = mEventsSpinner.getSelectedItemPosition();\n int spTimesPosition = mTimesSpinner.getSelectedItemPosition();\n\n Log.e(\"MainAct\", \"Lat: \" + latitude + \" Lon: \" + longitude);\n mEventInteractor = new EventInteractor(this);\n EventSearchRequest eventSearchRequest = new EventSearchRequest();\n eventSearchRequest.setLat(String.valueOf(latitude));\n eventSearchRequest.setLon(String.valueOf(longitude));\n eventSearchRequest.setEventTime(spTimesPosition);\n eventSearchRequest.setEventType(spEventsPosition);\n mEventInteractor.eventSearch(eventSearchRequest, new EventSearchListener() {\n @Override\n public void onEventSearch(EventSearchResponse response) {\n mBottomSheetListFragment.refreshEvents(response.getEvents());\n mMapFragment.getEventsAndPin(response.getEvents());\n }\n\n @Override\n public void onError(String errorMessage) {\n showErrorMessage(errorMessage);\n }\n\n @Override\n public void onBeforeRequest() {\n showWaitingDialog();\n }\n\n @Override\n public void onAfterRequest() {\n dismissWaitingDialog();\n }\n });\n }", "ScheduledEvents getScheduledEvents();", "DescribeEventsResult describeEvents(DescribeEventsRequest describeEventsRequest);", "public Cliente[] findWhereFechaRegistroEquals(Date fechaRegistro) throws ClienteDaoException;", "public List<Employee> findEmployeesForServiceByDate(LocalDate date) {\n DayOfWeek dayOfWeek = date.getDayOfWeek();\n\n List<Employee> employeeAvailable = new ArrayList<>();\n\n List<Employee> allEmployees = employeeRepository.findAll();\n for (Employee employee: allEmployees) {\n // Check if employee is available on given days and posses certain skills\n if(employee.getDaysAvailable().contains(dayOfWeek)) {\n employeeAvailable.add(employee);\n }\n }\n\n return employeeAvailable;\n }", "public static List<Events> retrieveEvents() {\n Connection conn = null;\n PreparedStatement stmt = null;\n ResultSet rs = null;\n String sql = \"\";\n List<Events> results = new ArrayList<>();\n\n try {\n conn = ConnectionManager.getConnection();\n\n sql = \"SELECT eventID, eventName, eventDate, eventOwner, eventPriority, eventDeadline, eventProcessStatus, eventLocation, comments FROM \" + TBLNAME;\n stmt = conn.prepareStatement(sql);\n\n rs = stmt.executeQuery();\n\n while (rs.next()) {\n //Retrieve by column name\n String eventID = rs.getString(\"eventID\");\n String eventName = rs.getString(\"eventName\");\n Date eventDate = rs.getDate(\"eventDate\");\n String eventOwner = rs.getString(\"eventOwner\");\n String eventPriority = rs.getString(\"eventPriority\");\n Date eventDeadline = rs.getDate(\"eventDeadline\");\n String eventProcessStatus = rs.getString(\"eventProcessStatus\");\n String eventLocation = rs.getString(\"eventLocation\");\n String comments = rs.getString(\"comments\");\n\n Events obj = new Events(eventID, eventName, eventDate, eventOwner, eventPriority, eventDeadline, eventProcessStatus, eventLocation, comments);\n results.add(obj);\n }\n\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n } finally {\n ConnectionManager.close(conn, stmt, rs);\n\n }\n return results;\n }", "public ArrayList<Event> getEventsForUser(String uid) {\r\n // Gets the events collection and creates a query string for host ID\r\n MongoCollection<Document> events = mongoDB.getCollection(\"Events\");\r\n Document query = new Document(\"hostID\", new ObjectId(uid));\r\n ArrayList<Event> list = new ArrayList<>();\r\n for (Event e : events.find(query, Event.class)) {\r\n list.add(e);\r\n }\r\n return list;\r\n }", "public void goToToday() {\n goToDate(today());\n }", "Date getEventFiredAt();", "public Page<Event> findEventsByAppModuleId(Long moduleId , Pageable pageable);", "public List findByDate( String queryDeadline );", "@Query(\"\"\"\n select distinct pe from ProgrammingExercise pe\n where pe.releaseDate > :#{#now}\n or pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#now}\n or (pe.assessmentType <> 'AUTOMATIC' and pe.dueDate > :#{#now})\n \"\"\")\n List<ProgrammingExercise> findAllToBeScheduled(@Param(\"now\") ZonedDateTime now);", "private boolean checkIfHabitDoneToday() {\n ArrayList<HabitEvent> eventList = habit_type.getHabitEvents();\n Locale locale = new Locale(\"English\", \"Canada\");\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"EEEE',' MMMM d',' yyyy\", locale);\n String currentDate = simpleDateFormat.format(new Date());\n Calendar calendar = Calendar.getInstance();\n int dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK);\n if (dayOfWeek == 1) {\n dayOfWeek = 8;\n }\n if (!habit_type.getWeeklyPlan()[dayOfWeek - 2]) {\n return true;\n }\n for (HabitEvent event : eventList) {\n if (currentDate.equals(event.getCompletionDateString())) {\n return true;\n }\n }\n return false;\n }", "boolean hasOrderByDay();", "public abstract List<DailyFollowEventCount> getDailyFollowEventsForBrand(\n\t\t\tString foursquareId, Date start, Date stop);", "public Set<EventTO> getEvents() {\n\n Iterable<Event> events = eventRepository.findAll();\n LOGGER.info(\"Returning all events\");\n return mapperService.convertToEventTO(events);\n\n }", "public List<Events> getAllEventsAndHistoryForUser(long userId);", "@Override\n public List<Event> searchByInterval(Date leftDate, Date rightDate) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.dateBegin BETWEEN :leftDate and :rightDate \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"leftDate\", leftDate)\n .setParameter(\"rightDate\", rightDate);\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }", "@Override\n public Collection<CoreEventInfo> getEvents(final Collection<BwCalendar> calendars,\n final FilterBase filter,\n final BwDateTime startDate, final BwDateTime endDate,\n final List<String> retrieveList,\n RecurringRetrievalMode recurRetrieval,\n final boolean freeBusy) throws CalFacadeException {\n recurRetrieval = defaultRecurringRetrieval(recurRetrieval,\n startDate, endDate);\n\n if (debug) {\n trace(\"getEvents for start=\" + startDate + \" end=\" + endDate);\n }\n\n Collection<String> colPaths = null;\n\n if (calendars != null) {\n colPaths = new ArrayList<String>();\n for (BwCalendar c: calendars) {\n colPaths.add(c.getPath());\n\n if (debug) {\n trace(\" calendar:\" + c.getPath());\n }\n }\n }\n\n FieldnamesList retrieveListFields = null;\n\n if (retrieveList != null) {\n // Convert property names to field names\n retrieveListFields = new FieldnamesList(retrieveList.size() +\n FieldNamesMap.reqFlds.size());\n\n for (String pname: retrieveList) {\n FieldNamesEntry fent = FieldNamesMap.getEntry(pname);\n\n if ((fent == null) || (fent.getMulti())) {\n // At this stage it seems better to be inefficient\n retrieveListFields = null;\n break;\n }\n\n retrieveListFields.add(fent);\n }\n\n if (retrieveListFields != null) {\n retrieveListFields.addAll(FieldNamesMap.reqFlds);\n }\n }\n\n /* eventsQuery covers some of what is outlined here.\n *\n * 1. Get events and annotations in range and satisfying the filter.\n * If there is a date range exclude the recurring master events as they\n * turn up later attached to the instances.\n *\n * If there is no date range we will not expand recurrences so we need\n * to send master events and overrrides.\n *\n * We also exclude overrides to recurring instances.\n *\n * If no date range was supplied we now have all the master events.\n * Otherwise we have all the non-recurring events\n * (XXX or recurring reference by an annotation???)\n *\n * 2. If there is a date range supplied, get all instances in date range and\n * add their masters to the set.\n *\n * 3. If there is a date range supplied, get all overrides in date range and\n * add their masters to the set.\n *\n * 4. For each event\n * 4a. if not recurring add to result\n * 4b. if recurring {\n * if expanding\n * find all instances (in range) and add to result set\n * else {\n * find all overrides (in override range if supplied)\n * find all instances (IF instance range)\n * attach them to the master\n * add master to set.\n * }\n * }\n *\n * Some points to remind ourselves. We have to fetch overides and instances\n * because the master may be out of the range of a date limited query - usually\n * is, but we need the master to construct a proxy.\n *\n * We could probably just use the overrides and instances obtained in\n * steps 2 and 3 except for the CalDAV complications which allow a different\n * date range for overrides and instances.\n */\n\n int desiredAccess = privRead;\n if (freeBusy) {\n // DORECUR - freebusy events must have enough info for expansion\n desiredAccess = privReadFreeBusy;\n }\n\n EventsQueryResult eqr = new EventsQueryResult();\n eqr.flt = new Filters(filter);\n eqr.colPaths = colPaths;\n\n eventsQuery(eqr, startDate, endDate,\n retrieveListFields,\n freeBusy,\n null, // master\n null, // masters\n null, // uids\n getEvents);\n\n Collection<CoreEventInfo> ceis = postGetEvents(eqr.es, desiredAccess,\n returnResultAlways,\n null);\n\n /* Now get the annotations - these are not overrides */\n eventsQuery(eqr, startDate, endDate,\n retrieveListFields,\n freeBusy,\n null, // master\n null, // masters\n null, // uids\n getAnnotations);\n\n if (!eqr.es.isEmpty()) {\n ceis.addAll(postGetEvents(eqr.es, desiredAccess, returnResultAlways,\n eqr.flt));\n }\n\n ceis = getRecurrences(eqr, ceis,\n startDate, endDate,\n retrieveListFields, recurRetrieval, desiredAccess,\n freeBusy);\n\n return buildVavail(ceis);\n }", "public ArrayList<Event> getCalendarEventsBetween(Calendar startingDate, Calendar endingDate)\n {\n ArrayList<Event> list = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n Calendar eventCalendar = events.get(i).getCalendar();\n\n if(isSame(startingDate, eventCalendar) || isSame(endingDate, eventCalendar) ||\n (eventCalendar.before(endingDate) && eventCalendar.after(startingDate)))\n {\n list.add(events.get(i));\n }\n }\n return list;\n }", "@WebMethod public List<Event> getAllEvents();", "private ArrayList<Event> getSemesterOneEvents(EventList eventList) throws PacException {\n ArrayList<Event> list = new ArrayList<>();\n for (int i = 0; i < eventList.list.size(); i++) {\n Event event = eventList.find(i);\n if (event.dateTimeIsParsed()) {\n if (event.getMonth() > 6) {\n list.add(event);\n }\n }\n }\n return list;\n }", "public ArrayList<Meeting> getHistoryMeetings(ArrayList<Meeting> list) throws ParseException {\n DateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n String now = df.format(new Date());\n Date today = new SimpleDateFormat(\"dd/MM/yyyy\").parse(now);\n ArrayList<Meeting> relevant = new ArrayList<Meeting>();\n for(Meeting meeting : list){\n Date meetingDate = new SimpleDateFormat(\"dd/MM/yyyy\").parse(meeting.getDate().toString());\n if(meetingDate.before(today)){\n relevant.add(meeting);\n }\n }\n return relevant;\n }", "@Override\n public ArrayList<Meal> findMealsByDate(LocalDateTime dateTime) {\n ArrayList<Meal> meals = new ArrayList<Meal>();\n// SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\n// _context.meals.stream()\n// .forEach(meal -> {\n// if (formatter.format(meal.getDateTime()).equals(formatter.format(dateTime)))\n// meals.add(meal);\n// });\n return meals;\n }", "public ArrayList<CampusEvent> fetchEvents() {\n SQLiteDatabase dbObj = getReadableDatabase();\n ArrayList<CampusEvent> entryList = new ArrayList<CampusEvent>();\n\n Cursor cursor = dbObj.query(TABLE_EVENT_ENTRIES, mColumnList, null,\n null, null, null, null);\n\n while (cursor.moveToNext()) {\n CampusEvent event = cursorToEvent(cursor);\n entryList.add(event);\n }\n\n cursor.close();\n dbObj.close();\n\n return entryList;\n }", "ArrayList<HabitEvent> getHabitEvents();", "public List<Event> getEvents(int offset, int limit) throws DBException {\n DBTransaction transaction = dbService.getTransaction();\n List<Event> result =\n transaction.getObjects(Event.class, \"select e from Event e\", null, offset, limit);\n\n transaction.close();\n return result;\n }", "public List<String> getDates() {\n\n List<String> listDate = new ArrayList<>();\n\n Calendar calendarToday = Calendar.getInstance();\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH);\n String today = simpleDateFormat.format(calendarToday.getTime());\n\n Calendar calendarDayBefore = Calendar.getInstance();\n calendarDayBefore.setTime(calendarDayBefore.getTime());\n\n int daysCounter = 0;\n\n while (daysCounter <= 7) {\n\n if (daysCounter == 0) { // means that its present day\n listDate.add(today);\n } else { // subtracts 1 day after each pass\n calendarDayBefore.add(Calendar.DAY_OF_MONTH, -1);\n Date dateMinusOneDay = calendarDayBefore.getTime();\n String oneDayAgo = simpleDateFormat.format(dateMinusOneDay);\n\n listDate.add(oneDayAgo);\n\n }\n\n daysCounter++;\n }\n\n return listDate;\n\n }", "@SuppressWarnings(\"unchecked\")\n public List<ConnectionMeterEvent> findConnectionMeterEventsForPeriod(LocalDate fromDate, LocalDate endDate) {\n StringBuilder queryString = new StringBuilder();\n queryString.append(\"SELECT cme FROM ConnectionMeterEvent cme \");\n queryString.append(\" WHERE cme.dateTime >= :fromDate \");\n // it is inclusive because i add a day to the endDate\n queryString.append(\" AND cme.dateTime < :endDate \");\n\n Query query = getEntityManager().createQuery(queryString.toString());\n query.setParameter(\"fromDate\", fromDate.toDateMidnight().toDateTime().toDate(), TemporalType.TIMESTAMP);\n query.setParameter(\"endDate\", endDate.plusDays(1).toDateMidnight().toDateTime().toDate(), TemporalType.TIMESTAMP);\n\n return query.getResultList();\n }", "public String arrangeEvents() throws Exception {\n JSONArray scheduledEventList = calObj.retrieveEvents(\"primary\").getJSONArray(\"items\");\n JSONArray unScheduledEventList = calObj.retrieveEvents(this.user.getCalId()).getJSONArray(\"items\");\n\n //Filter events for this week\n\n\n //Make a list of all events\n\n //Prioritise all unscheduled events\n\n\n //Send the list to client to display\n String events = \"\";\n for (int i = 0; i < scheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = scheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n // Unscheduled events set in bot created aPAS calendar\n for (int i = 0; i < unScheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = unScheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n return events;\n }", "@Override\n\t@Transactional(readOnly = true)\n\tpublic List<Event> findEvents(String keyWords, Long categoryId,\n\t\t\tint startIndex, int count) throws InstanceNotFoundException {\n\t\tif(categoryId != null){ //boolCategory's already false\n\t\t\tif (!categoryDao.exists(categoryId))\n\t\t\t\tthrow new InstanceNotFoundException(categoryId, Category.class.getName());\n\t\t}\n\t\t\n\t\treturn eventDao.findByKeyWordsCategoryUser(keyWords, categoryId, startIndex, count);\n\t}", "List<Event> selectByExample(EventExample example);" ]
[ "0.6688916", "0.6682348", "0.66068923", "0.64983237", "0.6410274", "0.63257587", "0.6232764", "0.6201207", "0.6063173", "0.605349", "0.6045616", "0.60407144", "0.60333174", "0.6030411", "0.6002431", "0.59970427", "0.5987703", "0.5912305", "0.5893207", "0.58798", "0.5849246", "0.58074397", "0.5790825", "0.5751613", "0.5718783", "0.5701793", "0.5668993", "0.56422955", "0.56325305", "0.56248474", "0.56200063", "0.5619134", "0.5577896", "0.5553208", "0.55528146", "0.55473375", "0.5545709", "0.55431193", "0.55130076", "0.5508398", "0.5486683", "0.5473718", "0.5450445", "0.54472685", "0.54466265", "0.5445997", "0.5438419", "0.5434827", "0.5432916", "0.5426974", "0.5390368", "0.5384103", "0.5372305", "0.535961", "0.53309375", "0.53299993", "0.532096", "0.5314816", "0.53126615", "0.5310831", "0.53030133", "0.53029037", "0.52941", "0.5275749", "0.52719915", "0.5258788", "0.5249621", "0.5248478", "0.52454525", "0.5237203", "0.5233728", "0.5232688", "0.5216724", "0.5210725", "0.52070814", "0.5196298", "0.5189483", "0.5187617", "0.5185873", "0.51804334", "0.5179371", "0.5170517", "0.51632917", "0.51503855", "0.51493156", "0.5148972", "0.5148523", "0.5144819", "0.51306874", "0.5123213", "0.5117895", "0.51151997", "0.51119375", "0.5109521", "0.51087356", "0.5097886", "0.50963247", "0.5094767", "0.5089997", "0.506537" ]
0.76968944
0
Find events by past days
public ArrayList<Event> getEventsByPastDays(int days, Calendar today) { ArrayList<Event> result = new ArrayList<Event>(); today.add(Calendar.DATE, days * (-1)); for (int i = 0; i < events.size(); i++) { if (events.get(i).getInitial_date().get(Calendar.YEAR) == today.get(Calendar.YEAR) && events.get(i).getInitial_date().get(Calendar.MONTH) == today.get(Calendar.MONTH) && events.get(i).getInitial_date().get(Calendar.DAY_OF_MONTH) == today .get(Calendar.DAY_OF_MONTH)) { result.add(events.get(i)); } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<FbEvent> getPastEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" < ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}", "private List<Event> getEventsOnDate(Date date) {\r\n List<Event> eventsOnDate = new ArrayList<>();\r\n for (Event event : this.events) {\r\n if (event.getDate().equals(date)) {\r\n eventsOnDate.add(event);\r\n }\r\n }\r\n\r\n return eventsOnDate;\r\n }", "public ArrayList<Event> getEventsByToday() {\n\t\tArrayList<Event> result = new ArrayList<Event>();\n\t\tCalendar today = Calendar.getInstance();\n\t\tfor (int i = 0; i < events.size(); i++) {\n\t\t\tif (events.get(i).getInitial_date().get(Calendar.YEAR) == today.get(Calendar.YEAR)\n\t\t\t\t\t&& events.get(i).getInitial_date().get(Calendar.MONTH) == today.get(Calendar.MONTH)\n\t\t\t\t\t&& events.get(i).getInitial_date().get(Calendar.DAY_OF_MONTH) == today.get(Calendar.DAY_OF_MONTH)) {\n\t\t\t\tresult.add(events.get(i));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "Date NearestPrevEvent(Date d);", "public abstract SortedSet<CalendarEvent> getEventsAt(User user, Date day);", "@Override\n public Set<Event> getNextEvents(LocalDateTime to) {\n return null;\n }", "Date NearestEvent(Date d);", "AbstractList<Event> getEventByCreateDate(Date d){\r\n\t\treturn events;\r\n\t}", "public ArrayList<Event> getCalendarEventsByDay()\n {\n ArrayList<Event> dayListOfEvents = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n if( (events.get(i).getCalendar().get(Calendar.YEAR) == currentCalendar.get(Calendar.YEAR)) &&\n (events.get(i).getCalendar().get(Calendar.MONTH) == currentCalendar.get(Calendar.MONTH)) &&\n (events.get(i).getCalendar().get(Calendar.DAY_OF_MONTH) == currentCalendar.get(Calendar.DAY_OF_MONTH)))\n {\n dayListOfEvents.add(events.get(i));\n }\n }\n\n return dayListOfEvents;\n }", "@Override\n public List<Event> searchByDay(Date day) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.dateBegin = :day \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"day\", day);\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }", "public ArrayList<Event> remainingEventsForTheWeek() {\n\t\tArrayList<Event> result = new ArrayList();\n\n\t\tLocalDateTime now = this.now.get();\n\t\tLocalDate today = now.toLocalDate();\n\t\tLocalTime moment = now.toLocalTime();\n\t\tboolean after = false;\n\n\t\tdo {\n\t\t\tTreeSet<Event> todayEvents = this.events.get(today);\n\t\t\tif (todayEvents != null) {\n\t\t\t\t// Events are sorted\n\t\t\t\tfor (Event e: todayEvents) {\n\t\t\t\t\tif (after) {\n\t\t\t\t\t\tresult.add(e);\n\t\t\t\t\t} else if (e.startTime.compareTo(moment) >= 0) {\n\t\t\t\t\t\tresult.add(e);\n\t\t\t\t\t\tafter = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\tafter = true;\n\t\ttoday = today.plusDays(1);\n\t\t// Week ends on Sunday.\n\t\t} while (today.getDayOfWeek() != DayOfWeek.MONDAY);\n\n\t\treturn result;\n\t}", "private void deletePastEvents() {\n Date now = new Date(); //gets the current date\n ArrayList<Integer> listofEventIDS = eventManager.getListOfEventIDs(); //gets list of all eventIDs in the system\n //checks every eventID, and if its in the past, then deletes everything related to that event\n for (Integer eventID: listofEventIDS) {\n //if the event happened before right now, delete the event, and remove all attendees that are attending that event, organizer, speaker and free up the room.\n if (eventManager.getEvent(eventID).getTime().before(now)){\n ArrayList<String> peopleAttending = eventManager.getEvent(eventID).getAttendees(); //list of userid of all people attending\n\n for (String attendeeID: peopleAttending){\n //check if attendee is a organizer attending the event\n if (organizerManager.userExist(attendeeID)){\n organizerManager.removeEvent(eventID, attendeeID);\n }\n //if its not a organizer, it must be a attendee\n else {\n attendeeManager.removeEvent(eventID,attendeeID);\n }\n }\n //NOTE: THIS WORKS RIGHT NOW BECAUSE WE ONLY HAVE 1 SPEAKER, IN PHASE 2 WE WILL HAVE MULTIPLE SPEAKERS\n speakerManager.getSpeaker(eventManager.getEvent(eventID).getSpeakerID()).removeAssignEvent(eventID);\n String organizerOfThisEvent = eventManager.getEvent(eventID).getOrganizerID(); //gets the userid of the organizer of this event\n //in the organizer's list of events that he/she created, this event is removed.\n organizerManager.removeEvent(eventID, organizerOfThisEvent);\n //removes the event from the room. NOTE THIS IS NOT NECESSARY AS YOU WILL NEVER BE ABLE TO ASSIGN A ROOM IN THE PAST, BUT JUST AS A SAFETY MEASURE.\n roomManager.removeEventFromRoom(eventManager.getEvent(eventID).getLocation(), eventID, eventManager.getTime(eventID));\n // and finally removes the event object itself from the event manager.\n eventManager.removeEvent(eventID);\n }\n }\n }", "public List<Events> getMostUpcomingUserEvents(long userId);", "public ArrayList<Event> eventsInDay(LocalDate day) {\n ArrayList<Event> myList = new ArrayList<>();\n for (Event e : myAgenda) {\n if (e.isInDay(day)) {\n myList.add(e);\n }\n }\n return myList;\n }", "public List<CalendarEvent> getEventsOnDate(int p_year, int p_day, int p_month){\n String date = String.valueOf(p_day) + String.valueOf(p_month) + String.valueOf(p_year);\n LinkedList<CalendarEvent> returnList = new LinkedList<CalendarEvent>();\n\n if (!_events.containsKey(date)) { return returnList; }\n List<CalendarEvent> dayList = _events.get(date);\n\n for (CalendarEvent event : dayList) {\n if (returnList.size() == 0)\n returnList.add(event);\n else {\n int j = returnList.size();\n for (int i = 0; i < j; i++) {\n if (returnList.get(i).getTime() > event.getTime()) {\n returnList.add(i, event);\n break;\n }\n else if (i+1 == j)\n returnList.add(event);\n }\n\n }\n }\n\n return returnList;\n }", "public static boolean deletePastEvents (Event event){\r\n\t int currentDate = getCurrentDate();\r\n\t int date = event.date;\r\n\t if (date<currentDate){\r\n\t\t masterEventsFile.remove(event.getEventLine());\r\n\t\t return true;\r\n\t }\r\n\t return false;\r\n }", "public List<WeatherModel> getPastWeather(int days) {\n List<WeatherModel> pastWeather = weatherDAO.getWeatherForLastDays(days);\n Collections.reverse(pastWeather);\n return pastWeather;\n }", "List<Event> findAllBy();", "public List<Order> retrieveOrders1DayAgo( Date currentDate ) throws OrderException;", "public List<PluginStatsEvent> getPastEvents() {\n\t\tsynchronized (queue) {\n\t\t\tPluginStatsEvent[] info = new PluginStatsEvent[queue.size()];\n\t\t\tList<PluginStatsEvent> returnList = new ArrayList<PluginStatsEvent>();\n\t\t\tCollections.addAll(returnList, queue.toArray(info));\n\t\t\treturn returnList;\n\t\t}\n\t}", "@WebMethod public Vector<Event> getEvents(Date date);", "public List findByDate( String queryDeadline );", "Date PrevEvent(Date d);", "boolean hasOrderByDay();", "public EventList getEventList(String date) {\n for (EventList e : events) {\n if (e.getDate().equals(date)) {\n return e;\n }\n }\n return null;\n }", "public Vector<Event> getEventsInDay(Date par){\n Connection con = null;\n PreparedStatement st = null;\n ResultSet rs = null;\n Vector<Event> result = new Vector<Event>();\n try {\n //obtain the database connection by calling getConn()\n con = getConn();\n \n SimpleDateFormat format1 = new SimpleDateFormat(\"dd-MM-YY\");\n \n //build the sql statement\n String sql = \"select * from event where to_date('\" + format1.format(par) + \"','DD-MM-YY') \";\n sql+= \"between to_date(start_time,'DD-MM-YY') and to_date(end_time,'DD-MM-YY')\";\n \n \n //System.out.println(sql);\n //create the PreparedStatement from the Connection object by calling prepareCall\n //method, passing it the sql that is constructed using the supplied parameters\n st = con.prepareCall(sql);\n \n \n //Calls executeQuery and the resulting data is returned in the resultset\n rs = st.executeQuery();\n \n //loop through the result set and save the data in the datamodel objects\n while (rs.next()){\n \n Event e = new Event(rs.getLong(\"id\"),rs.getString(\"id\") + \",\" + rs.getString(\"name\"),rs.getDate(\"start_time\"),rs.getDate(\"end_time\"));\n ;\n result.add(e);\n \n }\n \n }\n catch (SQLException e){\n e.printStackTrace();\n }\n //close the resultset,preparedstatement and connection to relase resources \n if (rs != null){\n try{\n rs.close();\n rs = null;\n }\n catch (SQLException e){\n \n }\n }\n if (st != null){\n try{\n st.close();\n st = null;\n }\n catch (SQLException e){\n \n }\n }\n \n \n \n if (con != null){\n try{\n con.close();\n con = null;\n }\n catch (SQLException e){\n \n }\n }\n return result;\n \n \n }", "Collection<CalendarEvent> getActiveEvents(long when)\n{\n List<CalendarEvent> rslt = new ArrayList<CalendarEvent>();\n try {\n getAllEvents(when);\n rslt.addAll(cal_events);\n }\n catch (Exception e) {\n BasisLogger.logE(\"GOOGLECAL: problem getting events\",e);\n }\n return rslt;\n}", "public Collection<TimeRange> query(Collection<Event> events, MeetingRequest request) {\n if(request.getAttendees().isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n // nobody has time to meet for more than a day\n if(request.getDuration() > TimeRange.WHOLE_DAY.duration()){\n return Arrays.asList();\n }\n // if there're no already existing events, whole day is available, \n if(events.isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n\n Collection<String> listOfAttendees = request.getAttendees();\n List<TimeRange> unavailableTimes = getUnavailableTimesForAttendees(events, listOfAttendees);\n\n return getAvailableTimes(unavailableTimes, request.getDuration());\n }", "public List<Events> getAllEventsAndHistoryForUser(long userId);", "Deque<Event> getEvents(long inId);", "@Query(nativeQuery = true, value = \"select * from vamus.eventos where \" +\n \"ini_evento>=:inicio and fim_evento<=:fim\")\n List<EventoEntity> findByDate(@Param(\"inicio\") LocalDateTime ini,\n @Param(\"fim\") LocalDateTime fim);", "public ArrayList<FbEvent> getOngoingEvents() throws SQLException {\n\t\tArrayList<FbEvent> events = new ArrayList<FbEvent>();\n\t\tSQLiteDatabase db = tableHelper.getReadableDatabase();\n\t\ttry {\n\t\t\tCursor cursor = db.query(SQLTablesHelper.MY_EVENT_TABLE_NAME, columns,\n\t\t\t\t\tSQLTablesHelper.MY_EVENT_START_TIME + \" >= ?\",\n\t\t\t\t\tnew String[] {String.valueOf(TimeFrame.getUnixTime(TimeFrame.getTodayDate()))}, \n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\twhile (!cursor.isAfterLast()) {\n\t\t\t\tFbEvent event = cursorToEvent(cursor);\n\t\t\t\tevents.add(event);\n\t\t\t\tcursor.moveToNext();\n\t\t\t}\n\t\t\tcursor.close();\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t\treturn events;\n\t}", "List<Event> selectByExample(EventExample example);", "public List<List<PvPEvent>> defineNextEvents(String day, int serverHour, List<\n PvPEvent> events) {\n String[] days = defineDaysLine(day);\n\n List<List<PvPEvent>> testDefinedEvents = new ArrayList<>();\n List<PvPEvent> innerEventsCurrent = new ArrayList<>();\n List<PvPEvent> innerEvents1h = new ArrayList<>();\n List<PvPEvent> innerEvents2h = new ArrayList<>();\n List<PvPEvent> innerEvents3h = new ArrayList<>();\n\n for (int i = 0; i < 10; i++) {\n innerEventsCurrent.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n innerEvents1h.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n innerEvents2h.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n innerEvents3h.add(new PvPEvent(Const.NO_EVENT_ID, getString(R.string.no_event_name)));\n }\n\n for (PvPEvent e : events) {\n String currentDay = days[0];\n for (int i = 0; i < e.getTime().size(); i++) {\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (serverHour == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < serverHour && e.getTime().get(i).getEndTime() > serverHour) &&\n e.getTime().get(i).getEndTime() < serverHour + 3) {\n if (innerEventsCurrent.size() == 10) {\n innerEventsCurrent.clear();\n }\n innerEventsCurrent.add(e);\n }\n if ((serverHour + 1) == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < (serverHour + 1) && e.getTime().get(i).getEndTime() > (serverHour + 1) &&\n e.getTime().get(i).getEndTime() < serverHour + 4)) {\n if (innerEvents1h.size() == 10) {\n innerEvents1h.clear();\n }\n innerEvents1h.add(e);\n }\n if ((serverHour + 2) == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < (serverHour + 2) && e.getTime().get(i).getEndTime() > (serverHour + 2) &&\n e.getTime().get(i).getEndTime() < serverHour + 5)) {\n if (innerEvents2h.size() == 10) {\n innerEvents2h.clear();\n }\n innerEvents2h.add(e);\n }\n if ((serverHour + 3) == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getBeginTime() < (serverHour + 3) && e.getTime().get(i).getEndTime() > (serverHour + 3) &&\n e.getTime().get(i).getEndTime() < serverHour + 6)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n }\n\n if (serverHour == 21) {\n currentDay = days[1];\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (0 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n }\n }\n if (serverHour == 22) {\n currentDay = days[1];\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (0 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n if (1 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents2h.size() == 10) {\n innerEvents2h.clear();\n }\n innerEvents2h.add(e);\n }\n }\n }\n if (serverHour == 23) {\n currentDay = days[1];\n if (currentDay.equals(e.getTime().get(i).getDay())) {\n if (0 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents3h.size() == 10) {\n innerEvents3h.clear();\n }\n innerEvents3h.add(e);\n }\n if (1 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents2h.size() == 10) {\n innerEvents2h.clear();\n }\n innerEvents2h.add(e);\n }\n if (2 == e.getTime().get(i).getBeginTime() ||\n (e.getTime().get(i).getEndTime() == 2)) {\n if (innerEvents1h.size() == 10) {\n innerEvents1h.clear();\n }\n innerEvents1h.add(e);\n }\n }\n }\n }\n }\n\n testDefinedEvents.add(0, innerEventsCurrent);\n testDefinedEvents.add(1, innerEvents1h);\n testDefinedEvents.add(2, innerEvents2h);\n testDefinedEvents.add(3, innerEvents3h);\n\n return testDefinedEvents;\n }", "@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>olderThanEnlistedSince = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getAge() > 21 && patient.getEnlistmentDate().after(new Date(01-01-2020))){\n olderThanEnlistedSince.add(patient);\n }else {\n System.out.println(\"No patients older than 21 enlisted after 1.1.2020.\");\n }\n });\n }\n\n return olderThanEnlistedSince;\n }", "public List<String> getDates() {\n\n List<String> listDate = new ArrayList<>();\n\n Calendar calendarToday = Calendar.getInstance();\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd\", Locale.ENGLISH);\n String today = simpleDateFormat.format(calendarToday.getTime());\n\n Calendar calendarDayBefore = Calendar.getInstance();\n calendarDayBefore.setTime(calendarDayBefore.getTime());\n\n int daysCounter = 0;\n\n while (daysCounter <= 7) {\n\n if (daysCounter == 0) { // means that its present day\n listDate.add(today);\n } else { // subtracts 1 day after each pass\n calendarDayBefore.add(Calendar.DAY_OF_MONTH, -1);\n Date dateMinusOneDay = calendarDayBefore.getTime();\n String oneDayAgo = simpleDateFormat.format(dateMinusOneDay);\n\n listDate.add(oneDayAgo);\n\n }\n\n daysCounter++;\n }\n\n return listDate;\n\n }", "public boolean hasPast();", "boolean findEvent(long when,String desc,Map<String,String> fields)\n{\n try {\n getAllEvents(when);\n }\n catch (Exception e) {\n BasisLogger.logE(\"Problem getting calendar events: \" + e,e);\n }\n\n EventMatcher em = new EventMatcher(desc);\t// might want to cache these\n for (CalEvent ce : cal_events) {\n // BasisLogger.logD(\"CALENDAR MATCH \" + ce + \" \" + ce.isCurrent(when) + \" \" + em.match(ce));\n if (!ce.isCurrent(when)) continue;\n if (em.match(ce)) {\n\t ce.getFields(fields);\n\t return true;\n }\n }\n\n\n return false;\n}", "public List<Events> getAllSystemEventsListForAll();", "@Override\n public List<Event> searchByInterval(Date leftDate, Date rightDate) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.dateBegin BETWEEN :leftDate and :rightDate \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"leftDate\", leftDate)\n .setParameter(\"rightDate\", rightDate);\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }", "private void queryEvents() {\n ParseQuery<Event> query = ParseQuery.getQuery(Event.class);\n // include data referred by user key\n query.include(Event.KEY_HOST);\n // limit query to latest 20 items\n query.setLimit(30);\n // order posts by creation date (newest first)\n query.addDescendingOrder(\"createdAt\");\n // start an asynchronous call for events\n query.findInBackground(new FindCallback<Event>() {\n @Override\n public void done(List<Event> events, com.parse.ParseException e) {\n\n // check for errors\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n\n // for debugging purposes let's print every event description to logcat\n for (Event event : events) {\n Log.i(TAG, \"Event: \" + event.getDescription() + \", username: \" + event.getHost().getUsername());\n }\n\n // save received events to list and notify adapter of new data\n allEvents.addAll(events);\n }\n\n });\n }", "List<Event> fetchRecentEvents(User user, int limit) throws PersistenceException, InvalidArgumentException;", "@Query(\n value = \"SELECT d\\\\:\\\\:date\\n\" +\n \"FROM generate_series(\\n\" +\n \" :startDate\\\\:\\\\:timestamp without time zone,\\n\" +\n \" :endDate\\\\:\\\\:timestamp without time zone,\\n\" +\n \" '1 day'\\n\" +\n \" ) AS gs(d)\\n\" +\n \"WHERE NOT EXISTS(\\n\" +\n \" SELECT\\n\" +\n \" FROM bookings\\n\" +\n \" WHERE bookings.date_range @> d\\\\:\\\\:date\\n\" +\n \" );\",\n nativeQuery = true)\n List<Date> findAvailableDates(@Param(\"startDate\") LocalDate startDate, @Param(\"endDate\") LocalDate endDate);", "public List<Food> getFoodsAfterDateTime(LocalDateTime dateTime) {\n List<FoodEntry> entriesAfterDateTime = FoodListManager.filterListByDate(foodEntries, dateTime);\n return FoodListManager.convertListToFoods(entriesAfterDateTime);\n }", "@Query(\"\"\"\n select distinct pe from ProgrammingExercise pe\n where pe.releaseDate > :#{#now}\n or pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#now}\n or (pe.assessmentType <> 'AUTOMATIC' and pe.dueDate > :#{#now})\n \"\"\")\n List<ProgrammingExercise> findAllToBeScheduled(@Param(\"now\") ZonedDateTime now);", "Date getEventFiredAt();", "@Override\n public Flux<PersistentAuditEvent> findAllByAuditEventDateBetween(Instant fromDate, Instant toDate, Pageable pageable) {\n OffsetDateTime fromDateH2 = OffsetDateTime.ofInstant(fromDate, ZoneId.systemDefault());\n OffsetDateTime toDateH2 = OffsetDateTime.ofInstant(toDate, ZoneId.systemDefault());\n Criteria criteria = Criteria\n .where(\"event_date\").greaterThan(fromDateH2)\n .and(\"event_date\").lessThan(toDateH2);\n return findAllFromSpec(select().matching(criteria).page(pageable));\n }", "public void getDaysEvents(int userid, int day, int month, int year) {\r\n\t\t// Populate DaysEventsListIDs, DaysEventsListStartHour, DaysEventsListStopHour, DaysEventsListStartMin, DaysEventsListStopMin, DaysEventsListTitles\r\n\t\teventList.clear();\r\n\t\tEventList myEvent = new EventList();\r\n\t\ttry {\r\n\t\t Statement statement = connection.createStatement();\r\n\t\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\t\t ResultSet rs = statement.executeQuery(\r\n\t\t \t\t \"select id, starthour, startmin, stophour, stopmin, title, details from events where userid = \" + userid\r\n\t\t \t\t + \" and day = \" + day\r\n\t\t \t\t + \" and month = \" + month\r\n\t\t \t\t + \" and year = \" + year\r\n\t\t \t\t + \" order by starthour, startmin\");\r\n\t\t while(rs.next())\r\n\t\t {\r\n\t\t \tmyEvent = new EventList();\r\n\t\t // read the result set\r\n\t\t \tmyEvent.eid = rs.getInt(\"id\");\r\n\t\t \tmyEvent.starthour = rs.getInt(\"starthour\");\r\n\t\t \tmyEvent.startmin = rs.getInt(\"startmin\");\r\n\t\t \tmyEvent.stophour = rs.getInt(\"stophour\");\r\n\t\t \tmyEvent.stopmin = rs.getInt(\"stopmin\");\r\n\t\t \tmyEvent.title = rs.getString(\"title\");\r\n\t\t \tmyEvent.details = rs.getString(\"details\");\r\n\t\t \teventList.add(myEvent);\r\n\t\t }\r\n\t\t\t}\r\n\t\t catch(SQLException e)\r\n\t\t {\r\n\t\t // if the error message is \"out of memory\", \r\n\t\t // it probably means no database file is found\r\n\t\t System.err.println(e.getMessage());\r\n\t\t \r\n\t\t }\r\n\t\t\r\n\t\t//Query DB to get those details.\r\n\t}", "public void pruneEvents(final int maxNumToPrune) {\n final SQLiteDatabase db = this.helper.getWritableDatabase();\n \n final Cursor c = db.rawQuery(\n \"SELECT MAX(date) \" +\n \"FROM (SELECT date \" +\n \" FROM events \" +\n \" ORDER BY date \" +\n \" LIMIT \" + maxNumToPrune + \")\",\n null);\n long pruneDate = -1;\n try {\n if (!c.moveToFirst()) {\n Logger.debug(LOG_TAG, \"No max date found in events: table is likely empty. Not pruning \" +\n \"events.\");\n return;\n }\n pruneDate = c.getLong(0);\n } finally {\n c.close();\n }\n \n final String selection = \"date < \" + pruneDate;\n db.beginTransaction();\n try {\n db.delete(EVENTS_INTEGER, selection, null);\n db.delete(EVENTS_TEXTUAL, selection, null);\n db.setTransactionSuccessful();\n } finally {\n db.endTransaction();\n }\n }", "public Future<List<CtxHistoryAttribute>> retrievePast(CtxAttributeIdentifier attrId, Date startDate, Date endDate);", "private List grepTopLevelEvents(Collection events) throws Exception {\n\t // Grep all events that are contained by other events\n\t Set containedEvents = new HashSet();\n\t GKInstance event = null;\n\t for (Iterator it = events.iterator(); it.hasNext();) {\n\t event = (GKInstance) it.next();\n\t if (event.getSchemClass().isValidAttribute(ReactomeJavaConstants.hasEvent)) {\n\t List components = event.getAttributeValuesList(ReactomeJavaConstants.hasEvent);\n\t if (components != null && components.size() > 0) { \n\t for (Iterator it1 = components.iterator(); it1.hasNext();) {\n\t GKInstance tmp = (GKInstance) it1.next();\n\t Boolean dnr = (Boolean) tmp.getAttributeValue(DO_NOT_RELEASE);\n\t if (dnr != null && !dnr.booleanValue())\n\t containedEvents.add(tmp);\n\t }\n\t }\n\t }\n\t }\n\t List topEvents = new ArrayList(events);\n\t topEvents.removeAll(containedEvents);\n\t return topEvents;\n\t}", "@WebMethod\t\r\n\tpublic Vector<Event> getEvents(Date date) {\r\n\t\tDataAccess dbManager=new DataAccess();\r\n\t\tVector<Event> events=dbManager.getEvents(date);\r\n\t\tdbManager.close();\r\n\t\treturn events;\r\n\t}", "List<Event> getAllEventsByTitle(String title);", "private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n\n\n java.text.SimpleDateFormat toDateTime = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZ\");\n //Date todayDate = new Date();\n // String todayName = dayName.format(todayDate);\n\n java.util.Calendar calendar = java.util.Calendar.getInstance();\n\n calendar.setTime(nowToday);\n calendar.add(Calendar.HOUR, 2);\n Date twoFromNow = calendar.getTime();\n\n\n\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setTimeMax(new DateTime(twoFromNow, TimeZone.getDefault()))\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n // String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n\n // Only get events with exact start time set, exclude all day\n if (start != null) {\n eventStrings.add(\n String.format(\"%s //// %s)\", event.getSummary(), start));\n }\n\n\n }\n\n return eventStrings;\n }", "public static ArrayList<Date> events(Task task, Date start, Date end){\n ArrayList<Date> dates = new ArrayList<>();\n for (Date i = task.nextTimeAfter(start); !end.before(i); i = task.nextTimeAfter(i))\n dates.add(i);\n return dates;\n }", "private ArrayList<Task> filterByDate(ArrayList<Task> toFilter, Date date) {\n ArrayList<Integer> toDelete = new ArrayList<Integer>();\n Calendar calAim = Calendar.getInstance();\n Calendar calTest = Calendar.getInstance();\n calAim.setTime(date);\n\n //remove all on different dates\n for (int i = 0; i < toFilter.size(); i++) {\n if (toFilter.get(i).getClass().equals(Deadline.class)) {\n Deadline temp = (Deadline) toFilter.get(i);\n calTest.setTime(temp.getTime());\n } else if (toFilter.get(i).getClass().equals(Event.class)) {\n Event temp = (Event) toFilter.get(i);\n calTest.setTime(temp.getTime());\n } else if (toFilter.get(i).getClass().equals(Period.class)) {\n Period temp = (Period) toFilter.get(i);\n calTest.setTime(temp.getStart());\n }\n boolean sameDay = calAim.get(Calendar.DAY_OF_YEAR) == calTest.get(Calendar.DAY_OF_YEAR)\n && calAim.get(Calendar.YEAR) == calTest.get(Calendar.YEAR);\n if (!sameDay) {\n toDelete.add(i);\n }\n }\n\n for (int i = toDelete.size() - 1; i >= 0; ) {\n toFilter.remove((int) toDelete.get(i));\n i--;\n }\n return toFilter;\n }", "public List<Task> getCesarTasksExpiringToday() {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tDate date = DateUtils.truncate(new Date(), Calendar.DATE);\n\t\tcalendar.setTime(date);\n\t\tint dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK);\n\t\tList<Task> tasks = taskRepository.getTaskByDateAndOwnerAndExpireAtTheEndOfTheDay(date,\n\t\t\t\tTVSchedulerConstants.CESAR, true);\n\t\tif (tasks.size() == 0) {\n\t\t\tTask task;\n\t\t\tswitch (dayOfWeek) {\n\t\t\tcase Calendar.SATURDAY:\n\t\t\t\ttask = new Task(\"Mettre la table\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Faire le piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Sortir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"jeu de Société\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Lecture\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.SUNDAY:\n\t\t\t\ttask = new Task(\"Faire du sport (piscine/footing)\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Sortir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Jouer tout seul\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Lecture\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Aider à faire le ménage\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Jeu de société\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"S'habiller\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.MONDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.TUESDAY:\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.WEDNESDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Aider à faire le ménage\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.THURSDAY:\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.FRIDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\treturn tasks;\n\t}", "Date NextEvent(Date d);", "List<EventDetail> selectByExample(EventDetail eventDetail);", "DescribeEventsResult describeEvents(DescribeEventsRequest describeEventsRequest);", "@Query(\"SELECT id, measured_at FROM measurements WHERE measured_at >= :startDate AND measured_at < :endDate\")\n @TypeConverters({DateConverter.class})\n List<MeasurementEvent> findForPeriodTest(Date startDate, Date endDate);", "@WebMethod\n\tpublic ExtendedIterator<Event> getEvents(Date date) {\n\t\tdbManager.open(false);\n\t\tVector<Event> events = (Vector<Event>) dbManager.getEvents(date);\n\t\tdbManager.close();\n\t\tExtendedIterator<Event> it = new IteratorDate(events);\n\t\treturn it;\n\t}", "@WebMethod public ArrayList<Event> getEvents(LocalDate date);", "boolean hasFromDay();", "public static void main(String[] args) throws ParseException {\n String pattern = \"yyyy-MM-dd HH:mm:ss\";\n SimpleDateFormat sf = new SimpleDateFormat(pattern);\n Date yesterday = sf.parse(\"2016-12-11 23:59:59\");\n Date todayBegin = sf.parse(\"2016-12-12 00:00:00\");\n Date today1 = sf.parse(\"2016-12-12 00:00:01\");\n Date todayend = sf.parse(\"2016-12-12 23:23:59\");\n\n System.out.println(sf.format(yesterday) + \" is before \" + sf.format(todayBegin) + \":\" + yesterday.before(todayBegin));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(today1) + \":\" + todayBegin.before(today1));\n System.out.println(sf.format(todayBegin) + \" is before \" + sf.format(todayend) + \":\" + todayBegin.before(todayend));\n System.out.println(sf.format(today1) + \" is before \" + sf.format(todayend) + \":\" + today1.before(todayend));\n }", "public ArrayList<Event> getCalendarEventsBetween(Calendar startingDate, Calendar endingDate)\n {\n ArrayList<Event> list = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n Calendar eventCalendar = events.get(i).getCalendar();\n\n if(isSame(startingDate, eventCalendar) || isSame(endingDate, eventCalendar) ||\n (eventCalendar.before(endingDate) && eventCalendar.after(startingDate)))\n {\n list.add(events.get(i));\n }\n }\n return list;\n }", "ScheduledEvents getScheduledEvents();", "public List<TimeRange> getUnavailableTimesForAttendees(Collection<Event> events, Collection<String> listOfAttendees){\n List<TimeRange> unavailableTimes = new ArrayList<>();\n for(String attendee : listOfAttendees) {\n for(Event event : events) {\n Set<String> eventAttendees = event.getAttendees();\n if(eventAttendees.contains(attendee)) {\n unavailableTimes.add(event.getWhen());\n }\n }\n }\n return unavailableTimes;\n }", "public ArrayList<Event> getAllEventsFromDate(Calendar date)\r\n\t{\r\n\t\tArrayList<Event> eventsList = new ArrayList<Event>();\r\n\t\t\r\n\t\tfor(Event event : this.getAllEvents() )\r\n\t\t{\t\t\t\r\n\t\t\tif (event.getCalendar().get(Calendar.YEAR) == date.get(Calendar.YEAR) && \r\n\t\t\t\tevent.getCalendar().get(Calendar.MONTH)\t== date.get(Calendar.MONTH) && \r\n\t\t\t\tevent.getCalendar().get(Calendar.DATE) == date.get(Calendar.DATE))\r\n\t\t\t{\r\n\t\t\t\teventsList.add(event);\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn eventsList;\r\n\t}", "public ArrayList<Integer> getUsedEDays() {\n return pastEDays;\n }", "public static List<Event> generateExpiredEvents() {\n\t\tEvent event1 = Event.create(0);\r\n\t\tevent1.infoStore().add(Info.create(1, 2, 3));\r\n\t\tList<Event> events = new ArrayList<Event>();\r\n\t\tevents.add(event1);\r\n\t\treturn events;\r\n\t}", "public List<TaskMaster> retrieveAllTasksForSpecificDays(Date currdate, Date xDaysAgo, List<Long> projectIds, Long userIds);", "public String arrangeEvents() throws Exception {\n JSONArray scheduledEventList = calObj.retrieveEvents(\"primary\").getJSONArray(\"items\");\n JSONArray unScheduledEventList = calObj.retrieveEvents(this.user.getCalId()).getJSONArray(\"items\");\n\n //Filter events for this week\n\n\n //Make a list of all events\n\n //Prioritise all unscheduled events\n\n\n //Send the list to client to display\n String events = \"\";\n for (int i = 0; i < scheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = scheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n // Unscheduled events set in bot created aPAS calendar\n for (int i = 0; i < unScheduledEventList.length(); i++) {\n org.json.JSONObject jsonLineItem = unScheduledEventList.getJSONObject(i);\n events += jsonLineItem.getString(\"summary\") + \" \" + jsonLineItem.getJSONObject(\"start\").getString(\"dateTime\") + \"\\n\";\n }\n return events;\n }", "public List<Food> getPortionedFoodsAfterDateTime(LocalDateTime dateTime) {\n List<FoodEntry> entriesAfterDateTime = FoodListManager.filterListByDate(foodEntries, dateTime);\n return FoodListManager.convertListToFoods(entriesAfterDateTime);\n }", "@Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.buildAndTestStudentSubmissionsAfterDueDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);", "List<LocalDate> getAvailableDates(@Future LocalDate from, @Future LocalDate to);", "@LogExceptions\n public synchronized List<Event> getEvents(String date) throws SQLException {\n Connection conn = DatabaseConnection.getConnection();\n \n try(PreparedStatement stmt = \n conn.prepareStatement(SELECT_EVENT_DATE))\n {\n stmt.setString(1, date);\n evtList.clear();\n try(ResultSet rs = stmt.executeQuery()) {\n while(rs.next()) {\n Event event = new Event();\n event.setID(rs.getInt(1));\n event.setEvent(rs.getString(2));\n event.setDescription(rs.getString(3));\n event.setLocation(rs.getString(4));\n event.setDate(rs.getString(5));\n event.setStart(rs.getString(9));\n event.setEnd(rs.getString(10));\n evtList.add(event);\n }\n } \n } \n return evtList;\n }", "public List<TaskMaster> retrieveTasksForSpecificDaysById(Date currdate, Date xDaysAgo, Long projectId, Long userId, List<Long> projectIds);", "@WebMethod public boolean findEvent(String event, Date date);", "private static List<Date> getTradeDays(Date startDate, Date expiration) {\r\n\t\t\r\n\t\tEntityManagerFactory emf = Persistence.createEntityManagerFactory(\"JPAOptionsTrader\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\t\r\n\t\t// Note: table name refers to the Entity Class and is case sensitive\r\n\t\t// field names are property names in the Entity Class\r\n\t\tQuery query = em.createQuery(\"select distinct(opt.trade_date) from \" + TradeProperties.SYMBOL_FOR_QUERY + \" opt where \"\r\n\t\t\t\t+ \"opt.trade_date >= :tradeDate \" \r\n\t\t\t\t+ \"and opt.expiration=:expiration \"\t\r\n\t\t\t\t+ \" order by opt.trade_date\");\r\n\t\t\r\n\t\tquery.setParameter(\"tradeDate\", startDate);\r\n\t\tquery.setParameter(\"expiration\", expiration);\r\n\r\n\t\tquery.setHint(\"odb.read-only\", \"true\");\r\n\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Date> tradeDates = query.getResultList();\r\n\t\t\r\n\t\tem.close();\r\n\t\t\r\n\t\treturn tradeDates;\r\n\t}", "private void getDataFromApi() throws IOException {\n DateTime now = new DateTime(System.currentTimeMillis());\n Events events = mService.events().list(\"primary\")\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n List<Event> items = events.getItems();\n ScheduledEvents scheduledEvents;\n EventsList.clear();\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n start = event.getStart().getDate();\n }\n DateTime end = event.getEnd().getDateTime();\n if (end == null) {\n end = event.getStart().getDate();\n }\n scheduledEvents = new ScheduledEvents();\n scheduledEvents.setEventId(event.getId());\n scheduledEvents.setDescription(event.getDescription());\n scheduledEvents.setEventSummery(event.getSummary());\n scheduledEvents.setLocation(event.getLocation());\n scheduledEvents.setStartDate(dateTimeToString(start));\n scheduledEvents.setEndDate(dateTimeToString(end));\n StringBuffer stringBuffer = new StringBuffer();\n if(event.getAttendees()!=null) {\n for (EventAttendee eventAttendee : event.getAttendees()) {\n if(eventAttendee.getEmail()!=null)\n stringBuffer.append(eventAttendee.getEmail() + \" \");\n }\n scheduledEvents.setAttendees(stringBuffer.toString());\n }\n else{\n scheduledEvents.setAttendees(\"\");\n }\n EventsList.add(scheduledEvents);\n }\n }", "default List<ProgrammingExercise> findAllWithBuildAndTestAfterDueDateInFuture() {\n return findAllByBuildAndTestStudentSubmissionsAfterDueDateAfterDate(ZonedDateTime.now());\n }", "private boolean isPast(Calendar currentCal){\n Calendar presentCal = Calendar.getInstance();\n presentCal.set(Calendar.SECOND,59);\n return currentCal.before(presentCal);\n }", "public List<Event> getEvents() {\n List<Event> events = new ArrayList<>();\n\n Query query = new Query(\"Event\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID eventId = UUID.fromString(idString);\n String speaker = (String) entity.getProperty(\"speaker\");\n String organization = (String) entity.getProperty(\"organization\");\n String eventDate = (String) entity.getProperty(\"eventDate\");\n Location location = (Location) entity.getProperty(\"location\");\n List<String> amenities = getAmenities(eventId);\n String externalLink = (String) entity.getProperty(\"externalLink\");\n PublicType publicType = (PublicType) entity.getProperty(\"publicType\");\n long ownerId = (long) entity.getProperty(\"ownerId\");\n List<ThreadComment> thread = getThread(eventId);\n // long timeStamp = (long) entity.getProperty(\"timestamp\");\n\n Event event = new Event(eventId, speaker, organization, eventDate, location, amenities, externalLink,\n publicType, ownerId);\n event.copyThread(thread);\n events.add(event);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading event.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return events;\n }", "public Page<Event> findEventsByUserId(Long userId , Pageable pageable);", "public Date getBestBeforeDate(int days) {\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.setTime(productionDate);\r\n\t\tc.add(Calendar.DATE, days); //adds 30 days to productionDate\r\n\t\treturn c.getTime();\r\n\t}", "public List<Employee> findEmployeesForServiceByDate(LocalDate date) {\n DayOfWeek dayOfWeek = date.getDayOfWeek();\n\n List<Employee> employeeAvailable = new ArrayList<>();\n\n List<Employee> allEmployees = employeeRepository.findAll();\n for (Employee employee: allEmployees) {\n // Check if employee is available on given days and posses certain skills\n if(employee.getDaysAvailable().contains(dayOfWeek)) {\n employeeAvailable.add(employee);\n }\n }\n\n return employeeAvailable;\n }", "public List getUserAllAwayHistoryYear(Integer userId, Date hireDateStart) {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n\n //build the current hireDateStart and hireDateEnd for the search range\n //current date\n GregorianCalendar currentDate = new GregorianCalendar();\n currentDate.setTime(new Date());\n\n GregorianCalendar startHireDate = new GregorianCalendar();\n startHireDate.setTime(hireDateStart);\n //this is the start of current employment year\n startHireDate.set(Calendar.YEAR, currentDate.get(Calendar.YEAR));\n\n GregorianCalendar hireDateEnd = new GregorianCalendar();\n hireDateEnd.setTime(startHireDate.getTime());\n //advance its year by one\n //this is the end of the current employment year\n hireDateEnd.add(Calendar.YEAR, 1);\n\n //adjust to fit in current employment year\n if (startHireDate.after(currentDate)) {\n hireDateEnd.add(Calendar.YEAR, -1);\n startHireDate.add(Calendar.YEAR, -1);\n }\n\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n\n try {\n //retreive away events from database\n\n //this is the main class\n Criteria criteria = session.createCriteria(Away.class);\n\n //sub criteria; the user\n Criteria subCriteria = criteria.createCriteria(\"User\");\n subCriteria.add(Expression.eq(\"userId\", userId));\n\n criteria.add(Expression.ge(\"startDate\", startHireDate.getTime()));\n criteria.add(Expression.le(\"startDate\", hireDateEnd.getTime()));\n\n criteria.addOrder(Order.asc(\"startDate\"));\n\n //remove duplicates\n criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\n\n results = criteria.list();\n\n return results;\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }", "List<Day> getDays(String userName);", "boolean getOrderByDayNull();", "List<Coupon> findByEndDateBefore(Date date);", "@Query(\"SELECT pe FROM ProgrammingExercise pe WHERE pe.assessmentType <> 'AUTOMATIC' AND pe.dueDate > :#{#dateTime}\")\n List<ProgrammingExercise> findAllByManualAssessmentAndDueDateAfterDate(@Param(\"dateTime\") ZonedDateTime dateTime);", "public EventsDTO getEvents();", "public List<ExoSocialActivity> getOlderFeedActivities(Identity owner, Long sinceTime, int limit);", "public Observable getEvents(){\n QBRequestGetBuilder requestBuilder = new QBRequestGetBuilder();\n requestBuilder.sortDesc(\"startDate\");\n return makeObservable(requestBuilder);\n }", "private long getExpiringItemWithinDays(int day, ObservableList<Item> itemList) {\n LocalDate today = LocalDate.now();\n return itemList.stream().filter(item -> {\n if (item.getExpiryDate().expiryDate == null) {\n return false;\n }\n LocalDate itemExpiryDate = item.getExpiryDate().expiryDate;\n Long daysDifference = DAYS.between(today, itemExpiryDate);\n return daysDifference == day;\n }).count();\n }", "@Override\r\n public Collection<EventBean> findAllEvents(String idTxoko) throws BusinessLogicException{\n return null;\r\n }", "public List<Event> retrieveJobStatusAsEvent(String fromJobStatusId, String toJobStatusId, Calendar fromDate, Calendar toDate, int maxElements, String userId) throws DatabaseException, IllegalArgumentException;", "public List<Event> getEvents(int orgId) throws SQLException{\n\t\tlogger.info(\"[Organization] getEvents({})\", orgId);\n\t\t\n\n\t\tQueryBuilder<Event, Integer> queryBuilder = DB.eventDao.queryBuilder();\n\t\tWhere<Event, Integer> where = queryBuilder.where();\n\t\twhere.eq(\"organization_id\", orgId);\n\t\n\t\t\n\t\tqueryBuilder.orderBy(\"date\", true);\n\t\t\n\t\tPreparedQuery<Event> preparedQuery = queryBuilder.prepare();\n\n\t\t\n\t\treturn DB.eventDao.query(preparedQuery);\n\t}", "private ArrayList<Event> getSemesterTwoEvents(EventList eventList) throws PacException {\n ArrayList<Event> list = new ArrayList<>();\n for (int i = 0; i < eventList.list.size(); i++) {\n Event event = eventList.find(i);\n if (event.dateTimeIsParsed()) {\n if (event.getMonth() > 0 && event.getMonth() < 7) {\n list.add(event);\n }\n }\n }\n return list;\n }" ]
[ "0.63078755", "0.5986283", "0.59475166", "0.5938538", "0.58572644", "0.5851322", "0.5737308", "0.5679056", "0.56292415", "0.56281984", "0.56250066", "0.56193364", "0.55943", "0.55613333", "0.5500798", "0.5462743", "0.5413341", "0.5396298", "0.5379622", "0.52974313", "0.52595085", "0.52532554", "0.52511406", "0.524442", "0.5223522", "0.5195972", "0.51758254", "0.51748574", "0.51388335", "0.5133354", "0.51183164", "0.5114271", "0.51142544", "0.50915134", "0.5071989", "0.50581473", "0.50566715", "0.5055219", "0.50420254", "0.5015241", "0.49985126", "0.49895903", "0.4986285", "0.4969928", "0.49581823", "0.49495837", "0.49439913", "0.49316847", "0.49293014", "0.49257067", "0.48908216", "0.48882666", "0.4869611", "0.48605815", "0.48586848", "0.48523065", "0.4851434", "0.48403874", "0.48332867", "0.48327497", "0.48240644", "0.482204", "0.48071513", "0.47993663", "0.4798802", "0.47976848", "0.479657", "0.47905275", "0.47695312", "0.47464928", "0.47450152", "0.47417197", "0.47314894", "0.47295317", "0.4728605", "0.47277758", "0.47222188", "0.47193778", "0.47068137", "0.47022966", "0.46941867", "0.4691635", "0.4678242", "0.46751383", "0.4672287", "0.46678066", "0.46632898", "0.46613044", "0.46567982", "0.46479428", "0.46466905", "0.46461412", "0.46460816", "0.46457365", "0.46450424", "0.46423784", "0.46361455", "0.46319136", "0.46305522", "0.46281287" ]
0.72362167
0
Remove event from calendar
public boolean removeEventById(Integer id) { boolean result = false; if (id != null) { Event event = getEventById(id); if (event != null) { events.remove(event); result = true; } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeFromCalendar() {\r\n CalendarUtil.deleteEntry(this, event);\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_remove_event_success), Toast.LENGTH_LONG);\r\n }", "public void remove(DiaryCalendarEvent event){\n this.dates.remove(new CalendarDay(event.getYear(),event.getMonth(),event.getDay()));\n }", "public abstract CalendarEvent removeEvent(User user, String id);", "private void removeEvent() {\n Event event = selectEvent(\"Which event would you like to delete?\");\n world.removeEvent(event);\n System.out.println(\"Removed \" + event.getName() + \"!\");\n }", "public void removeEvent(Event event) {\n\t\tTreeSet<Event> daily = this.events.get(event.date);\n\t\tif (daily != null) {\n\t\t\tdaily.remove(event);\n\t\t}\n\t}", "@Test\n public void testRemoveEventConvinienceMethod() {\n // Start and end dates to query for\n java.util.Calendar cal = getInstance();\n Date start = cal.getTime();\n cal.add(MONTH, 1);\n Date end = cal.getTime();\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n // Add an event\n CalendarEvent event = new BasicEvent(\"Test\", \"Test\", start);\n calendar.addEvent(event);\n // Ensure event exists\n Assert.assertEquals(1, calendar.getEvents(start, end).size());\n // Remove event\n calendar.removeEvent(event);\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n }", "public void onPressRemoveFromCalendar() {\r\n new ActionConfirmationFragment(this, this)\r\n .setTitle(getString(R.string.event_confirmation_delete_event_calendar_entry))\r\n .setMessage(getString(R.string.action_confirmation_cannot_be_undone))\r\n .setRequestID(REQUEST_CONFIRMATION_DELETE_EVENT_CALENDAR_ENTRY)\r\n .show(getSupportFragmentManager(), null);\r\n }", "@Override\n\tpublic void removeCalendar(CalendarEdit edit) throws PermissionException {\n\t\t\n\t}", "private void removeClubEvent () {\n boolean okToDelete = true;\n if (CommonPrefs.getShared().confirmDeletes()) {\n int userOption = JOptionPane.showConfirmDialog(\n navToolBar, \n \"Really delete this Event?\",\n \"Delete Confirmation\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE,\n Home.getShared().getIcon());\n okToDelete = (userOption == JOptionPane.YES_OPTION);\n }\n if (okToDelete) {\n if (position.isNewClubEvent()) {\n position = new ClubEventPositioned();\n position.setIndex (clubEventList.size());\n display(); \n } else {\n noFindInProgress();\n boolean deleted = writer.delete(eventsFile, localPath);\n if (! deleted) {\n Trouble.getShared().report(this, \n \"Event could not be deleted\", \n \"Delete Failure\", \n JOptionPane.ERROR_MESSAGE);\n }\n position = clubEventList.remove (position);\n positionAndDisplay();\n currentFileModified = true;\n } // end if new ClubEvent not yet saved\n }\n \n }", "void delPreferedCalendar(String calendarId);", "public void deleteEvent() {\r\n database.eventDao().delete(event.uid);\r\n finish();\r\n }", "public void removeAppointment(Appointment a)\n {\n this.agenda.remove(a);\n }", "int removeHabitEvent(HabitEvent habitEvent);", "public void removeDate(java.util.Calendar value) {\r\n\t\tBase.remove(this.model, this.getResource(), DATE, value);\r\n\t}", "@DELETE\n @Path(\"{id}\")\n Response removeCalendarById(@PathParam(\"id\") Long id);", "@Test\n public void testRemoveEventConvinienceMethodWithCustomEventProvider() {\n calendar.setEventProvider(new ContainerEventProvider(new com.vaadin.v7.data.util.BeanItemContainer<BasicEvent>(BasicEvent.class)));\n // Start and end dates to query for\n java.util.Calendar cal = getInstance();\n Date start = cal.getTime();\n cal.add(MONTH, 1);\n Date end = cal.getTime();\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n // Add an event\n BasicEvent event = new BasicEvent(\"Test\", \"Test\", start);\n calendar.addEvent(event);\n // Ensure event exists\n List<CalendarEvent> events = calendar.getEvents(start, end);\n Assert.assertEquals(1, events.size());\n // Remove event\n calendar.removeEvent(event);\n // Ensure no events\n Assert.assertEquals(0, calendar.getEvents(start, end).size());\n }", "void deleteEvent(Long id);", "private boolean removeItemFromCalendar(String title, long begin, long end) {\n int eventId;\n\n try {\n eventId = getEventIdForItemIfExists(title, begin, end);\n } catch(SecurityException e) {\n return false;\n }\n\n if(eventId < 0)\n return false;\n\n if(!PermissionHelper.hasPermission(Manifest.permission.WRITE_CALENDAR))\n return false;\n\n Uri uri = ContentUris.withAppendedId(Events.CONTENT_URI, eventId);\n\n @SuppressLint(\"MissingPermission\") // Checked through PermissionHelper\n int deleteCount = App.getContext().getContentResolver()\n .delete(uri, null, null);\n\n return deleteCount > 0;\n }", "public void removeEvent(long p_timestamp){\n if (_eventsByStamp.indexOfKey(p_timestamp) >= 0){\n String date = stringifyDate(_eventsByStamp.get(p_timestamp));\n _events.get(date).remove(getEventIndexOnDayList(date, p_timestamp));\n _eventsByStamp.delete(p_timestamp);\n }\n }", "public void removeEvents() throws SQLException{\n\t\tSQLiteDatabase db = tableHelper.getWritableDatabase(); \n\t\ttry {\n\t\t\tdb.delete(SQLTablesHelper.MY_EVENT_TABLE_NAME, null, null);\n\t\t} finally {\n\t\t\tdb.close();\n\t\t}\n\t}", "public void deleteCalendar() throws Exception {\n\n try {\n CalendarFeed calendars = service.getFeed(mainCalendarFeedUrl, CalendarFeed.class);\n\n // Loop through each calendar\n for (int i = 0; i < calendars.getEntries().size(); i++) {\n CalendarEntry calendar = calendars.getEntries().get(i);\n\n // If this is the Lotus Notes calendar, delete it\n if (calendar.getTitle().getPlainText().equals(destinationCalendarName)) {\n calendar.delete();\n }\n }\n } catch (Exception ex) {\n throw ex;\n }\n }", "public static int rmScheduledEvent()\n\t{\n\t\tString sql = \"DELETE FROM BSM_SCHEDULER_EVENT_REPORT\";\n\t\tDBUtil.executeSQL(sql);\n\t\t\n\t\t//Remove report event from table BSM_SCHEDULER_EVENT\n\t\tsql = String.format(\"DELETE FROM BSM_SCHEDULER_EVENT\");\n\t\tint ret = DBUtil.executeSQL(sql);\n\t\t\n\t\treturn ret;\n\t}", "private void deletePastEvents() {\n Date now = new Date(); //gets the current date\n ArrayList<Integer> listofEventIDS = eventManager.getListOfEventIDs(); //gets list of all eventIDs in the system\n //checks every eventID, and if its in the past, then deletes everything related to that event\n for (Integer eventID: listofEventIDS) {\n //if the event happened before right now, delete the event, and remove all attendees that are attending that event, organizer, speaker and free up the room.\n if (eventManager.getEvent(eventID).getTime().before(now)){\n ArrayList<String> peopleAttending = eventManager.getEvent(eventID).getAttendees(); //list of userid of all people attending\n\n for (String attendeeID: peopleAttending){\n //check if attendee is a organizer attending the event\n if (organizerManager.userExist(attendeeID)){\n organizerManager.removeEvent(eventID, attendeeID);\n }\n //if its not a organizer, it must be a attendee\n else {\n attendeeManager.removeEvent(eventID,attendeeID);\n }\n }\n //NOTE: THIS WORKS RIGHT NOW BECAUSE WE ONLY HAVE 1 SPEAKER, IN PHASE 2 WE WILL HAVE MULTIPLE SPEAKERS\n speakerManager.getSpeaker(eventManager.getEvent(eventID).getSpeakerID()).removeAssignEvent(eventID);\n String organizerOfThisEvent = eventManager.getEvent(eventID).getOrganizerID(); //gets the userid of the organizer of this event\n //in the organizer's list of events that he/she created, this event is removed.\n organizerManager.removeEvent(eventID, organizerOfThisEvent);\n //removes the event from the room. NOTE THIS IS NOT NECESSARY AS YOU WILL NEVER BE ABLE TO ASSIGN A ROOM IN THE PAST, BUT JUST AS A SAFETY MEASURE.\n roomManager.removeEventFromRoom(eventManager.getEvent(eventID).getLocation(), eventID, eventManager.getTime(eventID));\n // and finally removes the event object itself from the event manager.\n eventManager.removeEvent(eventID);\n }\n }\n }", "public static void delete() {\n\t\tSystem.out.println(\"Do you want to delete events on a [S]elected date or [A]ll events?\");\n\t\tScanner sc = new Scanner(System.in);\n\t\tString input = \"\";\n\t\tif (sc.hasNextLine()) {\n\t\t\tinput = sc.nextLine().toLowerCase();\n\t\t\tif (input.equals(\"s\")) {\n\t\t\t\tSystem.out.println(\"s\");\n\t\t\t\tSystem.out.println(\"What day do you want to delete the events on? In MM/DD/YYYY\");\n\t\t\t\tString date = sc.nextLine();\n\t\t\t\tint month = Integer.parseInt(date.substring(0, 2));\n\t\t\t\tint day = Integer.parseInt(date.substring(3, 5));\n\t\t\t\tint year = Integer.parseInt(date.substring(6, 10));\n\t\t\t\tGregorianCalendar toDelete = new GregorianCalendar(year, month, day);\n\t\t\t\tcalendarToEvent.remove(toDelete);\n\t\t\t\tquit(); //to save the new treemap to the events.txt\n\t\t\t\tSystem.out.println(\"Removed\");\n\t\t\t} else if (input.equals(\"a\")) {\n\t\t\t\tSystem.out.println(\"a\");\n\t\t\t\tSystem.out.println(\"Deleting all events\");\n\t\t\t\tcalendarToEvent = new TreeMap<Calendar, TreeSet<Event>>();\n\t\t\t}\n\t\t}\n\t}", "public void deleteOldEvents(Calendar calendar) throws LogicLayerException\r\n\t{\r\n\t\tArrayList<Integer> toRemove = new ArrayList<Integer>();\r\n\t\t\r\n\t\tfor (Event event : this.getAllEvents())\r\n\t\t{\r\n\t\t\tif (0 > event.getCalendar().compareTo(calendar))\r\n\t\t\t\ttoRemove.add(this.getAllEvents().indexOf(event));\r\n\t\t}\r\n\t\t\r\n\t\tCollections.reverse(toRemove);\r\n\t\t\r\n\t\tfor (int index : toRemove)\r\n\t\t\tthis.deleteEvent(this.getAllEvents().get(index));\r\n\t}", "@Override\r\n\t\r\n\tpublic void execute() {\n\t\r\n\t\teventsCalendar.delete();\r\n\t}", "protected void removeAppointment(Appointment a) {\n appointments.remove(a);\n }", "public void removeFromReminders(Date reminders);", "public void removeEvent(long rowIndex) {\n SQLiteDatabase dbObj = getWritableDatabase();\n dbObj.delete(TABLE_EVENT_ENTRIES, KEY_ROWID + \"=\" + rowIndex, null);\n dbObj.close();\n }", "private void onPressCalendarEntry() {\r\n if (event.hasCalendarEntry())\r\n onPressRemoveFromCalendar();\r\n else\r\n onPressAddToCalendar();\r\n }", "@DELETE\n @Path(\"/{nom}/{date}\")\n public Response remove(@PathParam(\"nom\") String nom, @PathParam(\"date\") String date) {\n DataAccess dataAccess = DataAccess.begin();\n try {\n dataAccess.deleteEvent(nom, date);\n dataAccess.closeConnection(true);\n return Response.status(Response.Status.NO_CONTENT).build();\n } catch (Exception e) {\n dataAccess.closeConnection(false);\n return Response.status(Response.Status.NOT_FOUND).entity(\"Event not found\\n\").build();\n }\n }", "void deleteEvent(ReadOnlyEvent target) throws EventNotFoundException;", "void deleteEvent(String actorId, String objectId, Date eventTime);", "@Override\r\n\tpublic void excluir(Evento evento) {\n\t\trepository.delete(evento);\r\n\t}", "void unsetEvent();", "public void removeEvent(EventSource event) {\n this.eventList.remove(event);\n notifyEventListListeners();\n }", "public boolean removeSingleEvent(JSONObject jSONObject) {\n try {\n String string = jSONObject.getString(\"title\");\n String string2 = jSONObject.getString(Message.START_DATE);\n String string3 = jSONObject.getString(Message.END_DATE);\n Calendar instance = Calendar.getInstance();\n instance.setTime(DateUtils.parseDate(string2));\n Calendar instance2 = Calendar.getInstance();\n instance2.setTime(DateUtils.parseDate(string3));\n return CalendarManager.delEvent(this.mWXSDKInstance.getContext(), string, instance, instance2);\n } catch (Exception e) {\n WXLogUtils.e(TAG, (Throwable) e);\n return false;\n }\n }", "void unsetFoundingDate();", "public void removeByTodoDateTime(Date todoDateTime);", "public static boolean deletePastEvents (Event event){\r\n\t int currentDate = getCurrentDate();\r\n\t int date = event.date;\r\n\t if (date<currentDate){\r\n\t\t masterEventsFile.remove(event.getEventLine());\r\n\t\t return true;\r\n\t }\r\n\t return false;\r\n }", "public void deleteAllEventsInCalendar() {\n \n //Variable that holds the name of the current calendar\n String calName = Model.getInstance().calendar_name;\n \n //Query that will delete all events that belong to the selected calendar\n String deleteAllEventsQuery = \"DELETE FROM EVENTS \"\n + \"WHERE EVENTS.CalendarName='\" + calName + \"'\";\n \n //Execute query that deletes all events associated to the selected calendar\n boolean eventsWereDeleted = databaseHandler.executeAction(deleteAllEventsQuery);\n \n //Check if events were successfully deleted and indicate the user if so\n if (eventsWereDeleted)\n {\n //Update the calendar. Show that events were actually deleted\n repaintView();\n \n //Show message indicating that the selected calendar was deleted\n Alert alertMessage = new Alert(Alert.AlertType.INFORMATION);\n alertMessage.setHeaderText(null);\n alertMessage.setContentText(\"All events were successfully deleted\");\n alertMessage.showAndWait();\n }\n else\n {\n //Show message indicating that the calendar could not be deleted\n Alert alertMessage = new Alert(Alert.AlertType.ERROR);\n alertMessage.setHeaderText(null);\n alertMessage.setContentText(\"Deleting Events Failed!\");\n alertMessage.showAndWait();\n }\n }", "public Boolean deleteEventToCalendar(String id) throws Exception {\n\t\tcom.google.api.services.calendar.Calendar service = getCalendarService(UserUtils.getInstance().getCredential());\n\t\tString calendarId = \"primary\";\n\t\tservice.events().delete(calendarId, id).execute();\n\n\t\tcreateCalendarEvents();\n\n\t\treturn true;\n\t}", "@Override\n\tpublic void cancelCalendar(CalendarEdit edit) {\n\t\t\n\t}", "@SuppressWarnings(\"MissingPermission\")\n public static void deleteEvents(Context context, @NonNull String id) {\n List<CalendarEvent> events = RealmDb.getInstance().getCalendarEvents(id);\n ContentResolver cr = context.getContentResolver();\n for (int i = events.size() - 1; i >= 0; i--) {\n CalendarEvent event = events.remove(i);\n cr.delete(CalendarContract.Events.CONTENT_URI,\n CalendarContract.Events._ID + \"='\" + event.getEventId() + \"'\", null);\n RealmDb.getInstance().deleteCalendarEvent(event);\n }\n }", "protected void deletePlannedCalendar(PlannedCalendar calendar) {\n deleteEpochs(calendar.getEpochs());\n }", "public void deleteEvent(View v)\n\t{\n\t\tmEvent.deleteInBackground();\n\t\tToast.makeText(getApplicationContext(), \"Event deleted.\", Toast.LENGTH_SHORT).show();\n\t\tfinish();\n\t}", "public void deleteEvent(long event_id) {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(EVENTS_TABLE_NAME, KEY_ID + \" = ?\",\n new String[] { String.valueOf(event_id) });\n }", "public void removeClockFromStock(Clock removedClock);", "public static void Delete() throws FileNotFoundException{\n System.out.println(\"[S]elected, [A]ll\");\n Scanner deleteEventScanner = new Scanner(System.in);\n String deleteOption = deleteEventScanner.next();\n if(deleteOption.equalsIgnoreCase(\"s\")){\n System.out.println(\"Enter the Date to delete all events scheduled on that date(MM/DD/YYYY\");\n String eventsToDelete = deleteEventScanner.next();\n int monthToDelete= Integer.parseInt(eventsToDelete.substring(0,2));\n int dateToDelete = Integer.parseInt(eventsToDelete.substring(3,5));\n int yearToDelete = Integer.parseInt(eventsToDelete.substring(6));\n delete.set(yearToDelete, monthToDelete-1, dateToDelete);\n for(int i=0;i<events.size();i++){\n if(events.get(i).getMonth()==delete.get(Calendar.MONTH)&&events.get(i).getDate()==delete.get(Calendar.DATE)&&events.get(i).getYear()==delete.get(Calendar.YEAR)){\n events.remove(i);\n }\n }\n \n \n }\n else if(deleteOption.equalsIgnoreCase(\"a\")){\n events.removeAll(events);\n }\n menu();\n }", "public boolean removeItemFromCalendar(AgendaItem item) {\n return removeItemFromCalendar(item.getTitle(), item.getStart().getMillis(), item.getEnd().getMillis());\n }", "public void leaveEvent(String eventRef) {\n Event removed = mCache.getSingleFile(eventRef, mCacheDir);\n mCache.removeSingleEvent(eventRef, mCacheDir);\n mEventCollection.document(eventRef).update(\"attendees\", FieldValue.arrayRemove(mUserRef), result -> {\n if(!result.isSuccessful()) {\n // If the user could not be removed from the event, restore the cache\n mCache.saveEvent(removed, eventRef, removed.getDate(), mCacheDir);\n postCurrentCacheContent();\n }\n });\n }", "@Test\n public void testRemoveLocation() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n deltaEvent.setLocation(\"\");\n\n updateEventAsOrganizer(deltaEvent);\n\n /*\n * Check that location has been updated\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.ACCEPTED, CustomConsumers.ALL);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"The location of the appointment has been removed\");\n }", "@Override\n public void delete() {\n this.parent.handleRemoveSignal(this.deadline.getCourseName(),\n this.deadline.getName(),\n this.deadline.getYear(),\n this.deadline.getMonth(),\n this.deadline.getDay());\n }", "public static com.intranet.agbar.service.model.CalArchivoEvento remove(\n\t\tjava.lang.String idEvento)\n\t\tthrows com.intranet.agbar.service.NoSuchCalArchivoEventoException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException {\n\t\treturn getPersistence().remove(idEvento);\n\t}", "KitCalculatorsFactory<E> unregisterHolidayCalendar(String calendarName);", "private void removeFromSavedScheduleList() {\n if (!yesNoQuestion(\"This will print every schedule, are you sure? \")) {\n return;\n }\n\n showAllSchedules(scheduleList.getScheduleList());\n\n System.out.println(\"What is the number of the one you want to remove?\");\n int removeIndex = obtainIntSafely(1, scheduleList.getScheduleList().size(), \"Number out of bounds\");\n scheduleList.getScheduleList().remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "int deleteByPrimaryKey(String calendardate);", "public void removeFromReminders(List<Date> reminders);", "@Test\n public void testRemoveConference() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n deltaEvent.setConferences(Collections.emptyList());\n updateEventAsOrganizer(deltaEvent);\n\n EventData updatedEvent = eventManager.getEvent(defaultFolderId, createdEvent.getId());\n assertThat(\"Should be no conferences!\", updatedEvent.getConferences(), empty());\n\n /*\n * Check that mails has been send\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.ACCEPTED, CustomConsumers.ALL, 1);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"access information was removed\");\n }", "@Override\r\n public void deleteEvent(EventBean event) throws BusinessLogicException{\n }", "public static void removeDate(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.util.Calendar value) {\r\n\t\tBase.remove(model, instanceResource, DATE, value);\r\n\t}", "public static void deleteTimeButtonClicked() {\n ObservableList<Occasion> allTimes;\n allTimes = tableHoliday.getItems();\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n allTimes.remove(occasion);\n OccasionCommunication.removeOccasion(occasion.getId());\n }", "@Override\r\n\t\t\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\t\t\tcheckID();\r\n\t\t\t\t\t}", "@Test\n public void clearEvent() {\n TestEvent[] currentEventList = te.getTypicalEvents();\n TestEvent[] filteredEventList = TestUtil.getFilteredTestEvents(currentEventList);\n assertTrue(eventListPanel.isListMatching(filteredEventList));\n assertClearEventCommandSuccess();\n\n //verify other commands can work after a clear event command\n currentEventList = TestUtil.removeEventsFromList(currentEventList, currentEventList);\n TestEvent eventToAdd = te.workshop;\n currentEventList = TestUtil.addEventsToList(currentEventList, eventToAdd);\n filteredEventList = TestUtil.getFilteredTestEvents(currentEventList);\n commandBox.runCommand(eventToAdd.getAddCommand());\n assertTrue(eventListPanel.isListMatching(filteredEventList));\n commandBox.runCommand(\"delete ev 1\");\n assertEventListSize(0);\n\n //invalid command\n commandBox.runCommand(\"clear deadline\");\n assertResultMessage(\"Invalid command format! \\n\" + ClearCommand.MESSAGE_USAGE);\n\n //verify clear command works when the list is empty\n assertClearEventCommandSuccess();\n }", "public void delete(Event event) {\n Event temp= em.merge(event);\n deleteParticipations(temp);\n deleteInvitations(temp);\n deleteWeatherNotifications(temp);\n em.remove(temp);\n }", "@Override\n\tpublic int deleteEventFromEventSignUpDAO(EventSignUp e) {\n\t\treturn 0;\n\t}", "public static boolean deleteFromCalendar(FragmentActivity fa, long startMillis){\n\t\t\n\t\tlong cid = getCalendarID(fa);\n\t\t\n\t\tCalendar beginTime = Calendar.getInstance();\n\t\tbeginTime.setTimeInMillis(startMillis);\n\t\t\n\t\t// change this if we want BPPV sessions to be longer than 30 minutes \n\t\tlong endMillis = startMillis + 30 * 60 * 1000; \n\t\t\n\t\tContentResolver cr = fa.getContentResolver();\n\t\t\n\t\tString where = \n\t\t\tEvents.CALENDAR_ID + \" = ? and \" + \t\n\t\t\tEvents.DTSTART + \" = ? and \" + \n\t\t\tEvents.DTEND + \" = ? and \" + \n\t\t\tEvents.TITLE + \" = ? and \" + \n\t\t\tEvents.DESCRIPTION + \" = ? and \" + \n\t\t\tEvents.EVENT_TIMEZONE + \" = ?\";\n\t\t\n\t\tString[] selectors = new String[6];\n\t\tselectors[0] = \"\" + cid ; \n\t\tselectors[1] = \"\" + startMillis; \n\t\tselectors[2] = \"\" + endMillis; \n\t\tselectors[3] = \"BPPV Physio Reminder\";\n\t\tselectors[4] = \"Workout\";\n\t\tselectors[5] = \"America/Los_Angeles\";\n\t\t\n\t\tcr.delete(Events.CONTENT_URI, where, selectors);\n\t\treturn true; \n\t}", "public Event removeRecord(){\n Event removed = eventArray[0];\n swap(numEvents-1, 0);\n numEvents--;\n siftDown(0);\n return removed;\n }", "void unsetSchedule();", "@Test\n public void testRemoveOnlyOneConference() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n deltaEvent.setConferences(Collections.singletonList(createdEvent.getConferences().get(0)));\n updateEventAsOrganizer(deltaEvent);\n\n EventData updatedEvent = eventManager.getEvent(defaultFolderId, createdEvent.getId());\n assertThat(\"Should be one conference!\", I(updatedEvent.getConferences().size()), is(I(1)));\n\n /*\n * Check that mails has been send, but for changed conferences not removed all\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.ACCEPTED, CustomConsumers.ALL, 1);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertSingleDescription(change, \"access information was changed\");\n }", "@Override\n public void onClick(View v) {\n \tToast.makeText(TaskActivity.this, \"Deleting Logs!\", Toast.LENGTH_SHORT).show();\n \tReadCalendar.deleteAllEvents(getApplicationContext());\n }", "public void unsetDay()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DAY$0, 0);\n }\n }", "void cleanUpEventsAndPlaces();", "public boolean removeItemFromCalendar(MeetingItem item) {\n return removeItemFromCalendar(\n item.getMeeting().getTitle(),\n item.getMeeting().getStartdate().getMillis(),\n item.getMeeting().getEnddate().getMillis()\n );\n }", "public boolean canDeleteCalendarDayOff(CalendarDayOff calendarDayOff) {\nreturn true;\n}", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n subjectDAO.deleteFridayEntry(employee);\r\n subjectListAdapter.remove(employee);\r\n Toast.makeText(getActivity(), \"Subject Deleted\",\r\n Toast.LENGTH_SHORT).show();\r\n\r\n }", "public void onDelete(TimelineModificationEvent e) {\n\t\tevent = e.getTimelineEvent();\n\t}", "public boolean removeEvent(Event t){\n boolean found = this.eventMap.containsKey(t) ;\n if (found){\n this.eventMap.remove(t);\n this.eventList.remove(t);\n this.eventIdsList.remove(t.getEventId());\n for (String user : t.getUsersSignedUp()){\n userManager.removeEvent(user, t.eventId);\n }\n for (String speaker : t.getSpeakers()){\n userManager.removeEvent(speaker, t.eventId);\n }\n this.roomManager.removeEvent(t.roomName, t.eventId);\n return true;\n }\n return false;\n }", "public void removeBtn(){\r\n\t\t\r\n\t\tWorkflowEntry entryToBeRemoved = (WorkflowEntry) tableView.getSelectionModel().getSelectedItem();\r\n\t\t\r\n\t\tdata.remove(entryToBeRemoved);\r\n\t\t\r\n\t}", "@Command(\"delete\")\n @NotifyChange({\"events\", \"selectedEvent\"})\n public void delete() {\n if(this.selectedEvent != null) {\n eventDao.delete(this.selectedEvent);\n this.selectedEvent = null;\n }\n }", "void unsetDate();", "public void UnPostAllEvents();", "public void clearAppointments(){\n appointments.clear();\n }", "@Override\n public void removeFirstObjectInAdapter() {\n eventsArray.remove(0);\n lastRemovedEventId = eventIds.get(0);\n lastRemovedEventTitle = eventTitles.get(0);\n lastRemovedEventDesc = eventDescriptions.get(0);\n lastRemovedEventStartTime = eventStartTimes.get(0);\n lastRemovedEventEndTime = eventEndTimes.get(0);\n lastRemovedEventLocation = eventLocations.get(0);\n //Log.d(LOG_MESSAGE, lastRemovedEventId + \" - before\");\n eventIds.remove(0);\n eventTitles.remove(0);\n eventDescriptions.remove(0);\n eventStartTimes.remove(0);\n eventEndTimes.remove(0);\n eventLocations.remove(0);\n arrayAdapter.notifyDataSetChanged();\n //Log.d(LOG_MESSAGE, lastRemovedEventId + \" - after\");\n }", "public void removeFromEvents(final SapEvent value)\n\t{\n\t\tremoveFromEvents( getSession().getSessionContext(), value );\n\t}", "@FXML\n void editEvent (Event event) {\n\n// removes the event and then creates a new one\n// (ensures Events stay sorted chronologically even if dates are changed)\n event.timeline.events.remove(event);\n addEvent();\n\n// exits the add window\n cancelEventEdit();\n\n setMessage(\"Successfully edited Event.\", false);\n }", "public static Calendar removeTime(Calendar calendar){\n calendar.set(Calendar.HOUR_OF_DAY, 0);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.SECOND, 0);\n calendar.set(Calendar.MILLISECOND, 0);\n return calendar;\n }", "private void eliminateDay() {\r\n\tdayElimTimer.cancel();\r\n\tdayElimTimer.purge();\r\n\r\n\t// playerIDs.remove(playerOnTrialID);\r\n\tplayers.remove(playerOnTrialID);\r\n\r\n\tif (mafia.contains(playerOnTrialID)) {\r\n\t int index = mafia.indexOf(playerOnTrialID);\r\n\t mafia.remove(index);\r\n\r\n\t} else {\r\n\t int index = innocentIDs.indexOf(playerOnTrialID);\r\n\t innocentIDs.remove(index);\r\n\t}\r\n\r\n\tserver.setPlayerMuted(playerOnTrialID, true);\r\n\r\n\tserver.publicMessage(server.getUsername(playerOnTrialID) + \" has been eliminated\");\r\n\r\n\tplayerOnTrialID = null;\r\n\telimDay.clear();\r\n\tsave.clear();\r\n\telimDayVoteInProgress = false;\r\n\r\n\tcheckWin();\r\n }", "public void delete() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.delete(event, timelineUpdater);\n\n\t\tFacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking \" + getRoom() + \" has been deleted\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}", "@Override\n\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\n\t}", "public void remove(Schedulorinator schedule) {\r\n if (scheduleList.contains(schedule)) {\r\n scheduleList.remove(schedule);\r\n schedule.removePerson(this);\r\n removeObserver(schedule);\r\n }\r\n }", "public void removeUpdate(DocumentEvent e)\n {\n performFlags();\n }", "void unsetRecurrenceTimeZoneCode();", "public void delEvent(long id) {\n Event event = eventRepository.findOne(id);\n if (event != null) {\n logger.debug(\"Deleting event with id %s\", event.getEventId());\n\n eventRepository.delete(id);\n }\n }", "public void deleteApp(Appointment app, Date dat)\n {\n List z = cal.get(dat);\n boolean flag = true;\n int i = 0;\n while(flag){\n if(z.get(i)==app){\n z.remove(app);\n flag = false;\n }\n i++;\n }\n \n }", "@Override\n public void removeUpdate(DocumentEvent e) {\n verifierSaisie();\n }", "public boolean deleteEvent(String userName, String eventTime) throws RemoteException {\n\t\tSystem.out.println(\"Server: Message > \" + \"deleteEvent() invoked\");\n\t\teventTime = eventTime.replaceAll(\" \", \"\"); // get rid of whitespaces in any case\n\t\tArrayList<Event> list = userCalendar.get(userName);\n\t\tif (list != null || !list.isEmpty()) {\n\t\t\tfor (Event appt : list) {\n\t\t\t\tif (appt.getTime().equals(eventTime)) {\n\t\t\t\t\tlist.remove(appt);\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}", "public abstract EventSeries removeEventSeries(User user, String id);", "@Subscribe public void onEvent(RemoveEvent event) {\n if (event.isRemove()) {\n this.trackStories.remove(selectPosition);\n adapter.notifyItemRemoved(selectPosition);\n }\n }", "public static int rmScheduledEvent(String rptEventName)\n\t{\n\t\tint event_id = Integer.parseInt(CommonUtil.getRptEventFromDb(rptEventName).get(\"ID\")); \n\t\t\n\t\t//Remove associated data from table BSM_SCHEDULER_EVENT_REPORT first\n\t\tString sql = String.format(\"DELETE FROM BSM_SCHEDULER_EVENT_REPORT WHERE SCHEDULER_EVENT_ID=%d\", event_id);\n\t\tDBUtil.executeSQL(sql);\n\t\n\t\t//Remove report event from table BSM_SCHEDULER_EVENT\n\t\tsql = String.format(\"DELETE FROM BSM_SCHEDULER_EVENT WHERE EVENT_TEXT='%s'\", rptEventName);\n\t\tint ret = DBUtil.executeSQL(sql);\n\t\t\n\t\treturn ret;\n\t}", "@FXML\n\tprivate void deleteSelected(ActionEvent event) {\n\t\tint selectedIndex = taskList.getSelectionModel().getSelectedIndex();\n\t\tString task = taskList.getItems().get(selectedIndex);\n\t\ttaskList.getSelectionModel().clearSelection();\n\t\ttaskList.getItems().remove(task);\n\t\tchatView.setText(\"\");\n\t\ttaskList.getItems().removeAll();\n\t\tString task_split[] = task.split(\" \", 2);\n\t\tString removeTask = task_split[1];\n\t\tif (task.contains(\"due by\")) {\n\t\t\tString[] taskDate = task_split[1].split(\"\\\\s+\");\n\t\t\tSystem.out.println(taskDate);\n\t\t\tString end = taskDate[taskDate.length - 3];\n\t\t\tSystem.out.println(end);\n\t\t\tremoveTask = task_split[1].substring(0, task_split[1].indexOf(end)).trim();\n\t\t\tSystem.out.println(removeTask);\n\n\t\t}\n\t\tclient.removeTask(removeTask.replace(\"\\n\", \"\"));\n\t}" ]
[ "0.8882554", "0.7963633", "0.7540592", "0.7347769", "0.7115182", "0.6987106", "0.6954918", "0.69435394", "0.6927425", "0.6751001", "0.6721532", "0.67036456", "0.65892875", "0.65850145", "0.6584536", "0.6549236", "0.6530559", "0.6475071", "0.64032006", "0.636653", "0.6352866", "0.63155246", "0.6311344", "0.63039607", "0.6254413", "0.62515", "0.6231473", "0.6210552", "0.62032855", "0.61962616", "0.6172213", "0.6145354", "0.61316377", "0.610074", "0.6100444", "0.60993403", "0.60959154", "0.6095769", "0.6090758", "0.6078756", "0.6069908", "0.6045683", "0.60423684", "0.6039224", "0.6027253", "0.60260665", "0.6007381", "0.5993239", "0.59772354", "0.5945441", "0.59420156", "0.5928074", "0.5923643", "0.5921354", "0.59112287", "0.59048104", "0.5901161", "0.58922595", "0.58845675", "0.58770597", "0.587141", "0.58708936", "0.5869304", "0.5869155", "0.5865701", "0.58044624", "0.5799002", "0.5794434", "0.5784831", "0.57840294", "0.5774659", "0.5772588", "0.5766545", "0.5761051", "0.5738918", "0.57188475", "0.5713574", "0.5702617", "0.5702241", "0.56928414", "0.56908226", "0.5690526", "0.56761026", "0.56684685", "0.56590277", "0.56589144", "0.56500494", "0.56394666", "0.5638815", "0.56247354", "0.56164175", "0.5613267", "0.5608186", "0.56028694", "0.55916095", "0.55902874", "0.55525905", "0.55521137", "0.55506223", "0.5530663", "0.5530643" ]
0.0
-1
Gets the value of the propertyNameOrXlinkPropertyNameOrFunction property.
public List<Object> getPropertyNameOrXlinkPropertyNameOrFunction() { if (propertyNameOrXlinkPropertyNameOrFunction == null) { propertyNameOrXlinkPropertyNameOrFunction = new ArrayList<Object>(); } return this.propertyNameOrXlinkPropertyNameOrFunction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPropertyName();", "public String get(String propertyName);", "public String getStringProperty(String propertyName) ;", "public String getPropertyName();", "public String propertyName() {\n\t\t\treturn target != null ? target : name;\n\t\t}", "java.lang.String getProperty();", "public String getProperty(String propertyName) throws CoreException;", "public String getCustomName ( ) {\n\t\treturn extract ( handle -> handle.getCustomName ( ) );\n\t}", "String getProperty();", "String getProperty();", "String getProperty();", "public String getUserProperty(String propertyName) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return (String) ph.getUserProperty(null, propertyName);\n }", "String getProperty(String property);", "public String getProperty();", "public String getProperty(String propertyName) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return (String) ph.getProperty(null, propertyName);\n }", "PropertyName getName();", "String getProperty(String name);", "public String getPropertyName()\n {\n return propertyName;\n }", "public static String getProperty(String propertyName){\r\n String val = userProps.getProperty(propertyName);\r\n\r\n if (val == null)\r\n return jinProps.getProperty(propertyName);\r\n else\r\n return val;\r\n }", "public String getPropertyName() {\n return this.propertyName;\n }", "public String getFunctionName() {\r\n\t\treturn this.functionName;\r\n\t}", "public String getProperty(String name);", "public String getPropertyName(String column) {\r\n\t\trefineMetaData();\r\n\t\tcolumn = column.toLowerCase();\r\n\t\t// Log.debug(\"%s->%s\", column, col2prop.get(column));\r\n\t\treturn col2prop.get(column);\r\n\t}", "public String getProperty(Object obj, String key);", "@NoProxy\n @NoDump\n @NoWrap\n public String getXproperty(final String name) {\n BwXproperty prop = findXproperty(name);\n\n if (prop == null) {\n return null;\n }\n\n return prop.getValue();\n }", "Object getProperty(String name);", "public abstract boolean getProperty(String propertyName);", "public String getFunctionName()\n {\n return m_functionName;\n }", "public String getNodeName(String propertyName);", "String getProperty(String key);", "String getProperty(String key);", "String getProperty(String key);", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public String getPropertyeee(String key) {\n if (key == null) {\n return null;\n }\n String value = properties.getProperty(key);\n if (value == null) {\n return null;\n }\n return value;\n }", "public String getPropertyNameMapped(String aName) { return aName; }", "Value get(ExecutionContext context, String propertyName);", "String getValueOfCssProperty(String propertyName);", "public String getName()\n {\n return m_functionName;\n }", "protected abstract String getHostNamePropertyName();", "Property getProperty();", "Property getProperty();", "public String getPropertyValue(String propertyName){\n\t\treturn (String) properties.get(propertyName);\n\t}", "protected String getPropertyName(){\n return propertyName;\n }", "public Variant getAxProperty(int dispatchPointer, String propertyName)\n throws ActiveXException\n {\n return axInvoke(dispatchPointer,propertyName,ActiveXDispatchable.AX_PROPERTYGET,\n false,(Vector) null);\n }", "public java.lang.String getProperty(java.lang.String propertyName) {\n return properties.getProperty(propertyName);\n }", "String getValueName();", "Object getProperty(String key);", "DavPropertyName getName();", "private String toPropertyName(String element) {\n String refPropertyName = handleRefProperty(element);\n if (refPropertyName != null) {\n return refPropertyName;\n }\n\n StringBuilder sb = new StringBuilder();\n char[] chars = element.toCharArray();\n boolean upper = true;\n for (char c : chars) {\n if (c == '_' || c == '-' || c == '.') {\n upper = true;\n } else if (upper) {\n sb.append(Character.toUpperCase(c));\n upper = false;\n } else {\n sb.append(c);\n }\n }\n return sb.toString();\n }", "public String getName() {\n return m_function.getName();\n }", "@Override\r\n\tpublic String get(Object key) {\r\n\t\tif (key == null) return null;\r\n\t\treturn getProperty(key.toString());\r\n\t}", "public String getProperty(final String propertyName) {\n\t\treturn properties.getProperty(propertyName);\n\t}", "Object getPropertytrue();", "public String get_firstLinkedOpName() {\n Object obj = linkedOpList.get(0);\n\n if ((AsnValue.class).isInstance(obj)) {\n return \"isValue\";\n }\n else if ((AsnDefinedType.class).isInstance(obj)) {\n return ((AsnDefinedType) obj).typeName;\n }\n else {\n String nameoftype = null;\n\n try {\n Field nameField;\n Class c = obj.getClass();\n\n nameField = c.getField(\"name\");\n nameoftype = (String) nameField.get(obj);\n } catch (Exception e) {\n e.printStackTrace(System.err);\n }\n\n return nameoftype;\n }\n }", "public String getPropValue(String propertyName){\n\n return pro.getProperty(propertyName);\n\n }", "@Override\n public Object getProperty(String property) {\n for (Map.Entry<String, RequiredFunctionalExtension> requiredBehaviorEntry : myRequiredBehaviorById.entrySet()) {\n Object prop = requiredBehaviorEntry.getValue().getProperty(property);\n if (prop != null) {\n return prop;\n }\n }\n return null;\n }", "private static String getPropertyValue(Properties properties, String propertyName) {\n \n String value = properties.getProperty(propertyName);\n \n if (\"\".equals(value)) {\n return null;\n }\n \n return value;\n }", "public Object getProperty(String propertyName){\n return properties.get(propertyName);\n }", "public String getSysPropertyName() {\n return sysProperty;\n }", "public static String getPropertyAccessMethodName(String property) {\r\n if (\"this\".equals(property))\r\n return \"this\";\r\n return \"get\" + property.substring(0, 1).toUpperCase(Locale.ENGLISH) + property.substring(1);\r\n }", "public String getName ( ) {\n\t\treturn extract ( handle -> handle.getName ( ) );\n\t}", "@SuppressWarnings( \"unchecked\" )\n public static <T> PropertyFunction<T> property( Property<T> property )\n {\n return ( (PropertyReferenceHandler<T>) Proxy.getInvocationHandler( property ) ).property();\n }", "Property findProperty(String propertyName);", "String getLinkName();", "default String lambdaFieldName(T bean) {\n SerializedLambda serializedLambda = serialized();\n if (MethodHandleInfo.REF_invokeVirtual != serializedLambda.getImplMethodKind()) {\n throw new RuntimeException(\"unsupported lambda impl method kind \" + serializedLambda.getImplMethodKind()\n + \". Only work for [Class::Method] struct's lambda\");\n }\n String getter = serializedLambda.getImplMethodName();\n String fieldName = getter;\n if (getter.startsWith(\"get\")) {\n fieldName = Introspector.decapitalize(getter.substring(3));\n } else if (getter.startsWith(\"is\")) {\n String guessFieldName = Introspector.decapitalize(getter.substring(2));\n if (null == bean) {\n fieldName = guessFieldName;\n } else {\n try {\n bean.getClass().getDeclaredField(getter);\n fieldName = getter;\n } catch (NoSuchFieldException e) {\n // ignore substring when the field name is \"isXxx\"\n fieldName = guessFieldName;\n }\n }\n }\n return fieldName;\n }", "public String getStringProperty(String propertyName, String defaultValue);", "public static String getPropertyName(String propertyPath) {\n\t\tint separatorIndex = propertyPath.indexOf(PropertyAccessor.PROPERTY_KEY_PREFIX_CHAR);\n\t\treturn (separatorIndex != -1 ? propertyPath.substring(0, separatorIndex) : propertyPath);\n\t}", "public static String getGetterName(String propertyName, boolean isBool){\r\n\t\tif(isBool){\r\n\t\t\treturn \"is\" + propertyName.substring(0, 1).toUpperCase() + \r\n\t\t\t\tpropertyName.substring(1);\r\n\t\t} else {\r\n\t\t\treturn \"get\" + propertyName.substring(0, 1).toUpperCase() + \r\n\t\t\t\tpropertyName.substring(1);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic String getProp(final String propName) {\n\t\treturn exec(new Callable<String>() {\r\n\t\t\t@Override\r\n\t\t\tpublic String call() throws Exception {\r\n\t\t\t\treturn System.getProperty(propName);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public String getRelationPropertyName() {\n return getForeignPropertyName();\n }", "public String getProperty(String key) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n return this.attributes.getProperty(key);\n }", "public String getFuncName() {\n return funcName;\n }", "public native String getPropertyValue(final String propertyName)\n /*-{\n var j = [email protected]::rules.length;\n for(var i=0; i<j; i++) {\n // $entry not needed as function is not exported\n var value = [email protected]::rules[i].style[propertyName];\n if(value)\n return value;\n }\n return null;\n }-*/;", "private Object getExtProperty(String propertyName, String dataConfigPropertyName) {\n return ReflectionTestUtils.invokeMethod(this, \"getProperty\", dataConfigPropertyName);\n }", "static String getAntPropertyName( final String property ) {\n if ( property != null &&\n property.startsWith( \"${\" ) && // NOI18N\n property.endsWith( \"}\" ) ) { // NOI18N\n return property.substring( 2, property.length() - 1 );\n } \n return property;\n }", "public abstract Object getPropertyValue(String propertyName)\n throws ModelException;", "public static String getProperty(String key) {\n if (prop == null) {\n return null;\n }\n return prop.getProperty(key);\n }", "protected abstract String getAddressPropertyName();", "public String getfunction() {\n\t\treturn _function;\n\t}", "public String getProperty(String propertyName) {\n\t\tSystem.out.println(propertyName + \" - \" + oAuthProperties.getProperty(propertyName));\n\t\treturn oAuthProperties.getProperty(propertyName);\n\t}", "public Object getProperty(String arg0) {\n return null;\n }", "public Object getProperty(String propertyId)\n throws SAXNotRecognizedException\n {\n if ((PROPERTY + \"declaration-handler\").equals(propertyId))\n {\n return (declHandler == base) ? null : declHandler;\n }\n \n if ((PROPERTY + \"lexical-handler\").equals(propertyId))\n {\n return (lexicalHandler == base) ? null : lexicalHandler;\n }\n \n // unknown properties\n throw new SAXNotRecognizedException(propertyId);\n }", "protected String canonicalizePropertyName(String propertyName, LinkedList<String> packageStack, File file, String baseName) {\n\t\treturn getPackageName(packageStack) + '.' + propertyName;\n\t}", "public String getFunctionName() {\n\t\treturn null;\n\t}", "public String getName() {\n return getProperty(Property.NAME);\n }", "private String getPropertyValue() {\n return EmfPropertyHelper.getValue(itemPropertyDescriptor, eObject);\n }", "public StructuredQName getKeyName() {\n try {\r\n if (getObjectName() == null) {\r\n // allow for forwards references\r\n String nameAtt = getAttributeValue(\"\", StandardNames.NAME);\r\n if (nameAtt != null) {\r\n setObjectName(makeQName(nameAtt));\r\n }\r\n }\r\n return getObjectName();\r\n } catch (NamespaceException err) {\r\n return null; // the errors will be picked up later\r\n } catch (XPathException err) {\r\n return null;\r\n }\r\n }", "public String getLinkName();", "public Object getLinkProperty(String name) {\n if (!hasLinkAttributes()) {\n return null;\n }\n\n return get(\"link.\" + name);\n }", "public Object getLinkProperty(String name) {\n if (!hasLinkAttributes()) {\n return null;\n }\n\n return get(\"link.\" + name);\n }", "public\n String getProperty_String(String key)\n {\n if (key == null)\n return null;\n\n String val = getProperty(key);\n\n return val;\n }", "public String getPropertyName()\n {\n return Integer.toString(getLowNbrParticipants());\n }", "private String getGetMethodName() {\n assert name != null;\n if (field != null && (field.getType() == Boolean.class\n || \"boolean\".equals(field.getType().getName()))) {\n return \"is\" + upperFirstChar(name);\n }\n return \"get\" + upperFirstChar(name);\n }", "public java.lang.String getUrlName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(URLNAME$12, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "@BeanTagAttribute\r\n public String getPropertyName() {\r\n return propertyName;\r\n }", "@Nonnull\n FunctionName getFunctionName() {\n return name;\n }", "public String getProperty(String key) {\n String value = properties.getProperty(key);\n return value;\n }", "public abstract @Nullable Function getFunction(@NotNull String functionName);", "public String getPropName() {\n return m_propName;\n }", "public Variable getProperty(String propertyName)\r\n\t{\r\n\t\t// search own properties:\r\n\t\tfor (int i=0; i<properties.size(); i++)\r\n\t\t{\r\n\t\t\tif (properties.get(i).name.equals(propertyName))\r\n\t\t\t\treturn properties.get(i);\r\n\t\t}\r\n\t\t// if we have a base class, let it search for properties, or return null\r\n\t\tif (baseClass != null)\r\n\t\t\treturn baseClass.getProperty(propertyName);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}" ]
[ "0.60814613", "0.59645414", "0.58087516", "0.5791081", "0.57180995", "0.5673516", "0.56026375", "0.5586821", "0.55702907", "0.55702907", "0.55702907", "0.55666214", "0.5469738", "0.54682994", "0.5450254", "0.5354158", "0.53320277", "0.529202", "0.5280742", "0.5264732", "0.5256675", "0.5237473", "0.5224678", "0.52187186", "0.5218057", "0.5213157", "0.52078325", "0.5200214", "0.51940644", "0.51909816", "0.51909816", "0.51909816", "0.5171052", "0.51583755", "0.514844", "0.5142406", "0.5132585", "0.5107127", "0.5103911", "0.50912106", "0.50912106", "0.5043289", "0.50409883", "0.50347906", "0.5012568", "0.5011356", "0.4999208", "0.49972594", "0.49955755", "0.49879813", "0.49651352", "0.49416822", "0.49400344", "0.4933356", "0.49257922", "0.49153018", "0.490901", "0.49029434", "0.4896445", "0.489456", "0.48813888", "0.48770666", "0.4874147", "0.48738503", "0.4871638", "0.4859938", "0.48399398", "0.48255882", "0.48246962", "0.4824216", "0.48128122", "0.48126328", "0.48045376", "0.48014286", "0.48011857", "0.48005357", "0.47964412", "0.4790116", "0.47883806", "0.47786132", "0.4778448", "0.4771325", "0.47709838", "0.47696212", "0.47626126", "0.4757228", "0.47402328", "0.47160336", "0.47103393", "0.47103393", "0.47015607", "0.47000268", "0.46949267", "0.4693271", "0.46932703", "0.4693139", "0.46898612", "0.46820277", "0.4670175", "0.46691954" ]
0.7952428
0
Gets the value of the typeName property.
public List<QName> getTypeName() { if (typeName == null) { typeName = new ArrayList<QName>(); } return this.typeName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String typeName() {\n return typeName;\n }", "public String typeName() {\n return this.typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\n return typeName;\n }", "public String getTypeName() {\r\n\t\treturn typeName;\r\n\t}", "@Basic @Immutable\n\t public String getTypeName() {\n\t\t return typeName;\n\t }", "public String getTypeName() {\n \treturn typeName;\n }", "public String getTypeName() {\n\t\treturn this.typeName;\n\t}", "public String getTypeName() {\n return this.typeName;\n }", "public final String gettypeName() {\n\t\treturn this.typeNameField;\n\t}", "public String getTypeName()\n {\n return this.typeName;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getTypeName();", "public java.lang.String getTypeName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPENAME$6);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}", "public String getTypeName() {\n\t\t\treturn this.TypeName;\n\t\t}", "String typeName();", "public String getTypeName();", "public String getTypeName();", "public String getTypeName() {\n return type.name();\n }", "public String getTypeName() {\r\n return typeId.getSQLTypeName();\r\n }", "public String getTypeName() {\n\t\t\t\tif (_type.equals(TYPE_OBJECT)) {\n\t\t\t\t\treturn StringUtils.capitalize(_name);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn _type;\n\t\t\t}", "public String getTypeName() {\n Class type = getType();\n if (type == null)\n return null;\n return type.getName();\n }", "public abstract String getTypeName();", "public String getName() {\n return type.toString();\n }", "public void setTypeName(String typeName) {\n this.typeName = typeName;\n }", "public void setTypeName(String typeName) {\n this.typeName = typeName;\n }", "public void setTypeName(String typeName) {\n this.typeName = typeName;\n }", "@Override\r\n\tpublic String getTypeName() {\n\t\treturn null;\r\n\t}", "public void setTypeName(String typeName) {\r\n\t\tthis.typeName = typeName == null ? null : typeName.trim();\r\n\t}", "public void setTypeName(String typeName) {\n this.typeName = typeName == null ? null : typeName.trim();\n }", "public Integer getNametype() {\r\n return nametype;\r\n }", "public String formatTypeName()\r\n {\r\n return mFormatTypeName;\r\n }", "public org.apache.xmlbeans.XmlString xgetTypeName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(TYPENAME$6);\n return target;\n }\n }", "public String getDisplayName() {\n return typeElement.getQualifiedName().toString();\n }", "public NameType getType() {\n return type;\n }", "private static String getCorrectTypeName(final String typeName)\n {\n String result = \"\";\n\n // Type is an XSD built-in type\n if (mapping.containsKey(typeName))\n {\n result = mapping.get(typeName);\n }\n // Type is a custom type\n else\n {\n result = typeName;\n }\n\n return result;\n }", "public String getDTypeName() {\n return DTYPE.getName(this.dtype);\n }", "@Override\n\tpublic java.lang.String getTypeName() {\n\t\treturn _permissionType.getTypeName();\n\t}", "@Override\n public String getName() {\n return type.getName();\n }", "String getTypeAsString();", "public void setTypeName(java.lang.String value);", "public String getClazzName();", "public String getQualifiedName()\n {\n return name + \".\" + type;\n }", "public String ofType() {\n\t\t return name;\n\t}", "public String getIdTypeName() {\n\t\treturn this.getIdType(this.currentClass()).getSimpleName();\n\t}", "@Override\n public TypeImpl getType(String typeName) {\n return typeName2TypeImpl.get(typeName);\n }", "public GenericName getName() {\n return Names.parseGenericName(codeSpace, null, value);\n }", "public String getTypeName()\n {\n return getArgumentTypeName(type);\n }", "PropertyName getName();", "public String getDocumentTypeName() {\n return docTypeName;\n }", "public String getType() {\n return (String) getObject(\"type\");\n }", "String getSimpleName();", "String getSimpleName();", "default String getTypeName() {\n JdlFieldEnum type = getType();\n return switch (type) {\n case ENUM -> getEnumEntityName()\n .orElseThrow(() -> new IllegalStateException(\"An enum field must have its enum entity name set\"));\n default -> ((\"UUID\".equals(type.name())) ? type.name() : type.toCamelUpper());\n };\n }", "public String getTypeName(String type) {\n return m_importsTracker.getName(type);\n }", "public final void settypeName(String value) {\n\t\tthis.typeNameField = value;\n\t}", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "public Object fileName() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileName();\n }", "public String getQualifiedName() {\n return typeDeclaration.getQualifiedName();\n }", "public java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();" ]
[ "0.8287084", "0.8267615", "0.82002085", "0.82002085", "0.82002085", "0.82002085", "0.81989574", "0.81216884", "0.80499244", "0.8005082", "0.79738504", "0.7937185", "0.79279107", "0.7583212", "0.7529672", "0.75181055", "0.75181055", "0.75158185", "0.74815613", "0.74815613", "0.7317254", "0.70033336", "0.6973776", "0.6927558", "0.6917212", "0.6905261", "0.66934794", "0.66934794", "0.66934794", "0.66730344", "0.66368175", "0.66051143", "0.65448594", "0.64653426", "0.6462285", "0.63437414", "0.6304594", "0.6289579", "0.6263041", "0.625376", "0.6248818", "0.62253845", "0.6215774", "0.62044", "0.6202963", "0.6192981", "0.61763406", "0.6135313", "0.6099829", "0.60922945", "0.6068261", "0.60664064", "0.6065621", "0.60592467", "0.60592467", "0.6057972", "0.6050616", "0.6048507", "0.6046888", "0.6046888", "0.6046888", "0.6046888", "0.6046888", "0.6046888", "0.6046888", "0.6046888", "0.6046888", "0.6046888", "0.6046888", "0.6046888", "0.6046888", "0.6034693", "0.6008216", "0.60054725", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817", "0.5999817" ]
0.6903084
26
TODO: Remove permission node to deploy
@Command(names = {"team resize", "t resize", "f resize", "faction resize", "fac resize"}, permission = "op") public static void teamResize(final Player sender) { Team team = Hulu.getInstance().getTeamHandler().getTeam(sender); if (team == null) { sender.sendMessage(ChatColor.GRAY + "You are not on a team!"); return; } if (team.isOwner(sender.getUniqueId()) || team.isCoLeader(sender.getUniqueId()) || team.isCaptain(sender.getUniqueId())) { sender.getInventory().remove(SELECTION_WAND); if (team.isRaidable()) { sender.sendMessage(ChatColor.RED + "You may not resize land while your faction is raidable!"); return; } new BukkitRunnable() { public void run() { sender.getInventory().addItem(SELECTION_WAND.clone()); } }.runTaskLater(Hulu.getInstance(), 1L); new VisualClaim(sender, VisualClaimType.RESIZE, false).draw(false); if (!VisualClaim.getCurrentMaps().containsKey(sender.getName())) { new VisualClaim(sender, VisualClaimType.MAP, false).draw(true); } } else { sender.sendMessage(ChatColor.DARK_AQUA + "Only team captains can do this."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialDeploy() {\n }", "public void sfDeploy() throws SmartFrogException, RemoteException {\n super.sfDeploy();\n sfLog().info(\"DEPLOYED \"+sfCompleteNameSafe().toString());\n }", "@Override\n public String deploy(String applicationName, Environment environment, Component component) {\n return null;\n }", "public void execute() throws MojoExecutionException {\n deploy(service, dockerImage,Optional.ofNullable(kalixProject),Optional.ofNullable(kalixContext));\n }", "public TiDeployData()\n\t{\n\t\tTiApplication app = TiApplication.getInstance();\n\t\tFile extStorage = Environment.getExternalStorageDirectory();\n\t\tFile deployJson = new File(new File(extStorage, app.getPackageName()), \"deploy.json\");\n\t\tif (deployJson.exists()) {\n\t\t\treadDeployData(deployJson);\n\t\t}\n\t}", "@Test\n @Deployment(resources = ApprovalProcess.RESOURCE)\n public void should_deploy() {\n }", "public abstract DeployedPhysicalStructure deployStructure(PhysicalStructure structure) throws Exception;", "@Test\n public void testAccessControlIsOnlyCheckedWhenNoProdDeploymentExists() {\n List<Host> hosts = createHosts(18, \"6.0.0\");\n\n List<ModelFactory> modelFactories = List.of(createHostedModelFactory(Version.fromString(\"6.0.0\")),\n createHostedModelFactory(Version.fromString(\"6.1.0\")),\n createHostedModelFactory(Version.fromString(\"6.2.0\")));\n\n DeployTester tester = createTester(hosts, modelFactories, prodZone, Clock.systemUTC());\n ApplicationId applicationId = tester.applicationId();\n // Deploy with oldest version\n tester.deployApp(\"src/test/apps/hosted/\", \"6.0.0\");\n assertEquals(9, tester.getAllocatedHostsOf(applicationId).getHosts().size());\n\n // Deploy with version that does not exist on hosts and with app package that has no write access control,\n // validation of access control should not be done, since the app is already deployed in prod\n tester.deployApp(\"src/test/apps/hosted-no-write-access-control\", \"6.1.0\");\n assertEquals(9, tester.getAllocatedHostsOf(applicationId).getHosts().size());\n }", "DeployShard() {\n }", "@PostConstruct\n public void deploy() {\n Vertx.vertx().deployVerticle(vertxHttpServerApplication);\n }", "@Override\n protected String requiredPutPermission() {\n return \"admin\";\n }", "void method0() {\nprotected File configBase = null;\n/**\n * The Context container associated with our web application.\n */\nprotected Context context = null;\n/**\n * The debugging detail level for this servlet.\n */\nprotected int debug = 1;\n/**\n * File object representing the directory into which the deploy() command\n * will store the WAR and context configuration files that have been\n * uploaded.\n */\nprotected File deployed = null;\n/**\n * Path used to store revisions of webapps.\n */\nprotected File versioned = null;\n/**\n * Path used to store context descriptors.\n */\nprotected File contextDescriptors = null;\n/**\n * The associated host.\n */\nprotected Host host = null;\n/**\n * The host appBase.\n */\nprotected File appBase = null;\n/**\n * MBean server.\n */\nprotected MBeanServer mBeanServer = null;\n/**\n * The associated deployer ObjectName.\n */\nprotected ObjectName oname = null;\n/**\n * The global JNDI <code>NamingContext</code> for this server,\n * if available.\n */\nprotected javax.naming.Context global = null;\n/**\n * The string manager for this package.\n */\nprotected static final StringManager sm = StringManager.getManager(Constants.Package);\n/**\n * The Wrapper container associated with this servlet.\n */\nprotected Wrapper wrapper = null;\n}", "boolean deploy(TenantServiceAccessor tenantAccessor, BusinessArchive businessArchive, SProcessDefinition processDefinition) throws BonitaException;", "@Override\n\tpublic void apply( final ApplyFn fn ) throws AccessDeniedException;", "public void testTargetAwareDeployment() {\n final java.io.File appArchive = \n new java.io.File(APPLICATION);\n printAllDeployedComponents();\n //deployApplication(appArchive,getTargets());\n printAllDeployedComponents();\n //checkDeploymentPassed(\"stateless-simple\", getTargets());\n //undeployApplication(appArchive, getTargets());\n }", "public void deploy() throws JobException {\n\t\tassertRunningInJobMasterMainThread();\n\n\t\tfinal LogicalSlot slot = assignedResource;\n\n\t\t// make sure exactly one deployment call happens from the correct state\n\t\t// note: the transition from CREATED to DEPLOYING is for testing purposes only\n\t\tExecutionState previous = this.state;\n\t\tif (previous == SCHEDULED || previous == CREATED) {\n\t\t\tif (!transitionState(previous, DEPLOYING)) {\n\t\t\t\t// race condition, someone else beat us to the deploying call.\n\t\t\t\t// this should actually not happen and indicates a race somewhere else\n\t\t\t\tthrow new IllegalStateException(\"Cannot deploy task: Concurrent deployment call race.\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// vertex may have been cancelled, or it was already scheduled\n\t\t\tthrow new IllegalStateException(\"The vertex must be in CREATED or SCHEDULED state to be deployed. Found state \" + previous);\n\t\t}\n\n\t\tif (this != slot.getPayload()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t\tString.format(\"The execution %s has not been assigned to the assigned slot.\", this));\n\t\t}\n\n\t\ttry {\n\n\t\t\t// race double check, did we fail/cancel and do we need to release the slot?\n\t\t\tif (this.state != DEPLOYING) {\n\t\t\t\tslot.releaseSlot(new FlinkException(\"Actual state of execution \" + this + \" (\" + state + \") does not match expected state DEPLOYING.\"));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfinal TaskDeploymentDescriptor deployment = TaskDeploymentDescriptorFactory\n\t\t\t\t.fromExecutionVertex(vertex, attemptNumber)\n\t\t\t\t.createDeploymentDescriptor(\n\t\t\t\t\tslot.getAllocationId(),\n\t\t\t\t\tslot.getPhysicalSlotNumber(),\n\t\t\t\t\ttaskRestore,\n\t\t\t\t\tproducedPartitions.values());\n\n\t\t\t// null taskRestore to let it be GC'ed\n\t\t\t// 手动GC\n\t\t\ttaskRestore = null;\n\n\t\t\tfinal TaskManagerGateway taskManagerGateway = slot.getTaskManagerGateway();\n\n\t\t\tfinal ComponentMainThreadExecutor jobMasterMainThreadExecutor =\n\t\t\t\tvertex.getExecutionGraph().getJobMasterMainThreadExecutor();\n\n\t\t\t// 调用submitTask\n\t\t\tCompletableFuture.supplyAsync(() -> taskManagerGateway.submitTask(deployment, rpcTimeout), executor)\n\t\t\t\t.thenCompose(Function.identity())\n\t\t\t\t.whenCompleteAsync(\n\t\t\t\t\t(ack, failure) -> { },\n\t\t\t\t\tjobMasterMainThreadExecutor);\n\n\t\t}\n\t\tcatch (Throwable t) {\n\t\t\tmarkFailed(t);\n\n\t\t\tif (isLegacyScheduling()) {\n\t\t\t\tExceptionUtils.rethrow(t);\n\t\t\t}\n\t\t}\n\t}", "public IStatus prepareDeployDirectory(IPath deployPath);", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tUtils.upgradeRootPermission(getPackageCodePath());\n\t\t\t}", "@Override\n\tpublic void\t\t\tdeploy() throws Exception\n\t{\n\t\tassert\t!this.deploymentDone() ;\n\n\t\t// --------------------------------------------------------------------\n\t\t// Configuration phase\n\t\t// --------------------------------------------------------------------\n\n\t\t// debugging mode configuration; comment and uncomment the line to see\n\t\t// the difference\n//\t\tAbstractCVM.DEBUG_MODE.add(CVMDebugModes.PUBLIHSING) ;\n//\t\tAbstractCVM.DEBUG_MODE.add(CVMDebugModes.CONNECTING) ;\n//\t\tAbstractCVM.DEBUG_MODE.add(CVMDebugModes.COMPONENT_DEPLOYMENT) ;\n\n\t\t// --------------------------------------------------------------------\n\t\t// Creation phase\n\t\t// --------------------------------------------------------------------\n\n\t\t// create the component\n\t\tthis.controllerURI =\n\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\tController.class.getCanonicalName(),\n\t\t\t\t\tnew Object[]{CONTROLLER_URI,\n\t\t\t\t\t\t\tCONTROLLER_OBP_URI, \n\t\t\t\t\t\t\tCONTROLLER_OBP2_URI, \n\t\t\t\t\t\t\tCONTROLLER_OBP3_URI,\n\t\t\t\t\t\t\tCONTROLLER_OBP4_URI,\n\t\t\t\t\t\t\tCONTROLLER_OBP5_URI,\n\t\t\t\t\t\t\tCONTROLLER_OBP6_URI,\n\t\t\t\t\t\t\tCONTROLLER_LAUNCH_URI}) ;\n\t\tassert\tthis.isDeployedComponent(this.controllerURI) ;\n\t\t// make it trace its operations\n\t\tthis.toggleTracing(this.controllerURI) ;\n\t\tthis.toggleLogging(this.controllerURI) ;\n\n\t\tthis.fridgeURI =\n\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\tFridge.class.getCanonicalName(),\n\t\t\t\t\tnew Object[]{FRIDGE_URI,\n\t\t\t\t\t\t\tFRIDGE_IBP_URI,\n\t\t\t\t\t\t\tFRIDGE_EP_URI,\n\t\t\t\t\t\t\tFRIDGE_LAUNCH_URI}) ;\n\t\tassert\tthis.isDeployedComponent(this.fridgeURI) ;\n\t\t// make it trace its operations\n\t\tthis.toggleTracing(this.fridgeURI) ;\n\t\tthis.toggleLogging(this.fridgeURI) ;\n\t\t\n\t\t\n\t\tthis.ovenURI =\n\t\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\t\tOven.class.getCanonicalName(),\n\t\t\t\t\t\tnew Object[]{OVEN_URI,\n\t\t\t\t\t\t\t\tOVEN_IBP_URI,\n\t\t\t\t\t\t\t\tOVEN_EP_URI,\n\t\t\t\t\t\t\t\tOVEN_LAUNCH_URI}) ;\n\t\tassert\tthis.isDeployedComponent(this.ovenURI) ;\n\t\t// make it trace its operations\n\t\tthis.toggleTracing(this.ovenURI) ;\n\t\tthis.toggleLogging(this.ovenURI) ;\n\t\t\n\t\tthis.heaterURI =\n\t\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\t\tHeater.class.getCanonicalName(),\n\t\t\t\t\t\tnew Object[]{HEATER_URI,\n\t\t\t\t\t\t\t\tHEATER_IBP_URI,\n\t\t\t\t\t\t\t\tHEATER_EP_URI,\n\t\t\t\t\t\t\t\tHEATER_LAUNCH_URI}) ;\n\t\t\tassert\tthis.isDeployedComponent(this.heaterURI) ;\n\t\t\t// make it trace its operations\n\t\t\tthis.toggleTracing(this.heaterURI) ;\n\t\t\tthis.toggleLogging(this.heaterURI) ;\n\t\t\n\t\tthis.spURI =\n\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\tSolarPanel.class.getCanonicalName(),\n\t\t\t\t\tnew Object[]{SP_URI,\n\t\t\t\t\t\t\tSP_OBP_URI,\n\t\t\t\t\t\t\tSP_LAUNCH_URI}) ;\n\t\tassert\tthis.isDeployedComponent(this.spURI) ;\n\t\t// make it trace its operations\n\t\tthis.toggleTracing(this.spURI) ;\n\t\tthis.toggleLogging(this.spURI) ;\n\t\t\n\t\tthis.ondulatorURI =\n\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\tOndulator.class.getCanonicalName(),\n\t\t\t\t\tnew Object[]{ONDULATOR_URI,\n\t\t\t\t\t\t\tONDULATOR_OBP_URI,\n\t\t\t\t\t\t\tONDULATOR_IBP_URI,\n\t\t\t\t\t\t\tONDULATOR_LAUNCH_URI}) ;\n\t\tassert\tthis.isDeployedComponent(this.ondulatorURI) ;\n\t\t// make it trace its operations\n\t\tthis.toggleTracing(this.ondulatorURI) ;\n\t\tthis.toggleLogging(this.ondulatorURI) ;\n\t\t\n\t\tthis.batteryURI =\n\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\tBattery.class.getCanonicalName(),\n\t\t\t\t\tnew Object[]{BATTERY_URI,\n\t\t\t\t\t\t\tBATTERY_IBP_URI,\n\t\t\t\t\t\t\tBATTERY_LAUNCH_URI}) ;\n\t\tassert\tthis.isDeployedComponent(this.batteryURI) ;\n\t\t// make it trace its operations\n\t\tthis.toggleTracing(this.batteryURI) ;\n\t\tthis.toggleLogging(this.batteryURI) ;\n\t\t\n\t\tthis.epURI =\n\t\t\t\tAbstractComponent.createComponent(\n\t\t\t\t\t\tElecPanel.class.getCanonicalName(),\n\t\t\t\t\t\tnew Object[]{EP_URI,\n\t\t\t\t\t\t\t\tEP_IBP_URI,\n\t\t\t\t\t\t\t\tEP_LAUNCH_URI}) ;\n\t\t\tassert\tthis.isDeployedComponent(this.epURI) ;\n\t\t\t// make it trace its operations\n\t\t\tthis.toggleTracing(this.epURI) ;\n\t\t\tthis.toggleLogging(this.epURI) ;\n\t\t\t\t\n\t\t// --------------------------------------------------------------------\n\t\t// Connection phase\n\t\t// --------------------------------------------------------------------\n\n\t\t// do the connection\n\t\tthis.doPortConnection(\n\t\t\t\tthis.controllerURI,\n\t\t\t\tCONTROLLER_OBP_URI,\n\t\t\t\tFRIDGE_IBP_URI,\n\t\t\t\tControllerFridgeConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.controllerURI,\n\t\t\t\tCONTROLLER_OBP6_URI,\n\t\t\t\tOVEN_IBP_URI,\n\t\t\t\tControllerOvenConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.controllerURI,\n\t\t\t\tCONTROLLER_OBP4_URI,\n\t\t\t\tHEATER_IBP_URI,\n\t\t\t\tControllerHeaterConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.controllerURI,\n\t\t\t\tCONTROLLER_OBP5_URI,\n\t\t\t\tEP_IBP_URI,\n\t\t\t\tControllerEPConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.spURI,\n\t\t\t\tSP_OBP_URI,\n\t\t\t\tONDULATOR_IBP_URI,\n\t\t\t\tSPOndulatorConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.ondulatorURI,\n\t\t\t\tONDULATOR_OBP_URI,\n\t\t\t\tBATTERY_IBP_URI,\n\t\t\t\tOndulatorBatteryConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.controllerURI,\n\t\t\t\tCONTROLLER_OBP2_URI,\n\t\t\t\tBATTERY_IBP_URI,\n\t\t\t\tControllerBatteryConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.controllerURI,\n\t\t\t\tCONTROLLER_OBP3_URI,\n\t\t\t\tONDULATOR_IBP_URI,\n\t\t\t\tControllerOndulatorConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.heaterURI,\n\t\t\t\tHEATER_EP_URI,\n\t\t\t\tEP_IBP_URI,\n\t\t\t\tComponentEPConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.fridgeURI,\n\t\t\t\tFRIDGE_EP_URI,\n\t\t\t\tEP_IBP_URI,\n\t\t\t\tComponentEPConnector.class.getCanonicalName()) ;\n\t\t\n\t\tthis.doPortConnection(\n\t\t\t\tthis.ovenURI,\n\t\t\t\tOVEN_EP_URI,\n\t\t\t\tEP_IBP_URI,\n\t\t\t\tComponentEPConnector.class.getCanonicalName()) ;\n\t\n\t\t// --------------------------------------------------------------------\n\t\t// Deployment done\n\t\t// --------------------------------------------------------------------\n\n\t\tsuper.deploy();\n\t\tassert\tthis.deploymentDone() ;\n\t}", "public List<Resource> deployResources() throws Exception {\n List<Resource> developmentResources = findResources(m_developmentRepo, \"*\", \"*\");\n List<Resource> deployedResources = new ArrayList<>();\n for (Resource developmentResource : developmentResources) {\n deployedResources.add(deployResource(developmentResource));\n }\n return deployedResources;\n }", "public boolean isToDeploy() {\r\n\t\treturn attachUpdates>0 || catUpdates>0 || catTransUpdates>0 || prodUpdates>0 || prodTransUpdates>0 || menuUpdates>0;\r\n\t}", "@Override\n public GetDeploymentResponse executeRequest() throws MorpheusApiRequestException {\n return (GetDeploymentResponse) RequestHelper.executeRequest(GetDeploymentResponse.class, this, \"/api/deployments/\" + deploymentId, HttpPut.METHOD_NAME);\n }", "public void deploy() throws Exception {\n ArrayList<String> args = new ArrayList<String>();\n File onWindows = new File(\"C:/cygwin/bin/rsync.exe\");\n args.add(onWindows.exists() ? onWindows.getAbsolutePath() : \"rsync\");\n args.add(\"-vrzute\");\n args.add(ssh(_user, _key));\n args.add(\"--delete\");\n args.add(\"--chmod=u=rwx\");\n\n args.add(\"--exclude\");\n args.add(\"'build/*.jar'\");\n args.add(\"--exclude\");\n args.add(\"'lib/hexbase_impl.jar'\");\n args.add(\"--exclude\");\n args.add(\"'lib/javassist'\");\n\n ArrayList<String> sources = new ArrayList<String>();\n sources.add(\"build\");\n sources.add(\"lib\");\n for( int i = 0; i < sources.size(); i++ ) {\n String path = new File(sources.get(i)).getAbsolutePath();\n // Adapts paths in case running on Windows\n sources.set(i, path.replace('\\\\', '/').replace(\"C:/\", \"/cygdrive/c/\"));\n }\n args.addAll(sources);\n\n args.add(_host + \":\" + \"/home/\" + _user + \"/\" + TARGET);\n ProcessBuilder builder = new ProcessBuilder(args);\n builder.environment().put(\"CYGWIN\", \"nodosfilewarning\");\n builder.redirectErrorStream(true);\n Process process = null;\n\n try {\n process = builder.start();\n SeparateVM.inheritIO(process, \"rsync to \" + _host, true);\n process.waitFor();\n } finally {\n if( process != null ) {\n try {\n process.destroy();\n } catch( Exception _ ) {\n }\n }\n }\n }", "private boolean isDeploy(String address) {\n if (StringUtils.isBlank(address)) {\n return true;\n }\n return ConstantProperties.ADDRESS_DEPLOY.equals(address);\n }", "@Override\n\tprotected void addAction(HashSet<String> addSet){\n\t\t((AdaptDependencyManager)MiddleWareConfig.getInstance().getDepManager()).addNewDeploymentNodeBySet(addSet);\n\t}", "@Override\n public void undeploy(DeploymentUnit context) {\n \n }", "public void execute() throws BuildException {\n \tServiceClientFactory scf=super.getServiceClientFactory();\n\n \ttry {\n \t\tApplicationManagerClient amClient=new ApplicationManagerClient(scf);\n \t\tamClient.deployApplication(applicationName,version);\n \t\t\n \t\t// Log success message for feedback\n \t\tlog(\"Successfully deployed application: \" + applicationName + \"/\" + version);\n\n \t} catch (Exception e){\n \t\tthrow new BuildException(\"Error deploying application:\"+e.getMessage());\n \t}\n }", "@Override\n public void deploy() throws Exception {\n assert !this.deploymentDone();\n PubSub pubSub = PubSub.newBuilder(this)\n .build();\n\n this.publisher1 = Publisher.newBuilder(this, pubSub.getInBoundPortURI()).build();\n this.publisher2 = Publisher.newBuilder(this, pubSub.getInBoundPortURI()).build();\n this.subscriber1 = Subscriber.newBuilder(this, pubSub.getInBoundPortURI()).build();\n\n\n // --------------------------------------------------------------------\n // Connection phase\n // --------------------------------------------------------------------\n\n\n super.deploy();\n assert this.deploymentDone();\n }", "CdapDeployAppStep createCdapDeployAppStep();", "public ProgressObject deploy(Target[] target, File file, File file2, String host, int port) {\n mainModuleID = new JBTargetModuleID(target[0], file.getName());\n\n try {\n String server_url = \"http://\" + host + \":\" + port; // NOI18N\n\n if (file.getName().endsWith(\".war\")) {\n mainModuleID.setContextURL(getWebUrl(server_url, JbossWeb.createGraph(file2).getContextRoot()));\n } else if (file.getName().endsWith(\".ear\")) {\n JarFileSystem jfs = new JarFileSystem();\n jfs.setJarFile(file);\n FileObject appXml = jfs.getRoot().getFileObject(\"META-INF/application.xml\");\n if (appXml != null) {\n Application ear = DDProvider.getDefault().getDDRoot(appXml);\n Module[] modules = ear.getModule();\n for (int i = 0; i < modules.length; i++) {\n JBTargetModuleID mod_id = new JBTargetModuleID(target[0]);\n if (modules[i].getWeb() != null) {\n mod_id.setJARName(modules[i].getWeb().getWebUri());\n mod_id.setContextURL(getWebUrl(server_url, modules[i].getWeb().getContextRoot()));\n }\n mainModuleID.addChild(mod_id);\n }\n } else {\n // Java EE 5\n for (FileObject child : jfs.getRoot().getChildren()) {\n if (child.hasExt(\"war\") || child.hasExt(\"jar\")) { // NOI18N\n JBTargetModuleID mod_id = new JBTargetModuleID(target[0], child.getNameExt());\n\n if (child.hasExt(\"war\")) { // NOI18N\n String contextRoot = child.getName();\n ZipInputStream zis = new ZipInputStream(child.getInputStream());\n try {\n\n ZipEntry entry = null;\n while ((entry = zis.getNextEntry()) != null) {\n if (\"WEB-INF/jboss-web.xml\".equals(entry.getName())) { // NOI18N\n String ddContextRoot =\n JbossWeb.createGraph(new ZipEntryInputStream(zis)).getContextRoot();\n if (ddContextRoot != null) {\n contextRoot = ddContextRoot;\n }\n break;\n }\n }\n } catch (IOException ex) {\n LOGGER.log(Level.INFO, \"Error reading context-root\", ex); // NOI18N\n } finally {\n zis.close();\n }\n\n mod_id.setContextURL(getWebUrl(server_url, contextRoot));\n }\n mainModuleID.addChild(mod_id);\n }\n }\n }\n }\n\n } catch(Exception e) {\n LOGGER.log(Level.INFO, null, e);\n }\n\n this.file = file;\n fireHandleProgressEvent(null, new JBDeploymentStatus(ActionType.EXECUTE, CommandType.DISTRIBUTE, StateType.RUNNING, NbBundle.getMessage(JBDeployer.class, \"MSG_DEPLOYING\", file.getAbsolutePath())));\n RequestProcessor.getDefault().post(this, 0, Thread.NORM_PRIORITY);\n return this;\n }", "public FinishDeploy() {\n addSequential(new AbortAll());\n addSequential(new HatchEject());\n }", "@Override\n protected String requiredPostPermission() {\n return \"admin\";\n }", "@Override\n public Long action(MBeanServerConnection connection, JBoss5ProfileServiceProxy profileService) throws Exception {\n Object info = connection.invoke(new ObjectName(\"jboss.system:service=MainDeployer\"), // NOI18N\n \"getDeployment\", new Object[] {fileToDeploy.getCanonicalFile().toURL()}, new String[] {\"java.net.URL\"}); // NOI18N\n if (info == null) {\n info = connection.invoke(new ObjectName(\"jboss.system:service=MainDeployer\"), // NOI18N\n \"getDeployment\", new Object[] {fileToDeploy.toURL()}, new String[] {\"java.net.URL\"}); // NOI18N\n }\n if (info == null) {\n return Long.MIN_VALUE;\n }\n\n Class infoClass = info.getClass();\n return infoClass.getDeclaredField(\"lastDeployed\").getLong(info); // NOI18N\n }", "public FrostDeployer() {\n\n }", "private Resource deployResource(Resource developmentResource) throws Exception {\n List<Resource> releaseResources = findResources(m_releaseRepo, getIdentityVersionRequirement(developmentResource));\n if (releaseResources.size() > 0) {\n return deployReleasedResource(releaseResources.get(0));\n }\n else {\n return deploySnapshotResource(developmentResource);\n }\n }", "public JSR88Deployer(String uri, String user, String password) {\n this.user = user;\n this.password = password;\n this.uri = uri;\n loadDeploymentFactory();\n loadSystemApps(); //system apps to be filtered\n\n log(\"Connecting using uri = \" + uri + \"; user = \" + user + \"; password = \" + password);\n try {\n dm = DeploymentFactoryManager.getInstance().getDeploymentManager(uri, user, password);\n } catch (Exception ex) {\n ex.printStackTrace();\n System.exit(-1); \n }\n\n Target[] allTargets = dm.getTargets();\n if (allTargets.length == 0) {\n log(\"Can't find deployment targets...\");\n System.exit(-1); \n }\n \n // If test being run on EE, exclude the DAS server instance from the deploy targets\n String targetPlatform = System.getProperty(\"deploymentTarget\");\n List filteredTargets = new ArrayList();\n if( (\"SERVER\".equals(targetPlatform)) || (\"CLUSTER\".equals(targetPlatform)) ) {\n for(int i=0; i<allTargets.length; i++) {\n if(allTargets[i].getName().equals(\"server\")) {\n continue;\n }\n filteredTargets.add(allTargets[i]);\n }\n targets = (Target[])(filteredTargets.toArray(new Target[filteredTargets.size()]));\n } else {\n targets = allTargets;\n }\n\n for(int i=0; i<targets.length; i++) {\n log(\"DBG : Target \" + i + \" -> \" + targets[i].getName());\n }\n }", "public Builder deployRole() {\n onlyVerify = false;\n return builder();\n }", "private void addApplicationsPermissionsToRegistry() throws APIManagementException {\n Registry tenantGovReg = getRegistry();\n String permissionResourcePath = CarbonConstants.UI_PERMISSION_NAME + RegistryConstants.PATH_SEPARATOR + APPLICATION_ROOT_PERMISSION;\n try {\n if (!tenantGovReg.resourceExists(permissionResourcePath)) {\n String loggedInUser = CarbonContext.getThreadLocalCarbonContext().getUsername();\n UserRealm realm = (UserRealm) CarbonContext.getThreadLocalCarbonContext().getUserRealm();\n // Logged in user is not authorized to create the permission.\n // Temporarily change the user to the admin for creating the permission\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(realm.getRealmConfiguration().getAdminUserName());\n tenantGovReg = CarbonContext.getThreadLocalCarbonContext().getRegistry(RegistryType.USER_GOVERNANCE);\n Collection appRootNode = tenantGovReg.newCollection();\n appRootNode.setProperty(\"name\", \"Applications\");\n tenantGovReg.put(permissionResourcePath, appRootNode);\n PrivilegedCarbonContext.getThreadLocalCarbonContext().setUsername(loggedInUser);\n }\n } catch (org.wso2.carbon.user.core.UserStoreException e) {\n throw new APIManagementException(\"Error while reading user store information.\", e);\n } catch (org.wso2.carbon.registry.api.RegistryException e) {\n throw new APIManagementException(\"Error while creating new permission in registry\", e);\n }\n }", "void deploy(Map<?, ?> properties, Set<File> modules) throws EJBException {\n File app = null;\n try {\n app = getOrCreateApplication(modules);\n \n if (_logger.isLoggable(Level.FINE)) {\n _logger.fine(\"[EJBContainerImpl] Deploying app: \" + app);\n }\n DeployCommandParameters dp = new DeployCommandParameters();\n dp.path = app;\n\n if (properties != null) {\n dp.name = (String)properties.get(EJBContainer.APP_NAME);\n }\n\n deployedAppName = deployer.deploy(app, dp);\n cleanup = new Cleanup(this);\n } catch (IOException e) {\n throw new EJBException(\"Failed to deploy EJB modules\", e);\n }\n\n if (deployedAppName == null) {\n throw new EJBException(\"Failed to deploy EJB modules - see log for details\");\n }\n }", "public interface SysPermissionService {\n}", "public static void main(String[] args) throws Exception {\n\n\t\tString dockerIp = InetAddress.getLocalHost().getHostAddress();//getByName(\"localhost\")\n\t\tVertxOptions options = new VertxOptions();\n\t\toptions.setClusterHost(dockerIp);\n\t\tVertx.clusteredVertx(options,\n\t\t\t\tvertxAsyncResult -> vertxAsyncResult.result().deployVerticle(new Receiver()));//new Receiver()));\n\t \n\t}", "public void deployClimbPiston(boolean deploy) {\n\t\t//Commented out for practice because there is no match time\n\t\t//if (DriverStation.getInstance().getMatchTime() <= 30) {\n\t\tclimbPiston.set(deploy);\n\t\tRobot.claw.stop();\t\t// stop claw motors\n\t\tRobot.log.writeLogEcho(\"Climb hook,deploy,\" + deploy);\n//\t\t}\n\t}", "public interface ProcessDefinitionDeploy extends ProcessDefinition,Deployment {\n}", "public PackageServer() {\n\t\t\n\t\t// Create the release folder\n\t\tLOGGER.debug(\"Creating directory: {}\", RELEASE_FOLDER);\n\t\tif (PackageUtils.createDirectory(RELEASE_FOLDER)) {\n\t\t\tLOGGER.debug(\"Created: {}\", RELEASE_FOLDER);\n\t\t} else {\n\t\t\tLOGGER.debug(\"Failed creating: {}\", RELEASE_FOLDER);\n\t\t}\n\t}", "public synchronized Promise<DeployedInstanceManager, Throwable, Double> deploy() {\n final DeployedInstanceManager self = this;\n JSch.setConfig(\"StrictHostKeyChecking\", \"no\");\n final DeferredManager deferred = new DefaultDeferredManager();\n\n return deferred.when(new DeferredCallable<DeployedInstanceManager, Double>() {\n @Override\n public DeployedInstanceManager call() throws IOException {\n notify(0.2);\n scpFileToTarget(coreJar);\n notify(0.5);\n scpFileToTarget(projectFile);\n notify(1.0);\n return self;\n }\n\n });\n }", "public RunnerRestDeploy(final GlassFishServer server,\n final Command command) {\n super(server, command);\n this.command = (CommandDeploy)command;\n }", "DeploymentDescriptor createDeploymentDescriptor();", "void deployApp(String marathonJson);", "@Override\n @Transactional\n public void run(String... args) throws Exception {\n String adminUserFolder = uploadDirectory + \"/79a5bd3f-1ec2-46cf-94b6-8ac23df3f3c9\";\n String userFolder = uploadDirectory + \"/f9d98297-9db9-41a3-86e6-25ab0480fcd8\";\n\n Resource resource = new ClassPathResource(\"/static/images/avatar.png\");\n\n InputStream initialStream = resource.getInputStream();\n File targetFile = new File(\"src/main/resources/targetFile.png\");\n OutputStream outStream = new FileOutputStream(targetFile);\n\n byte[] buffer = new byte[8 * 1024];\n int bytesRead;\n while ((bytesRead = initialStream.read(buffer)) != -1) {\n outStream.write(buffer, 0, bytesRead);\n }\n IOUtils.closeQuietly(initialStream);\n IOUtils.closeQuietly(outStream);\n\n if (!Files.exists(Paths.get(adminUserFolder))) {\n Files.createDirectory(Paths.get(adminUserFolder));\n Files.copy(Paths.get(targetFile.getAbsolutePath()), Paths.get(adminUserFolder + \"/avatar.png\"));\n }\n\n if (!Files.exists(Paths.get(userFolder))) {\n Files.createDirectory(Paths.get(userFolder));\n Files.copy(Paths.get(targetFile.getAbsolutePath()), Paths.get(userFolder + \"/avatar.png\"));\n }\n }", "public static void main(String[] args) throws Throwable {\n NeoConfig.setMagicNumber(new byte[]{0x01, 0x03, 0x00, 0x0}); // Magic number 769\n\n // Set up the connection to the neo-node\n Neow3j neow3j = Neow3j.build(new HttpService(\"http://localhost:40332\"));\n // Setup an account and wallet for signing the transaction. Make sure that the account has a\n // sufficient GAS balance to pay for the deployment.\n Account a = Account.fromWIF(\"L3kCZj6QbFPwbsVhxnB8nUERDy4mhCSrWJew4u5Qh5QmGMfnCTda\");\n Wallet w = Wallet.withAccounts(a);\n\n // Retrieve the contract files.\n NefFile nefFile = NefFile.readFromFile(new File(\"./build/neow3j/AxLabsToken.nef\"));\n ContractManifest manifest;\n try (FileInputStream s = new FileInputStream(\"./build/neow3j/AxLabsToken.manifest.json\")) {\n manifest = ObjectMapperFactory.getObjectMapper().readValue(s, ContractManifest.class);\n }\n\n // Deploy the contract's NEF and manifest. This creates, signs and send a transaction to\n // the neo-node.\n NeoSendRawTransaction response = new ManagementContract(neow3j).deploy(nefFile, manifest)\n .wallet(w)\n .signers(Signer.calledByEntry(a.getScriptHash()))\n .sign()\n .send();\n\n if (response.hasError()) {\n System.out.printf(\"Deployment was not successful. Error message from neo-node \"\n + \"was: '%s'\\n\", response.getError().getMessage());\n }\n \n ScriptHash scriptHash = SmartContract.getContractHash(a.getScriptHash(), nefFile.getScript());\n System.out.printf(\"Script hash of the deployd contract: %s\\n\", scriptHash.toString());\n }", "public int getDeployOrder();", "@Override\n public void onPermissionGranted() {\n }", "protected void tryDeploy() {\n ComponentManager mgr = harness.getContext().getRuntime().getComponentManager();\n // the stash may already contains contribs (from @Setup methods)\n if (mgr.hasChanged()) { // first reset the registry if it was changed by the last test\n mgr.reset();\n // the registry is now stopped\n }\n // deploy current test contributions if any\n deploy(runner, harness);\n mgr.refresh(true);\n // now the stash is empty\n mgr.start(); // ensure components are started\n }", "@Override\n public void onPermissionGranted() {\n }", "public interface InstanceDeployCenter {\r\n\r\n /**\r\n * 启动已经存在的实例\r\n * @param appId\r\n * @param instanceId\r\n * @return\r\n */\r\n boolean startExistInstance(long appId, int instanceId);\r\n\r\n /**\r\n * 启动已存在的实例,无需进行redis资源包校验\r\n * @param appId\r\n * @param instanceId\r\n * @return\r\n */\r\n boolean startExistInstanceWithoutResourceCheck(long appId, int instanceId);\r\n\r\n /**\r\n * 下线已经存在的实例\r\n * @param appId\r\n * @param instanceId\r\n * @return\r\n */\r\n boolean shutdownExistInstance(long appId, int instanceId);\r\n\r\n /**\r\n * cluster forget\r\n * @param appId\r\n * @param instanceId\r\n * @return\r\n */\r\n boolean forgetInstance(long appId, int instanceId);\r\n\r\n /**\r\n * 清理(cluster forget)集群内所有fail节点\r\n * @param appId\r\n * @param instanceId\r\n * @return\r\n */\r\n boolean clearFailInstances(long appId);\r\n \r\n /**\r\n * 展示实例最近的日志\r\n * @param instanceId\r\n * @param maxLineNum\r\n * @return\r\n */\r\n String showInstanceRecentLog(int instanceId, int maxLineNum);\r\n\r\n /**\r\n * 修改实例配置\r\n * @param appId\r\n * @param appAuditId\r\n * @param host\r\n * @param port\r\n * @param instanceConfigKey\r\n * @param instanceConfigValue\r\n * @return\r\n */\r\n boolean modifyInstanceConfig(long appId, Long appAuditId, String host, int port, String instanceConfigKey,\r\n String instanceConfigValue);\r\n\r\n /**\r\n * 检测pod是否有被调度其他宿主机\r\n * @param ip\r\n */\r\n MachineSyncEnum podChangeStatus(String ip);\r\n\r\n /**\r\n * 检测pod是否有心跳停止实例&启动\r\n * @return\r\n */\r\n List<InstanceAlertValueResult> checkAndStartExceptionInstance(String ip, Boolean isAlert);\r\n\r\n\r\n}", "private void createByteCode(DeployBeanDescriptor<?> deploy) {\n setEntityBeanClass(deploy);\n // use Code generation or Standard reflection to support\n // getter and setter methods\n setBeanReflect(deploy);\n }", "@Override\n public void checkPermission(Permission perm) {\n }", "public void deployManifest(Manifest manifest) {\n log.debug(\"target: {}\", getTarget().getUri().toString());\n getTarget()\n .path(\"/deploy/manifest\")\n .request()\n .accept(MediaType.APPLICATION_XML)\n .post(Entity.entity(manifest, MediaType.APPLICATION_XML), Manifest.class);\n }", "public static void main(String[] args) {\n\t\tint id =4 ;\n\t\tCMDBService cmdbService = CMDBService.getCMDBService();\n\t\tSystem.out.println(\"All deployment details:- \\n\" + cmdbService.getAllDeploymentDetails());\n\t\t\n\t\tSystem.out.println(\"Get deployment details for id=\"+ id +\" :- \\n\" + cmdbService.getDeploymentDetails(id));\n\t\t\n\t\tSystem.out.println(\"Deleting deployment data for id=\" + id + \":- \\n\" + cmdbService.deleteDeploymentDetails(id));\n\t\t\n\t\tSystem.out.println(\"After deletion deployment details:- \\n\" + cmdbService.getAllDeploymentDetails());\n\t\t//Add new data to CMDB list\n\t\tCMDB cmdb = new CMDB();\n\t\tcmdb.setArtifactName(\"jboss\");\n\t\tcmdb.setArtifactVersion(\"7.8\");\n\t\tcmdb.setDeployedBy(\"KB\");\n\t\tcmdb.setDeploymentDate(\"01_03_2018\");\n\t\tcmdb.setDeploymentStatus(\"Failure\");\n\t\tcmdb.setId(6);\n\t\tSystem.out.println(\"Adding deployment data:- \\n\" + cmdbService.insertDeploymentDetails(cmdb));\n\t\tSystem.out.println(\"After addition deployment details:- \\n\" + cmdbService.getAllDeploymentDetails());\n\t}", "private PermissionHelper() {}", "@Deployment\n public static WebArchive deploy() {\n final File[] dependencies = Maven\n .resolver()\n .loadPomFromFile(\"pom.xml\")\n .resolve(\"mysql:mysql-connector-java\",\n \"org.assertj:assertj-core\").withoutTransitivity()\n .asFile();\n\n // The webArchive is the special packaging of your project\n // so that only the test cases run on the server or embedded\n // container\n final WebArchive webArchive = ShrinkWrap.create(WebArchive.class)\n .setWebXML(new File(\"src/main/webapp/WEB-INF/web.xml\"))\n .addPackage(Books.class.getPackage())\n .addPackage(BooksAction.class.getPackage())\n .addPackage(BooksController.class.getPackage())\n .addPackage(JsfUtil.class.getPackage())\n .addAsWebInfResource(EmptyAsset.INSTANCE, \"beans.xml\")\n .addAsWebInfResource(new File(\"src/main/webapp/WEB-INF/glassfish-resources.xml\"), \"glassfish-resources.xml\")\n .addAsResource(new File(\"src/main/resources/META-INF/persistence.xml\"), \"META-INF/persistence.xml\")\n .addAsResource(\"pacmabooks.sql\")\n .addAsLibraries(dependencies);\n\n return webArchive;\n }", "@Override\n\tpublic void authorize(String resourceName, String action, String rpcName)\n\t\t\tthrows Exception {\n\t}", "private void authorize() {\r\n\r\n\t}", "private void writeManifest(HttpServletRequest request,\n HttpServletResponse response) throws IOException {\n setNoCache(response);\n if (!isManifestEnabled(request)) {\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\n return;\n }\n if (errorParam.get(request) != null) {\n addManifestErrorCookie(response);\n response.setStatus(HttpServletResponse.SC_NO_CONTENT);\n return;\n }\n \n try {\n setPreloads();\n \n String originalPath = (String)request.getAttribute(AuraResourceServlet.ORIG_REQUEST_URI);\n if(originalPath != null){\n String currentManifestUrl = AuraServlet.getManifest();\n if (!originalPath.equals(currentManifestUrl)) {\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\n deleteManifestCookie(response);\n return;\n }\n }\n \n String serverLastMod = Long.toString(getManifestLastMod());\n Cookie cookie = getManifestCookie(request);\n if(cookie != null){\n if (MANIFEST_ERROR.equals(cookie.getValue())) {\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\n deleteManifestCookie(response);\n return;\n }\n }\n \n Map<String, Object> attribs = Maps.newHashMap();\n attribs.put(\"lastMod\", serverLastMod);\n StringWriter sw = new StringWriter();\n for(String s:AuraServlet.getStyles()){\n sw.write(s);\n sw.write('\\n');\n }\n for(String s:AuraServlet.getScripts()){\n sw.write(s);\n sw.write('\\n');\n }\n attribs.put(\"resourceURLs\", sw.toString());\n DefinitionService definitionService = Aura.getDefinitionService();\n InstanceService instanceService = Aura.getInstanceService();\n DefDescriptor<ComponentDef> tmplDesc = definitionService.getDefDescriptor(\"ui:manifest\", ComponentDef.class);\n Component tmpl = instanceService.getInstance(tmplDesc, attribs);\n Aura.getRenderingService().render(tmpl, response.getWriter());\n } catch (Exception e) {\n Aura.getExceptionAdapter().handleException(e);\n // Can't throw exception here: to set manifest OBSOLETE\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\n }\n }", "public static void main(String argv[]) {\n\n VertxOptions options = new VertxOptions().setBlockedThreadCheckInterval(200000000);\n options.setClustered(true);\n\n Vertx.clusteredVertx(options, res -> {\n if (res.succeeded()) {\n Vertx vertx = res.result();\n final JsonObject js = new JsonObject();\n vertx.fileSystem().readFile(\"app-conf.json\", result -> {\n if (result.succeeded()) {\n Buffer buff = result.result();\n js.mergeIn(new JsonObject(buff.toString()));\n initConfig(js);\n DeploymentOptions deploymentOptions = new DeploymentOptions().setConfig(js).setMaxWorkerExecuteTime(5000).setWorker(true).setWorkerPoolSize(5);\n vertx.deployVerticle(SparkVerticle.class.getName(), deploymentOptions);\n } else {\n System.err.println(\"Oh oh ...\" + result.cause());\n }\n });\n\n }\n });\n }", "private void init() {\r\n\t\t// administration\r\n\t\taddPrivilege(CharsetAction.class, User.ROLE_ADMINISTRATOR);\r\n\t\taddPrivilege(LanguageAction.class, User.ROLE_ADMINISTRATOR);\r\n\t\t\r\n\t\t// dictionary management\r\n\t\taddPrivilege(AddApplicationAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(AddDictLanguageAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(AddLabelAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(ChangeApplicationVersionAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(ChangeDictVersionAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateApplicationAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateApplicationBaseAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateOrAddApplicationAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateProductAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateProductReleaseAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(DeleteLabelAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(DeliverAppDictAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(DeliverDictAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(DeliverUpdateDictAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(DeliverUpdateDictLanguageAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(DeliverUpdateLabelAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(RemoveApplicationAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(RemoveApplicationBaseAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(RemoveDictAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(RemoveDictLanguageAction.class, User.ROLE_APPLICATION_OWNER);\r\n\t\taddPrivilege(RemoveProductAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(RemoveProductBaseAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(UpdateDictAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(UpdateDictLanguageAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(UpdateLabelAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(UpdateLabelStatusAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(ImportTranslationDetailsAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\r\n\t\taddPrivilege(UpdateLabelRefAndTranslationsAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(GlossaryAction.class, User.ROLE_ADMINISTRATOR);\r\n\r\n\r\n\t\t// translation management\r\n\t\taddPrivilege(UpdateStatusAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(UpdateTranslationAction.class, User.ROLE_APPLICATION_OWNER | User.ROLE_TRANSLATION_MANAGER);\r\n\t\t\r\n\t\t// task management\r\n\t\taddPrivilege(ApplyTaskAction.class, User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CloseTaskAction.class, User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(CreateTaskAction.class, User.ROLE_TRANSLATION_MANAGER);\r\n\t\taddPrivilege(ReceiveTaskFilesAction.class, User.ROLE_TRANSLATION_MANAGER);\r\n\t}", "public abstract boolean addRunAs(ServiceSecurity serviceSecurity, SecurityContext securityContext);", "@Override\n public void execute(IEnvironment env)\n {\n \n }", "private void checkPermission(User user, List sourceList, List targetList)\n throws AccessDeniedException\n {\n logger.debug(\"+\");\n if (isMove) {\n if (!SecurityGuard.canManage(user, sourceList.getContainerId()) ||\n !SecurityGuard.canContribute(user, targetList.getContainerId()))\n throw new AccessDeniedException(\"Forbidden\");\n }\n else {\n if (!SecurityGuard.canView(user, sourceList.getContainerId()) ||\n !SecurityGuard.canContribute(user, targetList.getContainerId()))\n throw new AccessDeniedException(\"Forbidden\");\n }\n logger.debug(\"-\");\n }", "public void copyAssets(View view) {\n log(\"copy assets to fon\");\n try {\n String [] list = getApplicationContext().getAssets().list(\"\");\n if (list.length > 0) {\n for (String file : list) {\n copyAssetFile(file, getApplicationContext());\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n log(\"copy finished\");\n log(\"deploy assets start\");\n executeCommand(\"deploy.sh\");\n log(\"deploy assets finished\");\n }", "private void allowWalletFileAccess() {\n if (Constants.TEST) {\n Io.chmod(walletFile, 0777);\n }\n\n }", "@Test\n @Deployment(resources = {\"define-approval-level-er.dmn\"})\n public void testApprovalLevelRule(){\n }", "@Override\r\n\tpublic void makeConstant(NodeRef nodeRef) {\n\t\tif(!nodeService.exists(nodeRef)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// deny all except read permission\r\n\t\tpermissionService.setPermission(nodeRef, PermissionService.ALL_AUTHORITIES, Permissions.ALL_EXCEPT_READ, false);\r\n\r\n\t\t// enable permission inheritance\r\n\t\tpermissionService.setInheritParentPermissions(nodeRef, true);\r\n\t\t\r\n\t\t// make system owner\r\n\t\townerDAO.setOwner(nodeRef, AuthenticationUtil.getSystemUserName());\r\n\t\t\r\n\t}", "private static void deployOperatorPre73Way() {\n log.info(\"Deploying operator using pre-7.3 way\");\n OpenShiftBinaryClient.getInstance().executeCommandAndConsumeOutput(\n \"Unable to create operator resource \" + TestConfiguration.syndesisOperatorUrl(),\n istream -> log.info(IOUtils.toString(istream, \"UTF-8\")),\n \"create\",\n \"-n\", TestConfiguration.openShiftNamespace(),\n \"-f\", TestConfiguration.syndesisOperatorUrl()\n );\n\n importProdImage(\"operator\");\n\n log.info(\"Waiting for syndesis-operator to be ready\");\n OpenShiftUtils.xtf().waiters()\n .areExactlyNPodsReady(1, \"syndesis.io/component\", \"syndesis-operator\")\n .interval(TimeUnit.SECONDS, 20)\n .timeout(TimeUnit.MINUTES, 10)\n .assertEventually();\n }", "public interface Deployer extends UpdatableDomainObject<Long> {\r\n\r\n /**\r\n * Retrieves the name of the deployer.\r\n * \r\n * @return Returns the name of the deployer.\r\n */\r\n String getName();\r\n\r\n /**\r\n * Retrieves the parameters that are part of this deployer.\r\n * \r\n * @return Returns a {@link List} of parameters or an empty one if no\r\n * parameters are needed.\r\n */\r\n List<DeployerParameterTemplate> getParameters();\r\n\r\n /**\r\n * Sets the parameters for this deployer.\r\n * \r\n * @param parameters\r\n * The parameters that should be set.\r\n */\r\n void setParameters(List<DeployerParameterTemplate> parameters);\r\n\r\n}", "Manifest createManifest();", "@Override\r\n protected void mayProceed() throws InsufficientPermissionException {\n if (ub.isSysAdmin() || ub.isTechAdmin()) {\r\n return;\r\n }\r\n// if (currentRole.getRole().equals(Role.STUDYDIRECTOR) || currentRole.getRole().equals(Role.COORDINATOR)) {// ?\r\n// ?\r\n// return;\r\n// }\r\n\r\n addPageMessage(respage.getString(\"no_have_correct_privilege_current_study\") + respage.getString(\"change_study_contact_sysadmin\"));\r\n throw new InsufficientPermissionException(Page.MENU_SERVLET, resexception.getString(\"not_allowed_access_extract_data_servlet\"), \"1\");// TODO\r\n // above copied from create dataset servlet, needs to be changed to\r\n // allow only admin-level users\r\n\r\n }", "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "public AbstractVFSDeployment(VirtualFile root)\n {\n super(safeVirtualFileName(root));\n this.root = root;\n }", "private void changeExecPermission(String permission, String filePath) {\n\t\t// TODO Auto-generated method stub\n\t\t// change permission to the uploaded science app for execute\n\t\t//String command = \"sudo chmod +\" + permission + \" \" + filePath;\n\t\tString command = \"chmod +\" + permission + \" \" + filePath;\n\t\ttry {\n\t\t\t// Create a Runtime instance.\n\t\t\tRuntime rt = Runtime.getRuntime();\n\t\t\t// Execute the command.\n\t\t\tProcess p1 = rt.exec(command);\n\t\t\tSystem.out.println(command);\n\t\t\t// Read the input stream.\n\t\t\tInputStream instd = p1.getInputStream();\n\t\t\t// Create a buffered reader\n\t\t\tBufferedReader buf_reader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(instd));\n\t\t\t// Declare a temporary variable to contain a line.\n\t\t\tString line = \"\";\n\t\t\t// Declare a temporary variable to store a line count.\n\t\t\t// Begin to read each line from given output (or given file).\n\t\t\twhile ((line = buf_reader.readLine()) != null) {\n\t\t\t\t// Increment line count.\n\t\t\t\t// System.out.println(line);\n\t\t\t}\n\t\t\t// Close the buffered reader instance.\n\t\t\tbuf_reader.close();\n\t\t\t// Let's wait for the Runtime instance to be done.\n\t\t\tp1.waitFor();\n\n\t\t\tInputStream errstd = p1.getErrorStream();\n\t\t\tBufferedReader buf_err_reader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(errstd));\n\t\t\twhile ((line = buf_err_reader.readLine()) != null) {\n\t\t\t\tSystem.err.println(line);\n\t\t\t}\n\t\t\tbuf_err_reader.close();\n\t\t} catch (Exception ex) {\n\t\t\t// ex.printStackTrace();\n\t\t\t// Print out any message when an error(s) occurs.\n\t\t\tSystem.err.println(ex.getMessage());\n\t\t}\n\t}", "@Override\n\tpublic void credite() {\n\t\t\n\t}", "@RequestMapping(value=\"/releaseAppResources\", method = RequestMethod.GET)\n\tpublic void releaseAppResources() {\n\t}", "public static void publishFeed (String shortName) {\n\t try{\n\t \t//System.out.println(\"publisher is called!!\");\n\t \tString allFeedRootPath = \"/home/felixxie/FeedGenerator/datacasts\";\t\t\t\t//TODO: this is the path of server!!\n\t \t//String allFeedRootPath = \"/Users/felixxie/Documents/workspace/FeedGenerator/src/datacasts\";\t\t//TODO: This is the path of JPL Mac. Should manually create datacasts folder. Change it when deploying to server.\n\t \t//String allFeedRootPath = \"/Users/felixxie/Desktop/SummerProject/FeedGenerator/src/datacasts\";\t\t//TODO: This is my mac pro folder. when deploy, change this one.\n\t \tString datasetFeedPath = allFeedRootPath.concat(\"/\").concat(shortName).concat(\"-feed\");\n\t \tString configFilePath = datasetFeedPath.concat(\"/config.cfg\");\n\t \tString datasetItemPath = datasetFeedPath.concat(\"/items\");\n\t \t\n\t \t\n\t \tString publishToolPath = \"/export/00/www/aeolus/htdocs/datacasting-publishing-tools-3.0.2a\";\t//TODO: This is path of server!!\n\t \t//String publishToolPath = \"/Users/felixxie/Documents/workspace/FeedGenerator/src/datacasting-publishing-tools-3.1.0\";\t//TODO: This is the path of JPL Mac.\n\t \t//String publishToolPath = \"/Users/felixxie/Desktop/SummerProject/FeedGenerator/src/datacasting-publishing-tools-3.1.0\"; //TODO: This is the path in my Mac pro. when deploy, change this one.\n\t \tString IngestItemPath = publishToolPath.concat(\"/IngestItem\");\n\t \tString GenerateFeedPath = publishToolPath.concat(\"/GenerateFeed\");\n\t \t\n\t \t\n\t \t//String cleanDSstoreCommand = \"find \".concat(allFeedRootPath).concat(\" -name \\\"*.DS_Store\\\" -type f -delete\"); \n\t \t\n\t \t\n\t \tFile file4DirCreation = new File(datasetItemPath.concat(\"/\"));\n\t \t//Runtime.getRuntime().exec(cleanDSstoreCommand);\t\t//TODO: may or may not need this on server\n\t \t\n \t\tif (file4DirCreation.exists() && file4DirCreation.list().length > 0) {\t\t//only when there is items folder and items in items folder, i.e.there's items to be ingested, then perform action.\n \t\t\t\n \t\t\t//--------- remove .DS_Store -----------\n \t\t\tDSStoreRemover.execute(datasetItemPath, \".DS_Store\");\n \t\t\t//--------- end of removing .DS_Store ---------\n \t\t\t\n \t\t\t//avoid racing: loop until .DS_Store is deleted\n \t\t\t//File DSStoreFile = new File(datasetItemPath.concat(\"/.DS_Store\"));\n \t\t\t//if (DSStoreFile.exists()) {\n \t\t\t\n \t\t\t//./IngestItem -c /Users/felixxie/Documents/src/datacasts/MOD02QKM-feed/config.cfg -d /Users/felixxie/Documents/src/datacasts/MOD02QKM-feed/items\n \t\t\tString ingestCommand = IngestItemPath.concat(\" -e --config=\").concat(configFilePath).concat(\" -d \").concat(datasetItemPath);\t\t\t//TODO: this is server version of publisher\n \t\t\t//String ingestCommand = IngestItemPath.concat(\" -c \").concat(configFilePath).concat(\" -d \").concat(datasetItemPath);\t\t\t//TODO: this is local version of publisher\n \t\t\t//Runtime.getRuntime().exec(ingestCommand);\n \t\t\t\n \t\t\t//Runtime.getRuntime().exec(cleanDSstoreCommand);\t\t//TODO: may or may not need this on server\n \t\t\t//String cleanDSstoreXMLCommand = \"find \".concat(allFeedRootPath).concat(\" -name \\\"*.DS_Store.xml\\\" -type f -delete\");\n \t\t\t//Runtime.getRuntime().exec(cleanDSstoreXMLCommand);\t\t//TODO: may or may not need this on server\n \t\t\t//------------------------\n \t\t\tRuntime.getRuntime().exec(ingestCommand);\n \t\t\t//Process p = Runtime.getRuntime().exec(ingestCommand);\n \t\t\t//Scanner scanner = new Scanner(p.getInputStream());\n \t\t //while (scanner.hasNext()) {\n \t\t //System.out.println(scanner.nextLine());\n \t\t //}\n \t\t\t//}\n \t\t\t//----------------------\n \t\t\t\n \t\t\t\n \t\t\t//------------------------------------- GenerateFeed ---------------\n \t\t\tString itemsXMLpath = datasetFeedPath.concat(\"/items-xml/\");\n \t\t\tString queuePath = datasetFeedPath.concat(\"/queue/\");\n \t\t\tFile itemsXMLCreation = new File(itemsXMLpath);\n \t\t\tFile queueCreation = new File(queuePath);\n \t\t\t\n \t\t\tboolean ready = false;\t\t//this signifies that the ingestion is finished and ready to generate feed.\n \t\t\t\n \t\t\t//Runtime.getRuntime().exec(cleanDSstoreXMLCommand);\t\t//TODO: may or may not need this on server\n \t\t\t//Runtime.getRuntime().exec(cleanDSstoreCommand);\t\t//TODO: may or may not need this on server\n \t\t\t\n \t\t\twhile (ready == false) {\t//loop until items-xml and queue have been created: ingestion finished. This is ok when items folder doesn't have item inside.\n \t\t\t\t//System.out.println(\"hangs here!!\");\n \t\t\t\tif (itemsXMLCreation.exists() && queueCreation.exists()) {\n\n \t\t\t\t\t//------ remove the orginal feed if there's one --------\n \t\t\t\t\t//String feed = datasetFeedPath.concat(\"/\").concat(shortName).concat(\".xml\");\n \t\t\t\t\t//File feedFile = new File(feed);\n \t\t\t\t\t//if (feedFile.exists())\n \t\t\t\t\t\t//feedFile.delete();\n \t\t\t\t\t//------end of removal--------------------------\n \t\t\t\t\t//\n \t\t\t\t\t\n \t\t\t\t\t//Runtime.getRuntime().exec(cleanDSstoreCommand);\n \t \t\t\t//Runtime.getRuntime().exec(cleanDSstoreXMLCommand);\t\t//TODO: may or may not need this on server\n \t\t\t\t\t//Runtime.getRuntime().exec(cleanDSstoreCommand);\t\t//TODO: may or may not need this on server\n \t \t\t\t\n \t\t\t\t\t//System.out.println(\"goes in here!!\");\n \t \t\t\t//./GenerateFeed -c /Users/felixxie/Desktop/SummerProject/FeedGenerator/src/datacasts/MOD02QKM-feed/config.cfg -r \n \t\t\t\t\tString generateCommand = GenerateFeedPath.concat(\" --config=\").concat(configFilePath);\t\t//TODO: this is the server version\n \t \t\t\t//String generateCommand = GenerateFeedPath.concat(\" -c \").concat(configFilePath).concat(\" -r\");\t\t//TODO: this is the local version\n \t \t\t\t//System.out.println(generateCommand);\n \t \t\t\tRuntime.getRuntime().exec(generateCommand);\n \t \t\t\t//Process np = Runtime.getRuntime().exec(generateCommand);\n \t \t\t\t//Scanner nscanner = new Scanner(np.getInputStream());\n \t \t\t //while (nscanner.hasNext()) {\n \t \t\t //System.out.println(nscanner.nextLine());\n \t \t\t //}\n \t \t\t\t\n \t\t\t\t\tready = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t}\n \t\t\t\n \t}catch(IOException e){\n \t\te.printStackTrace();\n \t}\n }", "public ObjectNode deployRemoteRequests (\n\t\t\t\t\t\t\t\t\t\t\t\tString deployId ,\n\t\t\t\t\t\t\t\t\t\t\t\tString auditUserid ,\n\t\t\t\t\t\t\t\t\t\t\t\tList<String> services ,\n\t\t\t\t\t\t\t\t\t\t\t\tList<String> hosts ,\n\n\t\t\t\t\t\t\t\t\t\t\t\tString scmUserid ,\n\t\t\t\t\t\t\t\t\t\t\t\tString scmPass ,\n\t\t\t\t\t\t\t\t\t\t\t\tString scmBranch ,\n\t\t\t\t\t\t\t\t\t\t\t\tString commandArguments ,\n\t\t\t\t\t\t\t\t\t\t\t\tString hotDeploy ,\n\t\t\t\t\t\t\t\t\t\t\t\tString mavenDeployArtifact ,\n\t\t\t\t\t\t\t\t\t\t\t\tString scmCommand ,\n\t\t\t\t\t\t\t\t\t\t\t\tString transferHostsSpaceSeparated ,\n\n\t\t\t\t\t\t\t\t\t\t\t\tString apiUserid ,\n\t\t\t\t\t\t\t\t\t\t\t\tString apiPass ) {\n\n\t\tObjectNode resultJson = jacksonMapper.createObjectNode( ) ;\n\n\t\tArrayNode servicesArray = resultJson.putArray( \"services\" ) ;\n\t\tservices.forEach( servicesArray::add ) ;\n\t\tArrayNode hostsArray = resultJson.putArray( \"hosts\" ) ;\n\n\t\tList<String> primaryHost = hosts ;\n\n\t\tif ( hosts.size( ) > 1 && transferHostsSpaceSeparated == null ) {\n\n\t\t\tStringBuilder syncHosts = new StringBuilder( ) ;\n\t\t\thosts\n\t\t\t\t\t.stream( )\n\t\t\t\t\t.distinct( )\n\t\t\t\t\t.map( host -> host + \" \" )\n\t\t\t\t\t.forEach( syncHosts::append ) ;\n\n\t\t\t// strip off first host\n\t\t\tString firstHost = syncHosts.substring( 0, syncHosts.indexOf( \" \" ) ).trim( ) ;\n\t\t\ttransferHostsSpaceSeparated = syncHosts.substring( syncHosts.indexOf( \" \" ) ).trim( ) ;\n\n\t\t\tprimaryHost = new ArrayList<>( ) ;\n\t\t\tprimaryHost.add( firstHost ) ;\n\n\t\t\tlogger.info( CSAP.buildDescription(\n\t\t\t\t\t\"Deployment\",\n\t\t\t\t\t\"services\", services,\n\t\t\t\t\t\"primaryHost\", primaryHost,\n\t\t\t\t\t\"transfer hosts\", transferHostsSpaceSeparated ) ) ;\n\n\t\t}\n\n\t\thosts.forEach( hostsArray::add ) ;\n\n\t\tif ( ! csapApis.application( ).isAdminProfile( ) ) {\n\n\t\t\tresultJson\n\t\t\t\t\t.put( \"error\",\n\t\t\t\t\t\t\t\"refer to /api/deploy/host/* to deploy on hosts\" ) ;\n\n\t\t} else if ( hosts.size( ) == 0 || services.size( ) == 0 ) {\n\n\t\t\tresultJson\n\t\t\t\t\t.put( \"error\",\n\t\t\t\t\t\t\t\"missing cluster parameter\" ) ;\n\n\t\t} else {\n\n\t\t\tMultiValueMap<String, String> deployParameters = new LinkedMultiValueMap<String, String>( ) ;\n\t\t\tdeployParameters.set( AUDIT_USERID, auditUserid ) ;\n\t\t\tdeployParameters.set( \"primaryHost\", primaryHost.get( 0 ) ) ;\n\t\t\tdeployParameters.set( \"deployId\", deployId ) ;\n\t\t\tdeployParameters.put( \"services\", services ) ;\n\t\t\tdeployParameters.put( \"hosts\", hosts ) ;\n\n\t\t\tif ( isPresent( commandArguments ) ) {\n\n\t\t\t\tdeployParameters.set( \"commandArguments\", commandArguments ) ;\n\n\t\t\t}\n\n\t\t\tif ( isPresent( scmUserid ) ) {\n\n\t\t\t\tdeployParameters.set( \"scmUserid\", scmUserid ) ;\n\n\t\t\t}\n\n\t\t\tif ( isPresent( scmPass ) ) {\n\n\t\t\t\tdeployParameters.set( \"scmPass\", scmPass ) ;\n\n\t\t\t}\n\n\t\t\tif ( isPresent( scmBranch ) ) {\n\n\t\t\t\tdeployParameters.set( \"scmBranch\", scmBranch ) ;\n\n\t\t\t}\n\n\t\t\tif ( isPresent( hotDeploy ) ) {\n\n\t\t\t\tdeployParameters.set( \"hotDeploy\", hotDeploy ) ;\n\n\t\t\t}\n\n\t\t\tif ( isPresent( mavenDeployArtifact ) ) {\n\n\t\t\t\tdeployParameters.set( \"mavenDeployArtifact\", mavenDeployArtifact ) ;\n\n\t\t\t}\n\n\t\t\tif ( isPresent( scmCommand ) ) {\n\n\t\t\t\tdeployParameters.set( \"scmCommand\", scmCommand ) ;\n\n\t\t\t}\n\n\t\t\tif ( isPresent( transferHostsSpaceSeparated ) ) {\n\n\t\t\t\tdeployParameters.set( \"targetScpHosts\", transferHostsSpaceSeparated ) ;\n\n\t\t\t}\n\n\t\t\tlogger.debug( \"* Stopping to: {}, params: {}\", Arrays.asList( hosts ), deployParameters ) ;\n\n\t\t\tObjectNode clusterResponse = serviceOsManager.remoteAgentsApi(\n\t\t\t\t\tapiUserid,\n\t\t\t\t\tapiPass,\n\t\t\t\t\thosts,\n\t\t\t\t\tCsapConstants.API_AGENT_URL + AgentApi.DEPLOY_SERVICES_URL,\n\t\t\t\t\tdeployParameters ) ;\n\n\t\t\tlogger.debug( \"Results: {}\", clusterResponse ) ;\n\n\t\t\tresultJson.set( \"clusteredResults\", clusterResponse ) ;\n\n\t\t\tcsapApis.application( ).getHostStatusManager( ).refreshAndWaitForComplete( null ) ;\n\n\t\t}\n\n\t\treturn resultJson ;\n\n\t}", "void requestStoragePermission();", "public DeploymentModule() {\n\t\tsuper(DeploymentModule.class.getSimpleName());\n\t}", "private Resource deployReleasedResource(Resource releasedResource) throws Exception {\n List<Resource> deployedResources = findResources(m_deploymentRepo, getIdentityVersionRequirement(releasedResource));\n if (deployedResources.size() == 0) {\n System.out.println(\"Uploading released resource: \" + getString(releasedResource));\n List<Resource> copied = copyResources(m_releaseRepo, m_deploymentRepo, getIdentityVersionRequirement(releasedResource));\n if (copied.size() != 1) {\n throw new IllegalStateException(\"Expected one result after copy: \" + getString(releasedResource));\n }\n return copied.get(0);\n }\n else {\n System.out.println(\"Released resource already deployed: \" + getString(releasedResource));\n return deployedResources.get(0);\n }\n }", "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "public void changeDeploy(final LocalPhysicalGraph graph, final LocalPhysicalGraph newGraph) {\n\r\n }", "public void consulterCatalog() {\n\t\t\n\t}", "@Override\n public void startUpOperations() {\n }", "private DeploymentFactoryInstaller() {\n }", "public interface RuleDeploymentService {\r\n\r\n /**\r\n * Yes! You need to login...but later..i let u go thru now since i am under busy schedule...!!!\r\n * \r\n * @param userName\r\n * @param password\r\n * @throws RemoteException\r\n */\r\n public abstract void login(String userName, String password) throws RemoteException;\r\n\r\n /**\r\n * Specify and Configure the repository which Rule Deployment Service should make use of.\r\n * \r\n * @param repositoryConfiguration\r\n * Configuration information for the Jackrabbit.\r\n * @throws RemoteException\r\n */\r\n public abstract void configureRepository(RepositoryConfiguration repositoryConfiguration)\r\n throws RemoteException;\r\n\r\n /**\r\n * Register the Rule Set. I mean deploy a drools package if you are a JBoss Rules fan...\r\n * \r\n * @param bindUri\r\n * @param ruleSetName\r\n * @throws RemoteException\r\n */\r\n public abstract void registerRuleSet(String bindUri, String ruleSetName) throws RemoteException, RuleException;\r\n\r\n /**\r\n * Register the RuleSet, deploy the drools package\r\n * \r\n * @param bindUri\r\n * @param ruleXml\r\n * @throws RemoteException\r\n */\r\n void registerRuleXml(String bindUri, String ruleXml) throws RemoteException;\r\n\r\n /**\r\n * This method will register a package, in the bindUri.\r\n * \r\n * @param bindUri\r\n * @param rulePackage\r\n * @throws RemoteException\r\n */\r\n void registerRulePackage(String bindUri, Package rulePackage) throws RuleException;\r\n\r\n /**\r\n * De-Register the Rule Set. I mean UN-deploy a drools package if you are a JBoss Rules fan...\r\n * \r\n * @param bindUri\r\n */\r\n public abstract void deregisterRuleSet(String bindUri) throws RemoteException;\r\n\r\n /**\r\n * List the information of all RuleSets currently deployed in the Server.\r\n */\r\n public RuleSetInfo[] listRegistrations() throws RemoteException, RuleException;\r\n\r\n}", "public void testDescDeployment(String name) throws Throwable\n {\n log.info(\"/////DESC \" + name + \" started ////\");\n testDeployment(createDescriptorDeployment(name), name);\n }", "public void run(String zoneOrEnvName, boolean isEnv) throws Exception {\n\t\ttry {\n\t\t\t\n\t\t\tdeploymentRecord = new DeploymentRecord();\n\t\t\tdeploymentRecord.setStartTime(new Date());\n\t\t\tdeploymentRecord.setStatus(\"Initialising.\");\n\t\t\t\n\t\t\tdeploymentRecord.log(\"Starting deployment \" + getId());\n\t\t\n\t\t\t\n\t\t\t//Check that we have everything we need\n\t\t\tif (applicationVersion == null) {\n\t\t\t\tthrow new IllegalArgumentException(\"No ApplicationVersion specified, cannot continue if there is nothing to deploy.\");\n\t\t\t}\n\t\t\t\n\t\t\tif (zoneOrEnvName == null || zoneOrEnvName.isEmpty()) {\n\t\t\t\tthrow new IllegalArgumentException(\"No zoneOrEnvName specified, cannot continue if there is nowhere to deploy to.\");\n\t\t\t}\n\t\t\t\n\t\t\tif (deploymentEngine == null) {\n\t\t\t\tthrow new IllegalArgumentException(\"No deploymentEngine specified, cannot continue if there is nothing to execute the deployment.\");\n\t\t\t}\n\t\t\t\n\t\t\t// check organisation is there\n\t\t\tOrganisation org = getOrganisation();\n\t\t\t\n\t\t\t//Load the deployment descriptor\n\t\t\tDDConfigurationLoader loader = new DDConfigurationLoader();\n\t\t\tdeploymentDescriptor = loader.loadDD(getDeploymentDescriptorFile(applicationShortName), applicationShortName);\n\t\t\t\n\t\t\t// Derive env or zone from UI input\n\t\t\tderiveEnvironmentOrDefaultZone(zoneOrEnvName, isEnv);\n\t\t\t\n\t\t\t//Load the Hieradata\n\t\t\tHashMap<String, Collection<ResolvedHost>> scope = new HashMap<String, Collection<ResolvedHost>>();\n\t\t\tscope.put(deploymentDescriptor.getApplicationShortName(), schemeScope);\n\t\t\t\n\t\t\t//Load the Primary Environment State\n\t\t\tenvironmentStateManager = EnvironmentStateManagerFactory.getInstanceOfType(Configuration.getPrimaryEnvironmentStateClass(), this, org, zonesInScope, scope);\n\t\t\t\n\t\t\tif (Configuration.getEnableAlternativeEnvironmentState()) {\n\t\t\t\t//Load the MCO State\n\t\t\t\talternateEnvironmentStateManager = EnvironmentStateManagerFactory.getInstanceOfType(Configuration.getAlternativeEnvironmentStateClass(), this, org, zonesInScope, scope);\n\t\t\t}\n\t\t\t\n\t\t\t/* Discover if there are any RPM fail files in the zone */\n\t\t\tif (Configuration.getRPMFailFileReportEnabled(getOrganisation())) {\n\t\t\t\tMap<String, String> failFilesByFQDN = new RPMFailFileManager().reportFailFiles(getOrganisation(), zonesInScope);\n\t\t\t\tsetFailFilesByFQDN(failFilesByFQDN);\n\t\t\t} else {\n\t\t\t\tlog.info(String.format(\"RPM fail file report disabled for %s\", getOrganisation()));\n\t\t\t}\n\t\t\t\n\t\t\tdeploymentRecord.setStatus(\"Preparing.\");\t\n\n\t\t\tboolean continueDeployment = deploymentEngine.prepare();\n\t\t\tif (continueDeployment && !Configuration.isPrepareOnly()) {\n\t\t\t\tdeploymentRecord.setStatus(\"Finished preparing.\");\n\t\t\t\tdeploymentRecord.setStatus(\"Validating.\");\t\n\t\t\t\tdeploymentEngine.validate();\n\t\t\t\tdeploymentRecord.setStatus(\"Finished validating.\");\n\t\t\t\tdeploymentRecord.setStatus(\"Executing.\");\t\n\t\t\t\tdeploymentEngine.execute();\n\t\t\t\tdeploymentRecord.setStatus(\"Finished executing.\");\n\t\t\t}\n\t\t\telse if (!continueDeployment) {\n\t\t\t\tthrow new Exception(\"No changes can be made, deployment halted!\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tdeploymentRecord.setStatus(\"Exiting abnormally.\");\n\t\t\tdeploymentRecord.log(e, \"Exception occured\");\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tif (null != deploymentEngine) {\n\t\t\t\tdeploymentEngine.cleanup();\n\t\t\t}\n\t\t}\n\t}", "public void testDeployFromHttp() throws Exception {\n\t\t// normally this directory would be created by handleDeployForMcaFile()... but we are bypassing for testing\n\t\tunitTestDir.mkdir();\n\n\t\tHttpURLConnection connection = new MockHttpURLConnection(null);\n\t\tdeployer.handleRemoteMCA(unitTestDir, connection);\n\n\t\tvalidateMcaDeployedToWorkingDir();\n\n\t\t// cleanup temp dir\n\t\tFile tempDir = new File(\"temp\");\n\t\tassertTrue(tempDir.exists());\n\t\tdeployer.deleteDir(tempDir);\n\t\tassertFalse(tempDir.exists());\n\t}", "public void execute() {\n if (valid()) {\n // behavior of the concrete command\n this.target_territory numArmies += to_deploy;\n }\n }", "@Override\n public void onGranted() {\n }", "String deploymentModel();", "void deploy(String template, Map<String, String> parameters, String group, String regionStr) throws IOException {\n String deploymentName = \"SunstoneDeployment-\" + UUID.randomUUID().toString().substring(0, 5);\n Region region = Region.fromName(regionStr);\n if (region == null) {\n throw new IllegalArgumentException(\"Unknown region \" + regionStr);\n }\n\n if (!armManager.resourceGroups().contain(group)) {\n armManager.resourceGroups().define(group)\n .withRegion(region)\n .create();\n } else {\n LOGGER.warn(\"Azure resource group '{}' already exists! It will be reused and deleted when tests are finished.\", group);\n }\n\n armManager.deployments().define(deploymentName)\n .withExistingResourceGroup(group)\n .withTemplate(template)\n .withParameters(parametersFromMap(template, parameters))\n .withMode(DeploymentMode.INCREMENTAL)\n .create();\n LOGGER.debug(\"Azure deployment from template {} in \\\"{}\\\" group is ready\", deploymentName, group);\n }", "@Override\r\n\tpublic void checkPermission(String absPath, String actions)\r\n\t\t\tthrows AccessControlException, RepositoryException {\n\t\t\r\n\t}" ]
[ "0.7071221", "0.64025646", "0.62732023", "0.6069408", "0.60062647", "0.5938904", "0.58917475", "0.582495", "0.5823963", "0.58162373", "0.5778003", "0.57110053", "0.5610914", "0.55061346", "0.5482486", "0.54370517", "0.54218984", "0.5408344", "0.5365558", "0.5362579", "0.5343766", "0.5339527", "0.5265877", "0.52637506", "0.52577823", "0.5239843", "0.5223933", "0.52114046", "0.5202606", "0.5186649", "0.5149968", "0.5144714", "0.5142458", "0.51213217", "0.5117912", "0.5107405", "0.51065594", "0.508849", "0.5086772", "0.5082628", "0.50795484", "0.50773245", "0.50589323", "0.5041498", "0.50386226", "0.5036693", "0.5018162", "0.50123835", "0.49921808", "0.49901307", "0.4986968", "0.49743465", "0.49564475", "0.4953469", "0.4952926", "0.49411893", "0.49348575", "0.491889", "0.49154705", "0.49117988", "0.4908883", "0.4897934", "0.48973668", "0.48936725", "0.4881189", "0.4875892", "0.4870184", "0.48674577", "0.4864897", "0.48542732", "0.48514673", "0.4849864", "0.4845415", "0.48448977", "0.48433173", "0.48313847", "0.48306584", "0.48232323", "0.48188788", "0.48174456", "0.4801844", "0.47867048", "0.47827458", "0.47766533", "0.4776352", "0.47723725", "0.47697976", "0.47697493", "0.47684222", "0.47667533", "0.47650605", "0.4762245", "0.47521356", "0.47511673", "0.47486007", "0.47467536", "0.47441062", "0.47317207", "0.4730624", "0.47257382", "0.47221446" ]
0.0
-1
Returns an ExactProjectRelation instance. The returned relation must include the partition column. If the source relation is an ApproxAggregatedRelation, we can expect that an extra groupby column is inserted for propagating the partition column.
@Override protected ExactRelation rewriteWithPartition() { ExactRelation newSource = source.rewriteWithPartition(); List<SelectElem> newElems = new ArrayList<SelectElem>(); // Check if the newElems include star expressions. If so, we don't have to explicitly include // prob column and partition column. // boolean includeStar = false; for (SelectElem e : elems) { if (e.getExpr() instanceof StarExpr) { // includeStar = true; TableNameExpr tabExpr = ((StarExpr) e.getExpr()).getTab(); List<ColNameExpr> col_names = source.getAssociatedColumnNames(tabExpr); for (ColNameExpr ce : col_names) { newElems.add(new SelectElem(vc, ce)); } } else { newElems.add(e); } } // prob column (for point estimate and also for subsampling) newElems.add(new SelectElem(vc, source.tupleProbabilityColumn(), samplingProbabilityColumnName())); // partition column (for subsampling) newElems.add(new SelectElem(vc, newSource.partitionColumn(), partitionColumnName())); // // we manually insert the probability and partition (for subsampling) columns if the star expression // // is not placed on the table from which partition // if (includeStar == false) { // } ExactRelation r = new ProjectedRelation(vc, newSource, newElems); r.setAlias(getAlias()); return r; // return rewriteWithPartition(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.apache.spark.sql.catalyst.plans.logical.LocalRelation asRelation () { throw new RuntimeException(); }", "public Relation project(Tuple t) throws RelationException;", "public abstract RelationDeclaration getRelation();", "QueryPartitionClause createQueryPartitionClause();", "@Override\n public RelatedArtifactChangedColumn copy() {\n RelatedArtifactChangedColumn newXCol = new RelatedArtifactChangedColumn();\n super.copy(this, newXCol);\n return newXCol;\n }", "private Relation projectOperandOn(Relation operand, AttrList attributes) {\n // `attributes` may be a superset of operand's ones. Take the\n // intersection. `attrs` will be a (non-proper) subset thus.\n AttrList opAttrs = operand.getType().toAttrList();\n AttrList attrs = opAttrs.intersect(attributes);\n\n // if attrs is equals, it is not a subset and the projection is no\n // longer needed\n if (!attrs.equals(opAttrs)) {\n operand = optimized(operand).project(attrs);\n }\n return operand;\n }", "public ProjectOperator getProjection(){\n for(Operator op:_operators){\n if (op instanceof ProjectOperator) return (ProjectOperator) op;\n }\n return null;\n }", "QueryProjection<R> getProjection();", "EReference getRelationReference();", "PivotForClause createPivotForClause();", "AnalyticClause createAnalyticClause();", "protected DremioRelToSqlConverter.Result processProjectChild(Project project, DremioRelToSqlConverter.Result childResult) {\n // unlike the super impl #visit(Project), this expands star (\"*\") if additional push downs are enabled\n\n Pointer<Boolean> isPartial = new Pointer<>(false);\n project.accept(new StatelessRelShuttleImpl() {\n @Override\n public RelNode visit(TableScan scan) {\n if (scan instanceof ScanRelBase) {\n ScanRelBase tableScan = (ScanRelBase) scan;\n if (tableScan.getTableMetadata().getSchema().getFieldCount() != tableScan.getProjectedColumns().size()) {\n isPartial.value = true;\n }\n }\n return scan;\n }\n });\n\n PlannerSettings plannerSettings = PrelUtil.getPlannerSettings(project.getCluster());\n if (plannerSettings != null &&\n !plannerSettings.getOptions().getOption(PlannerSettings.JDBC_PUSH_DOWN_PLUS) &&\n !isPartial.value &&\n isStar(project.getChildExps(), project.getInput().getRowType(), project.getRowType())) {\n return childResult;\n }\n\n final DremioRelToSqlConverter.Builder builder =\n childResult.builder(project, SqlImplementor.Clause.SELECT);\n final List<SqlNode> selectList = new ArrayList<>();\n for (RexNode ref : project.getChildExps()) {\n SqlNode sqlExpr = builder.context.toSql(null, simplifyDatetimePlus(ref, project.getCluster().getRexBuilder()));\n if ((getDialect().shouldInjectNumericCastToProject() && isDecimal(ref.getType())) ||\n (getDialect().shouldInjectApproxNumericCastToProject() && isApproximateNumeric(ref.getType()))) {\n if (!((sqlExpr.getKind() == SqlKind.CAST) || (sqlExpr.getKind() == SqlKind.AS && ((SqlBasicCall) sqlExpr).operand(0).getKind() == SqlKind.CAST))) {\n // Add an explicit cast around this projection.\n sqlExpr = SqlStdOperatorTable.CAST.createCall(POS, sqlExpr, getDialect().getCastSpec(ref.getType()));\n }\n }\n\n addSelect(selectList, sqlExpr, project.getRowType());\n }\n\n builder.setSelect(new SqlNodeList(selectList, POS));\n return builder.result();\n }", "ContextRelation getContextRelation();", "Relation createRelation();", "public Relation getRelation(XDI3Segment arcXri);", "private ContainerDelta<AssignmentType> getExecutionWaveAssignmentDelta(LensFocusContext<AH> focusContext) throws SchemaException {\n ObjectDelta<AH> focusDelta = focusContext.getAggregatedWaveDelta(focusContext.getLensContext().getExecutionWave());\n if (focusDelta == null) {\n return createEmptyAssignmentDelta(focusContext);\n }\n ContainerDelta<AssignmentType> assignmentDelta = focusDelta.findContainerDelta(AssignmentHolderType.F_ASSIGNMENT);\n if (assignmentDelta == null) {\n return createEmptyAssignmentDelta(focusContext);\n }\n return assignmentDelta;\n }", "public Relation getRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);", "public ScGridColumn<AcActionAutoCorrectedLog> newSourceGroupColumn()\n {\n return newSourceGroupColumn(\"Source Group\");\n }", "public final AstValidator.distinct_clause_return distinct_clause() throws RecognitionException {\n AstValidator.distinct_clause_return retval = new AstValidator.distinct_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree DISTINCT315=null;\n AstValidator.rel_return rel316 =null;\n\n AstValidator.partition_clause_return partition_clause317 =null;\n\n\n CommonTree DISTINCT315_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:498:17: ( ^( DISTINCT rel ( partition_clause )? ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:498:19: ^( DISTINCT rel ( partition_clause )? )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n DISTINCT315=(CommonTree)match(input,DISTINCT,FOLLOW_DISTINCT_in_distinct_clause2665); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n DISTINCT315_tree = (CommonTree)adaptor.dupNode(DISTINCT315);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(DISTINCT315_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_rel_in_distinct_clause2667);\n rel316=rel();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, rel316.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:498:35: ( partition_clause )?\n int alt89=2;\n int LA89_0 = input.LA(1);\n\n if ( (LA89_0==PARTITION) ) {\n alt89=1;\n }\n switch (alt89) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:498:35: partition_clause\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_partition_clause_in_distinct_clause2669);\n partition_clause317=partition_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, partition_clause317.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public static CommonAxiom commutativity(Relation r){\n\t\t//build nodes\n\t\tFormulaTree allX = new FormulaTree(new UniversalQuantifier('x'));\n\t\tFormulaTree allY = new FormulaTree(new UniversalQuantifier('y'));\n\t\tFormulaTree allZ = new FormulaTree(new UniversalQuantifier('z'));\n\t\tFormulaTree iff = new FormulaTree (new Iff());\n\t\tFormulaTree left = new FormulaTree(new Predicate(r, new char[]{'x','y','z'}));\n\t\tFormulaTree right = new FormulaTree(new Predicate(r, new char[]{'y','x','z'}));\n\t\t\n\t\t//construct tree\n\t\tallX.setRight(null);\n\t\tallX.setLeft(allY);\n\t\tallY.setRight(null);\n\t\tallY.setLeft(allZ);\n\t\tallZ.setRight(null);\n\t\tallZ.setLeft(iff);\n\t\tiff.setLeft(left);\n\t\tiff.setRight(right);\n\t\t//predicate nodes already set null by constructor\n\t\t\n\t\t//return top node\n\t\treturn new CommonAxiom(allX, \"commutativity (\" + r.name() + \")\");\n\t}", "RelationalDependency createRelationalDependency();", "public static String getProjection(JobConf conf) throws IOException, ParseException {\n String strProj = conf.get(INPUT_PROJ);\n // TODO: need to be revisited\n if (strProj != null) return strProj;\n TableExpr expr = getInputExpr(conf);\n if (expr != null) {\n return expr.getSchema(conf).toProjectionString();\n }\n return null;\n }", "public SpatialRelation getSpatialRelation() {\n return spatialRelation;\n }", "GroupByColumnFull createGroupByColumnFull();", "@Override\n final public String getInputRelation() {\n return \"SELECT * FROM TR1_DB1_PROPHECY_Q5_INNER\";\n }", "public Project getProjectRelatedByRelProjectId() throws TorqueException\n {\n if (aProjectRelatedByRelProjectId == null && (this.relProjectId != 0))\n {\n aProjectRelatedByRelProjectId = ProjectPeer.retrieveByPK(SimpleKey.keyFor(this.relProjectId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Project obj = ProjectPeer.retrieveByPK(this.relProjectId);\n obj.addNewslettersRelatedByRelProjectId(this);\n */\n }\n return aProjectRelatedByRelProjectId;\n }", "public MedMdrClassExtentRel clone()\n {\n MedMdrClassExtentRel clone =\n new MedMdrClassExtentRel(\n getCluster(),\n mdrClassExtent,\n connection);\n clone.inheritTraitsFrom(this);\n return clone;\n }", "WindowingClauseOperandPreceding createWindowingClauseOperandPreceding();", "public PrimaryFile clonePrimaryFile()\n {\n ExtractedTargetFile pf = new ExtractedTargetFile();\n pf.setInternalBaseHref(getInternalBaseHref());\n pf.setExternalBaseHref(getExternalBaseHref());\n return pf;\n }", "public static interface Relation {\n\t\t//some relations are read-only\n\t\tpublic boolean isWriteable();\n\n\t\tpublic String getName();\n\n\t\t/**\n\t\t* Get the model for the relation. This will return a blank tuple, which will show\n\t\t* the ordered list of columns and the type for each. This is basically metadata.\n\t\t*/\n\t\tpublic Tuple getModel();\n\n\t\t/**\n\t\t* Get the number of rows (Tuples) in the relation.\n\t\t*/\n\t\tpublic int getRows();\n\n\t\t//----------------------------\n\t\t//operations on a Relation\n\t\t/**\n\t\t* projection narrows the number of columns in a relation.\n\t\t* This is the part of an sql statement that list the columns, e.g.\n\t\t*\tSELECT firstname,lastname FROM contact.\n\t\t* The contact table has a lot columns that these, but we only need these\n\t\t* two.\n\t\t*/\n\t\tpublic Relation project(Tuple t) throws RelationException;\n\n\t\t/**\n\t\t* Select narrows the number of rows returned.\n\t\t*/\n\t\tpublic Relation select(Condition c) throws RelationException;\n\n\t\t/**\n\t\t* Join this relation with another one based on the condition, and give it a name.\n\t\t* The implementation of this is complicated, because it must also create a dynamic\n\t\t* Tuple\n\t\t*/\n\t\tpublic Relation join(Relation r, Condition c, String name) throws RelationException;\n\t\t//-------------------------------\n\n\t\t/**\n\t\t* A cursor is the equivalent of a ResultSet. There may be different types\n\t\t* of Cursors depending on if this is coming directly from the database\n\t\t* or from a derived relation.\n\t\t*/\n\t\tpublic Cursor getCursor() throws RelationException;\n\n\t\t//-------------------------------\n\t\t//change data in the relation\n\t\t//I had this as part of Transaction, but I guess it belongs here.\n\t\t/**\n\t\t* Insert a Tuple into the relation. This may fail for various reasons\n\t\t* including IO problems, invalid transaction state, or constraint violations.\n\t\t* Or if the relation is read-only\n\t\t*/\n\t\tpublic Key insert(Transaction tx,Tuple t) throws RelationException;\n\n\t\t/**\n\t\t* Get the tuple that you just inserted by the Key\n\t\t*/\n\t\tpublic Tuple get(Key k) throws RelationException;\n\n\t\t/**\n\t\t* Update the relation with changed data in the Tuple.\n\t\t* The old data is stored in the _audit table.\n\t\t*/\n\t\tpublic void update(Transaction tx,Tuple old, Tuple nu) throws RelationException;\n\n\t\t/**\n\t\t* Delete the object. Must provide old state of object before doing so, so it\n\t\t* can be audited.\n\t\t*/\n\t\tpublic void delete(Transaction tx,Tuple old) throws RelationException;\n\n\t}", "LinkRelation createLinkRelation();", "private static Correlation getCorrelation(Query query, PhemaElmToOmopTranslatorContext context)\n throws PhemaNotImplementedException, CorrelationException, PhemaTranslationException {\n Expression correlationExpression = query.getRelationship().get(0).getSuchThat();\n\n if (!correlationExpressionSupported(correlationExpression)) {\n throw new PhemaNotImplementedException(String\n .format(\"Correlation not support for %s expression\",\n correlationExpression.getClass().getSimpleName()));\n }\n\n Map<String, QuickResource> aliases = setupAliases(query, context);\n\n if (correlationExpression instanceof Equal) {\n QuickResourceAttributePair lhs = getResourceAttributePairFromOperand(\n ((Equal) correlationExpression).getOperand().get(0), aliases);\n QuickResourceAttributePair rhs = getResourceAttributePairFromOperand(\n ((Equal) correlationExpression).getOperand().get(1), aliases);\n\n return new Correlation(lhs, rhs, correlationExpression);\n } else {\n throw new PhemaNotImplementedException(String\n .format(\"Correlation not support for %s expression\",\n correlationExpression.getClass().getSimpleName()));\n }\n }", "private PushProjectIntoMultiJoinRule()\n {\n super(\n new RelOptRuleOperand(\n ProjectRel.class,\n new RelOptRuleOperand(MultiJoinRel.class, ANY)));\n }", "public RelationPredicate(){}", "public RelationshipPrefetcher createRelationshipPrefetcher(ObjectReferenceDescriptor ord)\r\n {\r\n if (ord instanceof CollectionDescriptor)\r\n {\r\n CollectionDescriptor cds = (CollectionDescriptor)ord;\r\n if (cds.isMtoNRelation())\r\n {\r\n return new MtoNCollectionPrefetcher(broker, cds);\r\n }\r\n else\r\n {\r\n return new CollectionPrefetcher(broker, cds);\r\n }\r\n }\r\n else\r\n { \r\n return new ReferencePrefetcher(broker, ord);\r\n }\r\n }", "com.google.analytics.data.v1beta.OrderBy.PivotOrderBy getPivot();", "public Relation getRelation(String relationName);", "public static Criteria newAndCreateCriteria() {\n YoungSeckillPromotionProductRelationExample example = new YoungSeckillPromotionProductRelationExample();\n return example.createCriteria();\n }", "public interface IToRelative {\n\n\tpublic boolean relative(PointBean curP, PointBean prevP);\n}", "public Object getAdapter(Class adapter)\n {\n if (ProjectionAnnotationModel.class.equals(adapter))\n {\n if (this.projectionSupport != null)\n {\n Object result = this.projectionSupport.getAdapter(\n sourceViewer, adapter);\n if (result != null)\n {\n return result;\n }\n }\n }\n \n if (adapter.equals(IContentOutlinePage.class))\n {\n IEditorInput input = getEditorInput();\n \n if (input instanceof IFileEditorInput)\n {\n if (outlinePage == null)\n {\n outlinePage = new PerlOutlinePage(source);\n outlinePage.addSelectionChangedListener(new OutlineSelectionListener());\n }\n return outlinePage;\n }\n }\n \n return super.getAdapter(adapter);\n }", "public OldRankedConstraint copy() {\n OldRankedConstraint result = new OldRankedConstraint(constraint);\n result.sortingValues = sortingValues.copy();\n return result;\n }", "@Test\n public void testRevisedWildcardAndPartition() {\n Path filePath = new Path(\"hdfs:///w/x/y/z.csv\");\n ImplicitColumnManager implictColManager = new ImplicitColumnManager(\n fixture.getOptionManager(),\n standardOptions(filePath));\n\n ScanLevelProjection scanProj = ScanLevelProjection.build(\n RowSetTestUtils.projectList(SchemaPath.DYNAMIC_STAR,\n ScanTestUtils.partitionColName(8)),\n Lists.newArrayList(implictColManager.projectionParser()));\n\n List<ColumnProjection> cols = scanProj.columns();\n assertEquals(2, cols.size());\n assertTrue(scanProj.columns().get(0) instanceof UnresolvedWildcardColumn);\n assertTrue(scanProj.columns().get(1) instanceof PartitionColumn);\n }", "public XPlanTemplate getXPlan() {\n if (lockMode != LockMode.UNDEF) {\n return null; // TODO: lock not supported now.\n }\n final RelNode pushedRel = getPushedRelNode();\n if (XPlanRel != pushedRel) { // Compare the value to check whether the plan changed.\n final RelToXPlanConverter converter = new RelToXPlanConverter();\n try {\n XPlan = converter.convert(RelXPlanOptimizer.optimize(pushedRel));\n } catch (Exception e) {\n Throwable throwable = e;\n while (throwable.getCause() != null && throwable.getCause() instanceof InvocationTargetException) {\n throwable = ((InvocationTargetException) throwable.getCause()).getTargetException();\n }\n logger.info(\"XPlan converter: \" + throwable.getMessage());\n XPlan = null;\n }\n XPlanRel = pushedRel;\n }\n return XPlan;\n }", "@Override\n public AbstractRelic makeCopy() {\n return new Compendium();\n }", "@Override\n public Relation project(AttrList attributes) {\n // First, compute a superset of `attributes` that also takes join\n // attributes into account\n AttrList joinAttrs = operator.getJoinAttrList();\n AttrList withJoinAttrs = attributes.union(joinAttrs);\n\n // now project each operand in turn on those attributes\n Relation left = projectOperandOn(operator.getLeft(), withJoinAttrs);\n Relation right = projectOperandOn(operator.getRight(), withJoinAttrs);\n\n // recompute that join first\n Relation r = optimized(left).join(right);\n\n // if not equal it means that extra join attributes have been added by\n // the union above. We need to project them away now.\n if (!withJoinAttrs.equals(attributes)) {\n r = r.project(attributes);\n }\n return r;\n }", "public String getRelation() {\n return relation;\n }", "public XbaseGrammarAccess.XPrimaryExpressionElements getXbaseXPrimaryExpressionAccess() {\r\n\t\treturn gaXbase.getXPrimaryExpressionAccess();\r\n\t}", "public Object getProjection() {\n return getValue(PROP_PROJECTION);\n }", "public GiftCardProductQuery relativeUrl() {\n startField(\"relative_url\");\n\n return this;\n }", "public interface IRelation {\n\n\t/**\n\t * Gets the negation of the relation.\n\t */\n\tRelation getNegation();\n}", "public Relation<ModelGraphVertex, ModelGraphVertex> fillRelation() {\n\t\tRelation<ModelGraphVertex, ModelGraphVertex> r = new Relation<ModelGraphVertex, ModelGraphVertex>();\n\n\t\tIterator<JComboBox> it = cmbList.iterator();\n\t\tint position = 0;\n\t\twhile (it.hasNext()) {\n\t\t\tJComboBox cmb = it.next();\n\t\t\tif (cmb.getSelectedIndex() > 0) {\n\t\t\t\tint index = cmb.getSelectedIndex() - 1; // the first item in the\n\t\t\t\t// combobox is no\n\t\t\t\t// transition, but the\n\t\t\t\t// item \"no equivalent\"\n\t\t\t\tModelGraphVertex tProv = provTransitions.get(position);\n\t\t\t\tModelGraphVertex tReq = reqTransitions.get(index);\n\t\t\t\tTuple<ModelGraphVertex, ModelGraphVertex> tuple = new Tuple<ModelGraphVertex, ModelGraphVertex>(\n\t\t\t\t\t\ttProv, tReq);\n\t\t\t\tr.addR(tuple);\n\t\t\t}\n\t\t\tposition++;\n\t\t}\n\t\tposition = 0;\n\t\tit = cmbList.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tJComboBox cmb = it.next();\n\t\t\tif (cmb.getSelectedIndex() > 0) {\n\t\t\t\tint index = cmb.getSelectedIndex() - 1; // the first item in the\n\t\t\t\t// combobox is no\n\t\t\t\t// transition, but the\n\t\t\t\t// item \"no equivalent\"\n\t\t\t\tModelGraphVertex tProv = provTransitions.get(position);\n\t\t\t\tModelGraphVertex tReq = reqTransitions.get(index);\n\t\t\t\tTuple<ModelGraphVertex, ModelGraphVertex> tuple = new Tuple<ModelGraphVertex, ModelGraphVertex>(\n\t\t\t\t\t\ttReq, tProv);\n\t\t\t\tr.addR(tuple);\n\t\t\t}\n\t\t\tposition++;\n\t\t}\n\t\treturn r;\n\t}", "@Test void testCastDifferentCollationShouldNotApplySortProjectTranspose() {\n final RelBuilder relBuilder = RelBuilder.create(RelBuilderTest.config().build());\n final RelNode relNode = relBuilder\n .values(\n createRecordVarcharSpecialCollation(relBuilder),\n \"Legal\", \"presales\", \"hr\", \"Administration\", \"MARKETING\")\n .project(\n relBuilder.cast(relBuilder.field(\"name\"), SqlTypeName.VARCHAR))\n .sort(\n relBuilder.field(1, 0, 0))\n .build();\n\n // Cast to a type with a different collation, and then sort;\n // in this scenario SORT_PROJECT_TRANSPOSE must not be applied.\n final HepProgram program = new HepProgramBuilder()\n .addRuleInstance(CoreRules.SORT_PROJECT_TRANSPOSE)\n .build();\n final HepPlanner hepPlanner = new HepPlanner(program);\n hepPlanner.setRoot(relNode);\n final RelNode output = hepPlanner.findBestExp();\n final String planBefore = RelOptUtil.toString(relNode);\n final String planAfter = RelOptUtil.toString(output);\n final String expected =\n \"LogicalSort(sort0=[$0], dir0=[ASC])\\n\"\n + \" LogicalProject(name=[CAST($0):VARCHAR NOT NULL])\\n\"\n + \" LogicalValues(tuples=[[{ 'Legal' }, { 'presales' }, { 'hr' }, { 'Administration' }, { 'MARKETING' }]])\\n\";\n assertThat(planBefore, isLinux(expected));\n assertThat(planAfter, isLinux(expected));\n }", "private PhysicalRel optimize(\n OptimizerContext context,\n RelNode rel,\n QueryParameterMetadata parameterMetadata\n ) {\n context.setParameterMetadata(parameterMetadata);\n\n // Logical part.\n RelNode logicalRel = context.optimize(rel, LogicalRules.getRuleSet(), OptUtils.toLogicalConvention(rel.getTraitSet()));\n\n RootLogicalRel logicalRootRel = new RootLogicalRel(logicalRel.getCluster(), logicalRel.getTraitSet(), logicalRel);\n\n // Physical part.\n RelTraitSet physicalTraitSet = OptUtils.toPhysicalConvention(\n logicalRootRel.getTraitSet(),\n OptUtils.getDistributionDef(logicalRootRel).getTraitRoot()\n );\n\n return (PhysicalRel) context.optimize(logicalRootRel, PhysicalRules.getRuleSet(), physicalTraitSet);\n }", "@Test\n public void testPartitionColumnSelection() {\n Path filePath = new Path(\"hdfs:///w/x/y/z.csv\");\n ImplicitColumnManager implictColManager = new ImplicitColumnManager(\n fixture.getOptionManager(),\n standardOptions(filePath));\n\n String dir0 = ScanTestUtils.partitionColName(0);\n // Sic: case insensitivity, but name in project list\n // is preferred over \"natural\" name.\n String dir1 = \"DIR1\";\n String dir2 = ScanTestUtils.partitionColName(2);\n ScanLevelProjection scanProj = ScanLevelProjection.build(\n RowSetTestUtils.projectList(dir2, dir1, dir0, \"a\"),\n Lists.newArrayList(implictColManager.projectionParser()));\n\n assertEquals(4, scanProj.columns().size());\n assertEquals(dir2, scanProj.columns().get(0).name());\n assertEquals(dir1, scanProj.columns().get(1).name());\n assertEquals(dir0, scanProj.columns().get(2).name());\n assertEquals(\"a\", scanProj.columns().get(3).name());\n\n // Verify column type\n\n assertTrue(scanProj.columns().get(0) instanceof PartitionColumn);\n }", "WindowingClause createWindowingClause();", "@Nullable\n public RelationInfo relation() {\n return relation;\n }", "@Test\n \tpublic void whereClauseDirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \n \t\t);\n \t}", "PivotCol createPivotCol();", "IfcCartesianTransformationOperator getMappingTarget();", "ProjectionMode getProjectionMode();", "@Override\n\tpublic List<PersonRelation> getPersonRelation(PersonRelation personRelation) {\n\t\treturn null;\n\t}", "@Override\n protected GraphTraversal translateImpl(GraphTraversal traversal, PlanWithCost<Plan, PlanDetailedCost> plan, PlanOp planOp, TranslationContext context) {\n RelationFilterOp relationFilterOp = (RelationFilterOp) planOp;\n Optional<RelationOp> relationOp = PlanUtil.adjacentPrev(plan.getPlan(), relationFilterOp);\n if (!relationOp.isPresent()) {\n return traversal;\n }\n\n TraversalUtil.remove(traversal, TraversalUtil.lastConsecutiveSteps(traversal, HasStep.class));\n\n traversal = appendRelationAndPropertyGroup(\n traversal,\n relationOp.get().getAsgEbase().geteBase(),\n relationFilterOp.getAsgEbase().geteBase(),\n context.getOnt());\n\n return traversal;\n }", "public Relation getDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri);", "public interface Impl extends PersistenceFieldElement.Impl\n\t{\n\t\t/** Get the update action for this relationship element.\n\t\t * @return the update action, one of {@link #NONE_ACTION}, \n\t\t * {@link #NULLIFY_ACTION}, {@link #RESTRICT_ACTION}, \n\t\t * {@link #CASCADE_ACTION}, or {@link #AGGREGATE_ACTION}\n\t\t */\n\t\tpublic int getUpdateAction ();\n\n\t\t/** Set the update action for this relationship element.\n\t\t * @param action - an integer indicating the update action, one of:\n\t\t * {@link #NONE_ACTION}, {@link #NULLIFY_ACTION}, \n\t\t * {@link #RESTRICT_ACTION}, {@link #CASCADE_ACTION}, or \n\t\t * {@link #AGGREGATE_ACTION}\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setUpdateAction (int action) throws ModelException;\n\n\t\t/** Get the delete action for this relationship element.\n\t\t * @return the delete action, one of {@link #NONE_ACTION}, \n\t\t * {@link #NULLIFY_ACTION}, {@link #RESTRICT_ACTION}, \n\t\t * {@link #CASCADE_ACTION}, or {@link #AGGREGATE_ACTION}\n\t\t */\n\t\tpublic int getDeleteAction ();\n\n\t\t/** Set the delete action for this relationship element.\n\t\t * @param action - an integer indicating the delete action, one of:\n\t\t * {@link #NONE_ACTION}, {@link #NULLIFY_ACTION}, \n\t\t * {@link #RESTRICT_ACTION}, {@link #CASCADE_ACTION}, or \n\t\t * {@link #AGGREGATE_ACTION}\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setDeleteAction (int action) throws ModelException;\n\n\t\t/** Determines whether this relationship element should prefetch or not.\n\t\t * @return <code>true</code> if the relationship should prefetch, \n\t\t * <code>false</code> otherwise\n\t\t */\n\t\tpublic boolean isPrefetch ();\n\n\t\t/** Set whether this relationship element should prefetch or not.\n\t\t * @param flag - if <code>true</code>, the relationship is set to \n\t\t * prefetch; otherwise, it is not\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setPrefetch (boolean flag) throws ModelException;\n\n\t\t/** Get the lower cardinality bound for this relationship element.\n\t\t * @return the lower cardinality bound\n\t\t */\n\t\tpublic int getLowerBound ();\n\n\t\t/** Set the lower cardinality bound for this relationship element.\n\t\t * @param lowerBound - an integer indicating the lower cardinality bound\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setLowerBound (int lowerBound) throws ModelException;\n\n\t\t/** Get the upper cardinality bound for this relationship element. \n\t\t * Returns {@link java.lang.Integer#MAX_VALUE} for <code>n</code>\n\t\t * @return the upper cardinality bound\n\t\t */\n\t\tpublic int getUpperBound ();\n\n\t\t/** Set the upper cardinality bound for this relationship element.\n\t\t * @param upperBound - an integer indicating the upper cardinality bound\n\t\t * (use {@link java.lang.Integer#MAX_VALUE} for <code>n</code>)\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setUpperBound (int upperBound) throws ModelException;\n\n\t\t/** Get the collection class (for example Set, List, Vector, etc.)\n\t\t * for this relationship element.\n\t\t * @return the collection class\n\t\t */\n\t\tpublic String getCollectionClass ();\n\n\t\t/** Set the collection class for this relationship element.\n\t\t * @param collectionClass - a string indicating the type of \n\t\t * collection (for example Set, List, Vector, etc.)\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setCollectionClass (String collectionClass)\n\t\t\tthrows ModelException;\n\n\t\t/** Get the element class for this relationship element. If primitive \n\t\t * types are supported, you can use \n\t\t * <code><i>wrapperclass</i>.TYPE.toString()</code> to specify them.\n\t\t * @return the element class\n\t\t */\n\t\tpublic String getElementClass ();\n\n\t\t/** Set the element class for this relationship element.\n\t\t * @param elementClass - a string indicating the type of elements \n\t\t * in the collection. If primitive types are supported, you can use \n\t\t * <code><i>wrapperclass</i>.TYPE.toString()</code> to specify them.\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void setElementClass (String elementClass) throws ModelException;\n\n\t\t/** Get the relative name of the inverse relationship field for this \n\t\t * relationship element. In the case of two-way relationships, the two \n\t\t * relationship elements involved are inverses of each other. If this \n\t\t * relationship element does not participate in a two-way relationship, \n\t\t * this returns <code>null</code>. Note that it is possible to have \n\t\t * this method return a value, but because of the combination of \n\t\t * related class and lookup, there may be no corresponding \n\t\t * RelationshipElement which can be found.\n\t\t * @return the relative name of the inverse relationship element\n\t\t * @see #getInverseRelationship\n\t\t */\n\t\tpublic String getInverseRelationshipName ();\n\n\t\t/** Changes the inverse relationship element for this relationship \n\t\t * element. This method is invoked for both sides from \n\t\t * {@link RelationshipElement#setInverseRelationship} and should handle \n\t\t * the vetoable change events, property change events, and setting the \n\t\t * internal variable. \n\t\t * @param inverseRelationship - a relationship element to be used as \n\t\t * the inverse for this relationship element or <code>null</code> if \n\t\t * this relationship element does not participate in a two-way \n\t\t * relationship.\n\t\t * @exception ModelException if impossible\n\t\t */\n\t\tpublic void changeInverseRelationship (\n\t\t\tRelationshipElement inverseRelationship) throws ModelException;\n\t}", "public Envelope projectedExtent(Envelope r);", "public XbaseGrammarAccess.XPrimaryExpressionElements getXPrimaryExpressionAccess() {\n\t\treturn gaXbase.getXPrimaryExpressionAccess();\n\t}", "public XbaseGrammarAccess.XPrimaryExpressionElements getXPrimaryExpressionAccess() {\n\t\treturn gaXbase.getXPrimaryExpressionAccess();\n\t}", "public RelationPredicate (RelationPredicate p){\n\t\tname = p.name;\n\t\tfor(int i=0; i<p.terms.size(); i++){\n\t\t\tTerm t = p.terms.get(i);\n\t\t\taddTerm(t.clone());\n\t\t}\n\t\tsource=p.source;\n\t}", "@Projection(name = \"experiencetaskinfo\", types = {ExperienceTask.class})\npublic interface ExperienceTaskProjection {\n\n int getId();\n\n String getName();\n\n int getExperience();\n\n String getDescription();\n\n int getLimitPeriod();\n\n int getLimitTimes();\n}", "WindowingClauseOperandFollowing createWindowingClauseOperandFollowing();", "public Relation getDeepRelation(XDI3Segment contextNodeXri, XDI3Segment arcXri, XDI3Segment targetContextNodeXri);", "ProjectRepresentation getWorkingProject();", "@Override\n\tpublic PersonRelation getPersonRelationById(int personRelationId) {\n\t\treturn null;\n\t}", "protected AlgNode getProjectChild( AlgOptRuleCall call, Project project, boolean leftChild ) {\n return project.getInput();\n }", "public Projector getHorizontalProjector() {\n return (_tile!=null)?_tile.getHorizontalProjector():null;\n }", "JmfTaskMqRef selectByPrimaryKey(String relationId);", "CompositionSpaceToDraftAssociation get(UUID compositionSpaceId) throws OXException;", "public IProject getProject();", "@Override\n public TransferRelation getTransferRelation() {\n return null;\n }", "private ProjectionOperation getVehicleProjection() {\n return project()\n .andInclude(bind(\"_id\", \"cars.vehicles.id\"))\n .andInclude(bind(\"make\", \"cars.vehicles.make\"))\n .andInclude(bind(\"model\", \"cars.vehicles.model\"))\n .andInclude(bind(\"year_model\", \"cars.vehicles.year\"))\n .andInclude(bind(\"price\", \"cars.vehicles.price\"))\n .andInclude(bind(\"licensed\", \"cars.vehicles.licensed\"))\n .andInclude(bind(\"date_added\", \"cars.vehicles.dateAdded\"))\n .andInclude(bind(\"warehouse\", \"name\"))\n .andInclude(bind(\"location\", \"cars.location\"))\n .andInclude(bind(\"latitude\", \"location.latitude\"))\n .andInclude(bind(\"longitude\", \"location.longitude\"));\n }", "protected void createProjectExprs( Project projRel, AlgNode joinChild, int adjustmentAmount, RexBuilder rexBuilder, List<AlgDataTypeField> joinChildrenFields, List<Pair<RexNode, String>> projects ) {\n List<AlgDataTypeField> childFields = joinChild.getRowType().getFieldList();\n if ( projRel != null ) {\n List<Pair<RexNode, String>> namedProjects = projRel.getNamedProjects();\n int nChildFields = childFields.size();\n int[] adjustments = new int[nChildFields];\n for ( int i = 0; i < nChildFields; i++ ) {\n adjustments[i] = adjustmentAmount;\n }\n for ( Pair<RexNode, String> pair : namedProjects ) {\n RexNode e = pair.left;\n if ( adjustmentAmount != 0 ) {\n // Shift the references by the adjustment amount\n e = e.accept( new AlgOptUtil.RexInputConverter( rexBuilder, childFields, joinChildrenFields, adjustments ) );\n }\n projects.add( Pair.of( e, pair.right ) );\n }\n } else {\n // No projection; just create references to the inputs\n for ( int i = 0; i < childFields.size(); i++ ) {\n final AlgDataTypeField field = childFields.get( i );\n projects.add( Pair.of( (RexNode) rexBuilder.makeInputRef( field.getType(), i + adjustmentAmount ), field.getName() ) );\n }\n }\n }", "RelationalPackage getRelationalPackage();", "public ScGridColumn<AcUpuTagSummaryVo> newOriginOfficeOfExchangeQualifierColumn()\n {\n return newOriginOfficeOfExchangeQualifierColumn(\"Origin Office Of Exchange Qualifier\");\n }", "interface ColumnPair extends Comparable<ColumnPair> {\r\n\r\n\t\t/**\r\n\t\t * Return the column pair's \"base\" column.\r\n\t\t */\r\n\t\tColumn baseColumn();\r\n\r\n\t\t/**\r\n\t\t * Return the column pair's \"referenced\" column.\r\n\t\t */\r\n\t\tColumn referencedColumn();\r\n\r\n\t}", "@Ignore(\"Disabled due to missing functionality in Oracle XE.\")\n @Test\n public void referencePartitionedTable() throws FlywayException {\n flyway.setLocations(\"migration/dbsupport/oracle/sql/refpart\");\n flyway.migrate();\n flyway.clean();\n flyway.migrate();\n }", "@Test(description = \"export interface with one single relationship\")\n public void exportWithOneRelationship()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final RelationshipData rel = data.getRelationship(\"TestRelationship\");\n final InterfaceData inter = data.getInterface(\"TestInterface\").addRelationship(rel);\n data.create();\n\n inter.checkExport(inter.export());\n }", "public ContactQuery getQuerySource()\n {\n return (ContactQuery) source;\n }", "public Criteria andSortEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"sort = \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "protected ActivityPart getActivityPart() {\n\t\treturn (ActivityPart) getHost();\n\t}", "CmGroupRelIndustry selectByPrimaryKey(Long relId);", "public Relation setRelation(XDI3Segment arcXri, ContextNode targetContextNode);", "public GeneralPath toGeneralPath()\n {\n float x1 = getLowerLeftX();\n float y1 = getLowerLeftY();\n float x2 = getUpperRightX();\n float y2 = getUpperRightY();\n GeneralPath path = new GeneralPath();\n path.moveTo(x1, y1);\n path.lineTo(x2, y1);\n path.lineTo(x2, y2);\n path.lineTo(x1, y2);\n path.closePath();\n return path;\n }", "public Criteria andDeletedLessThanOrEqualToColumn(YoungSeckillPromotionProductRelation.Column column) {\n addCriterion(new StringBuilder(\"deleted <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public interface PartOfRelation\r\n{\r\n\r\n\t/**\r\n\t * Sets author\r\n\t * \r\n\t * @param author\r\n\t */\r\n\tvoid setAuthor(String author);\r\n\r\n\r\n\t/**\r\n\t * @return Author\r\n\t */\r\n\tString getAuthor();\r\n\r\n\t/**\r\n\t * Sets class type, one typical value is '300'\r\n\t * \r\n\t * @param classType\r\n\t */\r\n\tvoid setClassType(String classType);\r\n\r\n\t/**\r\n\t * @return class type\r\n\t */\r\n\tString getClassType();\r\n\r\n\t/**\r\n\t * Sets object key, for material items this is the product ID.\r\n\t * \r\n\t * @param objectKey\r\n\t */\r\n\tvoid setObjectKey(String objectKey);\r\n\r\n\t/**\r\n\t * @return Object key.\r\n\t */\r\n\tString getObjectKey();\r\n\r\n\t/**\r\n\t * Sets object type, product or an abstract product representative\r\n\t * \r\n\t * @param objectType\r\n\t */\r\n\tvoid setObjectType(String objectType);\r\n\r\n\t/**\r\n\t * @return Object type\r\n\t */\r\n\tString getObjectType();\r\n\r\n\t/**\r\n\t * Sets position in the BOM\r\n\t * \r\n\t * @param posNr\r\n\t */\r\n\tvoid setPosNr(String posNr);\r\n\r\n\t/**\r\n\t * @return Position number\r\n\t */\r\n\tString getPosNr();\r\n\r\n\t/**\r\n\t * Sets parent instance ID\r\n\t * \r\n\t * @param parentInstId\r\n\t */\r\n\tvoid setParentInstId(String parentInstId);\r\n\r\n\t/**\r\n\t * @return Parent instance ID\r\n\t */\r\n\tString getParentInstId();\r\n\r\n\t/**\r\n\t * Sets child instance ID\r\n\t * \r\n\t * @param instId\r\n\t */\r\n\tvoid setInstId(String instId);\r\n\r\n\t/**\r\n\t * @return Child instance ID\r\n\t */\r\n\tString getInstId();\r\n}", "Project selectByPrimaryKey(Long id);", "PivotInClause createPivotInClause();", "public Relation setRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);", "public Tuple2d getProjectedPoint(final Tuple3d point) {\n return new Tuple2d(TupleMath.dot(point, this.projectionX), TupleMath.dot(point, this.projectionY));\n }", "@Override\n public Project getProject() {\n return super.getProject();\n }", "public Project getProjectRelatedByProjectId() throws TorqueException\n {\n if (aProjectRelatedByProjectId == null && (this.projectId != 0))\n {\n aProjectRelatedByProjectId = ProjectPeer.retrieveByPK(SimpleKey.keyFor(this.projectId));\n \n /* The following can be used instead of the line above to\n guarantee the related object contains a reference\n to this object, but this level of coupling\n may be undesirable in many circumstances.\n As it can lead to a db query with many results that may\n never be used.\n Project obj = ProjectPeer.retrieveByPK(this.projectId);\n obj.addNewslettersRelatedByProjectId(this);\n */\n }\n return aProjectRelatedByProjectId;\n }" ]
[ "0.55387366", "0.5288672", "0.4897297", "0.47096026", "0.46354938", "0.4572607", "0.44423088", "0.44149706", "0.4381495", "0.43684697", "0.43423763", "0.4306035", "0.42620742", "0.426169", "0.42278886", "0.41889092", "0.41734144", "0.4096551", "0.4043181", "0.40341997", "0.40235126", "0.40195075", "0.398772", "0.3986159", "0.3984012", "0.39815047", "0.3922746", "0.3918245", "0.38890108", "0.38862804", "0.38658285", "0.38594294", "0.38447782", "0.38368312", "0.38169473", "0.3815192", "0.38064918", "0.3805363", "0.37963375", "0.37935004", "0.37783614", "0.37728083", "0.37710506", "0.37684524", "0.37548327", "0.3752904", "0.3732905", "0.37278622", "0.37260944", "0.3717672", "0.37147224", "0.37128276", "0.37087384", "0.37011442", "0.36963212", "0.36949554", "0.3690286", "0.36894757", "0.36799094", "0.36779648", "0.36765146", "0.36601377", "0.36588922", "0.3658245", "0.36547926", "0.36536425", "0.36536425", "0.3647524", "0.36427796", "0.3641382", "0.3640183", "0.36359888", "0.36356735", "0.36196297", "0.36164013", "0.3615698", "0.36039487", "0.35946274", "0.35926718", "0.35864937", "0.35797918", "0.35792693", "0.3577939", "0.35732898", "0.35695758", "0.3566834", "0.35649037", "0.35589853", "0.35536468", "0.35432857", "0.35395265", "0.35388178", "0.35325775", "0.35324323", "0.35278255", "0.35274038", "0.35245165", "0.35118225", "0.35118088", "0.35065764" ]
0.58051646
0
Due to the fact that the antecedents of a projected relation does not propagate any substitution.
@Override protected Map<TableUniqueName, String> tableSubstitution() { return ImmutableMap.of(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Relation project(Tuple t) throws RelationException;", "@Override\n\tString realise(Realiser r) {\n\t\tString mainSent = this.coordinator.realise(r);\n\n\t\tif (isSubordinateClause() && !this.suppressComp\n\t\t\t\t&& !getForm().equals(Form.GERUND)) {\n\t\t\tif (isRelativeWithComplementPosition())\t{\n\t\t\t\t((NPPhraseSpec) this.complementiser).setCase(this.relArgument.getCaseValue());\n\t\t\t}\n\t\t\tmainSent = r.appendSpace(r.realise(this.complementiser), mainSent);\n\t\t}\n\n\t\treturn hasParentSpec() ? mainSent : r\n\t\t\t\t.applySentenceOrthography(mainSent);\n\t}", "public void transform() {\n\t\tOrganism newOrg;\n\t\t\n\t\tfor (int i=0; i < 1; i++) {\n\t\t\tnewOrg = new Organism(_world);\n\t\t\tif (newOrg.inheritTransformation(this, i==0)) {\n\t\t\t\t// It can be created\n\t\t\t\t_world.addOrganism(newOrg,this);\n\t\t\t}\n\t\t}\n\t}", "public void testConjoinedVariablesPropagateAccrossConjunction() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), h(x), (f(X, Y) :- g(X), h(Y))], (?- f(X, X)), [[X <-- x]]]\");\n }", "@Override\n\tpublic void jogavel(Participante p) {\n\t\t\n\t}", "private static void projectPotentials(ProbNet probNet, Variable variable, State state)\n\t\t\tthrows InvalidStateException, IncompatibleEvidenceException, NonProjectablePotentialException,\n\t\t\tWrongCriterionException {\n\n\t\tEvidenceCase decisionEvidence = new EvidenceCase();\n\t\tdecisionEvidence.addFinding(new Finding(variable, state));\n\t\tList<Potential> nodePotentials = probNet.getNode(variable).getPotentials();\n\t\tPotential nodePotential;\n\n\t\tif (nodePotentials != null && nodePotentials.size() > 0) {\n\t\t\tnodePotential = nodePotentials.get(0);\n\t\t} else {\n\t\t\tnodePotential = null;\n\t\t}\n\n\t\tfor (Potential potential : probNet.getPotentials(variable)) {\n\t\t\t// Project all potentials except the potential of the node\n\t\t\tif (nodePotential == null || (!nodePotential.equals(potential))) {\n\t\t\t\tVariable conditionedVariable = potential.getConditionedVariable();\n\t\t\t\tNode node = probNet.getNode(conditionedVariable);\n\t\t\t\tif (potential instanceof TablePotential || potential instanceof ExactDistrPotential) {\n\t\t\t\t\t// Maintain the type of potential.\n\t\t\t\t\tnode.setPotential(potential.project(decisionEvidence));\n\t\t\t\t} else {\n\t\t\t\t\t//We ensure here that the first variable of a utility potential is the variable of the utility node.\n\t\t\t\t\t//This condition is necessary to correctly evaluate the network with VariableEliminationCore\n\t\t\t\t\tList<TablePotential> projectedPotentials = potential.tableProject(decisionEvidence, null);\n\t\t\t\t\tTablePotential potentialProjectedFromTreeADD = projectedPotentials.get(0);\n\t\t\t\t\tPotential newPotential;\n\t\t\t\t\tNode newConditionedVariable = probNet\n\t\t\t\t\t\t\t.getNode(potentialProjectedFromTreeADD.getConditionedVariable());\n\t\t\t\t\tNodeType utilityType = NodeType.UTILITY;\n\t\t\t\t\tif (((newConditionedVariable == null) || (newConditionedVariable.getNodeType() != utilityType)) && (\n\t\t\t\t\t\t\tnode.getNodeType() == utilityType\n\t\t\t\t\t)) {\n\t\t\t\t\t\tList<Variable> newVarsPotential = new ArrayList<>();\n\t\t\t\t\t\tnewVarsPotential.add(conditionedVariable);\n\t\t\t\t\t\tnewVarsPotential.addAll(potentialProjectedFromTreeADD.getVariables());\n\t\t\t\t\t\tnewPotential = new ExactDistrPotential(newVarsPotential, PotentialRole.UNSPECIFIED,\n\t\t\t\t\t\t\t\tpotentialProjectedFromTreeADD.values);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnewPotential = potentialProjectedFromTreeADD;\n\t\t\t\t\t}\n\t\t\t\t\tnode.setPotential(newPotential);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void unsetFurtherRelations();", "private void setUpRelations() {\n g[0].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[1]);\n g[2].getAuthorities().add(a[2]);\n\n u[0].getGroups().add(g[0]);\n u[0].getOwnAuthorities().add(a[2]);\n u[1].getGroups().add(g[1]);\n u[1].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[3]);\n u[3].getGroups().add(g[1]);\n u[3].getGroups().add(g[2]);\n merge();\n }", "private PushProjectIntoMultiJoinRule()\n {\n super(\n new RelOptRuleOperand(\n ProjectRel.class,\n new RelOptRuleOperand(MultiJoinRel.class, ANY)));\n }", "private void applyMerge() {\n try {\n SolutionTrajectory trajectory = solution.getShortestTrajectory();\n trajectory.setModel(this.scope);\n trajectory.doTransformation();\n applied = true;\n } catch (IncQueryException e) {\n logger.error(e.getMessage(), e);\n }\n }", "protected void visit(LOProject p) throws VisitorException {\n List<LogicalOperator> preds = mPlan.getPredecessors(p);\n if (preds == null || preds.size() == 0) {\n if(p.getExpression().equals(mOldNode))\n // Change the expression\n p.setExpression(mNewNode);\n\n // Remap the projection column if necessary\n if (mProjectionMapping != null && !p.isStar()) {\n List<Integer> oldProjection = p.getProjection();\n List<Integer> newProjection =\n new ArrayList<Integer>(oldProjection.size());\n for (Integer i : oldProjection) {\n Integer n = mProjectionMapping.get(i);\n assert(n != null);\n newProjection.add(n);\n }\n }\n } else {\n p.getExpression().visit(this);\n }\n }", "public void solve() {\r\n\t\t//This needs to be overloaded by a child Class\r\n\t\t//By default, assume a point to line projection, which is essentially an intersection violation\r\n\t\t//\tsolve.\r\n\t\tVec2 norm;\r\n\t\tif (refB != null) {\r\n\t\t\t//Position to Line constraint to solve\r\n\t\t\tnorm = Vec2.perpendicularNormal(refA, refB);\r\n\t\t\t//Commenting out the below -- this will need a more thorough analysis, such by\r\n\t\t\t//\tadding the reference objects center (origin) to determine which side of a line is the\r\n\t\t\t//\tmost appropriate normal vector for separation.\r\n\t\t\t/*if (Vec2.dot(norm, inc) > 0) {\r\n\t\t\t\t//Flip signs to ensure the normal is the direction the reference object needs to move along.\r\n\t\t\t\tnorm.x *= -1.0;\r\n\t\t\t\tnorm.y *= -1.0;\r\n\t\t\t}*/\r\n\t\t\t//Get the violation from the incident point to the reference line (just a point to plane distance problem).\r\n\t\t\tdouble violation = Vec2.dot(norm, new Vec2(inc.x - refA.x, inc.y - refA.y));// - 5.0;\r\n\t\t\tdouble jWeight = incMass + refMass;\r\n\t\t\tdouble j = incMass / jWeight;\r\n\t\t\t//Not worrying about solving this a linear complementary problem, just enforcing positive change\r\n\t\t\tif (violation <= 0.03)return;\r\n\t\t\tinc.x -= (violation * norm.x) * j;\r\n\t\t\tinc.y -= (violation * norm.y) * j;\r\n\t\t\tif (refMass != 0.0) {\r\n\t\t\t\t//Ignore the reference positions if it has infinite mass\r\n\t\t\t\tj = -refMass / jWeight;//negated because the normal is currently representing the solve direction for inc not ref\r\n\t\t\t\t//need to distribute the solve between the two positions, check via barycentric coordinates\r\n\t\t\t\t//Not implementing here, only worried about getting the basic dynamic versus static object test working against gravity.\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//Position to Position constraint to solve\r\n\t\t}\r\n\t}", "public void testConjoinedVariablesPropagateAccrossConjunctionFailingOnNonUnification() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"g(x)\", \"h(y)\", \"f(X, Y) :- g(X), h(Y)\" }, \"?- f(X, X)\");\n }", "private void transPose(graph g) {\n\t\tIterator it = g.getV().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tnode_data temp = (node_data) it.next();\n\t\t\tif(g.getE(temp.getKey())!=null) {\n\t\t\t\tIterator it1 = g.getE(temp.getKey()).iterator();\n\t\t\t\twhile (it1.hasNext()) {\n\t\t\t\t\tedge_data temp1 = (edge_data) it1.next();\n\t\t\t\t\tif (temp1 != null && temp1.getTag() == 0) {\n\t\t\t\t\t\tif (g.getEdge(temp1.getDest(), temp1.getSrc()) != null) {\n\t\t\t\t\t\t\tEdge temps = new Edge((Edge)g.getEdge(temp1.getSrc(),temp1.getDest()));\n\t\t\t\t\t\t\tdouble weight1 = g.getEdge(temp1.getSrc(),temp1.getDest()).getWeight();\n\t\t\t\t\t\t\tdouble weight2 = g.getEdge(temp1.getDest(),temp1.getSrc()).getWeight();\n\t\t\t\t\t\t\tg.connect(temp1.getSrc(),temp1.getDest(),weight2);\n\t\t\t\t\t\t\tg.connect(temps.getDest(),temps.getSrc(),weight1);\n\t\t\t\t\t\t\tg.getEdge(temps.getDest(), temps.getSrc()).setTag(1);\n\t\t\t\t\t\t\tg.getEdge(temps.getSrc(),temps.getDest()).setTag(1);\n\t\t\t\t\t\t\tit1 = g.getE(temp.getKey()).iterator();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tg.connect(temp1.getDest(), temp1.getSrc(), temp1.getWeight());\n\t\t\t\t\t\t\tg.getEdge(temp1.getDest(), temp1.getSrc()).setTag(1);\n\t\t\t\t\t\t\tg.removeEdge(temp1.getSrc(), temp1.getDest());\n\t\t\t\t\t\t\tit1 = g.getE(temp.getKey()).iterator();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void testVariableBindingFromFirstPathPropagatesAccrossConjunctionAndFailsOnNonUnification() throws Exception\n {\n resolveAndAssertFailure(new String[] { \"g(x)\", \"h(y)\", \"f(X) :- g(X), h(X)\" }, \"?- f(Y)\");\n }", "@Override\n protected GraphTraversal translateImpl(GraphTraversal traversal, PlanWithCost<Plan, PlanDetailedCost> plan, PlanOp planOp, TranslationContext context) {\n RelationFilterOp relationFilterOp = (RelationFilterOp) planOp;\n Optional<RelationOp> relationOp = PlanUtil.adjacentPrev(plan.getPlan(), relationFilterOp);\n if (!relationOp.isPresent()) {\n return traversal;\n }\n\n TraversalUtil.remove(traversal, TraversalUtil.lastConsecutiveSteps(traversal, HasStep.class));\n\n traversal = appendRelationAndPropertyGroup(\n traversal,\n relationOp.get().getAsgEbase().geteBase(),\n relationFilterOp.getAsgEbase().geteBase(),\n context.getOnt());\n\n return traversal;\n }", "public void testVariableBindingFromFirstPathPropagatesAccrossConjunction() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), h(x), (f(X) :- g(X), h(X))], (?- f(Y)), [[Y <-- x]]]\");\n }", "@SuppressWarnings(\"unchecked\")\r\npublic static void ruleResolvePronouns(AnnotationSet basenp, Document doc)\r\n{\n Annotation[] basenpArray = basenp.toArray();\r\n\r\n // Initialize coreference clusters\r\n int maxID = basenpArray.length;\r\n\r\n // Create an array of pointers\r\n // clust = new UnionFind(maxID);\r\n fvm = new RuleResolvers.FeatureVectorMap();\r\n ptrs = new int[maxID];\r\n clusters = new HashSet[maxID];\r\n for (int i = 0; i < clusters.length; i++) {\r\n ptrs[i] = i;\r\n HashSet<Annotation> cluster = new HashSet<Annotation>();\r\n cluster.add(basenpArray[i]);\r\n clusters[i] = cluster;\r\n }\r\n Annotation zero = new Annotation(-1, -1, -1, \"zero\");\r\n\r\n for (int i = 1; i < basenpArray.length; i++) {\r\n Annotation np2 = basenpArray[i];\r\n if (FeatureUtils.isPronoun(np2, doc)) {\r\n Annotation ant = ruleResolvePronoun(basenpArray, i, doc);\r\n if (ant != null) {\r\n np2.setProperty(Property.PRO_ANTES, ant);\r\n }\r\n else {\r\n np2.setProperty(Property.PRO_ANTES, zero);\r\n }\r\n }\r\n }\r\n}", "public void testVariableBindingFromQueryPropagatesAccrossConjunction() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), h(x), (f(X) :- g(X), h(X))], (?- f(x)), [[]]]\");\n }", "private void translateStructure(Point3d originalCoord, Point3d newCoord, IAtomContainer ac) {\n\t\tPoint3d transVector = new Point3d(originalCoord);\n\t\ttransVector.sub(newCoord);\n\t\tfor (int i = 0; i < ac.getAtomCount(); i++) {\n\t\t\tif (!(ac.getAtom(i).getFlag(CDKConstants.ISPLACED))) {\n\t\t\t\tac.getAtom(i).getPoint3d().sub(transVector);\n\t\t\t\t//ac.getAtomAt(i).setFlag(CDKConstants.ISPLACED, true);\n\t\t\t}\n\t\t}\n\t}", "protected boolean isSupported(ImmutableSet<Variable> projectedVariables, Analysis analysis,\n ImmutableSet<Map.Entry<Variable, NonGroundTerm>> newBindings) {\n if (!analysis.hasDistinct)\n return true;\n\n ImmutableSet<ImmutableTerm> alreadyProjectedTerms = Stream.concat(\n projectedVariables.stream(),\n analysis.constructionNode\n .map(c -> c.getSubstitution().getImmutableMap().values().stream())\n .orElseGet(Stream::empty))\n .collect(ImmutableCollectors.toSet());\n\n return newBindings.stream()\n .map(Map.Entry::getValue)\n .noneMatch(t -> mayImpactDistinct(t, alreadyProjectedTerms));\n }", "public void updateProjector(Matrix4f trans) {\r\n\t\tMatrix4f oldM = new Matrix4f(getProjector().getModelM());\r\n\t\tgetProjector().setModelM(trans.multiply(oldM.transpose()).transpose().toArray());\r\n\t}", "private void solveDependencies() {\n requiredProjects.clear();\n requiredProjects.addAll(getFlattenedRequiredProjects(selectedProjects));\n }", "public void changePolyOriginal() {\n this.changePoly(this.aorg, this.borg, this.corg, this.dorg, this.yorg);\n }", "@Override\n protected void mergeModel_Organization( Model target, Model source, boolean sourceDominant,\n Map<Object, Object> context )\n {\n Organization src = source.getOrganization();\n if ( source.getOrganization() != null )\n {\n Organization tgt = target.getOrganization();\n if ( tgt == null )\n {\n target.setOrganization( tgt = new Organization() );\n mergeOrganization( tgt, src, sourceDominant, context );\n }\n }\n }", "private String replaceIntermediateObjectWithRel(Context context, String strOldRelId ,String strNewRelId ,String strNewRelIdSide,Map attributeMap) throws Exception {\r\n\r\n\t\tString strNewConnId=\"\";\r\n\t\tboolean isRelToRel = true;\r\n\t\tboolean isFrom = true;\r\n\r\n\t\ttry{\r\n\r\n\t\tDomainRelationship domRel = new DomainRelationship(strOldRelId);\r\n //Get the attributes on Relationship\r\n /*Map attributeMap = new HashMap();\r\n attributeMap = domRel.getAttributeMap(context,true);*/\r\n\r\n\r\n\t\t//Get the \"Type\" of rel\r\n\t\tStringList slRelSelects = new StringList(1);\r\n slRelSelects.addElement(DomainRelationship.SELECT_TYPE);\r\n\r\n if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"from\")){\r\n \t//New Rel replaces FL/GBOM which is on \"from\" side of Old Rel hence we query now \"to\" side of Old Rel\r\n \tslRelSelects.add(\"to.id\");\r\n slRelSelects.add(\"torel.id\");\r\n\r\n }else if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"to\")){\r\n \t//New Rel replaces FL/GBOM which is on \"to\" side of Old Rel hence we query now \"from\" side of Old Rel\r\n \tslRelSelects.add(\"from.id\");\r\n slRelSelects.add(\"fromrel.id\");\r\n }\r\n\r\n Hashtable htRelData = domRel.getRelationshipData(context,slRelSelects);\r\n\r\n String strFromSideOfRel =\"\";\r\n String strToSideOfRel =\"\";\r\n String strRelId =\"\";\r\n String strObjId =\"\";\r\n\r\n StringList slRelTypes = (StringList) htRelData.get(DomainRelationship.SELECT_TYPE);\r\n String strRelType = (String) slRelTypes.get(0);\r\n RelationshipType RelType = new RelationshipType(strRelType);\r\n\r\n\r\n if((StringList) htRelData.get(\"from.id\")!=null || ((StringList)htRelData.get(\"fromrel.id\"))!=null ){\r\n\r\n \tStringList slFromSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"from.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"from.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\t//isFrom = false;\r\n \t\tstrObjId = strFromSideOfRel;\r\n\r\n\r\n \t}else if(!((StringList)htRelData.get(\"fromrel.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"fromrel.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tstrRelId = strFromSideOfRel;\r\n \t\tisFrom = false;\r\n \t}\r\n }\r\n\r\n if((StringList) htRelData.get(\"to.id\")!=null || ((StringList)htRelData.get(\"torel.id\"))!=null ){\r\n\r\n \tStringList slToSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"to.id\")).isEmpty()){\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"to.id\");\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\tstrObjId = strToSideOfRel;\r\n \t\tisFrom = false;\r\n \t}else if(!((StringList)htRelData.get(\"torel.id\")).isEmpty()){\r\n\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"torel.id\");\r\n\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n \t\tstrRelId =strToSideOfRel;\r\n \t\t//isFrom = false;\r\n \t}\r\n }\r\n\r\n\r\n if(isRelToRel){\r\n\r\n strNewConnId = connectRelationship(context, RelType, strRelId,strNewRelId, isFrom);\r\n\r\n }else{\r\n\r\n \tstrNewConnId = connectObject(context, RelType, strObjId,strNewRelId, isFrom);\r\n }\r\n\r\n\t\t\t StringList relDataSelects = new StringList();\r\n\t\t\t relDataSelects.addElement(\"frommid.id\");\r\n\t\t\t relDataSelects.addElement(\"tomid.id\");\r\n\r\n\t\t\t Map gbomRelData = domRel.getRelationshipData(context,relDataSelects);\r\n\t\t\t StringList sLFrommid = new StringList();\r\n\t\t\t StringList sLTomid = new StringList();\r\n\r\n\t\t\t sLFrommid = (StringList) gbomRelData.get(\"frommid.id\");\r\n\t\t\t if(!sLFrommid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLFrommid.size();i++){\r\n\r\n\t\t\t\t\tString strFromMid = (String)sLFrommid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strFromMid,strNewConnId,true);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\r\n\t\t\t sLTomid = (StringList) gbomRelData.get(\"tomid.id\");\r\n\t\t\t if(!sLTomid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLTomid.size();i++){\r\n\r\n\t\t\t\t\tString strToMid = (String)sLTomid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strToMid,strNewConnId,false);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\tDomainRelationship domNewConnId = new DomainRelationship(strNewConnId);\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewConnId +\"\\n\");\r\n\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this rel id :: \"+ attributeMap +\"\\n\\n\");\r\n\t domNewConnId.setAttributeValues(context, attributeMap);\r\n\r\n\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn strNewConnId;\r\n\t}", "public void test_ck_03() {\n // part A - surprising reification\n OntModel model1 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM, null);\n OntModel model2 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM_RULE_INF, null);\n \n Individual sub = model1.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n OntProperty pred = model1.createOntProperty(\"http://mytest#\");\n Individual obj = model1.createIndividual(\"http://mytest#i2\", model1.getProfile().CLASS());\n OntProperty probabilityP = model1.createOntProperty(\"http://mytest#prob\");\n \n Statement st = model1.createStatement(sub, pred, obj);\n model1.add(st);\n st.createReifiedStatement().addProperty(probabilityP, 0.9);\n assertTrue(\"st should be reified\", st.isReified());\n \n Statement st2 = model2.createStatement(sub, pred, obj);\n model2.add(st2);\n st2.createReifiedStatement().addProperty(probabilityP, 0.3);\n assertTrue(\"st2 should be reified\", st2.isReified());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP).addProperty(probabilityP, 0.3); //!!!\n // exception\n \n // Part B - exception in remove All\n Individual sub2 = model2.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP); //!!! exception\n \n sub2.addProperty(probabilityP, 0.3);\n sub2.removeAll(probabilityP); //!!! exception\n \n }", "public static void createAggregatedRelationship (AbstractStructureElement from, AbstractStructureElement to, ArrayList<KDMRelationship> relations) {\n\t\tif (from.getAggregated().size() > 0) {\r\n\t\t\t//System.out.println(\"MAIOR QUE 1, TODO\");\r\n\r\n\t\t\t//Andre - pega os aggragated que ja estão no from\r\n\t\t\tEList<AggregatedRelationship> aggregatedFROM = from.getAggregated();\t\t\r\n\r\n\t\t\t//Andre - começa um for nesses aggregated\r\n\t\t\tfor (int i = 0; i < aggregatedFROM.size(); i++) {\r\n\r\n\t\t\t\t//Andre - verifica se o aggregated que ja existe tem o mesmo destino que o que esta pra ser criado \r\n\t\t\t\tif (to.getName().equalsIgnoreCase(aggregatedFROM.get(i).getTo().getName())) {\r\n\r\n\t\t\t\t\t//Andre - se tiver o mesmo destino ele adiciona as relacoes novas e atualiza a densidade, depois disso ele pega e sai do for\r\n\t\t\t\t\t//ADICIONAR\r\n\r\n\t\t\t\t\taggregatedFROM.get(i).setDensity(aggregatedFROM.get(i).getDensity()+relations.size());\r\n\t\t\t\t\taggregatedFROM.get(i).getRelation().addAll(relations);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//Andre - se for o ultimo aggregated do for e mesmo assim não encontrou o com o mesmo destino que esta pra ser criado \r\n\t\t\t\t//Andre - entao cria um novo aggregated para ser adicionado\r\n\t\t\t\t//se chegar no ultimo e nao encontrar\r\n\t\t\t\tif (i == (aggregatedFROM.size()-1)) {\r\n\r\n\t\t\t\t\tAggregatedRelationship newRelationship = CoreFactory.eINSTANCE.createAggregatedRelationship();\r\n\t\t\t\t\tnewRelationship.setDensity(relations.size());\r\n\t\t\t\t\tnewRelationship.setFrom(from);\r\n\t\t\t\t\tnewRelationship.setTo(to);\r\n\t\t\t\t\tnewRelationship.getRelation().addAll(relations);\r\n\t\t\t\t\tfrom.getAggregated().add(newRelationship);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\t//Andre - se não tiver um agrregated na layer from adiciona um com as relacoes que podem entre duas layers\r\n\t\t\tAggregatedRelationship newRelationship = CoreFactory.eINSTANCE.createAggregatedRelationship();\r\n\t\t\tnewRelationship.setDensity(relations.size());\r\n\t\t\tnewRelationship.setFrom(from);\r\n\t\t\tnewRelationship.setTo(to);\r\n\t\t\tnewRelationship.getRelation().addAll(relations);\r\n\t\t\tfrom.getAggregated().add(newRelationship);\r\n\t\t}\r\n\r\n\t\t//Fernando - Limpando lista \r\n\t\trelations.clear();\r\n\t\tfrom = null;\r\n\t\tto = null;\r\n\r\n\r\n\t}", "private HashMap<ComparableExpression, HashSet<ComparableExpression>> transitiveClosure(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rel) {\n\n HashMap<ComparableExpression, HashSet<ComparableExpression>> newRel = rel;\n boolean changed = true;\n // apply transitivity until closure is complete: (a,b) in rel, (b,c) in rel => (a,c) in rel\n while (changed) {\n HashMap<ComparableExpression, HashSet<ComparableExpression>> oldRel =\n (HashMap<ComparableExpression, HashSet<ComparableExpression>>) SerializationUtils.clone(newRel);\n changed = false;\n for (Map.Entry<ComparableExpression, HashSet<ComparableExpression>> r : oldRel.entrySet()) {\n ComparableExpression key = r.getKey();\n for (ComparableExpression value : r.getValue()) {\n newRel.putIfAbsent(key, new HashSet<>());\n changed = newRel.get(key).add(value) || changed;\n if (oldRel.containsKey(value)) {\n changed = newRel.get(key).addAll(oldRel.get(value)) || changed;\n }\n }\n }\n }\n return newRel;\n }", "@Test\n @Ignore\n public void testReplaceCommonSubexpression() throws Exception {\n\n checkPlanning( ProjectRemoveRule.INSTANCE, \"select d1.deptno from (select * from dept) d1, (select * from dept) d2\" );\n }", "void propagate(ProverEnvironment pProver, ProverEnvironment pSubsumptionProver)\n throws SolverException, InterruptedException, CPAException;", "@Test\n public void shouldNotAddDuplicateDependents() {\n String currentPipeline = \"p5\";\n ValueStreamMap graph = new ValueStreamMap(currentPipeline, null);\n Node p4 = graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n\n assertThat(p4.getChildren().size(), is(1));\n VSMTestHelper.assertThatNodeHasChildren(graph, \"p4\", 0, \"p5\");\n }", "@Override\r\n\tpublic void solve() {\n\t\t\r\n\t}", "private ProjectedVertex() {\n this.valid = false;\n this.edge = null;\n }", "@Override\n public Set<Edge<PhysicalObject>> getRelationBetweenObjects() {\n assert false : \"shouldn't call this method\";\n return null;\n }", "public void mergeRebindsFromCollapsed(Permutation other) {\n assert other.orderedPropertyOracles.size() == other.orderedRebindAnswers.size();\n orderedPropertyOracles = Lists.addAll(orderedPropertyOracles,\n other.orderedPropertyOracles);\n orderedRebindAnswers = Lists.addAll(orderedRebindAnswers,\n other.orderedRebindAnswers);\n other.destroy();\n }", "boolean isSetFurtherRelations();", "private void mapPrecincts() {\r\n\t\tMap<Integer, Precinct> allPrecincts = new HashMap<Integer, Precinct>();\r\n\t\tMap<Integer, Precinct> currPrecincts;\r\n\t\tfor (CongressionalDistrict district : districts.values()) {\r\n\t\t\tcurrPrecincts = district.getPrecincts(); // lazy loaded\r\n\t\t\tif (currPrecincts == null) {\r\n\t\t\t\tthrow new IllegalStateException();\r\n\t\t\t}\r\n\t\t\tallPrecincts.putAll(currPrecincts);\r\n\t\t\tfor (Precinct precinct : currPrecincts.values()) {\r\n\t\t\t\tprecinct.setConDistrict(district); // make sure the object is the same\r\n\t\t\t}\r\n\t\t}\r\n\t\tmapNeighborPrecincts(allPrecincts);\r\n\t\tstate.setPrecincts(allPrecincts); //allow for retrieving maps and data later\r\n\t}", "@Override\n public Relation project(AttrList attributes) {\n // First, compute a superset of `attributes` that also takes join\n // attributes into account\n AttrList joinAttrs = operator.getJoinAttrList();\n AttrList withJoinAttrs = attributes.union(joinAttrs);\n\n // now project each operand in turn on those attributes\n Relation left = projectOperandOn(operator.getLeft(), withJoinAttrs);\n Relation right = projectOperandOn(operator.getRight(), withJoinAttrs);\n\n // recompute that join first\n Relation r = optimized(left).join(right);\n\n // if not equal it means that extra join attributes have been added by\n // the union above. We need to project them away now.\n if (!withJoinAttrs.equals(attributes)) {\n r = r.project(attributes);\n }\n return r;\n }", "@Override\n AbstractConstraints<X> reconcile(X context, Meta<X> other, Conjunction<X> cs) {\n return cs;\n }", "RelatedPerson<Person, Person> relatePerson(String person1, String person2, String relation);", "@Test\n public void testReproject() throws FactoryException, TransformException{\n\n final GeometryFactory GF = org.geotoolkit.geometry.jts.JTS.getFactory();\n\n final LinearRing ring = GF.createLinearRing(new Coordinate[]{\n new Coordinate(29.5314900850289,67.6621244561062),\n new Coordinate(29.5314900850289,80.8837216369139),\n new Coordinate(42.7530872658366,80.8837216369139),\n new Coordinate(42.7530872658366,67.6621244561062),\n new Coordinate(29.5314900850289,67.6621244561062)\n });\n final Polygon poly = GF.createPolygon(ring, new LinearRing[0]);\n\n final CoordinateReferenceSystem crs1 = CommonCRS.WGS84.normalizedGeographic();\n final CoordinateReferenceSystem crs2 = getLocalLambertCRS(10, 60);\n\n final MathTransform mt = CRS.findOperation(crs1,crs2, null).getMathTransform();\n final CoordinateSequenceTransformer cst = new CoordinateSequenceMathTransformer(mt);\n final GeometryCSTransformer trs = new GeometryCSTransformer(cst);\n\n trs.transform(poly);\n\n }", "void collectAntecedents( ArrayList ts ) {\n if (antecedents == null) return;\n Iterator i = antecedents.iterator();\n while (i.hasNext()) {\n variable v = (variable) i.next();\n if (!ts.contains(v)) {\n ts.add(v);\n v.collectAntecedents(ts);\n }\n }\n }", "private static void normalizePropositions(Set<ExternalizedStateComponent> componentSet) {\n\t\tfor(ExternalizedStateComponent component : componentSet) {\n\t\t\tif(component instanceof ExternalizedStateProposition) {\n\t\t\t\tExternalizedStateProposition p = (ExternalizedStateProposition) component;\n\t\t\t\tGdlSentence sentence = p.getName();\n\t\t\t\tif(sentence instanceof GdlRelation) {\n\t\t\t\t\tGdlRelation relation = (GdlRelation) sentence;\n\t\t\t\t\tif(relation.getName().equals(NEXT)) {\n\t\t\t\t\t\tp.setName(GdlPool.getProposition(GdlPool.getConstant(\"anon\")));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void propagate(int evtmask) throws ContradictionException {\n if (stp.opt.debug) System.out.println(\"GeostConstraint:propagate()\");\n filter();\n }", "private void transformPoints() {\r\n\r\n\t\t// angle between x-axis and the line between start and goal\r\n//\t\tthis.angle = inverse_tan (slope)\r\n\t\tthis.angle = (int) Math.toDegrees(Math.atan2(goal.getY()-robot.getY(), goal.getX()-robot.getX()));\r\n\r\n\t\t// deviation of start point's x-axis from (0,0)\r\n\t\tthis.deviation = this.robot;\r\n\r\n\t\tthis.robot = new Robot(GA_PathPlanning.Transform(robot, -deviation.x, -deviation.y));\r\n\t\tthis.robot = new Robot(Rotate(robot, -angle));\r\n\t\t \r\n\t\tthis.goal = GA_PathPlanning.Transform(goal, -deviation.x, -deviation.y);\r\n\t\tthis.goal = GA_PathPlanning.Rotate(goal, -angle);\r\n\t\t\r\n\t\tfor(int i=0;i<obstacles.length;i++)\r\n\t\t{\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Transform(obstacles[i], -deviation.x, -deviation.y));\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Rotate(obstacles[i], -angle));\r\n\t\t}\r\n\t\t// make start point as (0,0)\r\n\t\t// transform xy-axis to axis of the straight line between start and goal\r\n\t\t\r\n\t\t\r\n\t}", "public Antecedent(Literal pivot, Clause antecedent) {\n\t\t\tassert pivot != null;\n\t\t\tassert antecedent != null;\n\t\t\tassert antecedent.contains(pivot);\n\t\t\tmPivot = pivot;\n\t\t\tmAntecedent = antecedent;\n\t\t}", "private Map<VertexObject, VertexRelation> createProteinsRelationsMap(VertexObject proteinVertex) {\n // first get the PAG of the proteinVertex\n IntermediateProtein protein;\n Object vObject = proteinVertex.getObject();\n if (vObject instanceof Collection) {\n vObject = ((Collection<?>)vObject).iterator().next();\n }\n if (vObject instanceof IntermediateProtein) {\n protein = (IntermediateProtein)vObject;\n } else {\n return null;\n }\n \n InferenceProteinGroup pag = getProteinsPAG(protein);\n Map<VertexObject, VertexRelation> relations = new HashMap<>();\n if (pag != null) {\n for (VertexObject relatedVertex : graph.getVertices()) {\n Object objElement = relatedVertex.getObject();\n boolean done = false;\n \n if (objElement instanceof IntermediateGroup) {\n // groups have no relation\n continue;\n }\n \n // check for same PAG\n if (isObjectInPAG(objElement, pag)) {\n relations.put(relatedVertex, VertexRelation.IN_SAME_PAG);\n continue;\n }\n \n // check for sub-PAG\n for (InferenceProteinGroup subPAG : pag.getSubGroups()) {\n if (isObjectInPAG(objElement, subPAG)) {\n relations.put(relatedVertex, VertexRelation.IN_SUB_PAG);\n done = true;\n }\n \n if (done) {\n break;\n }\n }\n if (!done) {\n VertexRelation highestRelation = VertexRelation.IN_NO_PAG;\n \n // check for super- and parallel-PAG\n for (InferenceProteinGroup mainPAG : piaModeller.getProteinModeller().getInferredProteins()) {\n if (mainPAG.getSubGroups().contains(pag)) {\n // check for super-PAG\n if (isObjectInPAG(objElement, mainPAG)) {\n relations.put(relatedVertex, VertexRelation.IN_SUPER_PAG);\n done = true;\n }\n \n // check for parallel-PAG\n for (InferenceProteinGroup parallelPAG : mainPAG.getSubGroups()) {\n if (isObjectInPAG(objElement, parallelPAG)) {\n highestRelation = VertexRelation.IN_PARALLEL_PAG;\n }\n }\n }\n \n if (done) {\n break;\n }\n \n // record, if it is in any PAG at all\n if (highestRelation.equals(VertexRelation.IN_NO_PAG)) {\n if (isObjectInPAG(objElement, mainPAG)) {\n highestRelation = VertexRelation.IN_UNRELATED_PAG;\n }\n for (InferenceProteinGroup subPAG : mainPAG.getSubGroups()) {\n if (isObjectInPAG(objElement, subPAG)) {\n highestRelation = VertexRelation.IN_UNRELATED_PAG;\n }\n }\n }\n }\n \n if (!done) {\n relations.put(relatedVertex, highestRelation);\n }\n }\n }\n } else {\n // no PAG for this vertex -> all vertices are either unrelated or in no PAG\n \n for (VertexObject relatedVertex : graph.getVertices()) {\n Object objElement = relatedVertex.getObject();\n VertexRelation highestRelation = VertexRelation.IN_NO_PAG;\n \n for (InferenceProteinGroup mainPAG : piaModeller.getProteinModeller().getInferredProteins()) {\n // check, if it is in any PAG at all\n if (highestRelation.equals(VertexRelation.IN_NO_PAG)) {\n if (isObjectInPAG(objElement, mainPAG)) {\n highestRelation = VertexRelation.IN_UNRELATED_PAG;\n }\n for (InferenceProteinGroup subPAG : mainPAG.getSubGroups()) {\n if (isObjectInPAG(objElement, subPAG)) {\n highestRelation = VertexRelation.IN_UNRELATED_PAG;\n }\n }\n } else {\n break;\n }\n }\n \n relations.put(relatedVertex, highestRelation);\n }\n }\n \n return relations;\n }", "@Override\n\tpublic void visit(AnalyticExpression arg0) {\n\t\t\n\t}", "protected abstract void applyPrinciple();", "@Override\r\n\tpublic Node visitComposition(CompositionContext ctx) {\n\t\treturn super.visitComposition(ctx);\r\n\t}", "@Override\n\tpublic void visit(final GrandPa person) {\n\t\t\n\t}", "public void testConjunctionInQueryVarResolvesWhenBindingsMatch() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), f(x)], (?- f(X), g(X)), [[X <-- x]]]\");\n }", "@Override\n public final void solve() {\n this.flag1 = this.neo.getPosition().equals(this.goal);\n \n }", "public org.apache.spark.sql.catalyst.plans.logical.LocalRelation asRelation () { throw new RuntimeException(); }", "public void retract(){\n\t\tsolenoid1.set(false);\n\t\tsolenoid2.set(false);\n\t}", "@Override\r\n\tpublic Relation accept(Visitor v)\t\t{ return v.visit(this);\t\t\t\t\t\t\t}", "public void replaceNodes() {\n for (ConstantPropagationInformation information : constantPropagations) {\n information.parent.getChildren().set(information.childIndex, information.replacement);\n }\n }", "@Test\n \tpublic void whereClauseIndirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\")\n \t\t);\n \t}", "void propagate_childs_of_fprivate_that_only_call_relatives(Element element, Feature feature_to_assign, Fact factInf, Feature parent_feature){\n\t\tfor(Element child : element.getRefToThis()){\n\t\t\tif(child != element && check_only_call_relatives(child) && child.getFeature() == parent_feature){\n\t\t\t\tfactInf.addInference(child.getIdentifier() + \", BttF says it's a child of \" + element.getIdentifier() + \n\t\t\t\t\t\t\" that only calls relatives THEN it also belongs to \" + feature_to_assign.getFeature_name(), child, feature_to_assign);\n\t\t\t\tadd_element_to_feature(factInf, feature_to_assign, child, false, false, parent_feature, true);\n\t\t\t\tpropagate_childs_of_fprivate_that_only_call_relatives(child, feature_to_assign, factInf, parent_feature);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tprotected void prepareChangeSetProcessing() {\n\t\t// change set processing is not supported for the product associations import\n\t}", "public void forward(Projection projection);", "public void reproduceVirus() {\n\t\tOrganism newOrg;\n\t\t\n\t\tfor (int i=0; i < 1; i++) {\n\t\t\tnewOrg = new Organism(_world);\n\t\t\tif (newOrg.inherit(this, i==0)) {\n\t\t\t\t// It can be created\n\t\t\t\t_nTotalChildren++;\n\t\t\t\t_world.addOrganism(newOrg,this);\n\t\t\t\t_infectedGeneticCode = null;\n\t\t\t}\n\t\t\t_timeToReproduce = 20;\n\t\t}\n\t}", "private Relation projectOperandOn(Relation operand, AttrList attributes) {\n // `attributes` may be a superset of operand's ones. Take the\n // intersection. `attrs` will be a (non-proper) subset thus.\n AttrList opAttrs = operand.getType().toAttrList();\n AttrList attrs = opAttrs.intersect(attributes);\n\n // if attrs is equals, it is not a subset and the projection is no\n // longer needed\n if (!attrs.equals(opAttrs)) {\n operand = optimized(operand).project(attrs);\n }\n return operand;\n }", "@Override\n public Map<PhysicalObject, Double> getRelationBetweenCentralAndObject() {\n assert false : \"shouldn't call this method\";\n return null;\n }", "@Override\n public boolean supportsRootTreatTreatJoin() {\n return true;\n }", "private void updateTranslated() {\r\n\r\n\tfloat[] dp = new float[3];\r\n\tTools3d.subtract(p, _p, dp);\r\n\r\n\tfor (int i = 0; i < npoints * 3; i+= 3) {\r\n\t // translate by adding the amount local origin has moved by\r\n\t ps[i] += dp[0];\r\n\t ps[i + 1] += dp[1];\r\n\t ps[i + 2] += dp[2];\r\n\t}\r\n\t\r\n\t// reset bounding box and clear dirty flag\r\n\tbox.setBB();\r\n\tdirtyT = false;\r\n\r\n\t// finally\r\n\t_p[0] = p[0];\r\n\t_p[1] = p[1];\r\n\t_p[2] = p[2];\r\n }", "static Posn translate ( Posn p, double dx, double dy ) {\n\t// return .... ;\n\t// Take stock\n\t// return ... p ... dx ... dy ; // <- We know this from Posn p\n\t// return new Posn ( ... p.x ... p.y ... dx ... dy ); // <- We know this from Posn translate\n\t// return new Posn ( ... p.x ... p.y ... dx ... dy, ... p.x ... p.y ... dx ... dy );\t\n\treturn new Posn ( p.x + dx, p.y + dy );\t\n }", "public void renewStatementRefs() \n\t\t{\n\t\t\tif(!departments.isEmpty())\n\t\t\t{\n\t\t\t\tfor(Department d : departments)\n\t\t\t\t{\n\t\t\t\t\tif(!d.getPlans().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(BusinessPlan bp : d.getPlans())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbp.renewStatementRefs();\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}", "public abstract Polygon4D project();", "@Test\n public void testLazyComputeOutput() {\n UnboundRelation relationPlan = new UnboundRelation(StatementScopeIdGenerator.newRelationId(), ImmutableList.of(\"a\"));\n\n try {\n // throw exception when getOutput\n relationPlan.getOutput();\n throw new IllegalStateException(\"Expect an UnboundException but no exception\");\n } catch (UnboundException e) {\n // correct exception\n }\n }", "public void reactivateEqConstraints() {\n\t\t// NOP\n\t}", "private void tstNMAssociationInverse() {\n\t\t// configure collection properties of Location and ClosingPeriod\n\t\t// to use TreeSet as collection implementing class\n\t\t((TypePropertyCollection) (new Location()).getProperty(\"closedons\").getType())\n\t\t\t\t.setCollectionClass(TreeSet.class);\n\t\t((TypePropertyCollection) (new ClosingPeriod()).getProperty(\"locations\").getType())\n\t\t\t\t.setCollectionClass(TreeSet.class);\n\t\t// set up two locations and closing periods\n\t\tClosingPeriod cp1 = new ClosingPeriod(\"\\\"20050101\\\" \\\"1\\\"\");\n\t\tClosingPeriod cp2 = new ClosingPeriod(\"\\\"20050201\\\" \\\"2\\\"\");\n\t\tLocation locA = new Location(\"\\\"A\\\"\");\n\t\tLocation locB = new Location(\"\\\"B\\\"\");\n\n\t\t// at the beginning all four collection properties are\n\t\t// undefined (null)\n\t\tAssert.assertNull(locA.getClosedons());\n\t\tAssert.assertNull(locB.getClosedons());\n\t\tAssert.assertNull(cp1.getLocations());\n\t\tAssert.assertNull(cp2.getLocations());\n\n\t\t// link locA with cp1\n\t\tlocA.addClosedon(cp1);\n\t\tAssert.assertEquals(1, locA.getClosedons().size());\n\t\tReadonlyListCollection<ClosingPeriod> cps = (ReadonlyListCollection<ClosingPeriod>) locA.getClosedons();\n\t\tAssert.assertSame(cp1, cps.get(0));\n\t\tAssert.assertNull(locB.getClosedons());\n\t\tReadonlyListCollection<Location> locs = (ReadonlyListCollection<Location>) cp1.getLocations();\n\t\tAssert.assertSame(locA, locs.get(0));\n\t\tAssert.assertEquals(1, cp1.getLocations().size());\n\t\tAssert.assertNull(cp2.getLocations());\n\n\t\t// link locA with cp2\n\t\tlocA.addClosedon(cp2);\n\t\tAssert.assertEquals(2, locA.getClosedons().size());\n\t\tcps = (ReadonlyListCollection<ClosingPeriod>) locA.getClosedons();\n\t\tAssert.assertSame(cp1, cps.get(0));\n\t\tAssert.assertSame(cp2, cps.get(1));\n\t\tAssert.assertNull(locB.getClosedons());\n\t\tAssert.assertEquals(1, cp1.getLocations().size());\n\t\tlocs = (ReadonlyListCollection<Location>) cp1.getLocations();\n\t\tAssert.assertSame(locA, locs.get(0));\n\t\tAssert.assertEquals(1, cp2.getLocations().size());\n\t\tlocs = (ReadonlyListCollection<Location>) cp2.getLocations();\n\t\tAssert.assertSame(locA, locs.get(0));\n\n\t\t// link locB with cp1\n\t\tlocB.addClosedon(cp1);\n\t\tAssert.assertEquals(2, locA.getClosedons().size());\n\t\tcps = (ReadonlyListCollection<ClosingPeriod>) locA.getClosedons();\n\t\tAssert.assertSame(cp1, cps.get(0));\n\t\tAssert.assertSame(cp2, cps.get(1));\n\t\tAssert.assertEquals(1, locB.getClosedons().size());\n\t\tcps = (ReadonlyListCollection<ClosingPeriod>) locB.getClosedons();\n\t\tAssert.assertSame(cp1, cps.get(0));\n\t\tAssert.assertEquals(2, cp1.getLocations().size());\n\t\tlocs = (ReadonlyListCollection<Location>) cp1.getLocations();\n\t\tAssert.assertSame(locA, locs.get(0));\n\t\tAssert.assertSame(locB, locs.get(1));\n\t\tAssert.assertEquals(1, cp2.getLocations().size());\n\t\tlocs = (ReadonlyListCollection<Location>) cp2.getLocations();\n\t\tAssert.assertSame(locA, locs.get(0));\n\n\t\t// link locB with cp2\n\t\tlocB.addClosedon(cp2);\n\t\tAssert.assertEquals(2, locA.getClosedons().size());\n\t\tcps = (ReadonlyListCollection<ClosingPeriod>) locA.getClosedons();\n\t\tAssert.assertSame(cp1, cps.get(0));\n\t\tAssert.assertSame(cp2, cps.get(1));\n\t\tAssert.assertEquals(2, locB.getClosedons().size());\n\t\tcps = (ReadonlyListCollection<ClosingPeriod>) locB.getClosedons();\n\t\tAssert.assertSame(cp1, cps.get(0));\n\t\tAssert.assertSame(cp2, cps.get(1));\n\t\tAssert.assertEquals(2, cp1.getLocations().size());\n\t\tlocs = (ReadonlyListCollection<Location>) cp1.getLocations();\n\t\tAssert.assertSame(locA, locs.get(0));\n\t\tAssert.assertSame(locB, locs.get(1));\n\t\tAssert.assertEquals(2, cp2.getLocations().size());\n\t\tlocs = (ReadonlyListCollection<Location>) cp2.getLocations();\n\t\tAssert.assertSame(locA, locs.get(0));\n\t\tAssert.assertSame(locB, locs.get(1));\n\n\t\tAssert.assertEquals(2, cp1.getLocations().size());\n\t\ttry {\n\t\t\tcp1.addLocation(locA);\n\t\t\tAssert.fail(\"expected ValidationInstanceAssocTwiceException\");\n\t\t} catch (ValidationInstanceAssocTwiceException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t\tAssert.assertEquals(2, cp1.getLocations().size());\n\t\ttry {\n\t\t\tcp1.addLocation(locB);\n\t\t\tAssert.fail(\"expected ValidationInstanceAssocTwiceException\");\n\t\t} catch (ValidationInstanceAssocTwiceException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t\tAssert.assertEquals(2, cp1.getLocations().size());\n\t\tAssert.assertEquals(2, locB.getClosedons().size());\n\t\ttry {\n\t\t\tlocB.addClosedon(cp1);\n\t\t\tAssert.fail(\"expected ValidationInstanceAssocTwiceException\");\n\t\t} catch (ValidationInstanceAssocTwiceException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t\tAssert.assertEquals(2, locB.getClosedons().size());\n\t\ttry {\n\t\t\tlocB.addClosedon(cp2);\n\t\t\tAssert.fail(\"expected ValidationInstanceAssocTwiceException\");\n\t\t} catch (ValidationInstanceAssocTwiceException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t\tAssert.assertEquals(2, locB.getClosedons().size());\n\t}", "public boolean isTransformed() {\n\treturn nonIdentityTx;\n }", "void checkRep() {\n\t\tassert this.clauses != null : \"SATProblem, Rep invariant: clauses non-null\";\n\t}", "private void calculateGlobals() {\n if (!edge.getIncomingLinks().isEmpty()) {\n this.source = edge.getIncomingLinks().get(0);\n } else\n throw new RuntimeException(\"edge hs no source : \" + edge.getId());\n if (!edge.getOutgoingLinks().isEmpty()) {\n this.target = edge.getOutgoingLinks().get(0);\n } else\n throw new RuntimeException(\"edge hs no target : \" + edge.getId());\n\n this.sourceGeometry = source.getGeometry();\n this.targetGeometry = target.getGeometry();\n\n // get relative centers of elements\n this.sourceRelativCenterX = this.sourceGeometry.getWidth() / 2;\n this.sourceRelativCenterY = this.sourceGeometry.getHeight() / 2;\n this.targetRelativCenterX = this.targetGeometry.getWidth() / 2;\n this.targetRelativCenterY = this.targetGeometry.getHeight() / 2;\n\n // get parent adjustments\n double sourceParentAdjustmentX = 0;\n double sourceParentAdjustmentY = 0;\n LayoutingElement parent = this.source.getParent();\n while (parent != null) {\n sourceParentAdjustmentX += parent.getGeometry().getX();\n sourceParentAdjustmentY += parent.getGeometry().getY();\n parent = parent.getParent();\n }\n\n double targetParentAdjustmentX = 0;\n double targetParentAdjustmentY = 0;\n parent = this.target.getParent();\n while (parent != null) {\n targetParentAdjustmentX += parent.getGeometry().getX();\n targetParentAdjustmentY += parent.getGeometry().getY();\n parent = parent.getParent();\n }\n\n // get absolute coordinates\n double sourceAbsoluteX = this.sourceGeometry.getX() + sourceParentAdjustmentX;\n this.sourceAbsoluteY = this.sourceGeometry.getY() + sourceParentAdjustmentY;\n this.sourceAbsoluteX2 = this.sourceGeometry.getX2() + sourceParentAdjustmentX;\n this.sourceAbsoluteY2 = this.sourceGeometry.getY2() + sourceParentAdjustmentY;\n\n this.targetAbsoluteX = this.targetGeometry.getX() + targetParentAdjustmentX;\n this.targetAbsoluteY = this.targetGeometry.getY() + targetParentAdjustmentY;\n this.targetAbsoluteY2 = this.targetGeometry.getY2() + targetParentAdjustmentY;\n\n this.sourceAbsoluteCenterX = sourceAbsoluteX + this.sourceRelativCenterX;\n this.sourceAbsoluteCenterY = this.sourceAbsoluteY + this.sourceRelativCenterY;\n this.targetAbsoluteCenterX = this.targetAbsoluteX + this.targetRelativCenterX;\n this.targetAbsoluteCenterY = this.targetAbsoluteY + this.targetRelativCenterY;\n\n // layout hints\n this.sourceJoin = this.source.isJoin();\n this.sourceSplit = this.source.isSplit();\n this.targetJoin = this.target.isJoin();\n this.target.isSplit();\n this.backwards = this.sourceAbsoluteCenterX > this.targetAbsoluteCenterX;\n }", "public void makePreferredOTTOLRelationshipsNOConflicts() {\n \n // TraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n // .relationships(RelType.TAXCHILDOF, Direction.INCOMING);\n \n // get the start point\n Node life = getLifeNode();\n System.out.println(life.getProperty(\"name\"));\n \n Transaction tx = beginTx();\n addToPreferredIndexes(life, ALLTAXA);\n HashSet<Long> traveled = new HashSet<Long>();\n int nNewRels = 0;\n try {\n // walk out to the tips from the base of the tree\n for (Node n : TAXCHILDOF_TRAVERSAL.traverse(life).nodes()) {\n if (n.hasRelationship(Direction.INCOMING, RelType.TAXCHILDOF) == false) {\n \n // when we hit a tip, start walking back\n Node curNode = n;\n while (curNode.hasRelationship(Direction.OUTGOING, RelType.TAXCHILDOF)) {\n Node startNode = curNode;\n if (traveled.contains((Long)startNode.getId())){\n \tbreak;\n }else{\n \ttraveled.add((Long)startNode.getId());\n }\n Node endNode = null;\n \n // if the current node already has a preferred relationship, we will just follow it\n if (startNode.hasRelationship(Direction.OUTGOING, RelType.PREFTAXCHILDOF)) {\n Relationship prefRel = startNode.getSingleRelationship(RelType.PREFTAXCHILDOF, Direction.OUTGOING);\n \n // make sure we don't get stuck in an infinite loop (should not happen, could do weird things to the graph)\n if (prefRel.getStartNode().getId() == prefRel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + prefRel + \" \" + prefRel.getStartNode().getId() + \" \" + prefRel.getEndNode().getId());\n break;\n }\n \n // prepare to move on\n endNode = prefRel.getEndNode();\n \n } else {\n \n // if there is no preferred rel then they all point to the same end node; just follow the first non-looping relationship\n for (Relationship rel : curNode.getRelationships(RelType.TAXCHILDOF, Direction.OUTGOING)) {\n if (rel.getStartNode().getId() == rel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + rel + \" \" + rel.getStartNode().getId() + \" \" + rel.getEndNode().getId());\n break;\n } else {\n endNode = rel.getEndNode();\n break;\n }\n }\n \n // if we found a dead-end, die\n if (endNode == null) {\n System.out.println(curNode.getProperty(\"name\"));\n System.out.println(\"Strange, this relationship seems to be pointing at a nonexistent node. Quitting.\");\n System.exit(0);\n }\n \n // create preferred relationships\n curNode.createRelationshipTo(endNode, RelType.PREFTAXCHILDOF);\n curNode.createRelationshipTo(endNode, RelType.TAXCHILDOF).setProperty(\"source\", \"ottol\");\n nNewRels += 1;\n }\n \n if (startNode == endNode) {\n System.out.println(startNode);\n System.out.println(\"The node seems to be pointing at itself. This is a problem. Quitting.\");\n System.exit(0);\n \n // prepare for next iteration\n } else {\n curNode = endNode;\n addToPreferredIndexes(startNode, ALLTAXA);\n }\n }\n }\n \n if (nNewRels % transaction_iter == 0) {\n System.out.println(nNewRels);\n // tx.success();\n // tx.finish();\n // tx = beginTx();\n }\n }\n tx.success();\n } finally {\n tx.finish();\n }\n }", "public void resolveConstraints(){\n double distX = pointA.getCurrent().getX() - pointB.getCurrent().getX();\n double distY = pointA.getCurrent().getY() - pointB.getCurrent().getY();\n double dist = Math.sqrt((distX*distX) + (distY*distY));\n double difference = (restingDistance - dist) / dist;\n\n // Use this scalar to determine how much to move points A and B.\n // Move points halfway towards their resting distance.\n double moveX = distX * 0.5 * difference;\n double moveY = distY * 0.5 * difference;\n pointA.getCurrent().setLocation(pointA.getCurrent().getX() + moveX, pointA.getCurrent().getY() + moveY);\n pointB.getCurrent().setLocation(pointB.getCurrent().getX() - moveX, pointB.getCurrent().getY() - moveY);\n }", "protected void doDeduction() {\n\n boolean narrowed= false;\n\n unit=false;\n isInconclusive=false;\n\n int newXL;\n int newYU;\n\n Variable x = null;\n Variable y = null;\n\n for(Variable var : csp.getVars()){\n if(var.getPosition() == unitSB.getX().getPosition()){\n x = var;\n } else if(var.getPosition() == unitSB.getY().getPosition()){\n y = var;\n }\n }\n\n int xU = x.getUpperDomainBound();\n int yL = y.getLowerDomainBound();\n\n newXL = yL + unitSB.getCright();\n newYU = xU - unitSB.getCright();\n\n if(newXL>x.getLowerDomainBound()){\n Variable newX = new Variable(newXL, xU);\n newX.setPosition(x.getPosition());\n changeVariable(newX);\n narrowed= true;\n }\n if (newYU< y.getUpperDomainBound()){\n Variable newY = new Variable(yL, newYU);\n newY.setPosition(y.getPosition());\n changeVariable(newY);\n narrowed =true;\n }\n\n if(narrowed){\n doAlgorithmA1();\n }else {\n doAlgorithmA3();\n }\n\n }", "private static void getPropAndChildren(final SentenceTheory st, final Proposition p, Set<Proposition> result) {\n\t\tresult.add(p);\n\n\t\tfor (final Argument a : p.args()) {\n\t\t\tfinal Optional<Proposition> opP = getSubprop(a,st);\n\t\t\tif (opP.isPresent() && !result.contains(opP.get())) {\n\t\t\t\tgetPropAndChildren(st,opP.get(),result);\n\t\t\t}\n\t\t}\n\t}", "private void toRent() {\n }", "private HashMap<ComparableExpression, HashSet<ComparableExpression>> composition(\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rel1,\n HashMap<ComparableExpression, HashSet<ComparableExpression>> rel2) {\n\n HashMap<ComparableExpression, HashSet<ComparableExpression>> newRel = new HashMap<>();\n // (a,b) in rel1, (b,c) in rel2 => put (a,c) into newRel\n for (Map.Entry<ComparableExpression, HashSet<ComparableExpression>> r1 : rel1.entrySet()) {\n ComparableExpression key = r1.getKey();\n for (ComparableExpression oldValue : r1.getValue()) {\n // transitive relation?\n if (rel2.containsKey(oldValue)) {\n HashSet<ComparableExpression> newValues = rel2.get(oldValue);\n newRel.putIfAbsent(key, new HashSet<>());\n newRel.get(key).addAll(newValues);\n }\n }\n }\n return newRel;\n }", "Proof contraConvert(Proof p) {\n Expression a = ((Implication) p.lastExpr()).statement;\n Expression b = ((Implication) p.lastExpr()).consequence;\n return mpBack(contra(a, b), p);\n }", "public void testConjunctionInQueryVarUnifyNotLastFailsWhenBindingsDoNotMatch() throws Exception\n {\n resolveAndAssertFailure(new String[] {}, \"?- X = b, X = a, X = a\");\n }", "boolean isTransitive();", "public Vector projectOnto(Vector other){\n Vector normalizedOther = other.normalize();\n \n return normalizedOther.scale(dot(normalizedOther));\n }", "private void backPropagate(Node node, double playoutResult) {\n while (node != null) {\n node.addVisit(playoutResult);\n node = node.getParentNode();\n }\n }", "@Override\n\tpublic void setProjection(String epsg) {\n\t}", "private void setOrigin() {\n Hep3Vector origin = VecOp.mult(CoordinateTransformations.getMatrix(), _sensor.getGeometry().getPosition());\n // transform to p-side\n Polygon3D psidePlane = this.getPsidePlane();\n Translation3D transformToPside = new Translation3D(VecOp.mult(-1 * psidePlane.getDistance(),\n psidePlane.getNormal()));\n this._org = transformToPside.translated(origin);\n }", "public static Annotation ruleResolvePronoun(Annotation[] basenps, int num, Document doc)\r\n{\n Annotation np2 = basenps[num];\r\n // Get some properties of the np\r\n FeatureUtils.PRTypeEnum type2 = Pronoun.getValue(np2, doc);\r\n String str2 = doc.getAnnotString(np2);\r\n boolean reflexive = FeatureUtils.isReflexive(str2);\r\n // Get the possible antecedents\r\n ArrayList<Annotation> antes = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums = new ArrayList<Integer>();\r\n if (DEBUG) {\r\n System.err.println(\"Pronoun: \" + doc.getAnnotText(np2));\r\n }\r\n if (FeatureUtils.getPronounPerson(str2) == PersonPronounTypeEnum.FIRST) {\r\n if (NumberEnum.SINGLE.equals(Number.getValue(np2, doc)))\r\n return ruleResolvePronounI(np2, basenps, num, doc);\r\n else\r\n return ruleResolvePronounWe(np2, basenps, num, doc);\r\n }\r\n if (FeatureUtils.getPronounPerson(str2) == PersonPronounTypeEnum.SECOND)\r\n return ruleResolvePronounYou(np2, basenps, num, doc);\r\n else {\r\n int sentnum = 0;\r\n for (int i = num - 1; i >= 0 && sentnum <= 3; i--) {\r\n Annotation np1 = basenps[i];\r\n sentnum = sentNum(np1, np2, doc);\r\n if (DEBUG) {\r\n System.err.println(\"Possible antecedent: \" + i + \" :\" + doc.getAnnotText(np1));\r\n }\r\n if (!isNumberIncompatible(np1, np2, doc) && !isGenderIncompatible(np1, np2, doc)\r\n && !isAnimacyIncompatible(np1, np2, doc) && isWNClassComp(np1, np2, doc) && isProComp(np1, np2, doc)\r\n && !Embedded.getValue(np1, doc) && isSyntax(np1, np2, doc)) {\r\n if (DEBUG) {\r\n System.err.println(\"Candidate antecedent: \" + i + \" :\" + doc.getAnnotText(np1));\r\n }\r\n antes.add(0, np1);\r\n nums.add(0, i);\r\n }\r\n }\r\n }\r\n if (antes.size() == 0) return null;\r\n // Check for reflexsives\r\n if (FeatureUtils.isReflexive(doc.getAnnotText(np2))) {\r\n union(nums.get(nums.size() - 1).intValue(), num);\r\n return antes.get(antes.size() - 1);\r\n }\r\n if (antes.size() == 1) {\r\n // Rule 1: Unique in discourse\r\n if (DEBUG) {\r\n System.err.println(\"Rule 1 match!!!\");\r\n }\r\n union(nums.get(0).intValue(), num);\r\n return antes.get(0);\r\n }\r\n // Rule 2: Reflexive -- the last possible antecedent\r\n if (reflexive) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 2 match!!!\");\r\n }\r\n union(nums.get(nums.size() - 1).intValue(), num);\r\n return antes.get(antes.size() - 1);\r\n }\r\n // Rule 3: Unique current + Prior\r\n ArrayList<Annotation> antes1 = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums1 = new ArrayList<Integer>();\r\n int counter = 0;\r\n for (Annotation np1 : antes) {\r\n if (sentNum(np1, np2, doc) < 2) {\r\n antes1.add(np1);\r\n nums1.add(nums.get(counter));\r\n }\r\n counter++;\r\n }\r\n if (antes1.size() == 1) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 3 match!!!\");\r\n }\r\n union(nums1.get(0).intValue(), num);\r\n return antes1.get(0);\r\n }\r\n // Rule 4: Possesive Pro\r\n\r\n if (FeatureUtils.isPossesive(str2) && antes1.size() > 0) {\r\n Integer found = null;\r\n Annotation ant = null;\r\n boolean multiple = false;\r\n for (int i = 0; i < antes1.size() && !multiple; i++) {\r\n Annotation np1 = antes1.get(i);\r\n if (doc.getAnnotText(np1).equalsIgnoreCase(str2) && sentNum(np1, np2, doc) == 1) {\r\n if (found == null) {\r\n found = nums1.get(i);\r\n ant = antes1.get(i);\r\n }\r\n else {\r\n multiple = true;\r\n }\r\n }\r\n }\r\n if (!multiple && found != null) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 4 match!!!\");\r\n }\r\n union(found.intValue(), num);\r\n return ant;\r\n }\r\n }\r\n // Rule #5: Unique in the current sentence\r\n ArrayList<Annotation> antes2 = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums2 = new ArrayList<Integer>();\r\n counter = 0;\r\n for (Annotation np1 : antes1) {\r\n if (sentNum(np1, np2, doc) < 1) {\r\n antes2.add(np1);\r\n nums2.add(nums1.get(counter));\r\n }\r\n counter++;\r\n }\r\n if (antes2.size() == 1) {\r\n if (DEBUG) {\r\n System.err.println(\"Rule 5 match!!!\");\r\n }\r\n union(nums2.get(0).intValue(), num);\r\n return antes2.get(0);\r\n }\r\n // Extra Rule: Unique in the current clause (or parent clauses\r\n AnnotationSet parse = doc.getAnnotationSet(Constants.PARSE);\r\n Annotation clause = SyntaxUtils.getClause(np2, parse);\r\n while (clause != null) {\r\n ArrayList<Annotation> antes3 = new ArrayList<Annotation>();\r\n ArrayList<Integer> nums3 = new ArrayList<Integer>();\r\n counter = 0;\r\n for (Annotation np1 : antes2) {\r\n if (clause.covers(np1)) {\r\n antes3.add(np1);\r\n nums3.add(nums2.get(counter));\r\n }\r\n counter++;\r\n }\r\n if (DEBUG) {\r\n System.err.println(antes3.size() + \" antecedents in the clause\");\r\n }\r\n if (antes3.size() == 1) {\r\n if (DEBUG) {\r\n System.err.println(\"Clause rule match!!!\");\r\n }\r\n union(nums3.get(0).intValue(), num);\r\n return antes3.get(0);\r\n }\r\n clause = SyntaxUtils.getParentClause(clause, parse);\r\n }\r\n\r\n // Rule #6: Unique Subject\r\n\r\n // //Look for the subject in the current sentence\r\n // boolean unique = true;\r\n // Annotation subject = null;\r\n // Integer subjectNum = null;\r\n // for(int i=antes.size()-1; i>=0; i--){\r\n // Annotation np1 = antes.get(i);\r\n // if(sentNum(np1, np2, annotations, text)==0){\r\n // if(FeatureUtils.getGramRole(np1, annotations, text).equals(\"SUBJECT\")){\r\n // //&&SyntaxUtils.isMainClause(np1, parse)){\r\n // if(DEBUG)\r\n // System.err.println(\"Rule 6 match!!!\");\r\n // if(subjectNum!=null)\r\n // unique=false;\r\n // subjectNum = nums.get(i);\r\n // subject = antes.get(i);\r\n // }\r\n // }\r\n // }\r\n\r\n // if(subject!=null&&unique){\r\n // union(subjectNum.intValue(), num);\r\n // return subject;\r\n // }\r\n\r\n // Look for the subject in the previous sentence\r\n boolean unique = true;\r\n Annotation subject = null;\r\n Integer subjectNum = null;\r\n if (GramRole.getValue(np2, doc).equals(\"SUBJECT\")) {\r\n // &&SyntaxUtils.isMainClause(np2, parse)){\r\n for (int i = antes.size() - 1; i >= 0; i--) {\r\n Annotation np1 = antes.get(i);\r\n if (sentNum(np1, np2, doc) == 1) {\r\n if (GramRole.getValue(np1, doc).equals(\"SUBJECT\")) {\r\n // &&SyntaxUtils.isMainClause(np1, parse)){\r\n if (DEBUG) {\r\n System.err.println(\"Rule 6 match!!!\");\r\n }\r\n if (subjectNum != null) {\r\n unique = false;\r\n }\r\n subjectNum = nums.get(i);\r\n subject = antes.get(i);\r\n }\r\n }\r\n }\r\n }\r\n if (subject != null && unique) {\r\n union(subjectNum.intValue(), num);\r\n return subject;\r\n }\r\n subjectNum = null;\r\n subject = null;\r\n\r\n // One more Rule -- assign possessive pronouns to the last subject\r\n if (type2.equals(FeatureUtils.PRTypeEnum.POSSESSIVE)) {\r\n for (int i = antes.size() - 1; i >= 0; i--) {\r\n Annotation np1 = antes.get(i);\r\n if (sentNum(np1, np2, doc) == 0) {\r\n if (GramRole.getValue(np1, doc).equals(\"SUBJECT\")) {\r\n // &&SyntaxUtils.isMainClause(np1, parse)){\r\n if (DEBUG) {\r\n System.err.println(\"Rule 6a match!!!\");\r\n }\r\n if (subject == null) {\r\n subjectNum = nums.get(i);\r\n subject = antes.get(i);\r\n }\r\n }\r\n }\r\n }\r\n if (subject != null) {\r\n union(subjectNum.intValue(), num);\r\n return subject;\r\n }\r\n }\r\n\r\n return null;\r\n}", "public boolean isIndependent() {\n\t\treturn independentProperty().getValue();\n\t}", "public synchronized void resetConquestWarriorTransformation() {\n ConquestWarriorTransformation = null;\n }", "protected void createProjectExprs( Project projRel, AlgNode joinChild, int adjustmentAmount, RexBuilder rexBuilder, List<AlgDataTypeField> joinChildrenFields, List<Pair<RexNode, String>> projects ) {\n List<AlgDataTypeField> childFields = joinChild.getRowType().getFieldList();\n if ( projRel != null ) {\n List<Pair<RexNode, String>> namedProjects = projRel.getNamedProjects();\n int nChildFields = childFields.size();\n int[] adjustments = new int[nChildFields];\n for ( int i = 0; i < nChildFields; i++ ) {\n adjustments[i] = adjustmentAmount;\n }\n for ( Pair<RexNode, String> pair : namedProjects ) {\n RexNode e = pair.left;\n if ( adjustmentAmount != 0 ) {\n // Shift the references by the adjustment amount\n e = e.accept( new AlgOptUtil.RexInputConverter( rexBuilder, childFields, joinChildrenFields, adjustments ) );\n }\n projects.add( Pair.of( e, pair.right ) );\n }\n } else {\n // No projection; just create references to the inputs\n for ( int i = 0; i < childFields.size(); i++ ) {\n final AlgDataTypeField field = childFields.get( i );\n projects.add( Pair.of( (RexNode) rexBuilder.makeInputRef( field.getType(), i + adjustmentAmount ), field.getName() ) );\n }\n }\n }", "public void translate(Point p){\n a.translate(p);\n b.translate(p);\n c.translate(p);\n }", "@Test\n public void solveTest5() throws ContradictionException {\n\n Set<ConstraintInfo> constraints = new HashSet<>();\n Set<Position> vars = new HashSet<>();\n Position[] varArr = new Position[]{\n this.grid.getVariable(0, 6),\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(3, 6),\n this.grid.getVariable(4, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(6, 6),\n this.grid.getVariable(7, 6),\n this.grid.getVariable(7, 5),\n this.grid.getVariable(7, 4),\n this.grid.getVariable(7, 3),\n this.grid.getVariable(7, 2),\n this.grid.getVariable(6, 2),\n this.grid.getVariable(5, 2),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 0)\n };\n vars.addAll(Arrays.asList(varArr));\n ArrayList<Set<Position>> cArr = new ArrayList<>();\n for (int i = 0; i < 14; i++) cArr.add(new HashSet<>());\n add(cArr.get(0), varArr[0], varArr[1]);\n add(cArr.get(1), varArr[0], varArr[1], varArr[2]);\n add(cArr.get(2), varArr[3], varArr[1], varArr[2]);\n add(cArr.get(3), varArr[3], varArr[4], varArr[2]);\n add(cArr.get(4), varArr[3], varArr[4], varArr[5]);\n add(cArr.get(5), varArr[6], varArr[4], varArr[5]);\n add(cArr.get(6), varArr[6], varArr[7], varArr[5], varArr[8], varArr[9]);\n add(cArr.get(7), varArr[8], varArr[9], varArr[10]);\n add(cArr.get(8), varArr[9], varArr[10], varArr[11], varArr[12], varArr[13]);\n add(cArr.get(9), varArr[12], varArr[13]);\n add(cArr.get(10), varArr[13]);\n add(cArr.get(11), varArr[13], varArr[14]);\n add(cArr.get(12), varArr[13], varArr[14], varArr[15]);\n add(cArr.get(13), varArr[14], varArr[15]);\n\n int[] cVal = new int[] { 1,2,2,1,1,1,2,1,2,1,1,2,3,2 };\n for (int i = 0; i < 14; i++) {\n constraints.add(new ConstraintInfo(cArr.get(i), cVal[i]));\n }\n\n MSModel model = new MSModel(constraints, vars);\n\n Set<Position> expectedBombs = new HashSet<>();\n expectedBombs.addAll(Arrays.asList(\n this.grid.getVariable(1, 6),\n this.grid.getVariable(2, 6),\n this.grid.getVariable(5, 6),\n this.grid.getVariable(5, 0),\n this.grid.getVariable(5, 1),\n this.grid.getVariable(5, 2)\n ));\n Set<Position> expectedNoBombs = new HashSet<>();\n expectedNoBombs.addAll(Arrays.asList(\n this.grid.getVariable(6,2),\n this.grid.getVariable(0,6),\n this.grid.getVariable(3,6),\n this.grid.getVariable(4,6),\n this.grid.getVariable(6,6)\n ));\n\n for (Position pos : vars) {\n if (expectedBombs.contains(pos)) {\n assertTrue(model.hasBomb(pos));\n } else {\n assertFalse(model.hasBomb(pos));\n }\n\n if (expectedNoBombs.contains(pos)) {\n assertTrue(model.hasNoBombs(pos));\n } else {\n assertFalse(model.hasNoBombs(pos));\n }\n }\n\n /*\n 00002x???\n 00003x???\n 00002xxx?\n 0000112x?\n 0000001x?\n 1221112x?\n xxxxxxxx?\n ?????????\n */\n }", "@Test\n \tpublic void whereClauseDirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \n \t\t);\n \t}", "private Proof impossibility(Expression a, Expression b) {\n Proof axm1 = axm1(a, b); //a -> b -> a\n Proof contra = contra(b, a); //(b -> a) -> (!a -> !b)\n return implTrans(axm1, contra);//a -> !a -> !b\n }", "public void reproduce() {\n\t\tOrganism newOrg;\n\t\t\n\t\tfor (int i=0; i < Utils.between(_nChildren,1,8); i++) {\n\t\t\tnewOrg = new Organism(_world);\n\t\t\tif (newOrg.inherit(this, i==0)) {\n\t\t\t\t// It can be created\n\t\t\t\t_nTotalChildren++;\n\t\t\t\t_world.addOrganism(newOrg,this);\n\t\t\t\t_infectedGeneticCode = null;\n\t\t\t}\n\t\t\t_timeToReproduce = 20;\n\t\t}\n\t}", "public void testNonPermanentVariableResolvedOkNoBinding() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), h(x), (f :- g(X), h(Y))], (?- f), [[]]]\");\n }", "public void setTransitive(boolean transitive) {\n this.transitive = transitive;\n }", "protected void prepareEntityToNodeMap()\r\n\t{\n\t}" ]
[ "0.56302786", "0.53831047", "0.53056836", "0.52359384", "0.5201593", "0.5200584", "0.51666516", "0.5133417", "0.51092887", "0.51056373", "0.50987905", "0.5092798", "0.5064027", "0.5056824", "0.4999762", "0.49989936", "0.4987104", "0.49551058", "0.49544045", "0.49222067", "0.49216413", "0.48900828", "0.48838136", "0.48728752", "0.48620096", "0.48523596", "0.48513782", "0.48466167", "0.48341826", "0.4826398", "0.48171702", "0.480762", "0.48003438", "0.47978896", "0.47945288", "0.47798857", "0.4763901", "0.4756132", "0.47553024", "0.4749875", "0.47445774", "0.47401673", "0.47268838", "0.47169948", "0.47119486", "0.47117114", "0.47059184", "0.46989232", "0.4696154", "0.4689261", "0.46866092", "0.46788177", "0.46753988", "0.46750942", "0.46742633", "0.4671153", "0.46602732", "0.4650549", "0.46472344", "0.46449462", "0.46335855", "0.46289462", "0.4625373", "0.46225002", "0.46181747", "0.46156418", "0.46126077", "0.46087205", "0.46036386", "0.4601617", "0.4601235", "0.45982936", "0.45954284", "0.45935228", "0.4583112", "0.45810193", "0.45783913", "0.45611265", "0.45607305", "0.45567104", "0.45560598", "0.45538777", "0.4545343", "0.4539048", "0.4524131", "0.452367", "0.4518254", "0.45139483", "0.4511432", "0.45108554", "0.45085558", "0.45063636", "0.45043638", "0.45042127", "0.45026502", "0.450109", "0.44963253", "0.44916096", "0.4488907", "0.44851482", "0.44833845" ]
0.0
-1
Test of render method, of class TeamController.
@Test public void testRender() { try{ System.out.println("render"); HttpSession session = new MockHttpSession(); session.setAttribute("session_user", ujc.findUser(1)); String project_id = "3"; TeamController instance = new TeamController(); // ModelAndView expResult = null; ModelAndView result = instance.render(session, project_id); // assertEquals(expResult, result); ModelAndViewAssert.assertViewName(result, "team"); ModelAndViewAssert.assertModelAttributeAvailable(result, "owner"); ModelAndViewAssert.assertModelAttributeAvailable(result, "allMembers"); ModelAndViewAssert.assertModelAttributeAvailable(result, "otherUsers"); ModelAndViewAssert.assertModelAttributeAvailable(result, "project"); } catch(Exception e){ // TODO review the generated test code and remove the default call to fail. fail("Redner failed"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testRender(){\n Mockito.doNothing().when(renderer).renderWorld(level);\n Mockito.doNothing().when(renderer).renderScore();\n Mockito.doNothing().when(renderer).renderLives();\n renderer.render();\n verify(renderer).renderWorld(level);\n verify(renderer).renderScore();\n verify(renderer).renderLives();\n verify(batch).begin();\n verify(batch).end();\n }", "@Test\n public void testSendInvitation() {\n try{\n System.out.println(\"sendInvitation\");\n String project_id = \"3\";\n String inviteUserId = \"6\";\n TeamController instance = new TeamController();\n// ModelAndView expResult = null;\n instance.setProjectId(3);\n instance.setUserId(1);\n ModelAndView result = instance.sendInvitation(project_id, inviteUserId);\n// assertEquals(\"redirect:/projectMainView/3/team/show\", result);\n ModelAndViewAssert.assertViewName(result, \"redirect:/projectMainView/3/team/show\");\n }catch(Exception e)\n {\n // TODO review the generated test code and remove the default call to fail.\n fail(\"Send invitation failed\");\n }\n }", "@Override\n public void testRenderMyPage() {\n\n\tsetMockSupportedCarriers(dailyRhythmPortalService);\n\n\tEntitlementLookup entitlementLookup = EntitlementLookupFactory.getEntitlementLookup();\n\n\t// start and render the test page\n\tEntitlementLookupPage page = new EntitlementLookupPage(entitlementLookup, null, null);\n\ttester.startPage(page);\n\n\t// Check that the right page was rendered (no unexpected redirect or\n\t// intercept)\n\ttester.assertRenderedPage(EntitlementLookupPage.class);\n\ttester.assertNoErrorMessage();\n\n\tassertNavigation();\n }", "@Ignore\n @Test\n public void renderTemplate() {\n\n Content html = views.html.index.render(\"Your new application is ready.\");\n assertThat(html.contentType(), is(\"text/html\"));\n assertThat(contentAsString(html), containsString(\"Your new application is ready.\"));\n }", "protected void render(){}", "public void render() {\n }", "@Test\n public void new_player() {\n //Arrange scenario\n //Add a player to the lobby with a different name\n Player other = new Player(\"Other\");\n playerLobby.addPlayer(other);\n final TemplateEngineTester testHelper = new TemplateEngineTester();\n //Add a player to a new empty lobby\n when(request.queryParams(\"id\")).thenReturn(\"Name\");\n // To analyze what the Route created in the View-Model map you need\n // to be able to extract the argument to the TemplateEngine.render method.\n // Mock up the 'render' method by supplying a Mockito 'Answer' object\n // that captures the ModelAndView data passed to the template engine\n when(templateEngine.render(any(ModelAndView.class))).thenAnswer(testHelper.makeAnswer());\n\n // Invoke the test\n CuT.handle(request, response);\n\n //Check if UI received all necessary parameters\n testHelper.assertViewModelExists();\n testHelper.assertViewModelIsaMap();\n\n testHelper.assertViewModelAttribute(\"currentUser\", request.queryParams(\"id\"));\n testHelper.assertViewModelAttribute(\"title\", \"Welcome!\");\n testHelper.assertViewModelAttribute(\"message\", PostSignInRoute.WELCOME_MSG);\n testHelper.assertViewModelAttribute(\"playerList\", CuT.playerNames);\n }", "void render(IViewModel model);", "public void render();", "public void testRenderMyPage() {\n tester.startPage(HomePage.class);\r\n\r\n // assert rendered page class\r\n tester.assertRenderedPage(HomePage.class);\r\n\r\n // assert rendered label component\r\n tester.assertLabel(\"message\", \"Congratulations!\");\r\n }", "public void render() {\r\n\r\n }", "@Test\n public void first_player() {\n //Arrange scenario\n final TemplateEngineTester testHelper = new TemplateEngineTester();\n //Add a player to a new empty lobby\n when(request.queryParams(\"id\")).thenReturn(\"Name\");\n // To analyze what the Route created in the View-Model map you need\n // to be able to extract the argument to the TemplateEngine.render method.\n // Mock up the 'render' method by supplying a Mockito 'Answer' object\n // that captures the ModelAndView data passed to the template engine\n when(templateEngine.render(any(ModelAndView.class))).thenAnswer(testHelper.makeAnswer());\n\n // Invoke the test\n CuT.handle(request, response);\n\n //Check if UI received all necessary parameters\n testHelper.assertViewModelExists();\n testHelper.assertViewModelIsaMap();\n\n testHelper.assertViewModelAttribute(\"currentUser\", request.queryParams(\"id\"));\n testHelper.assertViewModelAttribute(\"title\", \"Welcome!\");\n testHelper.assertViewModelAttribute(\"message\", PostSignInRoute.WELCOME_MSG);\n }", "public void render()\r\n\t{\n\t}", "void render(Object rendererTool);", "@Test\n public void testSearch() {\n try{\n System.out.println(\"search\");\n String searchString = \"YifanZhang\";\n String project_id = \"3\";\n HttpServletResponse res = new MockHttpServletResponse();\n TeamController instance = new TeamController();\n// ModelAndView expResult = null;\n ModelAndView result = instance.search(searchString, project_id, res);\n// assertEquals(expResult, result);\n assertNull(result);\n }\n catch(Exception e){\n // TODO review the generated test code and remove the default call to fail.\n fail(\"Search failed\");\n }\n }", "public abstract void render(Renderer renderer);", "public void render() {\n\t\tRenderUtil.clearScreen();\n\t\t\n\t\tEntityShader.getInstance().updateLights(testLight);\n\t\t\n\t\ttestLight.render();\n\t\t\n\t\tsky.render();\n\t\t\t\t\n\t\ttestEntity.render();\t\t\n\t\ttestEntity2.render();\n\t\t\t\t\n\t\tSystem.out.println(\"Entity: \" + testEntity.getPositon().toString());\n\t\tSystem.out.println(\"Camera: \" + Camera.getInstance().getPosition().toString());\n\t\tSystem.out.println(\"Look: \" + Camera.getInstance().getForward().toString());\n\t\tSystem.out.println(\"Light: \" + testLight.getPosition().toString());\n\t\twindow.render();\n\t}", "@Test\n @MediumTest\n @Feature({\"RenderTest\"})\n public void singleFrameDisplayTest() throws Exception {\n displayTest(false);\n mRenderTestRule.render(mPlayerManager.getView(), \"single_frame\");\n }", "@Override\n public void testRenderMyPage() {\n\tList<RssCategory> rss = new ArrayList<RssCategory>();\n\trss.add(RssCategoryFactory.create());\n\ttry{\n\t expect(rssFeedService.getBeastNewsRssFeed()).andReturn(rss);\n\t expect(rssFeedService.getBeastTickerRssFeed()).andReturn(rss);\n\t replay(rssFeedService);\n\t}catch(Exception e){\n\t //Do Nothing\n\t}\n\t// start and render the test page\n\ttester.startPage(HomePage.class, new PageParameters());\n\n\t// Check that the right page was rendered (no unexpected redirect or\n\t// intercept)\n\n\ttester.assertRenderedPage(HomePage.class);\n\ttester.assertNoErrorMessage();\n\n\tassertNavigation();\n\n\ttester.assertComponent(\"beastTicker\", NewsTickerPanel.class);\n\ttester.assertComponent(\"newsCategoryListView\", ListView.class);\n }", "@Test\n @MediumTest\n @Feature({\"RenderTest\"})\n public void multiFrameDisplayTest() throws Exception {\n displayTest(true);\n mRenderTestRule.render(mPlayerManager.getView(), \"multi_frame\");\n }", "public void renderEntities(Entity renderViewEntity, ICamera camera, float partialTicks) {\n }", "@Override\r\n\tpublic void render() {\n\t\t\r\n\t}", "@Before\n public void setUp()\n {\n _renderable = new Renderable();\n }", "@Override\r\n public void render(HttpServletRequest request, HttpServletResponse response, Object result) throws Throwable\r\n {\n \r\n }", "protected void doView (RenderRequest request,\n\t\t RenderResponse response)\n throws PortletException, java.io.IOException\n {\n throw new PortletException(\"doView method not implemented\");\n }", "@Override\n public void beforeRender()\n {\n\n }", "@Override\n\tpublic void render() {\n\t\t\n\t}", "public void render()\n\t{\n\t\tBufferStrategy bs = this.getBufferStrategy();\n\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t//////////////////////////////\n\n\t\tg.setColor(Color.DARK_GRAY);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\tif (display != null && GeneticSimulator.updateRendering)\n\t\t{\n\t\t\tg.drawImage(display, 0, 0, getWidth(), getHeight(), this);\n\t\t}\n\n\t\tWorld world = GeneticSimulator.world();\n\n\t\tworld.draw((Graphics2D) g, view);\n\n\t\tg.setColor(Color.WHITE);\n\t\tg.drawString(String.format(\"view: [%2.1f, %2.1f, %2.1f, %2.1f, %2.2f]\", view.x, view.y, view.width, view.height, view.PxToWorldScale), (int) 10, (int) 15);\n\n\t\tg.drawString(String.format(\"world: [time: %2.2f pop: %d]\", world.getTime() / 100f, World.popCount), 10, 30);\n\n\t\tg.drawRect(view.pixelX, view.pixelY, view.pixelWidth, view.pixelHeight);\n//\t\tp.render(g);\n//\t\tc.render(g);\n\n\n\t\t//g.drawImage(player,100,100,this);\n\n\t\t//////////////////////////////\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "protected abstract Render render(Param param, int pass);", "public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {\r\n\r\n\t\t// Set the MIME type for the render response\r\n\t\tresponse.setContentType(request.getResponseContentType());\r\n\r\n\t\t// Invoke the HTML to render\r\n\t\tPortletRequestDispatcher rd = getPortletContext().getRequestDispatcher(getHtmlFilePath(request, VIEW_HTML));\r\n\t\trd.include(request,response);\r\n\t}", "@Override\n\tpublic void render() {\n\t\tScreen.render();\n\t}", "@Override\r\n\tpublic void render() {\n\r\n\t}", "@Override\r\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "public void render(){\n\t\tstage.act();\n\t\tstage.draw();\n\t}", "@Override\n \tprotected void controlRender(RenderManager rm, ViewPort vp) {\n \n \t}", "@Override\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }", "public void render(){\n//\t\tsetCards();\n//\t\tsetMurderInfo();\n\t}", "public void render() {\r\n\t\t //Draw all of the sprites in the game\r\n\t background.draw(0,backgroudY1);\r\n\t\tbackground.draw(0,backgroudY2);\r\n\t\tbackground.draw(0,backgroudY3);\r\n\t\tbackground.draw(WIDTH/2,backgroudY1);\r\n\t\tbackground.draw(WIDTH/2,backgroudY2);\r\n\t background.draw(WIDTH/2,backgroudY3);\r\n\t \r\n\t // call this method from Player class, to draw the plane.\r\n\t player.render();\r\n\t \r\n\t \r\n\t // loop through every enemy, draw enemy if it's not killed\r\n\t for(int i=0; i<enemy.length; i++) {\r\n\t \t\r\n \tif(enemy[i] != null && enemyKilled[i] == true) {\r\n \t\t\r\n\t \t\t\r\n\t enemy[i].render();\r\n\t \r\n\t \t}\r\n\t \r\n\t }\r\n\t // loop through every laser, if it has not made contact with any enemy,\r\n\t // call its render method to draw it\r\n\t for (int i = 0; i < arr_size; i++) {\r\n\t \tif (lasers[i] != null && laserUsed[i] == true) {\r\n\t lasers[i].render();\r\n \t}\r\n\t \t\r\n\t }\r\n\t \r\n\t}", "@Test\r\n\tpublic void playGame1() throws Exception {\r\n\t\t\r\n\t\ttr.deleteAll();\r\n\t\tint id0 = tr.save(new Transformer( null, \"Soundwave\", Team.DECEPTICON, 8, 9, 2, 6, 7, 5, 6, 10)).getId(); \r\n\t\tint id1 = tr.save(new Transformer( null, \"Hubcap\", Team.AUTOBOT, 4,4,4,4,4,4,4,4)).getId();\r\n\t\tint id2 = tr.save(new Transformer( null, \"Bluestreak\", Team.AUTOBOT, 6,6,7,9,5,2,9,7)).getId();\r\n\t\t\r\n\t\tString content = String.format(\"[%d,%d,%d]\",id0,id1,id2) ;\r\n\t\t\r\n\t\tmockMvc.perform(post(\"/transformers/play\").contentType(MediaType.APPLICATION_JSON).content(content.getBytes(\"UTF-8\")))\r\n\t\t\t\t.andExpect(status().isOk())\r\n\t\t\t\t.andExpect(content().contentTypeCompatibleWith(\"application/json\"))\r\n\t\t\t\t.andExpect(jsonPath(\"$.battles\").value(1))\r\n\t\t\t\t.andExpect(jsonPath(\"$.winningTeam\").value(\"DECEPTICON\"))\r\n\t\t\t\t.andExpect(jsonPath(\"$.survivedLosers\").isArray() )\r\n\t\t\t\t.andExpect(jsonPath(\"$.survivedLosers\", hasSize(1)))\r\n\t\t\t\t.andExpect(jsonPath(\"$.survivedLosers\", hasItem(\"Hubcap\")))\r\n\t\t\t\t;\r\n\t}", "@Override\n\tpublic void render () {\n\n\t}", "@Override\n\tprotected void controlRender(RenderManager rm, ViewPort vp) {\n\t\t\n\t}", "@Test\n public void new_player_name() {\n //Arrange scenario\n //different player name\n Player other = new Player(\"Other\");\n final TemplateEngineTester testHelper = new TemplateEngineTester();\n //Add a player to a new empty lobby\n when(request.queryParams(\"id\")).thenReturn(\"Name\");\n Player player = new Player(request.queryParams(\"id\"));\n // To analyze what the Route created in the View-Model map you need\n // to be able to extract the argument to the TemplateEngine.render method.\n // Mock up the 'render' method by supplying a Mockito 'Answer' object\n // that captures the ModelAndView data passed to the template engine\n when(templateEngine.render(any(ModelAndView.class))).thenAnswer(testHelper.makeAnswer());\n\n // Invoke the test\n CuT.handle(request, response);\n\n //Check if names are not equal\n assertNotEquals(player.getName(),other.getName());\n }", "void render(Window window) throws Exception;", "@Override\r\n\tpublic void simpleRender(RenderManager rm) {\n\t}", "private void render() {\n\n StateManager.getState().render();\n }", "@Test\n\tpublic void testRenderMergedOutputModel_1()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"/\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "@Test\r\n public void testStopLight() {\r\n // Start up the WicketTester and check that the start page renders.\r\n WicketTester tester = new WicketTester(new GreenometerApplication());\r\n tester.startPage(StopLightPage.class);\r\n tester.assertRenderedPage(StopLightPage.class);\r\n \r\n\r\n }", "@Override\n public void render() {\n\n renderer.prepWindowRender(globalGameData.getGameWindow());\n renderer.setRenderSpace(0,0,500,500);\n\n\n renderEnvironment(getMainCamera(),testPlayer.getPlayerEntity().getEntityView().getViewableRegions(), instancedGridMesh);\n renderer.enableTransparency();\n walkieTalkie.render(renderer,renderer.getRenderWidth());\n renderer.disableTransparency();\n\n\n\n renderer.setRenderSpace(500,0,500,500);\n if (currentPlayers.containsKey(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\"))) {\n renderEnvironment(getMainCamera(),currentPlayers.get(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\")).getEntityView().getViewableRegions(), instancedGridMesh);\n }\n\n renderer.setRenderSpace(1000,0,500,500);\n renderer.enableTransparency();\n renderer.render2DTextItems(debugItems, \"Default2D\");\n renderer.disableTransparency();\n\n /*\n if (currentPlayers.containsKey(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\"))) {\n renderer.setRenderSpace(500, 0, 500, 500);\n for (Region region : currentPlayers.get(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\")).getEntityView().getViewableRegions()) {\n for (Block block : region.getBlocksArray()) {\n if (block instanceof CustomRenderBlock) {\n ((CustomRenderBlock) block).renderCustomBlock(renderer, camera);\n }\n }\n for (Entity entity : region.getEntities()) {\n entity.render(renderer, camera);\n }\n }\n }\n */\n\n\n //renderer.setRenderSpace(500,0,280,500);\n //SpriteItem spriteItem = new SpriteItem(AssetLoader.getTextureAsset(\"Noise\"),280,500,true);\n //spriteItem.setPosition(0,0,0);\n //renderer.render2DSpriteItem(spriteItem,\"Default2D\");\n //spriteItem.cleanup();\n\n\n\n /*\n renderer.getShader(\"DebugShader2D\").bind();\n glActiveTexture(GL_TEXTURE1);\n glBindTexture(GL_TEXTURE_2D, shaderTestBitmap.getId());\n glActiveTexture(GL_TEXTURE2);\n glBindTexture(GL_TEXTURE_2D, shaderTestEffect1.getId());\n glActiveTexture(GL_TEXTURE3);\n glBindTexture(GL_TEXTURE_2D, shaderTestEffect2.getId());\n glActiveTexture(GL_TEXTURE4);\n glBindTexture(GL_TEXTURE_2D, shaderTestEffect3.getId());\n renderer.getShader(\"DebugShader2D\").setUniform(\"bitmap\", 1);\n renderer.getShader(\"DebugShader2D\").setUniform(\"effect1\", 2);\n renderer.getShader(\"DebugShader2D\").setUniform(\"effect2\", 3);\n renderer.getShader(\"DebugShader2D\").setUniform(\"effect3\", 4);\n i++;\n i %= 600;\n float framePercent = i / 600.0f;\n renderer.getShader(\"DebugShader2D\").setUniform(\"frame\", framePercent);\n System.out.println(i);\n shaderTest.setPosition((float)gameInput.getMouseX(),(float)gameInput.getMouseY(),0);\n renderer.render2DSprite(shaderTest, \"DebugShader2D\");\n */\n\n\n\n\n\n }", "@Override\n public boolean isToBeRendered()\n {\n return true;\n }", "@Test\n public void factoryMVC_integration_test() {\n\n AbstractFactory pFactory = FactoryProducer.getFactory(\"person\");\n Person person = pFactory.getPerson(\"Person\");\n PersonView pView = new PersonView();\n\n PersonController personController = new PersonController(person, pView);\n\n Assert.assertEquals(\"Person\", personController.getPersonName());\n personController.setPersonName(\"newName\");\n Assert.assertEquals(\"newName\", personController.getPersonName());\n\n\n }", "@Test\n public void testHomePage() throws Exception{\n System.out.println(\"home\");\n HomeController controller = new HomeController();\n MockMvc mockMvc = standaloneSetup(controller).build();\n mockMvc.perform(get(\"/\")).andExpect(view().name(\"home\"));\n assertEquals(\"home\", controller.home());\n \n }", "@Test\n @MediumTest\n @Feature({\"RenderTest\"})\n public void multiFrameDisplayTest_Wide() throws Exception {\n makeLayoutWide();\n displayTest(true);\n mRenderTestRule.render(mPlayerManager.getView(), \"multi_frame_wide\");\n }", "@Test\n\tpublic void testroommatePreferencesSearchDisplayForm() {\n\t\t//mocking the requests and session attributes\n\t\twhen(request.getSession()).thenReturn(session);\n\t\twhen(session.getAttribute(\"userName\")).thenReturn(\"Virat Kohli\");\n\t\twhen(session.getAttribute(\"userRole\")).thenReturn(\"CUSTOMER\");\n\t\twhen(session.getAttribute(\"userEmail\")).thenReturn(\"[email protected]\");\n\t\t\n\t\twhen(userService.findUserByEmail(\"[email protected]\")).thenReturn(user);\n\t\twhen(roommatePreferencesService.findRoommatePreferencesById(1)).thenReturn(mockedroommatePreferences) ;\n\t\twhen(roommatePreferencesService.getMatchedPreferences(mockedroommatePreferences,\"newRoommateSearch\")).thenReturn(mockedMatchedPreferences);\n\t\t\n\t\tModelAndView model = new ModelAndView();\n\t\tmodel = roommatePreferencesController.roommatePreferencesSearchDisplayForm(request);\n\t\t//assert Statements\n\t\tassertTrue(model.getModel().containsKey(\"matchedResults\"));\n\t\tassertEquals(\"user/roommatePreferencesSearch\", model.getViewName());\n\t}", "@Test\r\n public void testShowAboutUs() {\r\n System.out.println(\"showAboutUs\");\r\n Controller instance = new Controller();\r\n instance.showAboutUs();\r\n }", "public void render(){\n\t\tBufferStrategy bs = frame.getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tframe.createBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\trenderGraphics(bs);\n\t}", "public static void index() {\r\n render();\r\n }", "@Test\n public void testRenderWorld(){\n ArrayList<GameObject> gameObjects = new ArrayList<GameObject>();\n Wall wall = new Wall(0, 0);\n Wall spyWall = Mockito.spy(wall);\n gameObjects.add(spyWall);\n Level level2 = new Level(gameObjects);\n Level spyLevel = Mockito.spy(level2);\n renderer.setLevel(spyLevel);\n renderer.renderWorld(spyLevel);\n verify(spyLevel).getObjects();\n// TODO: cant because method is final, remove final?\n// Mockito.verify(spyWall).draw(batch);\n }", "@Test\n\tpublic void testRender() {\n\t\tDialog messageBox = new MessageBoxSub();\n\t\tCuboid cuboid = new Cuboid(messageBox, 2,3,7);\n\t\tcuboid.render();\n\t}", "@Test\n @MediumTest\n @Feature({\"RenderTest\"})\n public void singleFrameDisplayTest_Wide() throws Exception {\n makeLayoutWide();\n displayTest(false);\n mRenderTestRule.render(mPlayerManager.getView(), \"single_frame_wide\");\n }", "private void render() {\n\t\tBufferStrategy buffStrat = display.getCanvas().getBufferStrategy();\n\t\tif(buffStrat == null) {\n\t\t\tdisplay.getCanvas().createBufferStrategy(3); //We will have 3 buffered screens for the game\n\t\t\treturn;\n\t\t}\n\n\t\t//A bufferstrategy prevents flickering since it preloads elements onto the display.\n\t\t//A graphics object is a paintbrush style object\n\t\tGraphics g = buffStrat.getDrawGraphics();\n\t\t//Clear the screen\n\t\tg.clearRect(0, 0, width, height); //Clear for further rendering\n\t\t\n\t\tif(State.getState() !=null) {\n\t\t\tState.getState().render(g);\n\t\t}\n\t\t//Drawings to be done in this space\n\t\t\n\t\t\n\t\t\n\t\tbuffStrat.show();\n\t\tg.dispose();\n\t}", "@Override\r\n public void render() {\n \r\n stage.act();\r\n stage.draw();\r\n }", "@Test\n public void same_player_name() {\n //Arrange scenario\n //same player name\n Player other = new Player(\"Name\");\n final TemplateEngineTester testHelper = new TemplateEngineTester();\n //Add a player to a new empty lobby\n when(request.queryParams(\"id\")).thenReturn(\"Name\");\n Player player = new Player(request.queryParams(\"id\"));\n // To analyze what the Route created in the View-Model map you need\n // to be able to extract the argument to the TemplateEngine.render method.\n // Mock up the 'render' method by supplying a Mockito 'Answer' object\n // that captures the ModelAndView data passed to the template engine\n when(templateEngine.render(any(ModelAndView.class))).thenAnswer(testHelper.makeAnswer());\n\n // Invoke the test\n CuT.handle(request, response);\n\n //Check if names are equal\n assertEquals(player,other);\n }", "@Test\r\n\tvoid playNoWinner() throws Exception {\r\n\t\t\r\n\t\ttr.deleteAll();\r\n\t\tint id0 = tr.save(new Transformer( null, \"Soundwave\", Team.DECEPTICON, 8, 9, 2, 6, 7, 5, 6, 10)).getId();\r\n\t\tint id1 = tr.save(new Transformer( null, \"Hubcap\", Team.AUTOBOT, 4,4,4,4,4,4,4,4)).getId();\r\n\t\tint id2 = tr.save(new Transformer( null, \"Bluestreak\", Team.AUTOBOT, 6,6,7,9,5,2,9,7)).getId();\r\n\t\tint id3 = tr.save(new Transformer( null, \"Soundwave\", Team.DECEPTICON, 1, 1, 1, 1, 1, 1, 1, 1)).getId();\r\n\t\t\r\n\t\tString content = String.format(\"[%d,%d,%d,%d]\",id0,id1,id2,id3) ;\r\n\t\t\r\n\t\tmockMvc.perform(post(\"/transformers/play\").contentType(MediaType.APPLICATION_JSON).content(content.getBytes(\"UTF-8\")))\r\n\t\t.andExpect(status().isOk())\r\n\t\t.andExpect(content().contentTypeCompatibleWith(\"application/json\"))\r\n\t\t.andExpect(jsonPath(\"$.battles\").value(2))\r\n\t\t.andExpect(jsonPath(\"$.winningTeam\", is(nullValue())))\r\n\t\t.andExpect(jsonPath(\"$.survivedLosers\", is(nullValue())))\r\n\t\t;\r\n\t}", "@Override\n\tpublic void doView(RenderRequest renderRequest,\n\t\t\tRenderResponse renderResponse) throws IOException, PortletException {\n\t\tsuper.doView(renderRequest, renderResponse);\n\t}", "protected void render() {\n\t\tentities.render();\n\t\t// Render GUI\n\t\tentities.renderGUI();\n\n\t\t// Flips the page between the two buffers\n\t\ts.drawToGraphics((Graphics2D) Window.strategy.getDrawGraphics());\n\t\tWindow.strategy.show();\n\t}", "@Test\n void annullamentoTirocinioSuccess() throws ServletException, IOException {\n when(requestMock.getParameter(\"enteEmail\")).thenReturn(\"999\");\n when(requestMock.getRequestDispatcher(\"_areaStudent/StoricoStudenteET.jsp\"))\n .thenReturn(dispatcherMock);\n ServletAnnullaEnteDaStudenteET test = new ServletAnnullaEnteDaStudenteET();\n test.doGet(requestMock, responseMock);\n verify(dispatcherMock).forward(requestMock, responseMock);\n }", "@Test\n @Ignore\n public void testShowHomePage() throws Exception {\n System.out.println(\"showHomePage\");\n HttpServletResponse response = null;\n HomeController instance = new HomeController();\n ModelAndView expResult = null;\n ModelAndView result = instance.showHomePage(response);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n\tpublic void testRenderData() throws Exception\n\t{\n\t\tfinal HttpServletRequest request = mock(HttpServletRequest.class);\n\t\tfinal HttpServletResponse response = mock(HttpServletResponse.class);\n\n\t\t// servlet mock responses\n\t\tfinal Map<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"__action\", \"download_json\");\n\t\tmap.put(\"__target\", \"jqGridView\");\n\t\tmap.put(\"Operation\", \"RENDER_DATA\");\n\t\tmap.put(\"rows\", \"10\");\n\t\tmap.put(\"page\", \"1\");\n\t\tfor (final Entry<String, String> entry : map.entrySet())\n\t\t{\n\t\t\twhen(request.getParameter(entry.getKey())).thenReturn(entry.getValue());\n\t\t}\n\t\twhen(request.getParameterMap()).thenReturn(map);\n\t\twhen(request.getMethod()).thenReturn(\"GET\");\n\n\t\tfinal ServletContext context = mock(ServletContext.class);\n\t\tfinal HttpSession session = mock(HttpSession.class);\n\t\twhen(request.getSession()).thenReturn(session);\n\t\twhen(session.getServletContext()).thenReturn(context);\n\n\t\tfinal ServletOutputStream mockOutstream = mock(ServletOutputStream.class);\n\t\twhen(response.getOutputStream()).thenReturn(mockOutstream);\n\n\t\tfinal Tuple molRequest = new MolgenisRequest(request, response);\n\t\tplugin.handleRequest(db, molRequest, mockOutstream);\n\n\t\t// final HttpServletResponse realRequest = ((MolgenisRequest)\n\t\t// molRequest).getResponse();\n\t\t// System.out.println(realRequest.toString());\n\t\tverify(mockOutstream)\n\t\t\t\t.print(\"{\\\"page\\\":1,\\\"total\\\":3067,\\\"records\\\":30670,\\\"rows\\\":[{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Dutch\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"5.300000190734863\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"English\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"9.5\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Papiamento\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"76.69999694824219\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Spanish\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"7.400000095367432\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"1\\\",\\\"City.Name\\\":\\\"Kabul\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Kabol\\\",\\\"City.Population\\\":\\\"1780000\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"2\\\",\\\"City.Name\\\":\\\"Qandahar\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Qandahar\\\",\\\"City.Population\\\":\\\"237500\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"3\\\",\\\"City.Name\\\":\\\"Herat\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Herat\\\",\\\"City.Population\\\":\\\"186800\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"4\\\",\\\"City.Name\\\":\\\"Mazar-e-Sharif\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Balkh\\\",\\\"City.Population\\\":\\\"127800\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"1\\\",\\\"City.Name\\\":\\\"Kabul\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Kabol\\\",\\\"City.Population\\\":\\\"1780000\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Dari\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"32.099998474121094\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"2\\\",\\\"City.Name\\\":\\\"Qandahar\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Qandahar\\\",\\\"City.Population\\\":\\\"237500\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Dari\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"32.099998474121094\\\"}]}\");\n\t}", "@Test\n void getResetPasswordView() throws Exception {\n\n MvcResult mvcResult = mockMvc.perform(get(PATH + \"reset/password\")\n .contentType(MediaType.APPLICATION_JSON)\n .param(\"user\", \"test\")\n .param(\"pass\", \"password\"))\n .andExpect(status().is2xxSuccessful())\n .andExpect(view().name(\"resetPassword\"))\n .andReturn();\n }", "@Test\n\t public void testGetHomePage() throws Exception{ \n HomeController controller = new HomeController();\n /* We don't have to pass any valid values here because all it does is to send the user to the home page*/\n ModelAndView modelAndView = controller.getHomePage(null, null, null); \n assertEquals(\"home\", modelAndView.getViewName());\n }", "@Test\n\tpublic void testRenderMergedOutputModel_3()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", true, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "public void testGetViews() {\n }", "@Test\n public void invalid_name() {\n final TemplateEngineTester testHelper = new TemplateEngineTester();\n //Add a player to a new empty lobby\n when(request.queryParams(\"id\")).thenReturn(\"*\");\n Player player = new Player(request.queryParams(\"id\"));\n // To analyze what the Route created in the View-Model map you need\n // to be able to extract the argument to the TemplateEngine.render method.\n // Mock up the 'render' method by supplying a Mockito 'Answer' object\n // that captures the ModelAndView data passed to the template engine\n when(templateEngine.render(any(ModelAndView.class))).thenAnswer(testHelper.makeAnswer());\n\n // Invoke the test\n CuT.handle(request, response);\n\n //Check if names are equal\n assertTrue(playerLobby.getInvalidName());\n }", "@Test\n\tpublic void testRenderMergedOutputModel_2()\n\t\tthrows Exception {\n\t\tRedirectView fixture = new RedirectView(\"\", false, true);\n\t\tfixture.setUrl(\"\");\n\t\tfixture.setEncodingScheme(\"\");\n\t\tMap model = new LinkedHashMap();\n\t\tHttpServletRequest request = new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true);\n\t\tHttpServletResponse response = new JSecurityHttpServletResponse(new HttpServletResponseWrapper((HttpServletResponse) null), (ServletContext) null, new JSecurityHttpServletRequest(new HttpServletRequestWrapper((HttpServletRequest) null), (ServletContext) null, true));\n\n\t\tfixture.renderMergedOutputModel(model, request, response);\n\n\t\t// add additional test code here\n\t}", "private void render() {\n\n if (state == STATE.PAUSE) {\n\n return;\n }\n\n\n if (state == STATE.MENU) {\n\n menu.draw();\n arrow.render();\n return;\n\n }\n\n if (state == STATE.INSTRUCTIONS) {\n instructions.draw();\n return;\n }\n\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).render();\n }\n\n\n for (Enemy enemy : enemies) {\n enemy.render();\n }\n\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).render();\n }\n\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).render();\n }\n\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).render();\n }\n\n topBar.render();\n bottomBar.render();\n fps.render();\n score.render();\n\n\n }", "public void render() {\n\t\t// do nothing... as we should\n\t}", "@Test\r\n\tpublic void testShowInterviewer() throws Exception {\r\n\r\n\t\tList<ShowInterviwerDTO> interviewerList = new ArrayList<ShowInterviwerDTO>();\r\n\t\tinterviewerList.add(getIntervieerDTO());\r\n\t\twhen(interviewerService.getAllInterviewer()).thenReturn(interviewerList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/showinterviewer\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "private void renderView() {\r\n\t\tSystem.out.println(this.currentView.render());\r\n\t}", "public cn.bran.japid.template.RenderResult render() {\n\t\ttry {super.layout();} catch (RuntimeException __e) { super.handleException(__e);} // line 0, japidviews/Application/photo/Story.html\n\t\treturn getRenderResult();\n\t}", "protected void setUpRenderKit() throws Exception\n {\n RenderKitFactory renderKitFactory = (RenderKitFactory) FactoryFinder\n .getFactory(FactoryFinder.RENDER_KIT_FACTORY);\n renderKit = new MockRenderKit();\n renderKitFactory.addRenderKit(RenderKitFactory.HTML_BASIC_RENDER_KIT,\n renderKit);\n }", "public Void call() throws Exception {\n if (mStopping)\n return null;\n Process.setThreadPriority(getThreadPriority(mPass));\n try {\n Render render = render(mParam, mPass);\n if (render == null) {\n mFailed = true;\n } else {\n // record the render, we will apply to the view it cache it\n // later\n mRender = render;\n // increment the pass now - since later calls aren't\n // guaranteed to occur\n mPass++;\n }\n mHandler.post(this);\n return null;\n } finally {\n Process.setThreadPriority(mInheritedThreadPriority);\n }\n }", "void onRender(RenderArguments arguments);", "public abstract boolean isRendered();", "public abstract void render(SpriteBatch spriteBatch);", "@Override\r\n\tpublic void render() {\r\n\t\turi = ActionContext.getContextPath() + uri;\r\n\t\ttry {\r\n\t\t\tResponse.getServletResponse().sendRedirect(uri);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RenderException(\"Redirect to [\" + uri + \"] error!\", e);\r\n\t\t}\r\n\t}", "public void render() {\n\t\telapsedTime += Gdx.graphics.getDeltaTime();\n\t\tcamera.update();\n\t\tbatch.begin();\n\t\t\n\t\tplayerMovement.update(Gdx.graphics.getDeltaTime());\n\t\tplayer.draw(batch, elapsedTime);\n\t\ttestWorld.renderWorld(batch, elapsedTime);\n\t\t//debugRender.render(testWorld.getWorld(), camera.combined);\n\t\tbatch.end();\n\t}", "@Override\n public void render() {\n super.render();\n }", "@Override\n public void render() {\n super.render();\n }", "@Override\n\tpublic void render() {\n\n\t\tbeginRender();\n\t\tTiledMapTileLayer tileLayer = (TiledMapTileLayer) map.getLayers().get(\"Tile Layer 1\");\n\t\trenderTileLayer(tileLayer); // render tiles before entities so tiles\n\t\t// are on the bottom\n\t\trenderEntities();\n\t\tendRender();\n\t\trayHandler.updateAndRender();\n\t\tbeginRender();\n\t\trenderDynamicEntityHealthBars(); // needs to happen after lighting so that lighting doesn't affect health bars\n\t\tendRender();\n\n\t\t// since debug rendering uses a shape renderer, it must start after\n\t\t// endRender() which calls batch.end(). Otherwise rendering gets\n\t\t// messed up and some textureregions don't draw for some reason...\n\t\tif (debug) {\n\t\t\t// draw hitboxes\n\t\t\tshapeRenderer.begin(ShapeRenderer.ShapeType.Line);\n\t\t\tdebugRenderEntityLines();\n\t\t\tshapeRenderer.end();\n\t\t\t// fpsLogger.log();\n\t\t\t// render text info like position\n\t\t\tbeginRender();\n\t\t\tdebugRenderTextInfos();\n\t\t\tendRender();\n\t\t}\n\n\t\t// update dynamic entity animation frame\n\t\tfor (DynamicEntity entity : dynamicEntities) {\n\t\t\t//System.out.println(Gdx.graphics.getDeltaTime());\n\t\t\tentity.tick(Gdx.graphics.getDeltaTime());\n\t\t}\n\t\tCollections.sort(layerZeroEntities, new EntityComparator());\n\n\t\tcamera.position.x = GameClient.getInstance().getMap().localPlayer.getX();\n\t\tcamera.position.y = GameClient.getInstance().getMap().localPlayer.getY();\n\t\tsetView(camera);\n\t}", "public void render(GameContainer gc, GameManager gm, Renderer r) {\n }", "public void render(Renderer renderer) {\n\t\trenderer.setColor(Colors.BACKGROUND);\n\t\trenderer.fillRect(0, 0, game.camera.viewportWidth, game.camera.viewportHeight);\n\n\t\trenderer.setColor(Colors.FOREGROUND);\n\t\trenderer.fillRect(0 + 5, 0 + 5, game.camera.viewportWidth - 10, game.camera.viewportHeight - 10);\n\t\t\n\t\t/* Render Net */\n\t\trenderer.setColor(Colors.BACKGROUND);\n\t\tfor(int i = 0; i < game.camera.viewportHeight / 20; i++) {\n\t\t\t\n\t\t\trenderer.fillRect(game.camera.viewportWidth / 2 - 2.5f, i * 40, 5f, 20);\n\t\t}\n\t\t\n\t\t/* Update Powerups */\n\t\tfor(Powerup powerup : powerups) {\n\n\t\t\tpowerup.render(renderer);\n\t\t}\n\t\t\n\t\t/* Render Paddles */\n\t\tleftPaddle.render(renderer);\n\t\trightPaddle.render(renderer);\n\t\t\n\t\t/* Render Entities */\n\t\tIterator<Entity> i = entities.iterator();\n\t\twhile(i.hasNext()) {\n\t\t\t\n\t\t\tEntity e = i.next();\n\t\t\te.render(renderer);\n\t\t}\n\t}", "public interface Renderable {\n\n void render();\n}", "@Test\n public void testHome() {\n GenericServiceMockup<Person> personService = new GenericServiceMockup<Person>();\n homeController.setPrivilegeEvaluator(mockup);\n homeController.setPersonBean(personService);\n ModelAndView result = homeController.home();\n assertEquals(\"Wrong view name for exception page\", HomeController.HOME_VIEW, result.getViewName());\n }", "@Override\n public void render() { super.render(); }" ]
[ "0.63352513", "0.60318553", "0.60120857", "0.5983432", "0.5900979", "0.5848077", "0.5830501", "0.580602", "0.5778543", "0.5778017", "0.5772326", "0.57653457", "0.56823283", "0.56604", "0.56319577", "0.5624149", "0.5607948", "0.5553891", "0.55403674", "0.55389094", "0.55308664", "0.55257094", "0.5517445", "0.55173296", "0.5441632", "0.5436567", "0.5421667", "0.54196215", "0.5411028", "0.5407677", "0.53972054", "0.539369", "0.5376012", "0.53427184", "0.53427184", "0.53427184", "0.53427184", "0.53427184", "0.53427184", "0.5329926", "0.53151506", "0.53073406", "0.53050333", "0.5296741", "0.52878046", "0.52870756", "0.5279148", "0.5278103", "0.526432", "0.5261152", "0.52562535", "0.52553177", "0.5250216", "0.5236376", "0.523079", "0.5229374", "0.5228202", "0.52150023", "0.5210965", "0.5191101", "0.51872665", "0.51819634", "0.5172705", "0.51641", "0.51620376", "0.5157852", "0.5156004", "0.515493", "0.51489705", "0.5140246", "0.5139478", "0.5137768", "0.5135264", "0.51284295", "0.5125431", "0.51191646", "0.51153064", "0.5106482", "0.5097827", "0.50943696", "0.50926983", "0.50915724", "0.5088635", "0.5082723", "0.50808275", "0.5070409", "0.5069773", "0.50662065", "0.5062022", "0.50580555", "0.5057567", "0.5056811", "0.5043647", "0.5043647", "0.5040594", "0.5040176", "0.50342554", "0.50115454", "0.5004466", "0.5004309" ]
0.7844271
0
System.out.println("deleteMember"); String deleteUserId = ""; String project_id = ""; TeamController instance = new TeamController(); ModelAndView expResult = null; ModelAndView result = instance.deleteMember(deleteUserId, project_id); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype.");
@Test public void testDeleteMember() throws Exception { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testEliminar3() {\n System.out.println(\"eliminar\");\n usuarioController.crear(usuario1);\n int codigo = 0;\n boolean expResult = false;\n boolean result = usuarioController.eliminar(codigo);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void testEliminar() {\n System.out.println(\"eliminar\");\n usuarioController.crear(usuario1);\n int codigo = 1;\n boolean expResult = true;\n boolean result = usuarioController.eliminar(codigo);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void testEliminar2() {\n System.out.println(\"eliminar\");\n int codigo = 1;\n boolean expResult = false;\n boolean result = usuarioController.eliminar(codigo);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void testDelete() {\n System.out.println(\"delete\");\n String guestIDnumber = \"test\";\n BookingController instance = new BookingController();\n boolean expResult = true;\n boolean result = instance.delete(guestIDnumber);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n }", "@Test\n public void testSendInvitation() {\n try{\n System.out.println(\"sendInvitation\");\n String project_id = \"3\";\n String inviteUserId = \"6\";\n TeamController instance = new TeamController();\n// ModelAndView expResult = null;\n instance.setProjectId(3);\n instance.setUserId(1);\n ModelAndView result = instance.sendInvitation(project_id, inviteUserId);\n// assertEquals(\"redirect:/projectMainView/3/team/show\", result);\n ModelAndViewAssert.assertViewName(result, \"redirect:/projectMainView/3/team/show\");\n }catch(Exception e)\n {\n // TODO review the generated test code and remove the default call to fail.\n fail(\"Send invitation failed\");\n }\n }", "@Test\r\n\tpublic void deleteTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeam \r\n\t\tTeam team_1 = new wsdm.domain.Team();\r\n\t\tservice.deleteTeam(team_1);\r\n\t}", "@Test\r\n public void testDeleteById() {\r\n System.out.println(\"deleteById\");\r\n int id = 0;\r\n AbonentDAL instance = new AbonentDAL();\r\n Abonent expResult = null;\r\n Abonent result = instance.deleteById(id);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void deleteContact() {\n }", "@Test\n public void testDeleteCarById() {\n System.out.println(\"deleteCarById\");\n int id = 17;\n CarController instance = new CarController();\n instance.deleteCarById(id);\n assertTrue(true);\n }", "@Test\n public void testDeleteUser() {\n System.out.println(\"deleteUser\");\n long userId = 0L;\n UserServiceImpl instance = new UserServiceImpl(passwordService);\n instance.deleteUser(userId);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testDeletarCliente() {\n System.out.println(\"deletarCliente\");\n int id = 34;\n ClienteDAO instance = new ClienteDAO();\n boolean expResult = false;\n boolean result = instance.deletarCliente(id);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n\tpublic void testDelete(){\n\t}", "@Test\n public void test_delete_user_success() throws Exception {\n UserDto user = new UserDto(1L, \"Arya\", \"Stark\", \"[email protected]\");\n\n when(userService.deleteUser(user.getUserId())).thenReturn(user);\n\n mockMvc.perform(delete(\"/users/{id}\", user.getUserId())).andExpect(status().isOk());\n\n verify(userService, times(1)).deleteUser(user.getUserId());\n verifyNoMoreInteractions(userService);\n }", "@Test\n public void testActualizar3() {\n System.out.println(\"actualizar\");\n int codigo = 2;\n Usuario usuario = usuario1;\n usuario.setEstado(\"desactivado\");\n boolean expResult = false;\n boolean result = usuarioController.actualizar(codigo, usuario);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testDelete() throws Exception {\r\n bank.removePerson(p2);\r\n assertEquals(bank.viewAllPersons().size(), 1);\r\n assertEquals(bank.viewAllAccounts().size(), 1);\r\n }", "@Test\n\tpublic void test_delete_user_success(){\n template.delete(REST_SERVICE_URI + \"/\" + getLastUser().getId() + ACCESS_TOKEN + token);\n }", "@org.junit.Test\r\n public void testDelete() {\r\n System.out.println(\"delete\");\r\n String emailid = \"[email protected]\";\r\n ContactDao instance = new ContactDao();\r\n List<ContactResponse> expResult = new ArrayList<ContactResponse>();\r\n ContactResponse c = new ContactResponse(\"Contact Deleted\");\r\n expResult.add(c);\r\n List<ContactResponse> result = instance.delete(emailid);\r\n String s=\"No such contact ID found\";\r\n if(!result.get(0).getMessage().equals(s))\r\n assertEquals(expResult.get(0).getMessage(), result.get(0).getMessage());\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Test\n\tvoid deleteDoctorTest() throws Exception {\n\t\tList<DoctorDetail> doctorDetail = new ArrayList<>();\n\t\tDoctorDetail doctorfind = new DoctorDetail();\n\t\tdoctorfind.setId(\"1\");\n\t\tdoReturn(doctorDetail).when(doctorServiceImplementation).deleteDoctorService(doctorfind.getId());\n\t\tmockMvc.perform(get(\"/doctor/delete?id=/{id}\", 1L)).andExpect(status().isOk());\n\t}", "@Test\n public void testDeleteTravel() throws Exception{\n \n doNothing().when(databaseMock).deleteTravel(anyInt());\n \n mockMVC.perform(delete(\"/user/1/travel/1\")\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isNoContent());\n \n verify(databaseMock, times(1)).getUser(1);\n verify(databaseMock, times(1)).deleteTravel(1);\n verifyNoMoreInteractions(databaseMock);\n }", "@Test\r\n public void testDeleteAccount() {\r\n System.out.println(\"deleteAccount\");\r\n \r\n Users instance = new Users();\r\n Account.cName = \"Admin4\";\r\n Account.cPasswordAndRights[0] = \"123456789\";\r\n Account.cPasswordAndRights[1] = \"A\";\r\n instance.deleteAccount();\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\r\n public void testEliminar() {\r\n System.out.println(\"eliminar\");\r\n Integer idUsuario = null;\r\n Usuario instance = new Usuario();\r\n instance.eliminar(idUsuario);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Test\n void deleteSuccess() {\n dao.delete(dao.getById(2));\n assertNull(dao.getById(2));\n }", "@Test\n void deleteSuccess() {\n dao.delete(dao.getById(3));\n assertNull(dao.getById(3));\n }", "@Test\n public void testActualizar2() {\n System.out.println(\"actualizar\");\n usuarioController.crear(usuario1);\n int codigo = 2;\n Usuario usuario = usuario1;\n usuario.setEstado(\"desactivado\");\n boolean expResult = false;\n boolean result = usuarioController.actualizar(codigo, usuario);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void testEliminar() {\n System.out.println(\"eliminar\");\n int id = 0;\n cursoDAO instance = new cursoDAO();\n boolean expResult = false;\n boolean result = instance.eliminar(id);\n assertEquals(expResult, result);\n \n }", "@Test\n public void testActualizar() {\n System.out.println(\"actualizar\");\n usuarioController.crear(usuario1);\n int codigo = 1;\n Usuario usuario = usuario1;\n usuario.setEstado(\"desactivado\");\n boolean expResult = true;\n boolean result = usuarioController.actualizar(codigo, usuario);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void testDeleteCustomer() {\n System.out.println(\"deleteCustomer\");\n String name = \"Gert Hansen\";\n String address = \"Grønnegade 12\";\n String phone = \"98352010\";\n CustomerCtr instance = new CustomerCtr();\n int customerID = instance.createCustomer(name, address, phone);\n instance.deleteCustomer(customerID);\n Customer result = instance.getCustomer(customerID);\n assertNull(result);\n // TODO review the generated test code and remove the default call to fail.\n// fail(\"The test case is a prototype.\");\n }", "@Test\n void delete() {\n }", "@Test\n void delete() {\n }", "public static void testDeleteTodoView(){\n\n }", "@Test\n public void testDeleteTravel_RecordNotFoundExceptionDeleteTravel() throws Exception {\n doThrow(new RecordNotFoundException()).when(databaseMock).deleteTravel(anyInt());\n \n mockMVC.perform(delete(\"/user/1/travel/1\")\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isNotFound());\n \n verify(databaseMock, times(1)).getUser(anyInt());\n verify(databaseMock, times(1)).deleteTravel(anyInt());\n verifyNoMoreInteractions(databaseMock);\n }", "@Test\n public void testDeleteDietStatus() throws Exception{\n \tString URI = \"/healthreminder/delete_dietstatus_by_id/{patientId}\"; \n \tFollowUpDietStatusInfo followUpDietStatusInfo = new FollowUpDietStatusInfo();\n followUpDietStatusInfo.setPatientId(1);\n followUpDietStatusInfo.setDietStatus(true);\n\n Mockito.when(followUpDietStatusInfoServices.findDietStatusById(Mockito.anyInt())).thenReturn(followUpDietStatusInfo);\n Mockito.when(followUpDietStatusInfoServices.deleteDietStatus(Mockito.any())).thenReturn(true);\n MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.delete(URI,1).accept(MediaType.\n \t\tAPPLICATION_JSON)).andReturn();\n MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\n\n Assert.assertEquals(HttpStatus.OK.value(), mockHttpServletResponse.getStatus());\n\n }", "@Test\r\n public void testEliminar() {\r\n System.out.println(\"eliminar\");\r\n Integer idDepto = null;\r\n Departamento instance = new Departamento();\r\n instance.eliminar(idDepto);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "@Test\n public void deleteId() throws Exception {\n Role role = create(new Role(\"roleName\"));\n\n //Attempt to remove from the database with delete request\n try {\n mvc.perform(MockMvcRequestBuilders.delete(\"/auth/roles/{id}\", UUIDUtil.UUIDToNumberString(role.getUuid()))\n .header(\"Authorization\", authPair[0])\n .header(\"Function\", authPair[1])\n )\n .andExpect(status().isOk());\n } catch (Exception e) {\n remove(role.getUuid());\n throw e;\n }\n\n //Check if successfully removed from database\n try {\n //Remove from database (above get function should have thrown an error if the object was no longer in the database)\n remove(role.getUuid());\n fail(\"DELETE request did not succesfully delete the object from the database\");\n } catch (ObjectNotFoundException e) {\n //Nothing because the object is no longer present in the database which is expected\n }\n }", "@Test\n public void testDeleteTravel_RecordNotFoundExceptionGetUser() throws Exception {\n when(databaseMock.getUser(anyInt())).thenThrow(new RecordNotFoundException());\n \n mockMVC.perform(delete(\"/user/1/travel/1\")\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isNotFound());\n \n verify(databaseMock, times(1)).getUser(anyInt());\n verifyNoMoreInteractions(databaseMock);\n }", "@Test\r\n void testRemoveMedicineById() throws Exception{\r\n String URI = \"/medicine/delete/{medicineId}\";\r\n Medicine medicine = new Medicine(); \r\n \t medicine.setMedicineId(1345);\r\n \t\tmedicine.setMedicineName(\"Calcium\");\r\n \t\tmedicine.setMedicineCost(300);\r\n \t\t\r\n\t Mockito.when(medicineService.cancelMedicineById(1345)).thenReturn(true);\r\n\t MvcResult mvcResult = this.mockMvc.perform(MockMvcRequestBuilders.delete(URI, 1345).accept(MediaType.APPLICATION_JSON)).andReturn();\r\n\t MockHttpServletResponse mockHttpServletResponse = mvcResult.getResponse();\r\n\t String jsonOutput = mockHttpServletResponse.getContentAsString();\r\n\t assertNotNull(jsonOutput);\r\n }", "@Test\n void deleteItem() {\n }", "@Test\n public void testDeletePengguna() throws Exception {\n System.out.println(\"deletePengguna\");\n Long id = null;\n DaftarPengguna instance = new DaftarPengguna();\n instance.deletePengguna(id);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testEliminarUsuario() {\r\n System.out.println(\"EliminarUsuario\");\r\n Usuario pusuario = new Usuario();\r\n pusuario.setCodigo(1);\r\n //pusuario.setUsuario(\"MSantiago\");\r\n \r\n BLUsuario instance = new BLUsuario();\r\n Result expResult = new Result(ResultType.Ok, \"Usuario eliminado correctamente.\", null);\r\n Result result = instance.EliminarUsuario(pusuario);\r\n \r\n System.out.println(result.getMensaje());\r\n assertEquals(expResult.getDetalleMensaje(), result.getDetalleMensaje());\r\n assertEquals(expResult.getMensaje(), result.getMensaje()); \r\n assertEquals(expResult.getTipo(), result.getTipo()); \r\n }", "@Test\n void deleteSuccess() {\n genericDAO.delete(genericDAO.getByID(2));\n assertNull(genericDAO.getByID(2));\n }", "@Test\n public void deleteRecipe_ReturnsTrue(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertEquals(\"deleteRecipe - Returns True\",true, testDatabase.deleteRecipe(returned));\n\n }", "@Test\n public void deleteIngredient_ReturnsTrue(){\n int returned = testDatabase.addIngredient(ingredient);\n assertEquals(\"deleteIngredient - Returns True\",true, testDatabase.deleteIngredient(returned));\n }", "@Test\r\n public void testDelete() {\r\n System.out.println(\"delete\");\r\n String isbn = \"1222111131\";\r\n int expResult = 1;\r\n int result = TitleDao.delete(isbn);\r\n assertEquals(expResult, result);\r\n }", "@Test\n public void testBuscar() {\n System.out.println(\"buscar\");\n usuarioController.crear(usuario1);\n int codigo = 1;\n Usuario expResult = usuario1;\n Usuario result = usuarioController.buscar(codigo);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void testBuscar3() {\n System.out.println(\"buscar\");\n int codigo = 0;\n Usuario expResult = null;\n Usuario result = usuarioController.buscar(codigo);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testDelete() {\r\n assertTrue(false);\r\n }", "@Test\n public void testCrear() {\n System.out.println(\"crear\");\n usuarioController.crear(usuario1);\n usuarioController.crear(usuario2);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void testExclui() {\n System.out.println(\"exclui\");\n Object obj = null;\n AdministradorDAO instance = new AdministradorDAO();\n instance.exclui(obj);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n\tpublic void testdeleteUser() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\tHttpEntity<String> entity = new HttpEntity<String>(null, headers);\n\t\tResponseEntity<String> response = restTemplate.exchange(getRootUrl() + \"/delete-user?id=4\",HttpMethod.GET, entity, String.class);\n\t\tassertEquals(200,response.getStatusCodeValue());\n\t}", "@Test\n public void testDeleteBySsoId() {\n System.out.println(\"deleteBySsoId\");\n try {\n String ssoId = \"sam\";\n\n userRepo.removeByFirstName(\"Sam\");\n AppUser result = userRepo.findBySsoId(ssoId);\n assertNull(result);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Test\n public void testDeleteItem() {\n System.out.println(\"deleteItem\");\n String name = \"\";\n MainWindow1 instance = new MainWindow1();\n boolean expResult = false;\n boolean result = instance.deleteItem(name);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void testRemoveSelectedAuthor() {\r\n //given \r\n /*System.out.println(\"removeSelectedAuthor\");\r\n int authorID = 43;\r\n AuthorHibernateDao instance = new AuthorHibernateDao();\r\n boolean expResult = true;\r\n \r\n //when\r\n boolean result = instance.removeSelectedAuthor(authorID);\r\n \r\n //then \r\n assertEquals(expResult, result);*/ \r\n }", "@Test\n public void deleteById() {\n User user = new User();\n user.setId(1259474874313797634L);\n boolean ifDelete = user.deleteById();\n System.out.println(ifDelete);\n }", "@Test\n\tpublic void deleteUser() throws Exception {\n\t\tmockMvc.perform(\n\t\t\t\tdelete(\"/secure/user/deleteUser/username2\").accept(\n\t\t\t\t\t\tMediaType.APPLICATION_JSON)).andDo(print())\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(content().contentType(\"application/json\"))\n\t\t\t\t.andExpect(jsonPath(\"message\").value(\"Success\"));\n\n\t}", "@Test\n public void deleteFlightTest() throws Exception {\n mockMvc.perform(delete(\"/v1/flight/deleteFlight?flightId=1\")\n .contentType(MediaType.APPLICATION_JSON))\n .andExpect(status().is(200));\n\n }", "@Test\n void shouldDeleteTask() throws Exception {\n mockMvc\n .perform(MockMvcRequestBuilders\n .delete(\"/v1/task/{id}\", 123))\n .andExpect(MockMvcResultMatchers.status().is(200));\n }", "@Test\n\tpublic void testDeleteUsersFailed() throws Exception {\n\n\t\tString id = \"dccfdfd1213\";\n\t\tmockMvc.perform(delete(\"/api/v1/project/{projectid}/deleteuser\", id)).andExpect(status().is4xxClientError())\n\t\t\t\t.andDo(print());\n\n\t}", "@Test\n @DisplayName(\"delete removes anime when successful\")\n void delete_RemovesAnime_WhenSuccessful() {\n Anime savedAnime = animeRepository.save(AnimeCreator.createAnimeToBeSaved());\n devDojoRepository.save(ADMIN);\n \n // using testRestTemplateRoleAdmin to perform request\n ResponseEntity<Void> animeResponseEntity = testRestTemplateRoleAdmin.exchange(\n \"/animes/admin/{id}\",\n HttpMethod.DELETE,\n null,\n Void.class,\n savedAnime.getId()\n );\n\n Assertions.assertThat(animeResponseEntity).isNotNull();\n \n Assertions.assertThat(animeResponseEntity.getStatusCode()).isEqualTo(HttpStatus.NO_CONTENT);\n }", "@Test\n public void testDelete() throws Exception {\n // pretend the entity was deleted\n doNothing().when(Service).deleteCitation(any(String.class));\n\n // call delete\n ModelAndView mav = Controller.delete(\"\");\n\n // test to see that the correct view is returned\n Assert.assertEquals(\"result\", mav.getViewName());\n\n // test to see that Json is formated properly\n Map<String, Object> map = mav.getModel();\n String result = (String) map.get(\"message\");\n\n Assert.assertEquals(\"{\\\"result\\\":\\\"deleted\\\"}\", result);\n }", "@Test\n void deleteSuccess() {\n genericDao.delete(genericDao.getById(3));\n assertNull(genericDao.getById(3));\n }", "@Test\n\t public void testDelete(){\n\t\t try{\n\t\t\t Users user = BaseData.getUsers();\n\t\t\t doAnswer(new Answer() {\n\t\t\t \t public Object answer(InvocationOnMock invocation) {\n\t\t\t \t Object[] args = invocation.getArguments();\n\t\t\t \t EntityManager mock = (EntityManager) invocation.getMock();\n\t\t\t \t return null;\n\t\t\t \t }\n\t\t\t \t }).when(entityManager).remove(user);\n\t\t\t\tuserDao.delete(user);\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing delete:.\",se);\n\t\t }\n\t }", "@Test\n\tpublic void testDeleteCart() {\n\t}", "@Test\n public void test5Delete() {\n \n System.out.println(\"Prueba deSpecialityDAO\");\n SpecialityFactory factory = new MysqlSpecialityDAOFactry();\n SpecialityDAO dao = factory.create();\n assertEquals(dao.delete(\"telecomunicaciones\"),1);\n }", "@Test\n public void testDeleteForum() {\n try {\n ForumDTO forumDTO = forumService.deleteForum(FORUM_ID);\n assertEquals(FORUM_ID, forumDTO.getId());\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "@Test\n public void testControleID() {\n System.out.println(\"controleID\");\n AdministradorDAO instance = new AdministradorDAO();\n int expResult = 0;\n int result = instance.controleID();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n public void testDelete() {\r\n System.out.println(\"delete\");\r\n String doc = \"\";\r\n IwRepoDAOMarkLogicImplStud instance = new IwRepoDAOMarkLogicImplStud();\r\n boolean expResult = false;\r\n boolean result = instance.delete(doc);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n @Order(18)\n void TC_UTENTE_DAO_6()\n {\n UtenteDAO utenteDAO= new UtenteDAO();\n String username=\"utenteTest1\";\n assertTrue(utenteDAO.delete(username));\n }", "@Test\n void deleteList() {\n }", "@Test\n\tvoid testDeletePlant() {\n\t\tList<Plant> plant = service.deletePlant(50);\n\t\tassertFalse(plant.isEmpty());\n\t}", "@Test\n public void testGenerateSessionID() {\n System.out.println(\"generateSessionID\");\n LoginController instance = new LoginController();\n String expResult = \"xyzzy - session 1\";\n String result = instance.generateSessionID();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void testBuscar2() {\n System.out.println(\"buscar\");\n usuarioController.crear(usuario1);\n int codigo = 0;\n Usuario expResult = null;\n Usuario result = usuarioController.buscar(codigo);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }", "@Test\n public void testDeleteTravel_DataAccessExceptionGetUser() throws Exception {\n when(databaseMock.getUser(anyInt())).thenThrow(new DataAccessException(\"\"));\n \n mockMVC.perform(delete(\"/user/1/travel/1\")\n .header(\"Authorization\", \"1\"))\n .andExpect(status().isInternalServerError());\n \n verify(databaseMock, times(1)).getUser(anyInt());\n verifyNoMoreInteractions(databaseMock);\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 }", "@Test\n public void temporaryTeamClosingUnavalableOption() {\n\n }", "@Test\n public void testSearch() {\n try{\n System.out.println(\"search\");\n String searchString = \"YifanZhang\";\n String project_id = \"3\";\n HttpServletResponse res = new MockHttpServletResponse();\n TeamController instance = new TeamController();\n// ModelAndView expResult = null;\n ModelAndView result = instance.search(searchString, project_id, res);\n// assertEquals(expResult, result);\n assertNull(result);\n }\n catch(Exception e){\n // TODO review the generated test code and remove the default call to fail.\n fail(\"Search failed\");\n }\n }", "@Test\n void testDeleteCity() {\n CityList cityList = mockCityList();\n cityList.delete(mockCity());\n\n assertFalse(cityList.hasCity(mockCity()));\n assertTrue(cityList.countCities() == 0);\n\n }", "@Test\n\tpublic void testDeleteAdminAccountSuccessfully() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.deleteAdminAccount(USERNAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\tfail();\n\t\t}\n\t\tAdminAccount savedUser = adminAccountService.getAdminAccountByUsername(USERNAME1);\n\t\tassertNotNull(user);\n\t\tassertEquals(savedUser.getUsername(), user.getUsername());\n\t\tassertEquals(savedUser.getPassword(), user.getPassword());\n\t\tassertEquals(savedUser.getName(), user.getName());\n\t}", "@Test\n public void deleteIngredient_Deletes(){\n int returned = testDatabase.addIngredient(ingredient);\n testDatabase.deleteIngredient(returned);\n assertEquals(\"deleteIngredient - Deletes From Database\",null, testDatabase.getIngredient(returned));\n }", "@Test\n public void deleteVideogame() throws Exception {\n Mockito.when(userRepository2.findById(1)).thenReturn(Optional.of(user));\n Mockito.when(videogameRepository.findById(1)).thenReturn(Optional.of(vg), Optional.of(vg), Optional.empty());\n mockMvc.perform(\n delete(\"/api/videogame/delete/1\")\n ).andExpect(status().isOk());\n }", "@Test\n void deleteSuccess() {\n\n UserDOA userDao = new UserDOA();\n User user = userDao.getById(1);\n String orderDescription = \"February Large Test-Tshirt Delete\";\n\n Order newOrder = new Order(orderDescription, user, \"February\");\n user.addOrder(newOrder);\n\n dao.delete(newOrder);\n List<Order> orders = dao.getByPropertyLike(\"description\", \"February Large Test-Tshirt Delete\");\n assertEquals(0, orders.size());\n }", "@Test\n public void testDelete()throws Exception {\n System.out.println(\"delete\");\n String query= \"delete from librarian where id=?\";\n int id = 15;\n int expResult = 0;\n //when(mockDb.getConnection()).thenReturn(mockConn);\n when(mockConn.prepareStatement(query)).thenReturn(mockPs);\n when(mockPs.executeUpdate()).thenReturn(1);\n int result = mockLibrarian.delete(id);\n assertEquals(result>0 , true);\n \n \n }", "@Test\n\t public void testDeleteEntity(){\n\t\t try{\n\t\t\t Users user = BaseData.getUsers();\n\t\t\t doAnswer(new Answer() {\n\t\t\t \t public Object answer(InvocationOnMock invocation) {\n\t\t\t \t Object[] args = invocation.getArguments();\n\t\t\t \t EntityManager mock = (EntityManager) invocation.getMock();\n\t\t\t \t return null;\n\t\t\t \t }\n\t\t\t \t }).when(entityManager).remove(entityManager.getReference(Users.class,\n\t\t\t \t \t\tuser.getLoginName()));\n\t\t\t\tuserDao.delete(user.getLoginName(),user);\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing delete:.\",se);\n\t\t }\n\t }", "@Test\n public void deleteRecipeDirections_ReturnsTrue(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertEquals(\"deleteRecipeDirections - Returns True\",true, testDatabase.deleteRecipeDirections(returned));\n }", "@Test\n\tpublic void deleteUserWhichDoesNotExistInTheSystem() throws Exception {\n\t\tmockMvc.perform(\n\t\t\t\tdelete(\"/secure/user/deleteUser/username2\").accept(\n\t\t\t\t\t\tMediaType.APPLICATION_JSON)).andDo(print())\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(content().contentType(\"application/json\"))\n\t\t\t\t.andExpect(jsonPath(\"message\").value(\"Fail\"));\n\n\t}", "@Test\n public void deleteOrderTest() {\n Long orderId = 10L;\n api.deleteOrder(orderId);\n\n verify(exactly(1), deleteRequestedFor(urlEqualTo(\"/store/order/10\")));\n }", "@Test\n public void delete() {\n auctionService.restTemplate = mockRestTemplate;\n auctionService.delete(1);\n verify(mockRestTemplate).delete(testOneUrl);\n }", "@Test\r\n\tpublic void deleteTeamTswacct() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamTswacct \r\n\t\tInteger team_teamId_6 = 0;\r\n\t\tInteger related_tswacct_tswAcctId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamTswacct(team_teamId_6, related_tswacct_tswAcctId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamTswacct\r\n\t}", "public void deleteRequest() {\n assertTrue(true);\n }", "@Test\n public void testDeleteTeacher() {\n System.out.println(\"deleteTeacher\");\n School instance = new School();\n instance.setTeachers(teachers);\n instance.setTeacherClass(teacherClass);\n\n assertFalse(instance.deleteTeacher(teacher));\n System.out.println(\"PASS with a teacher currently teaching a class\");\n\n assertTrue(instance.deleteTeacher(teacher3));\n teachers.remove(teacher3.getId());\n assertEquals(teachers, instance.getTeachers());\n System.out.println(\"PASS with a teacher currently not teaching any classes\");\n\n System.out.println(\"PASS ALL\");\n }", "@Test\n public void deleteCategory_ReturnsTrue(){\n int returned = testDatabase.addCategory(category);\n assertEquals(\"deleteCategory - Returns True\", true, testDatabase.deleteCategory(returned));\n }", "@Test\n public void deleteCategory_Deletes(){\n int returned = testDatabase.addCategory(category);\n testDatabase.deleteCategory(returned);\n assertEquals(\"deleteCategory - Deletes From Database\", null, testDatabase.getCategory(returned));\n }", "@Test\n public void testAtualizarNomeCliente() {\n System.out.println(\"atualizarNomeCliente\");\n String novoNome = \"\";\n String nCpf = \"\";\n ClienteDAO instance = new ClienteDAO();\n boolean expResult = false;\n boolean result = instance.atualizarNomeCliente(novoNome, nCpf);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void testInserirCliente() {\n \n \n System.out.println(\"inserirCliente\");\n \n Cliente novoCliente = null;\n ClienteDAO ins = new ClienteDAO();\n boolean expResult = false;\n boolean result = ins.inserirCliente(novoCliente);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n public void testGetListaUsuario() {\n System.out.println(\"getListaUsuario\");\n usuarioController.crear(usuario1);\n List<Usuario> expResult = new ArrayList<>();\n expResult.add(usuario1);\n List<Usuario> result = usuarioController.getListaUsuario();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n\tpublic void testSupprimer() {\n\t\tprofesseurServiceEmp.supprimer(prof);\n\t}", "@Test\n public void testRemoverGrupo() throws Exception {\n mockMvc.perform(MockMvcRequestBuilders.post(\"/grupo/removerGrupo\")\n .param(\"id\", \"1\"))\n .andExpect(status().is3xxRedirection())\n .andExpect(view().name(\"redirect:/grupo/criarGrupo?removido\"));\n }", "@Test\n public void testDelecaoTelefones() {\n System.out.println(\"delecaoTelefones\");\n String idPessoa = \"\";\n AdministradorDAO instance = new AdministradorDAO();\n instance.delecaoTelefones(idPessoa);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void deleteRecipeCategory_ReturnsTrue(){\n int returned = testDatabase.addRecipe(testRecipe);\n assertEquals(\"deleteRecipeCategory - Returns True\",true, testDatabase.deleteRecipeCategory(returned));\n }", "@Test\n public void testDeleteUser() {\n User testUser = new User();\n testUser.setUserEmail(TEST_EMAIL);\n testUser.setUserPassword(TEST_PASSWORD);\n \n Mockito.doNothing().when(userService).deleteUser((User) Matchers.anyObject());\n \n given().body(testUser).contentType(ContentType.JSON).when()\n .delete(URLPREFIX + \"delete\").then()\n .statusCode(HttpServletResponse.SC_OK)\n .contentType(ContentType.JSON).body(equalTo(\"true\"));\n }", "@Test\n\tpublic void testDeleteEvent() {\n\t\tEvent event = new Event();\n\t\ttry {\n\t\t\trequest.setParameter(\"eventId\",\"1001\");\n\t\t\trequest.setParameter(\"sessionId\",\"10001\");\n\t\t\tcontroller.deleteEvent(request, response);\n\t\t\tevent = eventDao.getEvent(1001, 10001);\n\t\t\tassertEquals(0,event.getEventid());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n}" ]
[ "0.7886534", "0.7861039", "0.7844606", "0.76855797", "0.73580307", "0.7331456", "0.7282054", "0.72771335", "0.7205602", "0.7173075", "0.711297", "0.70991945", "0.7086075", "0.7047055", "0.7022906", "0.69946384", "0.69845796", "0.698157", "0.6979375", "0.6971092", "0.69440037", "0.6935428", "0.6933711", "0.691796", "0.6910799", "0.6903606", "0.6877442", "0.6832854", "0.6832854", "0.68211687", "0.67971843", "0.67864245", "0.6783673", "0.677426", "0.67712396", "0.6742926", "0.67411876", "0.67282766", "0.67092574", "0.6697458", "0.6673288", "0.66648", "0.66643196", "0.6661562", "0.6643693", "0.6639435", "0.66387737", "0.6631754", "0.6630367", "0.66234356", "0.6619107", "0.6619086", "0.6615659", "0.6606007", "0.660414", "0.66030246", "0.65966314", "0.6575508", "0.65451056", "0.6538308", "0.65357244", "0.6533519", "0.65163463", "0.6508331", "0.65002066", "0.6484041", "0.6475335", "0.6470701", "0.646591", "0.6460666", "0.6439473", "0.64331883", "0.64241314", "0.6422895", "0.6421029", "0.64113456", "0.6397324", "0.6394197", "0.6394143", "0.6389345", "0.6384028", "0.6375829", "0.6370133", "0.6369224", "0.63603765", "0.6356092", "0.6337709", "0.63295895", "0.6319356", "0.6314239", "0.63142323", "0.6304748", "0.6302418", "0.6302046", "0.63012624", "0.62856966", "0.6284898", "0.6279943", "0.62711155", "0.6269511" ]
0.76371354
4
Test of search method, of class TeamController.
@Test public void testSearch() { try{ System.out.println("search"); String searchString = "YifanZhang"; String project_id = "3"; HttpServletResponse res = new MockHttpServletResponse(); TeamController instance = new TeamController(); // ModelAndView expResult = null; ModelAndView result = instance.search(searchString, project_id, res); // assertEquals(expResult, result); assertNull(result); } catch(Exception e){ // TODO review the generated test code and remove the default call to fail. fail("Search failed"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tvoid searchTest() {\n\t}", "@Test\n public void testSearchResultsLoad() throws Exception {\n mockMvc.perform(post(\"/search/results\")\n .param(\"searchType\", \"all\")\n .param(\"searchTerm\", \"asdf\"))\n .andExpect(status().isOk());\n }", "@Test\n public void testSearch2() throws Exception\n {\n unauthenticate();\n Assert.isTrue(actorService.search(\"\").equals(actorService.findAll()));\n }", "@Test\n public void searchesTest() {\n // TODO: test searches\n }", "@Test\n public void testSearch() throws Exception\n {\n // This use case has no authentication requirements.\n unauthenticate();\n\n List<Actor> actors = actorService.search(\"user1\");\n Assert.isTrue(actors.size() == 1);\n Assert.isTrue(actors.get(0).getUserAccount().getUsername().equals(\"user1\"));\n\n authenticate(\"user1\");\n\n actors = actorService.search(\"user2\");\n Assert.isTrue(actors.size() == 1);\n Assert.isTrue(actors.get(0).getUserAccount().getUsername().equals(\"user2\"));\n\n authenticate(\"user2\");\n\n actors = actorService.search(\"Administrator\");\n Assert.isTrue(actors.size() == 1);\n Assert.isTrue(actors.get(0).getUserAccount().getUsername().equals(\"admin\"));\n\n authenticate(\"admin\");\n\n actors = actorService.search(\"user3\");\n Assert.isTrue(actors.size() == 1);\n Assert.isTrue(actors.get(0).getUserAccount().getUsername().equals(\"user3\"));\n }", "public void search() {\r\n \t\r\n }", "@Test\n public void testSearchExamples() throws Exception{\n this.mockMvc.perform(get(\"/api/example/search\").param(\"name\", \"\"))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.content\", hasSize(3)));\n \n //fetching registries with '2' on the name\n this.mockMvc.perform(get(\"/api/example/search\").param(\"name\", \"2\"))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.content\", hasSize(1)));\n }", "@Test\n\tpublic void searchPage() throws Exception {\n\t\tgetRequest().andExpect(content().string(CoreMatchers.containsString(\"searchForm\")));\n\t}", "@Test\npublic void testCal() throws Exception {\n\tsearchText();\n}", "public static void search() {\n int userSelected = selectFromList(crudParamOptions);\n switch (userSelected){\n case 1:\n searchFirstName();\n break;\n case 2:\n searchLastName();\n break;\n case 3:\n searchPhone();\n break;\n case 4:\n searchEmail();\n break;\n default:\n break;\n }\n }", "public void search() {\n }", "@Test\n public void testSearch4() throws Exception\n {\n unauthenticate();\n actorService.search(\"this\");\n }", "@Test\n public void executeValidSearch_notAllFields(){\n emptySearchFields();\n view.setFloor(1);\n view.setBedrooms(1);\n view.setBathrooms(1);\n presenter.doSearch();\n Assert.assertTrue(presenter.hasNextResult());\n }", "abstract public boolean performSearch();", "public void doSearch(String searchText){\n }", "@Test\n\tpublic void GlobalSearch_28667_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\tFieldSet customFS = testData.get(testName).get(0);\n\n\t\t// Define 'search records' and controls\n\t\tArrayList<String> searchRecord = new ArrayList<String>();\n\t\tsearchRecord.add(sugar().accounts.getDefaultData().get(\"name\"));\n\t\tsearchRecord.add(sugar().contacts.getDefaultData().get(\"firstName\") + \" \" + sugar().contacts.getDefaultData().get(\"lastName\"));\n\t\tsearchRecord.add(sugar().opportunities.getDefaultData().get(\"name\"));\n\n\t\t// Define Controls\n\t\t// TODO: VOOD-1853\n\t\tVoodooControl firstSearchedCtrl = new VoodooControl(\"a\", \"css\", \"ul.search-results .search-result:nth-child(1) h3 a\");\n\t\tString baseUrl = new SugarUrl().getBaseUrl();\n\t\tVoodooControl modulesIconCtrl = sugar().navbar.search.getControl(\"searchModuleIcons\");\n\n\t\tfor(int i = 0; i < searchRecord.size(); i++) {\n\t\t\t// Go to https://instance_url/#search/de?modules=Contacts,Accounts,Opportunities\n\t\t\tVoodooUtils.go(baseUrl + \"#search/\" + searchRecord.get(i).replaceAll(\" \", \"%20\") + \"?modules=\" + sugar().accounts.moduleNamePlural + \",\" + sugar().contacts.moduleNamePlural + \",\" + sugar().opportunities.moduleNamePlural);\n\t\t\tVoodooUtils.waitForReady();\n\n\t\t\t// Verify that Contacts, Accounts and Opportunities are checked in the quicksearch module dropdown\n\t\t\tsugar().navbar.search.getControl(\"searchAccounts\").assertAttribute(\"class\", customFS.get(\"selected\"), true);\n\t\t\tsugar().navbar.search.getControl(\"searchContacts\").assertAttribute(\"class\", customFS.get(\"selected\"), true);\n\t\t\tsugar().navbar.search.getControl(\"searchOpportunities\").assertAttribute(\"class\", customFS.get(\"selected\"), true);\n\n\t\t\t// Verfiy that Global search bar should include Icons of Contacts, Accounts and Opportunities \n\t\t\tmodulesIconCtrl.getChildElement(\"span\", \"css\", \".label-\" + sugar().accounts.moduleNamePlural).assertExists(true);\n\t\t\tmodulesIconCtrl.getChildElement(\"span\", \"css\", \".label-\" + sugar().contacts.moduleNamePlural).assertExists(true);\n\t\t\tmodulesIconCtrl.getChildElement(\"span\", \"css\", \".label-\" + sugar().opportunities.moduleNamePlural).assertExists(true);\n\n\t\t\t// Verify that search results for \"search record\" is displayed based on Contacts, Accounts and Opportunities\n\t\t\tfirstSearchedCtrl.assertContains(searchRecord.get(i), true);\n\t\t}\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "@CSIContractTest( Project.SWA_MOPP )\n @Test\n public void testSearch_Success() throws Exception {\n TaskDefinitionSearchParameters taskDefSearchParams = new TaskDefinitionSearchParameters();\n\n taskDefSearchParams.setClassCode( taskDef1.getClassCd() );\n taskDefSearchParams.setSubclassCode( taskDef1.getSubclassCd() );\n taskDefSearchParams.setStatusCodes( Arrays.asList( taskDef1.getStatusCd() ) );\n taskDefSearchParams.setAssemblyId( taskDef1.getAssmblId() );\n\n List<TaskDefinition> results = testTaskDefinitionResource.search( taskDefSearchParams );\n\n assertEquals( \"Unexpected number of results returned: \", 1, results.size() );\n\n assertTaskDefinition( taskDef1, results.get( 0 ) );\n }", "@Test\n public void given_devEnvironmentWithParamKeyword_when_callEndPointShowStudentByKeyWord_then_returnStatus200AndStudentList() throws Exception {\n when(studentRepo.findAll(any(Specification.class))).thenReturn(Collections.singletonList(STUDENT));\n\n RequestBuilder request = MockMvcRequestBuilders\n .get(\"/students/search\")\n .accept(MediaType.APPLICATION_JSON)\n .param(\"keyword\", \"John\");\n\n mockMvc.perform(request)\n .andExpect(status().isOk())\n .andExpect(content().json(gson.toJson(Collections.singletonList(STUDENT)), true))\n .andDo(MockMvcResultHandlers.print())\n .andReturn();\n }", "@Test\n public void testFirstSearchTestCase() throws Exception {\n mockMvc.perform(post(\"/search/results\")\n .param(\"searchType\", \"location\")\n .param(\"searchTerm\", \"new york\"))\n .andExpect(status().isOk())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][1]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][2]\").doesNotExist());\n }", "@Test\r\n\tpublic void findAllTeams() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllTeams \r\n\t\tInteger startResult = 0;\r\n\t\tInteger maxRows = 0;\r\n\t\tList<Team> response = null;\r\n\t\tresponse = service.findAllTeams(startResult, maxRows);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: findAllTeams\r\n\t}", "@Action\r\n public String search() {\n ServiceFunctions.clearCache();\r\n\r\n if (isAdmin()) {\r\n return adminSearch();\r\n }\r\n\r\n return publicSearch();\r\n }", "@Test\n\tpublic void GlobalSearch_28668_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\tFieldSet customFS = testData.get(testName).get(0);\n\n\t\t// Define Controls\n\t\tVoodooControl globalSearchCtrl = sugar().navbar.getControl(\"globalSearch\");\n\t\tVoodooControl searchResultsCtrl = sugar().navbar.search.getControl(\"searchResults\");\n\n\t\t// Type one character in the quick search bar\n\t\tglobalSearchCtrl.click();\n\t\tglobalSearchCtrl.set(sugar().accounts.getDefaultData().get(\"name\").substring(0, 1));\n\n\t\t// Type second character in the quick search bar\n\t\tglobalSearchCtrl.set(sugar().accounts.getDefaultData().get(\"name\").substring(0, 2));\n\n\t\t// The quick search results displays \"Searching...\" before results are retrieved\n\t\tsearchResultsCtrl.assertContains(customFS.get(\"searching\"), true);\n\n\t\t// Make sure it does NOT display \"No results were found.\" before results are retrieved\n\t\tsearchResultsCtrl.assertContains(customFS.get(\"noResult\"), false);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "@Test\n\tpublic void Teams_26076_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\tsugar().documents.navToListView();\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\n\t\t// search the record to update team \n\t\t// TODO: VOOD-975\n\t\tsearchBtnCtrl = new VoodooControl(\"input\", \"id\", \"search_form_submit\");\n\t\tVoodooControl nameBasic = new VoodooControl(\"input\", \"id\", \"document_name_basic\");\n\t\tnameBasic.set(documentData.get(0).get(\"documentName\"));\n\t\tsearchBtnCtrl.click();\n\t\tVoodooUtils.focusDefault();\n\n\t\t// update the team for the searched record\n\t\tsugar().documents.listView.checkRecord(1);\n\t\tsugar().documents.listView.openActionDropdown();\n\t\tsugar().documents.listView.massUpdate();\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\t// TODO: VOOD-768, VOOD-1160\n\t\tnew VoodooControl(\"button\", \"css\", \"#MassUpdate_team_name_table button.button.firstChild\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusWindow(1);\n\t\tnew VoodooControl(\"input\", \"id\", \"massall\").click();\n\t\tnew VoodooControl(\"input\", \"id\", \"search_form_select\").click();\n\t\tVoodooUtils.focusWindow(0);\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tnew VoodooControl(\"input\", \"id\", \"update_button\").click();\n\t\tVoodooUtils.acceptDialog();\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusDefault();\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\n\t\t// clear the search\n\t\tnameBasic.set(\"\");\n\t\tsearchBtnCtrl.click();\n\n\t\t// TODO: VOOD-975\n\t\t// Go to advance search \n\t\tnew VoodooControl(\"a\", \"id\", \"advanced_search_link\").click();\n\t\tVoodooUtils.waitForReady();\n\n\t\t// TODO: VOOD-1162\n\t\tVoodooControl teamCtrl= new VoodooControl(\"input\", \"css\", \"#search_form_team_name_advanced_table .yui-ac-input\");\n\t\tVoodooControl selectCtrl= new VoodooControl(\"li\", \"css\", \"#search_form_team_name_advanced_table ul li:nth-child(1)\");\n\t\tVoodooControl searchTypeCtrl = new VoodooControl(\"input\", \"css\", \"#team_name_advanced_type[value='all']\");\n\t\tsearchCtrl = new VoodooControl(\"input\", \"id\", \"search_form_submit_advanced\");\n\t\tVoodooControl docListCtrl = new VoodooControl(\"td\", \"css\", \"#MassUpdate > table\");\n\n\t\t// input team i.e East\n\t\tFieldSet teamData = testData.get(testName).get(0);\n\t\tteamCtrl.set(teamData.get(\"teamName\"));\n\t\t// search and select team \n\t\tselectCtrl.click();\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Select a radio button below the team id (i.e. At least)\n\t\tsearchTypeCtrl.click();\n\n\t\t// click search\n\t\tsearchCtrl.click();\n\n\t\t// Assert record with searched team id (team1) in the list \n\t\tdocListCtrl.assertContains(documentData.get(0).get(\"documentName\"), true);\n\n\t\t// search record for default team i.e Global\n\t\tteamCtrl.set(teamData.get(\"defaultTeam\"));\n\t\t// select team\n\t\tselectCtrl.click();\n\t\tVoodooUtils.waitForReady();\n\n\t\t// click the search button\n\t\tsearchCtrl.click();\n\n\t\t// Assert list record for searched team id \n\t\tfor (int i = 0 ; i < documentData.size() ; i++) {\n\t\t\tdocListCtrl.assertContains(documentData.get(i).get(\"documentName\"), true);\n\t\t}\n\n\t\t// Add Team\n\t\tnew VoodooControl(\"button\", \"css\", \"#search_form_team_name_advanced_table button[name='teamAdd']\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tnew VoodooControl(\"input\", \"css\", \"#search_form_team_name_advanced_table tr:nth-child(3) td .yui-ac-input\").set(teamData.get(\"teamName\"));\n\t\tVoodooUtils.waitForReady();\n\t\tnew VoodooControl(\"li\", \"css\", \"#search_form_team_name_advanced_table tbody tr:nth-child(3) ul li:nth-child(1)\").click();\n\n\t\t// click the search button\n\t\tsearchCtrl.click();\n\n\t\t// Assert record with searched teams i.e. Global, East in the list \n\t\tdocListCtrl.assertContains(documentData.get(0).get(\"documentName\"), true);\n\t\tVoodooUtils.focusDefault();\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "@Test\n public void searchFindsPlayer() {\n Player jari = stats.search(\"Kurri\");\n assertEquals(jari.getName(), \"Kurri\");\n\n }", "private void search(ActionEvent x) {\n\t\tString text = this.searchText.getText();\n\t\tif (text.equals(\"\")) {\n\t\t\tupdate();\n\t\t\treturn;\n\t\t}\n\t\tboolean flag = false;\n\t\tfor (Project p : INSTANCE.getProjects()) {\n\t\t\tif (p.getName().indexOf(text) != -1) {\n\t\t\t\tif (!flag) {\n\t\t\t\t\tthis.projects.clear();\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t\tthis.projects.addElement(p);\n\t\t\t}\n\t\t}\n\n\t\tif (!flag) {\n\t\t\tINSTANCE.getCurrentUser().sendNotification(new Notification((Object) INSTANCE, \"No results\"));\n\t\t\tthis.searchText.setText(\"\");\n\t\t}\n\t}", "@Test\n public void testThirdSearchTestCase() throws Exception {\n mockMvc.perform(post(\"/search/results\")\n .param(\"searchType\", \"employer\")\n .param(\"searchTerm\", \"equifax\"))\n .andExpect(status().isOk())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][1]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][2]\").doesNotExist());\n }", "private void search(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.clearEditText(0);\n solo.typeText(0, searchTerm);\n }", "Search getSearch();", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "@Test\n public void testSearch() throws Exception {\n LocalLandCharge localLandChargeOne = TestUtils.buildLocalLandCharge();\n localLandChargeOne.getItem().setChargeCreationDate(new Date(1));\n\n LocalLandCharge localLandChargeTwo = TestUtils.buildLocalLandCharge();\n localLandChargeTwo.getItem().setChargeCreationDate(new Date(3));\n\n LocalLandCharge localLandChargeThree = TestUtils.buildLocalLandCharge();\n localLandChargeThree.getItem().setChargeCreationDate(new Date(2));\n\n LocalLandCharge lightObstructionNotice = TestUtils.buildLONCharge();\n localLandChargeTwo.getItem().setChargeCreationDate(new Date(4));\n\n testGenerate(Lists.newArrayList(localLandChargeOne, localLandChargeTwo, localLandChargeThree,\n lightObstructionNotice));\n }", "@Test\n public void testFourthSearchTestCase() throws Exception {\n mockMvc.perform(post(\"/search/results\")\n .param(\"searchType\", \"all\")\n .param(\"searchTerm\", \"ruby\"))\n .andExpect(status().isOk())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][1]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][2]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][3]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][4]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][5]\").doesNotExist());\n }", "@Test\n\tpublic void testroommatePreferencesSearchDisplayForm() {\n\t\t//mocking the requests and session attributes\n\t\twhen(request.getSession()).thenReturn(session);\n\t\twhen(session.getAttribute(\"userName\")).thenReturn(\"Virat Kohli\");\n\t\twhen(session.getAttribute(\"userRole\")).thenReturn(\"CUSTOMER\");\n\t\twhen(session.getAttribute(\"userEmail\")).thenReturn(\"[email protected]\");\n\t\t\n\t\twhen(userService.findUserByEmail(\"[email protected]\")).thenReturn(user);\n\t\twhen(roommatePreferencesService.findRoommatePreferencesById(1)).thenReturn(mockedroommatePreferences) ;\n\t\twhen(roommatePreferencesService.getMatchedPreferences(mockedroommatePreferences,\"newRoommateSearch\")).thenReturn(mockedMatchedPreferences);\n\t\t\n\t\tModelAndView model = new ModelAndView();\n\t\tmodel = roommatePreferencesController.roommatePreferencesSearchDisplayForm(request);\n\t\t//assert Statements\n\t\tassertTrue(model.getModel().containsKey(\"matchedResults\"));\n\t\tassertEquals(\"user/roommatePreferencesSearch\", model.getViewName());\n\t}", "@Override\n\tpublic void search() {\n\t}", "@ActionTrigger(action=\"KEY-ENTQRY\", function=KeyFunction.SEARCH)\n\t\tpublic void spriden_Search()\n\t\t{\n\t\t\t\n\t\t\t\texecuteAction(\"QUERY\");\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t}", "@Test\n public void testFifthSearchTestCase() throws Exception {\n mockMvc.perform(post(\"/search/results\")\n .param(\"searchType\", \"skill\")\n .param(\"searchTerm\", \"ruby\"))\n .andExpect(status().isOk())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][1]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][2]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][3]\").exists())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][4]\").doesNotExist());\n }", "@Test\n public void testsearch(){\n ArrayList<Booking> bookings =bookingHelper.getBookingList();\n bookingHelper.addBooking(booking1);\n bookingHelper.addBooking(booking2);\n\n //bookingHelper.search(\"0000002\");\n\n\n\n// assertEquals(bookingHelper.searchGuestID(1), booking1);\n// assertEquals(bookingHelper.searchGuestID(2), booking2);\n assertNull(bookingHelper.search(-1));\n assertEquals(bookingHelper.searchBookingId(booking1.getBookingID()), booking1);\n }", "abstract public void search();", "@Override\r\n\tpublic void search() {\n\r\n\t}", "@Test\n public void testSecondSearchTestCase() throws Exception {\n mockMvc.perform(post(\"/search/results\")\n .param(\"searchType\", \"location\")\n .param(\"searchTerm\", \"chicago\"))\n .andExpect(status().isOk())\n .andExpect(xpath(\"//table[contains(@class, 'job-listing')][1]\").doesNotExist());\n }", "@FXML\r\n private void search(){\n \r\n String s = tfSearch.getText().trim(); \r\n String type = cmbType.getSelectionModel().getSelectedItem();\r\n String col = cmbFilterBy.getSelectionModel().getSelectedItem();\r\n \r\n /**\r\n * Column Filters\r\n * \r\n */\r\n \r\n \r\n if(!s.isEmpty()){\r\n if(!chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%' AND status<>'active'\", tblTrainingList);\r\n }\r\n\r\n if(chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%'\", tblTrainingList);\r\n } \r\n } \r\n }", "@Test\r\n public void testSearchList() throws Exception {\r\n LOG.info(\"searchList\");\r\n String query = \"watch\";\r\n int page = 0;\r\n List result = tmdb.searchList(query, LANGUAGE_DEFAULT, page);\r\n assertFalse(\"No lists found\", result == null);\r\n assertTrue(\"No lists found\", result.size() > 0);\r\n }", "@Test\n\tpublic void VerifyTheSearchResult() {\n\t\tString searchString = \"The Choice\";\n\t\thomePage.search(searchString);\n\t\tString searchTitle = resultPage.getSearchResultTitle();\n\t\tAssert.assertTrue(searchTitle.contains(searchString));\n\t}", "public void testSearchRules() throws Exception {\n Project project = new Project();\r\n \r\n DateFormatSymbols symbols = new DateFormatSymbols(Locale.US);\r\n \r\n for (int i = 0; i < 12; i++) {\r\n \r\n String month = symbols.getMonths()[i];\r\n String shortMonth = symbols.getShortMonths()[i];\r\n \r\n // Basic project info\r\n project.setId(i);\r\n project.setCategoryId(1);\r\n project.setAllowGuests(true);\r\n project.setMembershipRequired(false);\r\n project.setApproved(true);\r\n project.setClosed(false);\r\n project.setPortal(false);\r\n \r\n // Unique Title\r\n project.setTitle(month + \" test project\");\r\n project.setShortDescription(month + \" description word\");\r\n project.setKeywords(shortMonth);\r\n \r\n // Unique Location\r\n project.setCity(\"Virginia Beach\");\r\n project.setState(\"VA\");\r\n project.setPostalCode(\"234\" + String.valueOf(50 + i));\r\n \r\n // Random Rating for now\r\n project.setRatingCount(i + 1);\r\n project.setRatingValue(project.getRatingCount() * StringUtils.rand(1, 5));\r\n project.setRatingAverage(project.getRatingValue() / project.getRatingCount());\r\n \r\n // Index it\r\n ProjectIndexer indexer = new ProjectIndexer();\r\n indexer.add(snowballWriter, project, true);\r\n }\r\n \r\n QueryParser parser = new QueryParser(\"contents\", snowballAnalyzer);\r\n \r\n {\r\n // Make sure a single matching term yields a single hit\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0]);\r\n search.setLocation(\"Virginia Beach\");\r\n assertNotNull(search.getQuery());\r\n assertNotNull(search.getLocation());\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"january\"^20 OR january^15 OR january*^4) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 1);\r\n }\r\n \r\n {\r\n // Make sure a single matching term stem yields a single hit\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0] + \"'s\");\r\n search.setLocation(\"Virginia Beach\");\r\n assertNotNull(search.getQuery());\r\n assertNotNull(search.getLocation());\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"january's\"^20 OR january's^15 OR january's*^4) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 1);\r\n }\r\n \r\n {\r\n // Make sure multiple matching words yield two hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0] + \" \" + symbols.getMonths()[1]);\r\n search.setLocation(\"Virginia Beach\");\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"january february\"^20 OR january^15 OR february^14 OR january*^4 OR february*^3) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 2);\r\n }\r\n \r\n {\r\n // Make sure wilcards yield multiple hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(\"j\");\r\n search.setLocation(\"Virginia Beach\");\r\n search.parseQuery();\r\n assertTrue(search.isValid());\r\n \r\n // Look for data with a \"j\" for comparison\r\n int jCount = 0;\r\n for (int i = 0; i < symbols.getMonths().length; i++) {\r\n if (symbols.getMonths()[i].toLowerCase().indexOf(\"j\") > -1 ||\r\n symbols.getShortMonths()[i].toLowerCase().indexOf(\"j\") > -1) {\r\n ++jCount;\r\n }\r\n }\r\n assertTrue(jCount > 0);\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n assertNotNull(queryString);\r\n \r\n // (approved:1)\r\n // AND (guests:1)\r\n // AND (closed:0)\r\n // AND (website:0)\r\n // AND (\"j\"^20 OR j^15 OR j*^4) AND (location:(\"virginia beach\"^30))\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == jCount);\r\n }\r\n \r\n {\r\n // Make sure alternate locations do not yield any hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(symbols.getMonths()[0]);\r\n search.setLocation(\"Norfolk\");\r\n search.parseQuery();\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 0);\r\n }\r\n \r\n {\r\n // Make sure locations as query terms do not yield any hits\r\n SearchBean search = new SearchBean();\r\n search.setQuery(\"Virginia Beach\");\r\n search.setLocation(\"Virginia Beach\");\r\n search.parseQuery();\r\n \r\n String queryString = SearchUtils.generateProjectQueryString(search, UserUtils.createGuestUser().getId(), -1, null);\r\n \r\n Query query = parser.parse(queryString);\r\n Hits hits = getSnowballSearcher().search(query);\r\n assertTrue(hits.length() == 0);\r\n }\r\n }", "@Ignore\n @Test\n public void testSearchDocument() {\n System.out.println(\"searchDocument\");\n Client client = null;\n String indexName = \"\";\n String queryStr = \"\";\n String filterStr = \"\";\n int maxExpectedHits = 0;\n List expResult = null;\n // List result = ESUtil.searchDocument(client, indexName, queryStr, filterStr, maxExpectedHits);\n // assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n\tvoid findDoctorTest() throws Exception {\n\t\tList<DoctorDetail> doctorDetail = new ArrayList<>();\n\t\tDoctorDetail doctorfind = new DoctorDetail();\n\t\tdoctorfind.setSpecialist(\"cardioc\");\n\t\tdoReturn(doctorDetail).when(doctorServiceImplementation).doctors(doctorfind.getSpecialist());\n\t\tmockMvc.perform(get(\"/doctor/find?specialist=/{specialist}\", \"cardioc\")).andExpect(status().isOk());\n\t}", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "public void testFindByKeyword() {\n }", "@Test\n @Transactional\n void searchSectie() throws Exception {\n sectieRepository.saveAndFlush(sectie);\n when(mockSectieSearchRepository.search(queryStringQuery(\"id:\" + sectie.getId()), PageRequest.of(0, 20)))\n .thenReturn(new PageImpl<>(Collections.singletonList(sectie), PageRequest.of(0, 1), 1));\n\n // Search the sectie\n restSectieMockMvc\n .perform(get(ENTITY_SEARCH_API_URL + \"?query=id:\" + sectie.getId()))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(sectie.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].sectieId\").value(hasItem(DEFAULT_SECTIE_ID.intValue())))\n .andExpect(jsonPath(\"$.[*].nume\").value(hasItem(DEFAULT_NUME)))\n .andExpect(jsonPath(\"$.[*].sefId\").value(hasItem(DEFAULT_SEF_ID)))\n .andExpect(jsonPath(\"$.[*].tag\").value(hasItem(DEFAULT_TAG.toString())))\n .andExpect(jsonPath(\"$.[*].nrPaturi\").value(hasItem(DEFAULT_NR_PATURI)));\n }", "@Test(enabled = true, timeOut = 100000, groups = {\"search\", \"home\"})\n public void searchPackage() throws IOException {\n logger.debug(\"Page is initialised.\");\n logger.trace(\"Searching City Name.\");\n// assertThat(driver.getCurrentUrl(), containsString(\"cleartrip\"));\n// home.search(typeofSearch, fromPlace, toPlace, date, numberOfAdults);\n }", "private void searchFunction() {\n\t\t\r\n\t}", "public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\n }", "@FXML\n private void btnSearchClick() {\n\n // Check if search field isn't empty\n if (!txtSearch.getText().equals(\"\")) {\n\n // Display the progress indicator\n resultsProgressIndicator.setVisible(true);\n\n // Get query results\n MovieAPIImpl movieAPIImpl = new MovieAPIImpl();\n movieAPIImpl.getMovieList(Constants.SERVICE_API_KEY, txtSearch.getText(), this);\n }\n }", "@Test\r\n\tpublic void testSearchForAllModelElement() throws Exception { testSearchForAllModelElement$(); }", "@Test\n public void executeEmptySearch_noResults() {\n emptySearchFields();\n\n //Even with empty fields, the search should be created and executed\n presenter.doSearch();\n\n //However, with all the search fields empty no results will be found\n Assert.assertFalse(presenter.hasNextResult());\n }", "public SearchResponse search(SearchRequest request) throws SearchServiceException;", "@Test\n\tpublic void testShowResult() {\n\t\tConfigurationManager config = new ConfigurationManager();\n\t\tInvertedIndex index = new InvertedIndex();\n\t\tFileManager manager = new FileManager(config.getConfig().getFileName(), index);\n\t\tHashMap<String, String> parameters = new HashMap<String, String>();\n\t\tcheckFindHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"asin\", \"ABCD\");\n\t\tcheckFindHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"asin\", \"B00002243X\");\n\t\tcheckFindHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 10);\n\t\tcheckReviewSearchHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"query\", \"ASDAJKSDJHKASJK\");\n\t\tcheckReviewSearchHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 0);\n\t\tparameters.put(\"query\", \"jumpers\");\n\t\tcheckReviewSearchHandler(config.getConfig(), index, new RequestObject(\"\", \"\", parameters), 8);\n\t}", "List<SearchResult> search(SearchQuery searchQuery);", "void search();", "void search();", "@Test\n public void Can_Search_Tests() throws InterruptedException {\n PostCreator.CreatePost();\n\n // Go to list posts - commented this because now the searchForPost() checks and goes if necessary\n // ListPostsPage.goTo(PostType.Posts);\n\n // Search for post\n ListPostsPage.searchForPost(PostCreator.getPreviousTitle());\n\n // Check that post shows up in results\n Assert.assertTrue(ListPostsPage.DoesPostExistWithTitle(PostCreator.getPreviousTitle()));\n }", "void searchProbed (Search search);", "SearchResponse search(SearchRequest searchRequest) throws IOException;", "@Test\n public void searchForCourse(){\n UoMSearchPage page = new UoMSearchPage(driver);\n page.get();\n page.searchForStudies(\"Software Development\");\n assertTrue(page.isSoftwareDevelopmentComponentPresent());\n }", "public void testFindByTitulo() {\n }", "@Test\n\tpublic void GlobalSearch_28766_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Inserting a single char 'A' in the Global Search bar\n\t\tVoodooControl searchBox = sugar().navbar.getControl(\"globalSearch\");\n\t\tsearchBox.set(sugar().accounts.getDefaultData().get(\"name\").substring(0,1));\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Clicking on 'View All Results' in Quick Search bar\n\t\tVoodooControl viewAllResults = sugar().navbar.search.getControl(\"viewAllResults\");\n\t\tviewAllResults.click();\n\n\t\t// Verifying the user is navigated to Global search page \n\t\tFieldSet fs = testData.get(testName).get(0);\n\t\tsugar().globalSearch.getControl(\"headerpaneTitle\").assertContains(fs.get(\"searchResultPage\"), true);\n\n\t\t// Inserting a single char 'r' in the Global Search bar\n\t\tsearchBox.set(sugar().accounts.getDefaultData().get(\"name\").substring(6,7));\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Clicking on 'View All Results' in Quick Search bar\n\t\tviewAllResults.click();\n\n\t\t// Verify the Quick Search pane dismiss after clicking on 'View All Results'\n\t\tsugar().navbar.search.getControl(\"searchResults\").assertVisible(false);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter.setSearchText(view.getSearchContent().getText());\n forwardToCurrentView(filter);\n } else {\n eventBus.showPopupNoSearchCriteria();\n }\n }", "private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }", "@Test\n public void saveSearch_withExecutedSearch(){\n fillSearchFields();\n int accountID = new AccountDAO().findAccount(\"[email protected]\").getId();\n int savedSearchesSize = new AccountDAO().findAccount(accountID).getStoredSearches().size();\n\n presenter.doSearch();\n presenter.saveSearch();\n Assert.assertEquals(savedSearchesSize + 1, new AccountDAO().findAccount(accountID).getStoredSearches().size());\n }", "List<ResultDTO> search(String query);", "private void search() {\n if (dateFind.getValue() == null) {\n dateFind.setValue(LocalDate.now().minusDays(DEFAULT_PERIOD));\n }\n Long days = ChronoUnit.DAYS.between(dateFind.getValue(), LocalDate.now());\n final List<Project> findProject = ServiceFactory.getProjectService().getFindProject(days, comboProject.getValue());\n observableProjects.clear();\n observableProjects.addAll(findProject);\n table.setItems(observableProjects);\n }", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "@Test\n public void testSearchFilter() {\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n \n BridgeRequest request = new BridgeRequest();\n request.setStructure(\"user\");\n request.setFields(fields);\n request.setQuery(\"(samaccountname=*)\");\n \n RecordList list = null;\n BridgeError unexpectedError = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n \n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }", "@Test\n public void searchPageTest (){\n searchPage=new SearchPage();\n\n // loginPage.goToLoginPage();\n // loginPage.login();\n searchPage.searchKeysFromHeader(\"İphone\");\n searchPage.searchResultPage(\"İphone\");\n\n}", "@Test public void shouldReturnTheToolIntTheListWhenSearchedByItsName() {\n\t\tgiven.imInTheMainPage();\n\t\twhen.searchByAToolName(TOOLS.ADPWEB.toolName());\n\t\tthen.mySearchWillReturnTheTools(TOOLS.ADPWEB);\n\t}", "@Test\n\tpublic void testSearch_2()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tString portletId = \"\";\n\t\tlong groupId = 0L;\n\t\tlong userId = 1L;\n\t\tlong[] repositoryIds = new long[] {0L};\n\t\tString keywords = \"\";\n\t\tint start = 1;\n\t\tint end = 1;\n\n\t\tHits result = fixture.search(companyId, portletId, groupId, userId, repositoryIds, keywords, start, end);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "@Test\r\n\tpublic void flightSearch() {\r\n\t\tnewFlightSearch.setDepartureTime(new Date(2016-1900,7+1,15));\r\n\t\tnewFlightSearch.setDepartureLoc(\"Akureyri\");\r\n\t\tnewFlightSearch.setArrivalLoc(\"Reykjavík\");\r\n\t\tnewFlightSearch.setPriceRange(new int[]{10000,20000});\r\n\t\tnewFlightSearch.setReturnTrip(false);\r\n\t\tnewFlightSearch.setNumSeats(1);\r\n\t\tnewFlightSearch.setSeatClass(\"Economy\");\r\n\t\tList<FlightAbstract> flightResults = SearchEngine.flightSearch(newFlightSearch);\r\n\t\tif (flightResults.size()>0) {\r\n\t\t\tfor (int i=0; i<flightResults.size(); i++) {\r\n\t\t\t\tassertThat(flightResults.get(i), instanceOf(FlightExtend.class));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tassertEquals(flightResults.size(),0);\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testShowInterviewer() throws Exception {\r\n\r\n\t\tList<ShowInterviwerDTO> interviewerList = new ArrayList<ShowInterviwerDTO>();\r\n\t\tinterviewerList.add(getIntervieerDTO());\r\n\t\twhen(interviewerService.getAllInterviewer()).thenReturn(interviewerList);\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/showinterviewer\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\r\n\t}", "@Test\n public void testSearch3() throws Exception\n {\n unauthenticate();\n Assert.isTrue(actorService.search(\"NONEXISTENTUSER\").isEmpty());\n }", "@Test\r\n public void testSearchPeople() throws MovieDbException {\r\n LOG.info(\"searchPeople\");\r\n String personName = \"Bruce Willis\";\r\n boolean includeAdult = false;\r\n List<Person> result = tmdb.searchPeople(personName, includeAdult, 0);\r\n assertTrue(\"Couldn't find the person\", result.size() > 0);\r\n }", "@Test\n\tpublic void testSearch_1()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tString portletId = \"\";\n\t\tlong groupId = 1L;\n\t\tlong userId = 1L;\n\t\tlong[] repositoryIds = new long[] {0L};\n\t\tString keywords = \"\";\n\t\tint start = 1;\n\t\tint end = 1;\n\n\t\tHits result = fixture.search(companyId, portletId, groupId, userId, repositoryIds, keywords, start, end);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testSearch_3()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tString portletId = \"\";\n\t\tlong groupId = 0L;\n\t\tlong userId = 1L;\n\t\tlong[] repositoryIds = new long[] {0L};\n\t\tString keywords = \"\";\n\t\tint start = 1;\n\t\tint end = 1;\n\n\t\tHits result = fixture.search(companyId, portletId, groupId, userId, repositoryIds, keywords, start, end);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "@Test\n public void getIndex(){\n\n }", "@Test\r\n\tvoid testSearch() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.search(10);\r\n\t\tassertEquals(1, output);\r\n\t}", "public void doGet(HttpServletRequest req, HttpServletResponse resp)throws IOException {\n\n try {\n\n logRequest(req);\n\n if(!validateSession(req, resp))\n return;\n\n if(blockedSmokey(sessionManagement, resp))\n return;\n\n setLoggerByParameters(req);\n\n\n Formatter formatter = getFormatFromParameters(req);\n\n\n DBKeyInterface _project = getMandatoryKey(\"project\", req);\n Project project = new Project(new LookupByKey(_project));\n\n if(!mandatoryObjectExists(project, resp))\n return;\n\n Boolean instant = getOptionalBoolean(\"instant\", req, false); // Instant search or not\n String searchText = getMandatoryString(\"text\", req);\n\n //TODO: Only for test: REMOVE later\n if(searchText.startsWith(\"!\")){\n\n searchText = searchText.substring( 1 );\n instant = true;\n }\n\n PukkaLogger.log(PukkaLogger.Level.INFO, \"Searching for: \" + searchText);\n\n // Now select the appropriate search manager and retrieve the results\n\n if(instant){\n\n PortalUser user = sessionManagement.getUser();\n SearchManager2 filter = new SearchManager2(project, user);\n JSONArray resultJSON = filter.search(searchText, defaultLanguage);\n JSONObject json = new JSONObject().put(\"fragments\", resultJSON);\n\n sendJSONResponse(json, formatter, resp);\n\n }\n else{\n\n SearchManager filter = new SearchManager();\n JSONObject json = filter.getMatchJson(searchText, project, sessionManagement);\n\n sendJSONResponse(json, formatter, resp);\n\n }\n\n\n } catch (BackOfficeException e) {\n\n PukkaLogger.log( e ,\"Error (Get) in Search Servlet\");\n returnError(e.narration, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, resp);\n resp.flushBuffer();\n\n } catch (Exception e) {\n\n PukkaLogger.log( e , \"Error (Get) in Search Servlet\");\n returnError(\"Internal Error\", HttpServletResponse.SC_INTERNAL_SERVER_ERROR, resp);\n resp.flushBuffer();\n\n }\n\n\n }", "@Test\n public void apiKundenViewGetSearchSearchStrGetTest() throws ApiException {\n String searchStr = null;\n List<CmplxKunden> response = api.apiKundenViewGetSearchSearchStrGet(searchStr);\n\n // TODO: test validations\n }", "@Test\n public void testFindEntitiesSearch() {\n MouldingProcessSearch search = new MouldingProcessSearch();\n search.setSignedOffBy(\"John Malone\");\n DAO<MouldingProcess> mpDAO = new DAO<MouldingProcess>(MouldingProcess.class);\n\n SearchProcessSheetAction action = new SearchProcessSheetAction(mpDAO);\n\n try {\n List<MouldingProcess> result = action.search(search);\n assertNotNull(result);\n assertEquals(result.size(), 4);\n } catch (DAOException de) {\n de.printStackTrace();\n fail(\"DAOException thrown\");\n }\n\n search.setMachineNo(\"Fanuc 1\");\n\n try {\n List<MouldingProcess> result = action.search(search);\n assertNotNull(result);\n assertEquals(result.size(), 1);\n } catch (DAOException de) {\n de.printStackTrace();\n fail(\"DAOException thrown\");\n }\n\n // Reset Search\n search = new MouldingProcessSearch();\n search.setStartDate(java.sql.Date.valueOf(\"2013-05-11\"));\n try {\n List<MouldingProcess> result = action.search(search);\n assertNotNull(result);\n assertEquals(result.size(), 1);\n } catch (DAOException de) {\n de.printStackTrace();\n fail(\"DAOException thrown\");\n }\n\n search.setStartDate(java.sql.Date.valueOf(\"2000-01-01\"));\n search.setEndDate(java.sql.Date.valueOf(\"2014-01-01\"));\n try {\n List<MouldingProcess> result = action.search(search);\n assertNotNull(result);\n assertEquals(result.size(), 3);\n } catch (DAOException de) {\n de.printStackTrace();\n fail(\"DAOException thrown\");\n }\n\n search.setSignedOffBy(\"John Malone\");\n try {\n List<MouldingProcess> result = action.search(search);\n // assertNotNull(result);\n // assertEquals(result.size(), 3);\n } catch (DAOException de) {\n de.printStackTrace();\n fail(\"DAOException thrown\");\n }\n\n }", "void compareSearch();", "@Test\n\tpublic void testSearch_5()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tString portletId = \"\";\n\t\tlong groupId = 0L;\n\t\tlong userId = 1L;\n\t\tlong[] repositoryIds = new long[] {0L};\n\t\tString keywords = \"\";\n\t\tint start = 1;\n\t\tint end = 1;\n\n\t\tHits result = fixture.search(companyId, portletId, groupId, userId, repositoryIds, keywords, start, end);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "@Test\n @Transactional\n void searchDepartment() throws Exception {\n departmentRepository.saveAndFlush(department);\n when(mockDepartmentSearchRepository.search(queryStringQuery(\"id:\" + department.getId())))\n .thenReturn(Collections.singletonList(department));\n\n // Search the department\n restDepartmentMockMvc\n .perform(get(ENTITY_SEARCH_API_URL + \"?query=id:\" + department.getId()))\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))\n .andExpect(jsonPath(\"$.[*].id\").value(hasItem(department.getId().intValue())))\n .andExpect(jsonPath(\"$.[*].departmentName\").value(hasItem(DEFAULT_DEPARTMENT_NAME)));\n }", "@Test\n public void executeEmptySearch() {\n emptySearchFields();\n\n int counterBefore = AccountDAO.getSearchID();\n\n //Even with empty fields, the search should be created and executed\n presenter.doSearch();\n Assert.assertEquals(counterBefore + 1, AccountDAO.getSearchID());\n }", "@In String search();", "@Test\n public void enterQueryString_showResults() {\n onView(withId(R.id.page_change_web_search_view)).check(matches(not(isDisplayed())));\n // Check recycler view is not visible at beginning\n onView(withId(R.id.web_search_list)).check(matches(not(isDisplayed())));\n\n // Enter search string and close the keyboard\n onView(allOf(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE),\n isAssignableFrom(EditText.class))).perform(typeText(mSearchQueryString), pressKey(66), closeSoftKeyboard());\n\n // Check if recycler view is visible\n onView(withId(R.id.web_search_list)).check(matches(isDisplayed()));\n // Check if page change view is visible\n onView(withId(R.id.page_change_web_search_view)).check(matches(isDisplayed()));\n }", "@Test(dependsOnMethods = {\"login\"})\n\tpublic void searchItem() {\n\t\thome.searchItem(data.readData(\"searchItem\"));\n\t\t// generating random number from total search result display using random number generator\n\t\tint index=data.randomeNum(getElementsCount(By.id(home.selectItem)));\n\t\t// storing title and price of searched item from search screen to verify later\n\t\ttitle= home.getTitle(index);\n\t\tprice=home.getPrice(index);\n\t\telementByIndex(By.id(home.selectItem), index).click();\n\t\twaitForElement(By.xpath(item.review));\n\t\t//Scrolling till we see addtocart button\n\t\tscrollPage();\n\t\tboolean actual = elementDisplay(By.xpath(item.addToCar));\n\t\tAssert.assertEquals(actual, true,\"Add to cart button not display\");\n\t}", "@Test\r\n public void testSearchCompanies() throws MovieDbException {\r\n LOG.info(\"searchCompanies\");\r\n List<Company> results = tmdb.searchCompanies(COMPANY_NAME, 0);\r\n assertTrue(\"No company information found\", !results.isEmpty());\r\n }", "private Search() {}", "public void searchFlights();", "public void performSearch() {\n OASelect<QueryInfo> sel = getQueryInfoSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "public void SearchTutor() {\n\t\t\n\t}", "@Test\n\tpublic void testSearch_6()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tString portletId = \"\";\n\t\tlong groupId = 0L;\n\t\tlong userId = 1L;\n\t\tlong[] repositoryIds = new long[] {};\n\t\tString keywords = \"\";\n\t\tint start = 1;\n\t\tint end = 1;\n\n\t\tHits result = fixture.search(companyId, portletId, groupId, userId, repositoryIds, keywords, start, end);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "@Test\n\tpublic void testSearch_4()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tString portletId = \"\";\n\t\tlong groupId = 0L;\n\t\tlong userId = 1L;\n\t\tlong[] repositoryIds = new long[] {0L};\n\t\tString keywords = \"\";\n\t\tint start = 1;\n\t\tint end = 1;\n\n\t\tHits result = fixture.search(companyId, portletId, groupId, userId, repositoryIds, keywords, start, end);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}" ]
[ "0.6706348", "0.66748524", "0.66729426", "0.65635747", "0.6491511", "0.64683586", "0.64171505", "0.63414836", "0.63316846", "0.6315132", "0.6299962", "0.6263288", "0.62033653", "0.6193203", "0.61906236", "0.618668", "0.61483556", "0.6126367", "0.6053327", "0.6017835", "0.5985277", "0.5958402", "0.59485453", "0.5946423", "0.5939774", "0.59374124", "0.59358984", "0.59203804", "0.59171677", "0.5865249", "0.5856508", "0.5844927", "0.58416224", "0.58409375", "0.58348095", "0.5833179", "0.5832995", "0.5822765", "0.5784243", "0.57749504", "0.5770604", "0.57695717", "0.57488793", "0.57430696", "0.57336205", "0.5727367", "0.57227355", "0.57131165", "0.5708283", "0.5703797", "0.57008886", "0.5698496", "0.56917703", "0.56859344", "0.56844884", "0.56787777", "0.56733024", "0.56673044", "0.56673044", "0.566492", "0.5663213", "0.56600904", "0.566008", "0.56586146", "0.5635168", "0.56339616", "0.5630991", "0.56299555", "0.5626386", "0.5624797", "0.56212455", "0.56087774", "0.56085867", "0.5605842", "0.56037974", "0.5594275", "0.55910087", "0.5582266", "0.55803365", "0.5575006", "0.55728704", "0.55715865", "0.5569885", "0.5565131", "0.55646807", "0.55646276", "0.5562008", "0.55535936", "0.55491763", "0.55444705", "0.55409956", "0.5534977", "0.55148447", "0.550401", "0.55033207", "0.5501352", "0.55009305", "0.5499846", "0.5495469", "0.54939914" ]
0.7426656
0
Test of sendInvitation method, of class TeamController.
@Test public void testSendInvitation() { try{ System.out.println("sendInvitation"); String project_id = "3"; String inviteUserId = "6"; TeamController instance = new TeamController(); // ModelAndView expResult = null; instance.setProjectId(3); instance.setUserId(1); ModelAndView result = instance.sendInvitation(project_id, inviteUserId); // assertEquals("redirect:/projectMainView/3/team/show", result); ModelAndViewAssert.assertViewName(result, "redirect:/projectMainView/3/team/show"); }catch(Exception e) { // TODO review the generated test code and remove the default call to fail. fail("Send invitation failed"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testSendInvite()\n {\n System.out.println(\"sendInvite\");\n Account invite = null;\n Account sender = null;\n Party instance = null;\n instance.sendInvite(invite, sender);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public Conversation testSendChatInvitation() throws Exception\n {\n List<ParseUser> users = ASDPlaydateUser.getQuery().find();\n\n //get two results to use for test\n ASDPlaydateUser initiator = (ASDPlaydateUser) users.get(0);\n assertNotNull(initiator);\n\n ASDPlaydateUser receiver = (ASDPlaydateUser) users.get(1);\n assertNotNull(receiver);\n\n //start a test broadcast\n DateTime expireDate = DateTime.now().plusMinutes(60);\n ParseGeoPoint location = new ParseGeoPoint(TEST_LAT, TEST_LON);\n\n Broadcast broadcast = new Broadcast(initiator, location, expireDate);\n broadcast.save();\n\n Conversation convo = new Conversation(initiator, receiver, Conversation.Status.PENDING, broadcast.getExpireDate());\n convo.save();\n\n String lastID = convo.getObjectId();\n\n Conversation convoFromDb = getConversation(lastID);\n\n assertTrue(convoFromDb.getExpireDate().isAfterNow());\n assertTrue(convo.getExpireDate().equals(convoFromDb.getExpireDate()));\n assertTrue(convoFromDb.getInitiator().equals(convo.getInitiator()));\n assertTrue(convoFromDb.getReceiver().equals(convo.getReceiver()));\n return convo;\n }", "public void clickSendInvitationButton() throws Exception {\n\t\twdriver.findElement(By.xpath(locators.clickSendInvitationButton)).click();\n\t}", "void updateInvitationForSendingUser(Invitation invitation);", "public void testSendRequest() {\n\t\ttry {\n\t\t\tRequest invite = createTiInviteRequest(null, null, null);\n\t\t\tRequestEvent receivedRequestEvent = null;\n\t\t\tClientTransaction tran = null;\n\t\t\ttry {\n\t\t\t\ttran = tiSipProvider.getNewClientTransaction(invite);\n\t\t\t\teventCollector.collectRequestEvent(riSipProvider);\n\t\t\t\ttran.sendRequest();\n\t\t\t\twaitForMessage();\n\t\t\t\treceivedRequestEvent =\n\t\t\t\t\teventCollector.extractCollectedRequestEvent();\n\t\t\t\tassertNotNull(\n\t\t\t\t\t\"The sent request was not received by the RI!\",\n\t\t\t\t\treceivedRequestEvent);\n\t\t\t\tassertNotNull(\n\t\t\t\t\t\"The sent request was not received by the RI!\",\n\t\t\t\t\treceivedRequestEvent.getRequest());\n\t\t\t} catch (TransactionUnavailableException exc) {\n\t\t\t\tthrow new TiUnexpectedError(\n\t\t\t\t\t\"A TransactionUnavailableException was thrown while trying to \"\n\t\t\t\t\t\t+ \"create a new client transaction\",\n\t\t\t\t\texc);\n\t\t\t} catch (SipException exc) {\n\t\t\t\texc.printStackTrace();\n\t\t\t\tfail(\"The SipException was thrown while trying to send the request.\");\n\t\t\t} catch (TooManyListenersException exc) {\n\t\t\t\tthrow new TckInternalError(\n\t\t\t\t\t\"A TooManyListenersException was thrown while trying \"\n\t\t\t\t\t\t+ \"to add a SipListener to an RI SipProvider\",\n\t\t\t\t\texc);\n\t\t\t}\n\t\t} catch (Throwable exc) {\n\t\t\texc.printStackTrace();\n\t\t\tfail(exc.getClass().getName() + \": \" + exc.getMessage());\n\t\t}\n\n\t\tassertTrue(new Exception().getStackTrace()[0].toString(), true);\n\n\t}", "@RequestMapping(value = \"/accept/team/invitation/{invitationId}\", method = PUT)\n public LobbyTeam acceptTeamInvitation(@AuthenticationPrincipal UserSimpleDetails user,\n @PathVariable(\"invitationId\") String invitationId)\n throws TeamInvitationNotFoundException, TeamFullException, TeamNotFoundException {\n log.info(\"user {} accepts team invitation {}\", user.getIdentity(), invitationId);\n return lobbyService.acceptTeamInvitation(user.getProfileId(), invitationId);\n }", "Task<?> addInvitationForSendingUser(Invitation invitation);", "public void acceptInvitation(Player player) {\n if (invitations.containsKey(player)) {\n Player p = invitations.remove(player);\n List<Player> team = teams.get(p);\n team.add(player);\n teamMessage(p, ChatColor.BLUE + player.getName() + \" has joined the team!\");\n } else {\n player.sendMessage(ChatColor.RED + \"You were not invited to any teams! Forever alone..\");\n }\n }", "@Test\n public void testSend() throws Exception {\n//TODO: Test goes here...\n message.send(\"hello\", \"Bob\");\n }", "@Test\n public void testSend() throws Exception {\n System.out.println(\"send\");\n Sendable s = sendAMessage();\n }", "private void clickInvite(){\n WebDriverHelper.clickElement(inviteButton);\n }", "void createInvitation(OutgoingEMailInvitation invitation, Boolean notify);", "void updateInvitationForReceivingUser(Invitation invitation);", "boolean editInvitation(Invitation invitation);", "@Test\n\tpublic void test03_AcceptARequest(){\n\t\tinfo(\"Test03: Accept a Request\");\n\t\tinfo(\"prepare data\");\n\t\t/*Create data test*/\n\t\tString username1 = txData.getContentByArrayTypeRandom(4) + getRandomString();\n\t\tString password1 = username1;\n\t\tString email1 = username1 + mailSuffixData.getMailSuffixRandom();\n\n\t\tString username2 = txData.getContentByArrayTypeRandom(4) + getRandomString();\n\t\tString password2 = username2;\n\t\tString email2= username2 + mailSuffixData.getMailSuffixRandom();\n\n\t\tinfo(\"Add new user\");\n\t\tmagAc.signIn(DATA_USER1, DATA_PASS);\n\t\tnavToolBar.goToAddUser();\n\t\taddUserPage.addUser(username1, password1, email1, username1, username1);\n\t\taddUserPage.addUser(username2, password2, email2, username2, username2);\n\n\t\t/*Step Number: 1\n\t\t *Step Name: Accept a request\n\t\t *Step Description: \n\t\t\t- Login as John\n\t\t\t- Open intranet homepage\n\t\t\t- On this gadget, mouse over an invitation of mary\n\t\t\t- Click on Accept button\n\t\t *Input Data: \n\t\t/*Expected Outcome: \n\t\t\t- The invitation of root, mary is shown on the invitation gadget\n\t\t\t- The Accept and Refuse button are displayed.\n\t\t\t- John is connected to mary and the invitation fades out and is permanently removed from the list\n\t\t\t- Request of root are moving to the top of the gadget if needed*/ \n\t\tinfo(\"Sign in with mary account\");\n\t\tmagAc.signIn(username1, password1);\n\t\thp.goToConnections();\n\t\tconnMg.connectToAUser(DATA_USER1);\n\n\t\tinfo(\"--Send request 2 to John\");\n\t\tmagAc.signIn(username2, password2);\n\t\thp.goToConnections();\n\t\tconnMg.connectToAUser(DATA_USER1);\n\n\t\tmagAc.signIn(DATA_USER1, DATA_PASS);\n\t\tmouseOver(hp.ELEMENT_INVITATIONS_PEOPLE_AVATAR .replace(\"${name}\",username2),true);\n\t\tclick(hp.ELEMENT_INVITATIONS_PEOPLE_ACCEPT_BTN.replace(\"${name}\",username2), 2,true);\n\t\twaitForElementNotPresent(hp.ELEMENT_INVITATIONS_PEOPLE_AVATAR .replace(\"${name}\",username2));\n\t\twaitForAndGetElement(hp.ELEMENT_INVITATIONS_PEOPLE_AVATAR .replace(\"${name}\",username1));\n\n\t\tinfo(\"Clear Data\");\n\t\tmagAc.signIn(DATA_USER1, DATA_PASS);\n\t\tnavToolBar.goToUsersAndGroupsManagement();\n\t\tuserAndGroup.deleteUser(username1);\n\t\tuserAndGroup.deleteUser(username2);\n\t}", "@Test\n\tpublic void runSend(){\n\t\tstandard();\n\t}", "public static synchronized void handleInvitation(Context context,\n Intent intent) {\n Logger.d(TAG,\n \"handleInvitation() entry with intend action is \"\n + intent.getAction());\n String action = intent.getAction();\n if (action == null) {\n return;\n }\n String contact = formatCallerId(intent);\n intent.putExtra(DISPLAY_NAME, contact);\n if (ChatIntent.ACTION_NEW_CHAT.equalsIgnoreCase(action)) {\n Chat chatSession = RcsNotification.getInstance()\n .getChatSession(intent);\n if (chatSession == null) {\n Logger.d(TAG, \"The chat session is null\");\n return;\n }\n try {\n handleChatInvitation(context, intent);\n } catch (Exception e) {\n Logger.d(TAG, \"Chat operation error\");\n e.printStackTrace();\n }\n } else if (FileTransferIntent.ACTION_NEW_INVITATION\n .equalsIgnoreCase(action)) {\n getInstance().handleFileTransferInvitation(context,\n intent);\n } else if (GroupChatIntent.ACTION_NEW_INVITATION\n .equalsIgnoreCase(action)) {\n Logger.d(TAG, \"Group Chat invitation arrived\");\n try {\n if (!(intent.getBooleanExtra(\"isGroupChatExist\",\n false))) {\n boolean autoAccept = intent.getBooleanExtra(\n AUTO_ACCEPT, false);\n RcsNotification.getInstance()\n .handleGroupChatInvitation(context,\n intent, autoAccept);\n }\n } catch (Exception e) {\n Logger.d(TAG, \"Group Chat operation error\");\n e.printStackTrace();\n }\n } else if (ImageSharingIntent.ACTION_NEW_INVITATION\n .equalsIgnoreCase(action)) {\n handleImageSharingInvitation(context, intent);\n } else if (VideoSharingIntent.ACTION_NEW_INVITATION\n .equalsIgnoreCase(action)) {\n handleVideoSharingInvitation(context, intent);\n } /*\n * else if (ChatIntent.CHAT_SESSION_REPLACED.equalsIgnoreCase(action))\n * { handleChatInvitation(context, intent); }\n */\n Logger.v(TAG, \"handleInvitation() exit\");\n }", "@Test\n public void testSendMessage()\n {\n System.out.println(\"sendMessage\");\n Account sender = new Account(\"Henk\");\n String message = \"Test\";\n Party instance = new Party(sender);\n boolean expResult = true;\n boolean result = instance.sendMessage(sender, message);\n assertEquals(\"The message gave a 'not send' answer.\", expResult, result);\n ArrayList<Message> chat = instance.getChat();\n boolean result2 = false;\n for (Message chatMessage : chat)\n {\n if (chatMessage.getText().equals(message))\n {\n result2 = true;\n break;\n }\n }\n assertEquals(\"The message isn't in the chat.\", expResult, result2);\n }", "public void sendInvitations(){\r\n for(int i = 0; i< emails.size(); i++){\r\n System.out.println(\"Inviting: \" + emails.get(i));\r\n }\r\n\r\n }", "@Test\r\n\tpublic void testConfirmFriendRequest() {\r\n\t\tPerson p1 = new Person(0);\r\n\t\tp1.receiveFriendRequest(\"JavaLord\", \"JavaLordDisplayName\");\r\n\t\tassertTrue(p1.hasFriendRequest(\"JavaLord\"));\r\n\t\tp1.confirmFriendRequest(\"JavaLord\");\r\n\t\tassertFalse(p1.hasFriendRequest(\"JavaLord\"));\r\n\t}", "@Test\n public void test_access_to_modify_team_success() {\n try {\n Assert.assertTrue(authBO.hasAccessToModifyTeam(1, 1));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "@Test\n void resetPasswordRequest() throws Exception {\n ResetPasswordForm request = mockModel.generateResetPasswordForm();\n\n MvcResult mvcResult = mockMvc.perform(post(PATH + \"reset/password/request\")\n .contentType(MediaType.APPLICATION_JSON)\n .content(asJsonString(request)))\n .andExpect(status().is2xxSuccessful())\n .andExpect(view().name(\"login\"))\n .andExpect(model().attributeExists(\"success\"))\n .andExpect(model().attribute(\"success\", is(\"Email has been send!\")))\n .andReturn();\n\n verify(userService, times(1)).sendEmailWithLinkAndResetPassword(any());\n }", "@Test\n @DisplayName(\"Should return 200 when adding one existing user not part of Bill in Invite Registered Person to Bill\")\n void shouldReturn200ForNormalCaseOneUserInviteRegisteredGivenPost() throws Exception {\n final var inviteRegisteredResource = InviteRegisteredResourceFixture.getDefault();\n final var user = UserFixture.getDefaultWithEmailAndPassword(\"[email protected]\", \"notEncrypted\");\n final var accountNotInBill = \"[email protected]\";\n final var existentBillId = 1000L;\n inviteRegisteredResource.setAccounts(List.of(accountNotInBill));\n final var path = String.format(BILL_BILLID_ACCOUNTS_ENDPOINT, existentBillId);\n final var authorities = new ArrayList<GrantedAuthority>();\n authorities.add(new SimpleGrantedAuthority(\"RESPONSIBLE_\" + existentBillId));\n\n //When\n final var mvcResult = performMvcPostRequestWithoutBearer(path, inviteRegisteredResource, 200, user.getUsername(), authorities);\n final String content = mvcResult.getResponse().getContentAsString();\n final BillSplitResource response = mapper.readValue(content, BillSplitResource.class);\n\n //Then\n assertThat((int) response.getInformationPerAccount().stream().map(ItemAssociationSplitResource::getAccount).map(AccountResource::getEmail)\n .filter(acc -> acc.equals(accountNotInBill)).count())\n .isEqualTo(1);\n }", "Task<?> addInvitationForReceivingUser(Invitation invitation);", "@Test(groups = { \"android\", \"ios\", \"web\", \"BVT03\" })\n\tpublic void P0Pass_3_testSignUpAsATeacher_SportsTeam() throws Exception {\n\t\tSystem.out.println(\"P0Pass_1_testSignUpAsATeacher_BoysScout\");\n\t\tString sEmail = \"test_SportsTeam\" + getTimeStamp().replaceAll(\"-\", \"_\") + \"@test.com\";\n\t\tSystem.out.println(sEmail);\n\t\tLandingPage.getLandingPage(browser).clickOnCreateAccount().clickOnCreateNewClassGroup().clickOnSportsTeamGroup()\n\t\t.enterFirstName(\"test\").enterLastName(\"Sports Team\")\n\t\t.enterEmailId(sEmail).enterPassword(\"bloomz999\")\n\t\t.clickOnSignUpButton().thenVerifyCreateButtonShouldBeDisplayed().thenVerifyProfileName(\"test Sports Team\")\n\t\t.thenVerifyWelcomeScreenTroop(\"Create a Sports Team\").clickOnSettingButton().clickOnAccountSettingsButton()\n\t\t.clickOnDeleteAccountButton().selectReasonForDeleteButton().selectReasonAsOthersButton()\n\t\t.enterPassword().clickDeletePermanentButton().clickOnYesButton().thenVerifyConfirmMessage().clickOnOkButton()\n\t\t.thenVerifySignInAndCreateButtonsShouldBeDisplayed();\n\t}", "void setInvitationId(String invitationId);", "@Test\r\n\tpublic void testAcceptInterview() throws Exception {\r\n\t\twhen(interviewerService.acceptInterview(anyLong())).thenReturn(getInterview());\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/acceptinterview/\" + INTERVIEW_ID + \"\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isCreated());\r\n\t}", "InviteEntity accept(Integer inviteId);", "@Test\n @DisplayName(\"Should return 200 when adding multiple existing users not part of Bill in Invite Registered Person to Bill\")\n void shouldReturn200ForNormalCaseInviteRegisteredGivenPost() throws Exception {\n final var inviteRegisteredResource = InviteRegisteredResourceFixture.getDefault();\n final var user = UserFixture.getDefaultWithEmailAndPassword(\"[email protected]\", \"notEncrypted\");\n final var accountNotInBill = \"[email protected]\";\n final var secondAccountNotInBill = \"[email protected]\";\n final var existentBillId = 1000L;\n inviteRegisteredResource.setAccounts(List.of(accountNotInBill, secondAccountNotInBill));\n final var path = String.format(BILL_BILLID_ACCOUNTS_ENDPOINT, existentBillId);\n final var authorities = new ArrayList<GrantedAuthority>();\n authorities.add(new SimpleGrantedAuthority(\"RESPONSIBLE_\" + existentBillId));\n\n //When\n final var mvcResult = performMvcPostRequestWithoutBearer(path, inviteRegisteredResource, 200, user.getUsername(), authorities);\n final String content = mvcResult.getResponse().getContentAsString();\n final BillSplitResource response = mapper.readValue(content, BillSplitResource.class);\n\n //Then\n assertThat((int) response.getInformationPerAccount().stream().map(ItemAssociationSplitResource::getAccount).map(AccountResource::getEmail)\n .filter(acc -> acc.equals(accountNotInBill) || acc.equals(secondAccountNotInBill)).count())\n .isEqualTo(2);\n }", "@Multipart\n @POST(\"/api/person_invite\")\n Call<ResponseInvite> addPlayerToTeam(@Header(\"auth\") String authorization, @PartMap Map<String, RequestBody> params);", "private void sendInvitationLink(){\n String invitationLink = mInvitationURL;\n String msg = \"Давайте вместе сыграем в Мюнхгаузена! Используйте мою реферерную ссылку: \"\n + invitationLink;\n\n System.out.println(msg);\n\n NSMutableArray<NSString> array = new NSMutableArray<NSString>();\n array.add(msg);\n\n UIActivityViewController activityViewController = new UIActivityViewController(array,null);\n UIViewController currentViewController = UIApplication.getSharedApplication().getKeyWindow().getRootViewController();\n\n if (isIpad()) {\n UIPopoverPresentationController popoverController = activityViewController.getPopoverPresentationController();\n popoverController.setSourceRect(new CGRect(UIScreen.getMainScreen().getBounds().getWidth()/2, UIScreen.getMainScreen().getBounds().getHeight()/2,0,0));\n popoverController.setSourceView(activityViewController.getView());\n popoverController.setPermittedArrowDirections(new UIPopoverArrowDirection(0));\n }\n\n currentViewController.presentViewController(activityViewController,true,null);\n\n// if (!MFMailComposeViewController.canSendMail()){\n// System.out.println(\"Device can't send email\")\n// return;\n// }\n//\n// MFMailComposeViewController mailer = new MFMailComposeViewController();\n// mailer.setMailComposeDelegate(new MFMailComposeViewControllerDelegate() {\n// @Override\n// public void didFinish(MFMailComposeViewController mfMailComposeViewController, MFMailComposeResult mfMailComposeResult, NSError nsError) {\n//\n// }\n// });\n//\n// mailer.setSubject(\"Invitation\");\n// mailer.setMessageBody(msg, true);\n// mailer.presentViewController(mailer, true, null);\n\n }", "@Test\n public void scenario5_sendMessageToContact_encrypted() {\n // go to channel\n Espresso.onView(withId(R.id.sn_channel_list_recycler_view))\n .perform(RecyclerViewActions.actionOnItemAtPosition(0, click()));\n\n // go to addMessage\n Espresso.onView(withId(R.id.snChannelViewMenuAddMessage))\n .perform(click());\n\n // add message with recipient\n Espresso.onView(withId(R.id.snMessage))\n .perform(typeText(TEST_MESSAGE));\n Espresso.onView(withId(R.id.selectRecipients))\n .perform(click());\n Espresso.onView(withId(R.id.person_list_recycler_view))\n .perform(RecyclerViewActions.actionOnItem(hasDescendant(withText(TEST_RECIPIENT)), click())\n .atPosition(0));\n Espresso.onView(withId(R.id.personListSelectionDoneButton))\n .perform(click());\n // encrypt message\n Espresso.onView(withId(R.id.snEncrypted))\n .perform(click());\n Espresso.onView(withId(R.id.addButton))\n .perform(click());\n\n // go to sent message\n Espresso.onView(withId(R.id.sn_channel_view_recycler_view))\n .perform(RecyclerViewActions.actionOnItemAtPosition(0, click()));\n\n validateSentMessage(TEST_RECIPIENT, true, false);\n }", "public void testSendEmail2()\n throws Exception\n {\n Gitana gitana = new Gitana();\n\n // authenticate\n Platform platform = gitana.authenticate(\"admin\", \"admin\");\n\n // create a domain and a principal\n Domain domain = platform.createDomain();\n DomainUser user = domain.createUser(\"test-\" + System.currentTimeMillis(), TestConstants.TEST_PASSWORD);\n user.setEmail(\"[email protected]\");\n user.update();\n\n // create an application\n Application application = platform.createApplication();\n\n // create an email provider\n EmailProvider emailProvider = application.createEmailProvider(\n JSONBuilder.start(EmailProvider.FIELD_HOST).is(\"smtp.gmail.com\")\n .and(EmailProvider.FIELD_USERNAME).is(\"[email protected]\")\n .and(EmailProvider.FIELD_PASSWORD).is(\"buildt@st11\")\n .and(EmailProvider.FIELD_SMTP_ENABLED).is(true)\n .and(EmailProvider.FIELD_SMTP_IS_SECURE).is(true)\n .and(EmailProvider.FIELD_SMTP_REQUIRES_AUTH).is(true)\n .and(EmailProvider.FIELD_SMTP_STARTTLS_ENABLED).is(true)\n .get()\n );\n\n // create an email\n Email email = application.createEmail(\n JSONBuilder.start(Email.FIELD_BODY).is(\"Here is a test body\")\n .and(Email.FIELD_FROM).is(\"[email protected]\")\n .get()\n );\n email.setToDomainUser(user);\n email.update();\n\n // send the email\n emailProvider.send(email);\n\n // check to ensure was marked as sent, along with some data\n email.reload();\n assertTrue(email.getSent());\n assertNotNull(email.dateSent());\n assertNotNull(email.getSentBy()); \n }", "@Test\n public void emailTest() {\n // TODO: test email\n }", "@Test\n public void emailTest() {\n // TODO: test email\n }", "@Test\n @DisplayName(\"Test: check if 'Mail' action works.\")\n public void testSetMailAction() throws InterruptedException, ClientException {\n FormContainerEditDialog dialog = formComponents.openEditDialog(containerPath);\n dialog.setMailActionFields(from,subject,new String[] {mailto1,mailto2}, new String[] {cc1, cc2});\n Commons.saveConfigureDialog();\n JsonNode formContentJson = authorClient.doGetJson(containerPath , 1, HttpStatus.SC_OK);\n assertTrue(formContentJson.get(\"from\").toString().equals(\"\\\"\"+from+\"\\\"\"));\n assertTrue(formContentJson.get(\"subject\").toString().equals(\"\\\"\"+subject+\"\\\"\"));\n assertTrue(formContentJson.get(\"mailto\").get(0).toString().equals(\"\\\"\"+mailto1+\"\\\"\"));\n assertTrue(formContentJson.get(\"mailto\").get(1).toString().equals(\"\\\"\"+mailto2+\"\\\"\"));\n assertTrue(formContentJson.get(\"cc\").get(0).toString().equals(\"\\\"\"+cc1+\"\\\"\"));\n assertTrue(formContentJson.get(\"cc\").get(1).toString().equals(\"\\\"\"+cc2+\"\\\"\"));\n }", "@Test\r\n\tpublic void testPendingInterviewList() throws Exception {\r\n\t\tList<Candidate> candidateList = new ArrayList<Candidate>();\r\n\t\tCandidate candidate = getCandidateObj();\r\n\t\tcandidate.setInterview(getInterview());\r\n\t\tcandidateList.add(candidate);\r\n\r\n\t\tList<ShowCandidateDTO> showCandidateList = new ArrayList<ShowCandidateDTO>();\r\n\t\tshowCandidateList.add(getShowCandidateDTO());\r\n\r\n\t\twhen(candidateRepository.candidatePendingInterviewApproval(anyLong())).thenReturn(candidateList);\r\n\t\twhen(interviewerService.pendingInterviewApprovalList(anyLong())).thenReturn(showCandidateList);\r\n\r\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/getpenddingapproval/1\"))\r\n\t\t\t\t.andExpect(MockMvcResultMatchers.status().isOk());\r\n\t}", "@Test\n\tpublic void verifyMailClientSendsEmailUsingEquals() throws Exception {\n\t\tPowerMockito.mockStatic(EmailServer.class);\n\t\tsut.sendEmail(\"address\", \"title\", \"body\");\n\t\tPowerMockito.verifyStatic(times(1));\n\t\tEmailServer.sendEmail(email);\n\t}", "@Test\n public void alienAttacksNoone() throws FileNotFoundException,\n URISyntaxException, DisconnectedException {\n MatchController matchController = new MatchController() {\n @Override\n public void initMatch(PartyController partyController)\n throws FileNotFoundException, URISyntaxException {\n this.partyController = partyController;\n this.match = new Match();\n this.turnController = new TurnController(this);\n ZoneFactory zf = new TemplateZoneFactory(\n EftaiosGame.DEFAULT_MAP);\n this.zoneController = new ZoneController(zf);\n }\n\n @Override\n public void checkEndGame() {\n }\n\n @Override\n protected void sendTurnViewModel() {\n }\n\n };\n\n PlayerCard alien = new PlayerCard(PlayerRace.ALIEN, null);\n Party party = new Party(\"test\", new EftaiosGame(), false);\n PartyController partyController = PartyController.createNewParty(party);\n party.addToParty(UUID.randomUUID(), \"player1\");\n List<Player> players = new ArrayList<Player>(party.getMembers()\n .keySet());\n Player player1 = players.get(0);\n player1.setIdentity(alien);\n\n matchController.initMatch(partyController);\n Turn turn = new Turn(player1, matchController.getMatch().getTurnCount());\n matchController.getTurnController().setTurn(turn);\n matchController.getTurnController().getTurn().setMustMove(false);\n HexPoint point = HexPoint.fromOffset(1, 1);\n Sector sec = new Sector(null, point);\n matchController.getZoneController().getCurrentZone()\n .movePlayer(player1, sec);\n matchController.getTurnController().getTurn().setCanAttack(true);\n ActionRequest action = new ActionRequest(ActionType.ATTACK, null, null);\n // eseguo l'azione\n Attack atk = new Attack() {\n @Override\n protected void notifyInChatByCurrentPlayer(String what) {\n }\n\n @Override\n protected void notifyCurrentPlayerByServer(String what) {\n }\n };\n atk.initAction(matchController, action);\n if (atk.isValid())\n atk.processAction();\n // verifico gli esiti\n assertTrue(player1.getKillsCount() == 0);\n assertTrue(matchController.getZoneController().getCurrentZone()\n .getCell(player1).equals(sec));\n assertTrue(matchController.getMatch().getDeadPlayer().size() == 0);\n }", "@Before\n @Override\n public void setUp() throws Exception {\n super.setUp();\n summary = this.getClass().getName() + \" \" + UUID.randomUUID().toString();\n /*\n * Create event\n */\n EventData eventToCreate = EventFactory.createSingleTwoHourEvent(0, summary);\n replyingAttendee = prepareCommonAttendees(eventToCreate);\n eventToCreate = prepareAttendeeConference(eventToCreate);\n eventToCreate = prepareModeratorConference(eventToCreate);\n createdEvent = eventManager.createEvent(eventToCreate, true);\n\n /*\n * Receive mail as attendee\n */\n MailData iMip = receiveIMip(apiClientC2, userResponseC1.getData().getEmail1(), summary, 0, SchedulingMethod.REQUEST);\n rememberMail(apiClientC2, iMip);\n AnalysisChangeNewEvent newEvent = assertSingleChange(analyze(apiClientC2, iMip)).getNewEvent();\n assertNotNull(newEvent);\n assertEquals(createdEvent.getUid(), newEvent.getUid());\n assertAttendeePartStat(newEvent.getAttendees(), replyingAttendee.getEmail(), PartStat.NEEDS_ACTION.status);\n\n /*\n * reply with \"accepted\"\n */\n attendeeEvent = assertSingleEvent(accept(apiClientC2, constructBody(iMip), null), createdEvent.getUid());\n rememberForCleanup(apiClientC2, attendeeEvent);\n assertAttendeePartStat(attendeeEvent.getAttendees(), replyingAttendee.getEmail(), PartStat.ACCEPTED.status);\n\n /*\n * Receive mail as organizer and check actions\n */\n MailData reply = receiveIMip(apiClient, replyingAttendee.getEmail(), summary, 0, SchedulingMethod.REPLY);\n analyze(reply.getId());\n rememberMail(reply);\n\n /*\n * Take over accept and check in calendar\n */\n assertSingleEvent(update(constructBody(reply)), createdEvent.getUid());\n EventResponse eventResponse = chronosApi.getEvent(createdEvent.getId(), createdEvent.getFolder(), createdEvent.getRecurrenceId(), null, null);\n assertNull(eventResponse.getError(), eventResponse.getError());\n createdEvent = eventResponse.getData();\n for (Attendee attendee : createdEvent.getAttendees()) {\n assertThat(\"Participant status is not correct.\", PartStat.ACCEPTED.status, is(attendee.getPartStat()));\n }\n }", "@Test\n public void UserCanWriteAndSendAMessage() {\n proLogin(proWait);\n handler.getDriver(\"user\").navigate().refresh();\n // User to queue\n waitAndFillInformation(userWait);\n // User from queue\n\n waitAndPickFromQueue(proWait);\n\n // User can write message\n waitChatWindowsAppear(userWait).sendKeys(\"yy kaa koo\");\n\n // Can send it By Pressing Submit\n waitElementPresent(userWait, By.name(\"send\")).submit();\n assertEquals(\"\", waitChatWindowsAppear(userWait).getText());\n assertTrue(waitForTextToAppear(userWait, \"yy kaa koo\"));\n\n // Can send it By Pressing Enter\n waitChatWindowsAppear(userWait).sendKeys(\"kaa koo yy\");\n waitChatWindowsAppear(userWait).sendKeys(Keys.ENTER);\n\n assertEquals(\"\", waitChatWindowsAppear(userWait).getText());\n assertTrue(waitForTextToAppear(userWait, \"kaa koo yy\"));\n endConversationPro(proWait);\n }", "@RequestMapping(value = \"send\", method = RequestMethod.PUT)\n public void updateVerification(@RequestBody VerificationUpdateDTO verificationUpdateDTO) {\n for (String verificationId : verificationUpdateDTO.getIdsOfVerifications()) {\n Long idVerificator = verificationUpdateDTO.getOrganizationId();\n Organization verificator = stateVerificatorService.findById(idVerificator);\n verificationService.sendVerificationTo(verificationId, verificator, Status.SENT_TO_VERIFICATOR);\n }\n }", "public boolean sendInvite(Profile profile)throws ProfileServiceException{\n \t\tString defaultInviteMsg = Messages.SendInviteMsg;\n \t\treturn sendInvite(profile, defaultInviteMsg);\n \t\t\n \t}", "public void verifyAgentInvitationSentMsg(String aFName, String aLName) throws Exception {\n\t\twdriver.findElement(By.xpath(\"//span[contains(text(),'Agent invitation to' + \" + aFName + \" + \" + aLName\n\t\t\t\t+ \" + 'was sent successfully.')]\")).click();\n\n\t}", "@Test(dataProvider = \"mailSendData\", dependsOnMethods = {\"testGmailloginCreds\"}, priority = 1)\n\tpublic void testGmailSendFunctionality(String to, String subject, String body, String expectedMsg) throws InterruptedException{\n\t\tlogger.info(\"TEST METHOD: \" + Thread.currentThread().getStackTrace()[1].getMethodName());\n\t\tDate date = new Date();\n\t\tsubjectTimeStamp = new Timestamp(date.getTime()).toString();\n\t\tString subjTmStmp = subject + subjectTimeStamp;\n\t\tString actualMsg = gmailPg.verifyMailSendFunctionality(to, subjTmStmp, body);\n\t\tAssert.assertEquals(actualMsg, expectedMsg, \"The actual message: '\" + actualMsg + \"' does not match the expected message: '\" + expectedMsg + \"'\");\n\t\t\n\t}", "@Override\n\tpublic void sendRequest(String userEmail, String recipientEmail) {\n\t\tconn = ConnectionFactory.getConnection();\n\n\t\ttry {\n\t\t\tString sql = \"insert into friendship (user_id_1, user_id_2, status) values (?, ?, ?)\";\n\t\t\tpstmt = conn.prepareStatement(sql);\n\n\t\t\tpstmt.setString(1, userEmail);\n\t\t\tpstmt.setString(2, recipientEmail);\n\t\t\tpstmt.setString(3, Constants.PENDING);\n\n\t\t\tpstmt.executeUpdate();\n\t\t} catch(SQLException sqlex) {\n\t\t\tsqlex.printStackTrace();\n\t\t} catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionFactory.closeResources(set, pstmt, conn);\n\t\t}\n\n\t}", "@Test\n public void recipientCountryCodeTest() {\n // TODO: test recipientCountryCode\n }", "void send(String emailName);", "@Test\n public void testShouldExecuteRequest() throws Exception {\n // GIVEN\n SmsSubmissionResult smsSubmissionResult = mock(SmsSubmissionResult.class);\n when(smsSubmissionResult.getStatus()).thenReturn(SmsSubmissionResult.STATUS_OK);\n when(nexmoSmsSenderService.getResults(anyObject())).thenReturn(Optional.of(new SmsSubmissionResult[]{smsSubmissionResult}));\n\n // WHEN\n SmsResponse smsResponse = smsClient.sendMessage(FROM, TO, TEXT_TO_SEND);\n\n // THEN\n assertEquals(SmsResponse.StatusCode.OK, smsResponse.getStatus());\n assertEquals(\"Sms successfully sent\", smsResponse.getMessage());\n }", "@ThinkParityAuthenticate(AuthenticationType.USER)\n public void createInvitation(final JabberId userId,\n final JabberId invitationUserId,\n final IncomingEMailInvitation invitation);", "@Test\n public void sendMail() throws Exception {\n emailService.setApplicationContext(context);\n doReturn(aweElements).when(context).getBean(any(Class.class));\n given(mailSender.createMimeMessage()).willReturn(mimeMessage);\n given(aweElements.getLanguage()).willReturn(\"ES\");\n given(aweElements.getLocaleWithLanguage(anyString(), anyString())).willReturn(\"LOCALE\");\n ParsedEmail email = new ParsedEmail()\n .setFrom(new InternetAddress(\"[email protected]\"))\n .setTo(singletonList(new InternetAddress(\"[email protected]\")))\n .setReplyTo(singletonList(new InternetAddress(\"[email protected]\")))\n .setCc(singletonList(new InternetAddress(\"[email protected]\")))\n .setCco(singletonList(new InternetAddress(\"[email protected]\")))\n .setSubject(\"Test message\")\n .setBody(\"<div style='background-color:red;'>Test div message</div>\")\n .addAttachment(\"FileName.test\", new File(\"C:\\\\Users\\\\test\\\\Pictures\\\\Saved Pictures\\\\test.jpg\"));\n emailService.sendEmail(email);\n verify(mailSender).send(mimeMessage);\n }", "@Test\n public void sendingGcm() throws Exception {\n\n\n }", "@Test\n public void doAction() throws ModelException {\n CommonTestMethods.gameInitOne(game);\n String response;\n CommonTestMethods.givePlayerLeaderCards(game.getCurrentPlayer(), game.getLeaderCards().get(2), game.getLeaderCards().get(1));\n\n actionController.getGame().getCurrentPlayer().addPossibleAction(BUY_CARD);\n actionController.getGame().getCurrentPlayer().addPossibleAction(ACTIVATE_LEADERCARD);\n\n response = card.doAction(actionController);\n assertEquals(\"Not enough resources to buy Card\", response);\n messageToClient = card.messagePrepare(actionController);\n\n assertTrue(messageToClient instanceof BuyCardMessage);\n assertEquals(ActionType.BUY_CARD, messageToClient.getActionDone());\n assertEquals(\"Not enough resources to buy Card\", messageToClient.getError());\n assertEquals(game.getCurrentPlayerNickname(), messageToClient.getPlayerNickname());\n assertEquals(ActionType.ACTIVATE_PRODUCTION, messageToClient.getPossibleActions().get(0));\n assertEquals(ActionType.BUY_CARD, messageToClient.getPossibleActions().get(1));\n assertEquals(ActionType.MARKET_CHOOSE_ROW, messageToClient.getPossibleActions().get(2));\n assertEquals(ActionType.ACTIVATE_LEADERCARD, messageToClient.getPossibleActions().get(3));\n\n\n ResourceStack stack = new ResourceStack(5,3,3,0);\n CommonTestMethods.giveResourcesToPlayer(game.getCurrentPlayer(), 1,12,1, ResourceType.SHIELDS, ResourceType.COINS, ResourceType.STONES, stack);\n BuyCard secondCard = new BuyCard(0,0);\n response = card.doAction(actionController);\n assertEquals(\"2 0 2 0\", game.getCurrentPlayer().getBoard().getResourceManager().getTemporaryResourcesToPay().toString());\n assertEquals(\"SUCCESS\", response);\n messageToClient = card.messagePrepare(actionController);\n\n assertTrue(messageToClient instanceof BuyCardMessage);\n assertEquals(ActionType.BUY_CARD, messageToClient.getActionDone());\n assertEquals(\"SUCCESS\", messageToClient.getError());\n assertEquals(game.getCurrentPlayerNickname(), messageToClient.getPlayerNickname());\n assertEquals(ActionType.PAY_RESOURCE_CARD, messageToClient.getPossibleActions().get(0));\n\n actionController.getGame().getCurrentPlayer().addPossibleAction(BUY_CARD);\n\n assertEquals(\"Card does not fit inside Personal Board\", secondCard.doAction(actionController));\n messageToClient = secondCard.messagePrepare(actionController);\n\n assertTrue(messageToClient instanceof BuyCardMessage);\n assertEquals(ActionType.BUY_CARD, messageToClient.getActionDone());\n assertEquals(\"Card does not fit inside Personal Board\", messageToClient.getError());\n assertEquals(game.getCurrentPlayerNickname(), messageToClient.getPlayerNickname());\n assertEquals(ActionType.ACTIVATE_PRODUCTION, messageToClient.getPossibleActions().get(0));\n assertEquals(ActionType.BUY_CARD, messageToClient.getPossibleActions().get(1));\n assertEquals(ActionType.MARKET_CHOOSE_ROW, messageToClient.getPossibleActions().get(2));\n assertEquals(ActionType.ACTIVATE_LEADERCARD, messageToClient.getPossibleActions().get(3));\n }", "SendEmail() {\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void sendFakeTeam(Player player) {\n\t\tPacketContainer packet = new PacketContainer(PacketType.Play.Server.SCOREBOARD_TEAM);\n\t\tpacket.getStrings().write(0, FakeTeamName);\n\t\tpacket.getIntegers().write(1, 0); // Set create mode\n\t\tpacket.getStrings().write(5, \"never\"); // Push type\n\t\t\n\t\tCollection<String> names = packet.getSpecificModifier(Collection.class).read(0);\n\t\tnames.add(player.getName());\n\t\t\n\t\ttry {\n\t\t\tProtocolLibrary.getProtocolManager().sendServerPacket(player, packet);\n\t\t} catch (InvocationTargetException e) {\n\t\t\t// Should never happen unless packet changes\n\t\t\tthrow new AssertionError(e);\n\t\t}\n\t}", "void send(Email email);", "public interface sendNotification {\n\n boolean sendFiestaEmail(FiestaPlayer fiestaPlayer, eMailMessage e_mail, String subject);\n\n boolean sendEmail(Player player, eMailMessage e_mail, String subject);\n\n boolean sendFixtureMail(Player player, eMailMessage mail);\n\n}", "public void testSendEmail1()\n throws Exception\n {\n Gitana gitana = new Gitana();\n\n // authenticate\n Platform platform = gitana.authenticate(\"admin\", \"admin\");\n\n // create an application\n Application application = platform.createApplication();\n\n // create an email provider\n EmailProvider emailProvider = application.createEmailProvider(\n JSONBuilder.start(EmailProvider.FIELD_HOST).is(\"smtp.gmail.com\")\n .and(EmailProvider.FIELD_USERNAME).is(\"[email protected]\")\n .and(EmailProvider.FIELD_PASSWORD).is(\"buildt@st11\")\n .and(EmailProvider.FIELD_SMTP_ENABLED).is(true)\n .and(EmailProvider.FIELD_SMTP_IS_SECURE).is(true)\n .and(EmailProvider.FIELD_SMTP_REQUIRES_AUTH).is(true)\n .and(EmailProvider.FIELD_SMTP_STARTTLS_ENABLED).is(true)\n .get()\n );\n \n // create an email\n Email email = application.createEmail(\n JSONBuilder.start(Email.FIELD_TO).is(\"[email protected]\")\n .and(Email.FIELD_BODY).is(\"Here is a test body\")\n .and(Email.FIELD_FROM).is(\"[email protected]\")\n .get()\n );\n \n // send the email\n emailProvider.send(email);\n\n // check to ensure was marked as sent, along with some data\n email.reload();\n assertTrue(email.getSent());\n assertNotNull(email.dateSent());\n assertNotNull(email.getSentBy());\n\n // create a few additional emails for query\n\n // 1\n Email email1 = application.createEmail(\n JSONBuilder.start(Email.FIELD_TO).is(\"[email protected]\")\n .and(Email.FIELD_BODY).is(\"Here is a test body\")\n .and(Email.FIELD_FROM).is(\"[email protected]\")\n .get()\n );\n\n // 2\n Email email2 = application.createEmail(\n JSONBuilder.start(Email.FIELD_TO).is(\"[email protected]\")\n .and(Email.FIELD_BODY).is(\"Here is a test body\")\n .and(Email.FIELD_FROM).is(\"[email protected]\")\n .get()\n );\n\n // query\n assertEquals(2, application.queryEmails(QueryBuilder.start(Email.FIELD_TO).is(\"[email protected]\").get()).size());\n assertEquals(1, application.queryEmails(QueryBuilder.start(Email.FIELD_FROM).is(\"[email protected]\").get()).size());\n assertEquals(0, application.queryEmails(QueryBuilder.start(Email.FIELD_FROM).is(\"[email protected]\").get()).size());\n assertEquals(3, application.listEmails().size());\n\n // delete\n email2.delete();\n\n // query\n assertEquals(2, application.listEmails().size());\n }", "@Category({ Major.class })\n\t@Test\n\tpublic void gmailSendAndReceiveTest() throws InterruptedException {\n\t\tSignInPage signInPage = WebUtils.gotoSignInPage(driver);\n\t\t// 2. Click to gmail\n\t\tsignInPage.accessGmailPage(driver);\n\t\t// 3. Input user name\n\t\tsignInPage.fillInUsername(driver, \"[email protected]\");\n\t\t// 4. Click next\n\t\tsignInPage.clickNextUser(driver);\n\t\t// 5. Input password\n\t\tSignInPage.fillInPassword(driver, \"nga123456789\");\n\t\t// 6. Click passwordNext\n\t\tEmailHomepage emailHomepage = signInPage.clickNextPass(driver);\n\t\t// 7. verify Inbox\n\t\tAssert.assertTrue(\"Sign in successfully\", driver.findElement(By.partialLinkText(\"Inbox\")).isDisplayed());\n\t\t// Click Compose\n\t\temailHomepage.createEmail(driver);\n\t\t// Fill in recipent\n\t\temailHomepage.inputReceiver(driver, \"[email protected]\");\n\t\t// Fill in subject\n\t\temailHomepage.inputSubject(driver, \"Demo Email\");\n\t\t// Fill in email body\n\t\temailHomepage.inputEmailBody(driver, \"Hello tester! good morning\");\n\t\t// Click Send\n\t\temailHomepage.sendEmail(driver);\n\t\t// Click Inbox\n\t\temailHomepage.clickInbox(driver);\n\t\t// Click email\n\t\tEmailViewPage emailViewPage = emailHomepage.clickNewEmail(driver);\n\t\t// Verify the email subject and email body is correct\n\t\tString actualSubject = emailViewPage.getEmailText(driver);\n\t\tAssert.assertEquals(\"Succeed!\", \"Demo Email\", actualSubject);\n\t\t// 8. Sign Out\n\t\tsignInPage = emailHomepage.signOut(driver);\n\t}", "@Test (priority = 2, dependsOnMethods = {\"login\", \"composeMail\"})\r\n\tpublic void saveMail() {\n\t\tSystem.out.println(\"Save Mail\");\r\n\t}", "private void onContactInvitation(final NotificationBDD notificationBDD) {\n final InvitationConnexion invitationConnexion = new InvitationConnexion();\n invitationConnexion.setDate((notificationBDD.getDate()));\n invitationConnexion.setIdFirebase(notificationBDD.getId());\n invitationConnexion.setInvite(utilisateurConnecte);\n final LocalUserProfilEBDD localUserProfilEBDD = new LocalUserProfilEBDD();\n invitationConnexionBDD.open();\n// invitationConnexionBDD.insererInvitationConnexion(invitationConnexion);\n final Position position = new Position();\n final ParametresUtilisateur parametres = new ParametresUtilisateur();\n remoteBD.getUserProfil(notificationBDD.getAskerID(), localUserProfilEBDD, new OnUserProfilReceived() {\n @Override\n public void onUserProfilReceived(UtilisateurProfilEBDD userProfilEBDD) {\n final View coordinatorLayoutView = findViewById(R.id.snackbarPosition);\n Snackbar.make(coordinatorLayoutView, \"Invitation de connexion reçue !\", Snackbar.LENGTH_LONG)\n .setAction(\"VOIR\", clickListener)\n .show();\n invitationConnexion.setExpediteur(FromEBDDToLocalClassTranslator.translateUserProfil(localUserProfilEBDD, position, notificationBDD.getAskerID(), parametres));\n invitationConnexionBDD.insererInvitationConnexion(invitationConnexion);\n invitationConnexionBDD.affichageInvitationConnexion();\n }\n });\n\n\n\n }", "@RequestMapping(\"/test\")\n\tpublic String Mail()\n\t{\n\t\tif(useMock)//if useMock value is true then it calls mockEmaliSender else it calls SMTPEmailSender the is declare in app.properties\n\t\t{\n\t\treturn mockEmailSender.sendMail(); //call to mMockEmailSender Class\n\t\t}\n\t\telse\n\t\t{\n\t\treturn SMTPEmailSender.sendMail(); //call to SMTPEmailSender class\n\t\t}\n\t}", "@Test\n public void testNonSecuredEventMailSender() {\n event_audit_log_subscriber eventData = new event_audit_log_subscriber();\n eventData.setlog_time(new Date());\n eventData.setevent_type(0);\n eventData.setuser_name(\"a test user name\");\n eventData.setvm_name(\"a fine test VM\");\n eventData.setvds_name(\"a fine test host\");\n eventData.setmethod_address(\"[email protected]\");\n eventData.setvm_template_name(\"a test template\");\n eventData.setstorage_pool_name(\"a test storage pool name\");\n eventData.setstorage_domain_name(\"a test storage pool domain\");\n eventData.setseverity(3);\n\n EventSenderMailImpl mailSender = new EventSenderMailImpl(getMailProperties());\n eventData.setmessage(\"a test message to be sent via non-secured mode\");\n EventSenderResult sentResult = null;\n try {\n sentResult = mailSender.send(eventData, null);\n } catch (Exception e) {\n sentResult = new EventSenderResult();\n sentResult.setSent(false);\n }\n assertTrue(sentResult.isSent());\n }", "@SmallTest\n @Test\n public void testSendMessages() {\n ArraySet<Communicator.Message> messages = new ArraySet<>();\n messages.add(mParams.commMessage);\n\n mRtpTransport.sendMessages(messages);\n verify(mRtpAdapter).sendRtpHeaderExtensions(mHeaderExtensionCaptor.capture());\n Set<RtpHeaderExtension> extensions = mHeaderExtensionCaptor.getValue();\n assertEquals(1, extensions.size());\n assertTrue(extensions.contains(mParams.extension));\n }", "@Test\n public void testSecuredEventMailSender() {\n event_audit_log_subscriber eventData = new event_audit_log_subscriber();\n eventData.setlog_time(new Date());\n eventData.setevent_type(0);\n eventData.setuser_name(\"a test user name\");\n eventData.setvm_name(\"a fine test VM\");\n eventData.setvds_name(\"a fine test host\");\n eventData.setmethod_address(\"[email protected]\");\n eventData.setvm_template_name(\"a test template\");\n eventData.setstorage_pool_name(\"a test storage pool name\");\n eventData.setstorage_domain_name(\"a test storage pool domain\");\n eventData.setseverity(3);\n\n EventSenderMailImpl mailSender = new EventSenderMailImpl(getSecuredMailProperties());\n eventData.setmessage(\"a test message to be sent via secured mode\");\n mailSender.send(eventData, null);\n\n EventSenderResult sentResult = null;\n try {\n sentResult = mailSender.send(eventData, null);\n } catch (Exception e) {\n sentResult = new EventSenderResult();\n sentResult.setSent(false);\n }\n\n assertTrue(sentResult.isSent());\n }", "protected void template(String username1, String description, String invitation, final Class<?> expected, String operation) {\n\t\tClass<?> caught;\n\n\t\tcaught = null;\n\t\ttry {\n\t\t\tif(operation.equals(\"chatear\")){\n\t\t\t\tsuper.authenticate(username1);\n\t\t\t\tInvitation i = this.invitationService.findOne(this.getEntityId(invitation));\n\t\t\t\t\n\t\t\t\tChatty c = this.chattyService.create();\n\t\t\t\tc.setContent(description);\n\t\t\t\tc.setDate(new Date(System.currentTimeMillis()-10000));\n\t\t\t\tc.setInvitation(i);\n\t\t\t\t\n\t\t\t\tc = this.chattyService.save(c);\n\t\t\t}\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t} catch (final Throwable oops) {\n\t\t\tcaught = oops.getClass();\n\t\t}\n\t\t\n\t\tthis.checkExceptions(expected, caught);\n\t\n\t}", "@Test\n public void temporaryTeamClosingUnavalableOption() {\n\n }", "private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }", "SendAction createSendAction();", "@Test(dependsOnMethods = {\"register\"})\n void confirmEmailAddressByCaptcha() {\n common.findWebElementByXpath(\"//*[@id=\\\"content\\\"]/fieldset/label/div\").click();\n\n //Click on Send captcha button\n common.timeoutSeconds(2);\n common.findWebElementById(\"send-captcha-button\").click();\n\n //No magic code is set\n common.verifyStatusMessage(\"Det uppstod ett problem med verifieringen av att du är en människa. \" +\n \"Var god försök igen.\");\n }", "@Test\n public void testCSesionInicioxMail() throws Exception {\n System.out.println(\"testCSesionInicioxMail\");\n CSesion instance = new CSesion();\n DataUsuario dU = instance.inicioSesion(\"[email protected]\", \"tim123\");\n }", "@Test\r\n public void testGetUtilizador() {\r\n System.out.println(\"getUtilizador\");\r\n CentroExposicoes ce = new CentroExposicoes();\r\n \r\n AlterarUtilizadorController instance = new AlterarUtilizadorController(ce);\r\n instance.getUtilizador(\"[email protected]\");\r\n }", "boolean hasDidcommInvitation();", "@Test\n @DisplayName(\"Should return 400 exception if 1+ emails in InviteRegisteredResource are not in email format for POST /bills/{billId}/accounts\")\n void shouldReturnExceptionIfListEmailsNotEmailFormatInInviteRegisteredResourceGivenPost() throws Exception {\n final var inviteRegisteredResource = InviteRegisteredResourceFixture.getDefault();\n final var user = UserFixture.getDefault();\n final var existentEmail = \"[email protected]\";\n final var invalidEmail = \"notemailformatcom\";\n inviteRegisteredResource.setAccounts(List.of(existentEmail, invalidEmail));\n final var existentBillId = 1000L;\n final var path = String.format(BILL_BILLID_ACCOUNTS_ENDPOINT, existentBillId);\n final var authorities = new ArrayList<GrantedAuthority>();\n authorities.add(new SimpleGrantedAuthority(\"RESPONSIBLE_\" + existentBillId));\n\n //When/Then\n final MvcResult result = performMvcPostRequestWithoutBearer(path, inviteRegisteredResource, 400, user.getUsername(), authorities);\n final ApiError error = verifyInvalidInputs(result, 1);\n assertThat(error.getErrors().get(0).getMessage()).isEqualTo(NOT_IN_EMAIL_FORMAT);\n }", "@Test\n public void testConfirmationEmail() throws Exception {\n User user = new User(username, password);\n user = userService.save(user);\n String token = registerController.generateUserToken(user);\n assert !user.isEnabled();\n\n String response = restTemplate.getForObject(url + \"/token/\" + token, String.class);\n user = userService.getUser(username);\n assert user.isEnabled();\n }", "@Test\r\n\tpublic void playGame1() throws Exception {\r\n\t\t\r\n\t\ttr.deleteAll();\r\n\t\tint id0 = tr.save(new Transformer( null, \"Soundwave\", Team.DECEPTICON, 8, 9, 2, 6, 7, 5, 6, 10)).getId(); \r\n\t\tint id1 = tr.save(new Transformer( null, \"Hubcap\", Team.AUTOBOT, 4,4,4,4,4,4,4,4)).getId();\r\n\t\tint id2 = tr.save(new Transformer( null, \"Bluestreak\", Team.AUTOBOT, 6,6,7,9,5,2,9,7)).getId();\r\n\t\t\r\n\t\tString content = String.format(\"[%d,%d,%d]\",id0,id1,id2) ;\r\n\t\t\r\n\t\tmockMvc.perform(post(\"/transformers/play\").contentType(MediaType.APPLICATION_JSON).content(content.getBytes(\"UTF-8\")))\r\n\t\t\t\t.andExpect(status().isOk())\r\n\t\t\t\t.andExpect(content().contentTypeCompatibleWith(\"application/json\"))\r\n\t\t\t\t.andExpect(jsonPath(\"$.battles\").value(1))\r\n\t\t\t\t.andExpect(jsonPath(\"$.winningTeam\").value(\"DECEPTICON\"))\r\n\t\t\t\t.andExpect(jsonPath(\"$.survivedLosers\").isArray() )\r\n\t\t\t\t.andExpect(jsonPath(\"$.survivedLosers\", hasSize(1)))\r\n\t\t\t\t.andExpect(jsonPath(\"$.survivedLosers\", hasItem(\"Hubcap\")))\r\n\t\t\t\t;\r\n\t}", "@Test\r\n public void testSendWelcomeSignupMessageSMS_ExistingUser() {\n String mobile = \"9908599937\";//\"9887589396\";\r\n boolean smsSendEnabled= false;\r\n //Commuter commuter = commuterService.getCommuterById(commuter_id);\r\n Commuter commuter = commuterService.getCommuterByMobile(mobile);\r\n boolean userRegistrationExist = true;\r\n boolean status = commuterService.sendWelcomeSignupMessageSMS(commuter, -1, userRegistrationExist, smsSendEnabled);\r\n if (status) {\r\n System.out.println(\"status:\" + status);\r\n }\r\n }", "@Test\n @DisplayName(\"Should return 400 exception if accounts list is null in InviteRegisteredResource for POST /bills/{billId}/accounts\")\n void shouldReturnExceptionIfListEmailsNullInInviteRegisteredResourceGivenPost() throws Exception {\n final var inviteRegisteredResource = InviteRegisteredResourceFixture.getDefault();\n final var user = UserFixture.getDefault();\n inviteRegisteredResource.setAccounts(null);\n final var existentBillId = 1000L;\n final var path = String.format(BILL_BILLID_ACCOUNTS_ENDPOINT, existentBillId);\n final var authorities = new ArrayList<GrantedAuthority>();\n authorities.add(new SimpleGrantedAuthority(\"RESPONSIBLE_\" + existentBillId));\n\n //When/Then\n final MvcResult result = performMvcPostRequestWithoutBearer(path, inviteRegisteredResource, 400, user.getUsername(), authorities);\n final ApiError error = verifyInvalidInputs(result, 1);\n assertThat(error.getErrors().get(0).getMessage()).isEqualTo(MUST_NOT_BE_EMPTY);\n }", "boolean deleteInvitation(int invitationId);", "@Test\n public void reopenClosedTeamUnavalableOption() {\n\n }", "@Test\n\tpublic void testCancelPendingRequest() {\n\t\tLong originalCreditBalance = 100L;\n\t\tint creditEstimate = 50;\n\n\t\tSmsAccount smsAccount = new SmsAccount();\n\t\tsmsAccount.setSakaiUserId(\"4\");\n\t\tsmsAccount.setSakaiSiteId(\"4\");\n\t\tsmsAccount.setMessageTypeCode(\"12345\");\n\t\tsmsAccount.setOverdraftLimit(1000L);\n\t\tsmsAccount.setCredits(originalCreditBalance);\n\t\tsmsAccount.setAccountName(\"accountName\");\n\t\tsmsAccount.setAccountEnabled(true);\n\t\thibernateLogicLocator.getSmsAccountLogic()\n\t\t\t\t.persistSmsAccount(smsAccount);\n\n\t\tSmsTask smsTask = new SmsTask();\n\t\tsmsTask.setSakaiSiteId(SmsConstants.SMS_DEV_DEFAULT_SAKAI_SITE_ID);\n\t\tsmsTask.setSenderUserName(\"sakaiUserId\");\n\t\tsmsTask.setSmsAccountId(smsAccount.getId());\n\t\tsmsTask.setDateCreated(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setDateToSend(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setStatusCode(SmsConst_DeliveryStatus.STATUS_PENDING);\n\t\tsmsTask.setAttemptCount(2);\n\t\tsmsTask.setMessageBody(SmsConstants.SMS_DEV_DEFAULT_SMS_MESSAGE_BODY);\n\t\tsmsTask.setSenderUserName(\"senderUserName\");\n\t\tsmsTask.setMaxTimeToLive(1);\n\t\tsmsTask.setMessageTypeId(SmsConstants.MESSAGE_TYPE_SYSTEM_ORIGINATING);\n\t\tsmsTask.setCreditEstimate(creditEstimate);\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(smsTask.getDateToSend());\n\t\tcal.add(Calendar.SECOND, smsTask.getMaxTimeToLive());\n\t\tsmsTask.setDateToExpire(cal.getTime());\n\t\thibernateLogicLocator.getSmsTaskLogic().persistSmsTask(smsTask);\n\n\t\tsmsBillingImpl.reserveCredits(smsTask);\n\n\t\t// Check the credits have been reserved.\n\t\tSmsAccount retAccount = hibernateLogicLocator.getSmsAccountLogic()\n\t\t\t\t.getSmsAccount(smsAccount.getId());\n\t\tAssert.assertNotNull(retAccount);\n\t\tAssert.assertTrue(retAccount.getCredits() < originalCreditBalance);\n\n\t\tsmsBillingImpl.cancelPendingRequest(smsTask.getId());\n\t\t// Check the credits have been reserved.\n\t\tretAccount = hibernateLogicLocator.getSmsAccountLogic().getSmsAccount(\n\t\t\t\tsmsAccount.getId());\n\t\tAssert.assertNotNull(retAccount);\n\t\tAssert.assertTrue(retAccount.getCredits() == originalCreditBalance);\n\t}", "public abstract void sendConfirmationMessage(Player player);", "private void nonAutoAcceptGroupChat(Context context,\n Intent invitation) {\n Logger.v(TAG, \"handleGroupChatInvitation entry\");\n GroupInvitationInfo info = buildNotificationInfo(context,\n invitation);\n if (info == null) {\n Logger.d(TAG, \"handleGroupChatInvitation info is null\");\n return;\n }\n // Should increase the number of unread message\n Logger.d(TAG, \"Has receive a group chat invitation\");\n UnreadMessageManager.getInstance().changeUnreadMessageNum(\n UnreadMessageManager.MIN_STEP_UNREAD_MESSAGE_NUM,\n true);\n int size = mGroupInvitationInfos.size();\n StringBuilder notifyTitle = new StringBuilder(\n info.notifyTitle);\n String notifyContent = null;\n Intent intent = info.intent;\n if (size == SINGLE_GROUP_INVITATION) {\n notifyTitle\n .append(context\n .getString(R.string.group_invitation_notify_title));\n notifyTitle.append(BLANK_SPACE);\n notifyTitle.append(info.sender);\n notifyContent = info.notifyInfo;\n ParcelUuid tag = (ParcelUuid) invitation\n .getParcelableExtra(ChatScreenActivity.KEY_CHAT_TAG);\n intent.putExtra(ChatScreenActivity.KEY_CHAT_TAG, tag);\n intent.setClass(context, InvitationDialog.class);\n if (Logger.getIsIntegrationMode()) {\n intent.putExtra(\n InvitationDialog.KEY_STRATEGY,\n InvitationDialog.STRATEGY_IPMES_GROUP_INVITATION);\n String contact = invitation\n .getStringExtra(PluginGroupChatWindow.GROUP_CHAT_CONTACT);\n if (null != contact) {\n intent.putExtra(\n PluginGroupChatWindow.GROUP_CHAT_CONTACT,\n contact);\n } else {\n Logger.w(TAG,\n \"nonAutoAcceptGroupChat() contact is null\");\n }\n } else {\n intent.putExtra(InvitationDialog.KEY_STRATEGY,\n InvitationDialog.STRATEGY_GROUP_INVITATION);\n }\n } else {\n notifyTitle.append(size);\n notifyTitle.append(BLANK_SPACE);\n notifyTitle\n .append(context\n .getString(R.string.group_multi_invitation_title));\n notifyContent = context\n .getString(R.string.group_multi_invitation_content);\n if (Logger.getIsIntegrationMode()) {\n Logger.d(TAG, \"nonAutoAcceptGroupChat start mms\");\n intent.setClassName(\n PluginGroupChatWindow.MMS_PACKAGE_STRING,\n PluginGroupChatWindow.MMS_BOOT_ACTIVITY_STRING);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n } else {\n intent.setClass(context, ChatMainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP\n | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n }\n }\n intent.putExtra(NOTIFY_TITLE, notifyTitle.toString());\n intent.putExtra(NOTIFY_CONTENT, notifyContent);\n PendingIntent contentIntent = PendingIntent\n .getActivity(context, 0, intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n Notification.Builder builder = new Notification.Builder(\n context);\n builder.setContentTitle(notifyTitle);\n builder.setContentIntent(contentIntent);\n builder.setSmallIcon(info.icon);\n builder.setContentText(notifyContent);\n builder.setWhen(System.currentTimeMillis());\n builder.setAutoCancel(false);\n Notification notification = builder.getNotification();\n Logger.v(\n TAG,\n \"handleGroupChatInvitation SettingsFragment.\" +\n \"IS_NOTIFICATION_CHECKED.get() is \"\n + SettingsFragment.IS_NOTIFICATION_CHECKED\n .get());\n if (SettingsFragment.IS_NOTIFICATION_CHECKED.get()) {\n Logger.d(TAG,\n \"handleGroupChatInvitation notification is built, with size: \"\n + size);\n String ringtone = RcsSettings.getInstance()\n .getChatInvitationRingtone();\n if (ringtone != null && ringtone.length() != 0) {\n notification.sound = Uri.parse(ringtone);\n }\n if (RcsSettings.getInstance()\n .isPhoneVibrateForChatInvitation()) {\n notification.defaults |= Notification.DEFAULT_VIBRATE;\n }\n NotificationManager groupInviteNotification = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n groupInviteNotification.notify(GROUP_INVITATION_TAG,\n NOTIFICATION_ID_CHAT, notification);\n } else {\n Logger.v(\n TAG,\n \"handleGroupChatInvitation SettingsFragment.\" +\n \"IS_NOTIFICATION_CHECKED.get() is false \");\n }\n Logger.v(TAG, \"handleGroupChatInvitation exit\");\n }", "@Category({Major.class})\n @Test\n public void gmailSendAndReceive(){\n SignInPage signInPage = WebUtil.goToSignInPage(driver);\n\n //2.Enter Username\n signInPage.enterUsername(driver, \"[email protected]\");\n\n //3. Go to next page\n SignInPage2 signInPage2 = signInPage.clickNextButton(driver);\n\n //4. Enter Password\n signInPage2.enterPassword(driver, \"testingrocks\");\n\n //5. Uncheck \"Stay signed in\" -- dont save cookies\n signInPage2.uncheckRemeberMe(driver);\n\n //6. Click Sign In Button\n EmailHomePage emailHomePage = signInPage2.clickSignIn(driver);\n\n //7. Verify login was successful\n Assert.assertTrue(\"Inbox should be present!!\",emailHomePage.inboxIsPresent(driver));\n\n //Click Compose\n emailHomePage.clickOnCompose(driver);\n\n //Fill in Recipient\n emailHomePage.enterRecipient(driver, \"[email protected]\");\n\n //Fill in Subject\n final String subjectMatter = \"Test email to self\";\n emailHomePage.enterSubject(driver, subjectMatter);\n\n //Fill in email body\n final String emailMatter = \"Hello, \"+ \"\\n\" + \"This is a test email to self\";\n emailHomePage.enterEmailBody(driver, emailMatter);\n\n //Click send\n emailHomePage.clickOnSendButton(driver);\n\n //Click inbox again\n emailHomePage.clickOnInbox(driver);\n\n //Click email\n EmailViewPage emailViewPage = emailHomePage.goToEmailViewPage(driver);\n\n //Verify the email subject and email body is correct\n String actualSubject = emailViewPage.getEmailSubjectText(driver);\n Assert.assertEquals(\"Title should match\", subjectMatter, actualSubject);\n\n String actualEmailContent = emailViewPage.getEmailContent(driver);\n Assert.assertEquals(\"Email body content should match\", emailMatter, actualEmailContent);\n\n //Sign out\n signInPage = emailHomePage.signOut(driver);\n\n //Verify user signed out successfully\n Assert.assertTrue(\"Sign In button should exist\", signInPage.signInButtonIsPresent(driver));\n\n }", "@Override\r\n\tpublic void sendInvoice(Invoice invoice, String email) {\n\t\tSystem.out.println(\"Invoice Sent email\");\r\n\t}", "public void sendMail(RegistrationData d) {}", "String confirmPayment(String userName, String teamName, Payment payment) throws RemoteException,\n InterruptedException;", "@Test\n void generateInviteTokenListSuccess() throws Exception {\n // given\n Map<String, Object> populatedObjects = populateDb.populateDbWithAnonimUserAndCredentialsAndToken();\n TokenEntity tokenEntity = (TokenEntity) populatedObjects.get(\"tokenEntity\");\n User user = (User) populatedObjects.get(\"user\");\n\n // when\n MvcResult mvcResult = mockMvc.perform(get(\"/test/generateTokenList\")\n .header(\"AUTHORIZATION\", ACCESS_TOKEN_PREFIX + \" \" + tokenEntity.getToken()))\n .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8))\n .andExpect(status().isOk())\n .andReturn();\n\n // then\n List<String> responseBody = mapper.readValue(mvcResult.getResponse().getContentAsString(), List.class);\n User updatedUser = userRepository.findById(user.getId()).get();\n\n assertTrue(updatedUser\n .getUsersForMatchingId()\n .stream()\n .allMatch(userId ->\n responseBody.contains(tokenRepository.findByUserId(userId)\n .get()\n .getToken()) &&\n userRepository.findById(userId)\n .get()\n .getUsersForMatchingId()\n .get(0).equals(updatedUser.getId())));\n }", "@Test\n public void new_player() {\n //Arrange scenario\n //Add a player to the lobby with a different name\n Player other = new Player(\"Other\");\n playerLobby.addPlayer(other);\n final TemplateEngineTester testHelper = new TemplateEngineTester();\n //Add a player to a new empty lobby\n when(request.queryParams(\"id\")).thenReturn(\"Name\");\n // To analyze what the Route created in the View-Model map you need\n // to be able to extract the argument to the TemplateEngine.render method.\n // Mock up the 'render' method by supplying a Mockito 'Answer' object\n // that captures the ModelAndView data passed to the template engine\n when(templateEngine.render(any(ModelAndView.class))).thenAnswer(testHelper.makeAnswer());\n\n // Invoke the test\n CuT.handle(request, response);\n\n //Check if UI received all necessary parameters\n testHelper.assertViewModelExists();\n testHelper.assertViewModelIsaMap();\n\n testHelper.assertViewModelAttribute(\"currentUser\", request.queryParams(\"id\"));\n testHelper.assertViewModelAttribute(\"title\", \"Welcome!\");\n testHelper.assertViewModelAttribute(\"message\", PostSignInRoute.WELCOME_MSG);\n testHelper.assertViewModelAttribute(\"playerList\", CuT.playerNames);\n }", "@Test\r\n\tvoid playNoWinner() throws Exception {\r\n\t\t\r\n\t\ttr.deleteAll();\r\n\t\tint id0 = tr.save(new Transformer( null, \"Soundwave\", Team.DECEPTICON, 8, 9, 2, 6, 7, 5, 6, 10)).getId();\r\n\t\tint id1 = tr.save(new Transformer( null, \"Hubcap\", Team.AUTOBOT, 4,4,4,4,4,4,4,4)).getId();\r\n\t\tint id2 = tr.save(new Transformer( null, \"Bluestreak\", Team.AUTOBOT, 6,6,7,9,5,2,9,7)).getId();\r\n\t\tint id3 = tr.save(new Transformer( null, \"Soundwave\", Team.DECEPTICON, 1, 1, 1, 1, 1, 1, 1, 1)).getId();\r\n\t\t\r\n\t\tString content = String.format(\"[%d,%d,%d,%d]\",id0,id1,id2,id3) ;\r\n\t\t\r\n\t\tmockMvc.perform(post(\"/transformers/play\").contentType(MediaType.APPLICATION_JSON).content(content.getBytes(\"UTF-8\")))\r\n\t\t.andExpect(status().isOk())\r\n\t\t.andExpect(content().contentTypeCompatibleWith(\"application/json\"))\r\n\t\t.andExpect(jsonPath(\"$.battles\").value(2))\r\n\t\t.andExpect(jsonPath(\"$.winningTeam\", is(nullValue())))\r\n\t\t.andExpect(jsonPath(\"$.survivedLosers\", is(nullValue())))\r\n\t\t;\r\n\t}", "@java.lang.Override\n public boolean hasDidcommInvitation() {\n return deliveryMethodCase_ == 3;\n }", "@Test\n\t@WithMockUser(username = \"cadmin\", password = \"test\", roles = \"CADMIN\")\n\tpublic void testSendRequestNotAuthorized() throws Exception {\n\n\t\tJSONObject obj = new JSONObject();\n\t\tobj.put(\"idNextProcedure\", 2);\n\t\tobj.put(\"idRoom\", 9);\n\t\tobj.put(\"date\", \"05.03.2020\");\n\t\tobj.put(\"time\", \"\");\n\t\tobj.put(\"idDoctorNew\", \"none\");\n\t\tString json = obj.toString();\n\n\t\tPrincipal mockPrincipal = Mockito.mock(Principal.class);\n\n\t\tMockito.when(nextExaminationService.arrangeExamination(json, null)).thenReturn(false);\n\t\tthis.mockMvc.perform(MockMvcRequestBuilders.post(\"/ca/arrangeExamination\").principal(mockPrincipal)\n\t\t\t\t.content(json).contentType(MediaType.APPLICATION_JSON))\n\t\t.andExpect(MockMvcResultMatchers.status().isBadRequest());\n\n\t}", "@Test\n\tpublic void testroommatePreferencesSubmitForm() {\n\t\t//mocking the requests and session attributes\n\t\twhen(request.getSession()).thenReturn(session);\n\t\twhen(session.getAttribute(\"userName\")).thenReturn(\"Virat Kohli\");\n\t\twhen(session.getAttribute(\"userRole\")).thenReturn(\"CUSTOMER\");\n\t\twhen(session.getAttribute(\"userEmail\")).thenReturn(\"[email protected]\");\n\t\twhen(userService.findUserByEmail(\"[email protected]\")).thenReturn(user);\n\t\t\n\t\t//mocking the roommatePreferences service to return null.\n\t\twhen(roommatePreferencesService.findRoommatePreferencesById(1)).thenReturn(null);\n\t\t\n\t\tModelAndView model = new ModelAndView();\n\t\tmodel = roommatePreferencesController.roommatePreferencesSubmitForm(mockedroommatePreferences,request);\n\t\t\n\t\t//Assert statements\n\t\tassertEquals(\"Details updated successfully!\", model.getModel().get(\"msg\"));\n\t\tassertTrue(model.getModel().containsKey(\"roommatePreferences\"));\n\t\tassertEquals(\"user/roommatePreferences\", model.getViewName());\n\t}", "@Test(dependsOnMethods = {\"testAddTeam\"})\n\tpublic void testUpdateTeam() {\n\t}", "public void sendMail() {\n String sub;\n String message;\n\n sub = \"Welcome\";\n message = \"Thank you for choosing us as your healthcare partners. Here we strive hard to ensure that\\n\"\n + \"you remain in good health. Not only we boast of an exellent team of doctors but also world class operational \\n\"\n + \"infrastructure in place. For any other information or details contact our reg desk. You can access\\n\"\n + \"your account with the Username:\" + txtUserName.getText()+ \"and your password:\" + txtPassword.getPassword().toString()+ \".\\n\\t\\t\\t -Team MVP\";\n\n SendEmail SE = new SendEmail(txtEmail.getText(), sub, message);\n }", "@Test\n\tvoid grantScholarshipApproved() {\n\t\tScholarship scholarship= iScholarshipService.getById(1000).orElse(null);\n\t\tStudent student= iStudentService.findByStudentId(166);\n\t\tassertEquals(scholarship,iOfficerService.grantApproval(scholarship, student));\n\t\t\n\t}", "@Test\n\tpublic void passengerEditPositiveTest() {\n\t\tsuper.authenticate(\"[email protected]\");\n\t\tfinal Integer id = this.getEntityId(\"driver20\");\n\t\tfinal Driver driver = this.driverService.findOne(id);\n\n\t\tdriver.setName(\"Pepe\");\n\t\tdriver.setSurname(\"Doe\");\n\t\tdriver.setCity(\"Patata\");\n\t\tdriver.setCountry(\"Patata\");\n\t\tdriver.setBankAccountNumber(\"ES9121000418450200051332\");\n\t\tdriver.setPhone(\"985698547\");\n\t\tdriver.setImage(\"https://d30y9cdsu7xlg0.cloudfront.net/png/48705-200.png\");\n\t\tdriver.setChilds(true);\n\t\tdriver.setMusic(true);\n\t\tdriver.setSmoke(false);\n\t\tdriver.setPets(true);\n\n\t\tfinal UserAccount account = driver.getUserAccount();\n\t\taccount.setPassword(\"123456\");\n\t\taccount.setUsername(\"[email protected]\");\n\n\t\tdriver.setUserAccount(account);\n\n\t\tthis.driverService.save(driver);\n\t\tsuper.unauthenticate();\n\t\tthis.driverService.flush();\n\t}", "@Test\n public void shouldEnrichAccountSaveAccountThenGetAccountUsingChargingId() throws Exception {\n //given\n final EnrichedAccountInfo expectedInfo = aEnrichedAccountInfo();\n final ContextData contextData = aContextData();\n String accountJson = converter.toJson(contextData);\n ERIFResponse erifResponse = ERIFResponse.builder()\n .ban(expectedInfo.getBan())\n .billingCycleDay(expectedInfo.getBillingCycleDay())\n .errId(expectedInfo.getErrorId())\n .childSpId(expectedInfo.getChildServiceProviderId())\n .isPrepay(expectedInfo.getCustomerType())\n .status(expectedInfo.getValidationStatus())\n .spId(expectedInfo.getServiceProviderId())\n .spType(expectedInfo.getServiceProviderType())\n .userGroups(expectedInfo.getUsergroups())\n .errDescription(expectedInfo.getErrorDescription())\n .build();\n\n ResponseEntity<ERIFResponse> responseEntity = new ResponseEntity<>(erifResponse, HttpStatus.OK);\n\n given(restTemplate.postForEntity(anyString(), any(HttpEntity.class), Matchers.<Class<ERIFResponse>>any()))\n .willReturn(responseEntity);\n\n MvcResult result = mockMvc.perform(post(\"/accounts/\")\n .contentType(contentType)\n .content(accountJson)\n .headers(aHttpHeaders(contextData.getClientId(), contextData.getLocale(), contextData.getChargingId())))\n .andExpect(MockMvcResultMatchers.status().isOk())\n .andReturn();\n final EnrichedAccountInfo info =\n (EnrichedAccountInfo) converter.fromJson(EnrichedAccountInfo.class, result.getResponse().getContentAsString());\n\n final Account expectedAccount = AccountDataBuilder.anAccount(contextData.getChargingId(), info, new Date());\n final ChargingId expectedChargingId = expectedAccount.getChargingId();\n repository.save(expectedAccount);\n\n final MvcResult response = mockMvc.perform(get(\"/accounts/\" + expectedChargingId.getType() + \"/\" + expectedChargingId.getValue() )\n .accept(MediaType.APPLICATION_JSON_UTF8))\n .andExpect(MockMvcResultMatchers.status().isOk())\n .andReturn();\n\n final Account account = (Account) converter.fromJson(Account.class, response.getResponse().getContentAsString());\n assertThat(account).isNotNull();\n assertThat(account).isEqualToIgnoringGivenFields(expectedAccount, \"lastValidate\", \"id\", \"profiles\", \"chargingId\");\n assertThat(account.getProfiles().get(0)).isEqualToComparingFieldByFieldRecursively(expectedAccount.getProfiles().get(0));\n assertThat(account.getChargingId()).isEqualToComparingFieldByField(account.getChargingId());\n }", "public static void sendInvitationMail(String toMail, Group group){\n String invitationText = \"Hello!\\n\\n You have been invited to join a group on Household Manager. \" +\n \"Login to accept the invitation \\n\" +\n \"Invited to group: \"+group.getName()+ \"\\n Invited by: \"+group.getAdmin();\n sendMail(toMail,invitationText);\n }", "boolean hasCustomerUserAccessInvitation();" ]
[ "0.7085966", "0.6873443", "0.6634981", "0.62799466", "0.6250715", "0.6044934", "0.59628606", "0.59444463", "0.5929592", "0.584883", "0.5830701", "0.5775414", "0.57462645", "0.57428515", "0.5657495", "0.56434244", "0.56121856", "0.56088656", "0.55937093", "0.5587238", "0.55255187", "0.5515535", "0.55071", "0.5496404", "0.549091", "0.54813087", "0.54755795", "0.54632616", "0.5452397", "0.5447587", "0.54461277", "0.5430896", "0.54053503", "0.53802925", "0.53802925", "0.53508204", "0.53508097", "0.53301656", "0.5328765", "0.53194386", "0.5298762", "0.52972925", "0.5294356", "0.5282483", "0.52822113", "0.5272779", "0.5272759", "0.526907", "0.5261446", "0.52499425", "0.52454555", "0.52419513", "0.52353173", "0.5190383", "0.51861465", "0.5184088", "0.5172565", "0.51514894", "0.5151187", "0.5146032", "0.514597", "0.513195", "0.51273173", "0.51209027", "0.5103492", "0.5103472", "0.5089429", "0.5087148", "0.50751656", "0.50625956", "0.5048315", "0.5045024", "0.5031661", "0.50313306", "0.50295293", "0.50272584", "0.50239354", "0.50195867", "0.5019164", "0.5016066", "0.5008357", "0.5006794", "0.50053936", "0.5004972", "0.4998435", "0.49965203", "0.49948043", "0.4993197", "0.49908262", "0.49904582", "0.49897167", "0.49890083", "0.49865416", "0.4983552", "0.49779776", "0.49692473", "0.4967885", "0.4966078", "0.49657696", "0.4960392" ]
0.747695
0
construct an empty tree of point nodes
public KdTree() { root = null; size = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TreeNode(Point point) \r\n {\r\n if (point == null) throw new IllegalArgumentException();\r\n this.point = point;\r\n }", "public KDTree()\n\t{\n\t}", "public SegmentTree() {}", "public VPHashTree(int depth, Collection<? extends VPPoint> points) {\n super(points, DEFAULT_BIN_SIZE);\n this.depth = depth;\n this.depthReached = false;\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 void createTree() {\n\t\taddNodeToParent(nodeMap);\n\t}", "public TreeNode(){ this(null, null, 0);}", "public VPHashTree(int depth, ArrayList<? extends VPPoint> points,\n int nodeCapacity) {\n super(points, nodeCapacity);\n this.depth = depth;\n this.depthReached = false;\n }", "public Tree() {\n // constructor. no nodes in tree yet\n root = null;\n }", "public Tree(){\n root = null;\n }", "public KdTree() {\n root = null;\n }", "public KdTree() {\n root = null;\n n = 0;\n }", "private HPTNode<K, V> buildRoot() {\n HPTNode<K, V> node = new HPTNode<K, V>(keyIdSequence++, null);\n node.children = reallocate(ROOT_CAPACITY);\n return node;\n }", "private void buildRoot() {\n this.root = new GPRootTreeNode(this.tree);\n }", "public Node(Point p) //is this needed\n\t{\n\t\tpoint = p;\n\t\tnext = null;\n\t}", "private void createTree() {\n\n // custom brown color\n Color brown = new Color(149, 99, 57);\n\n // trunk\n NscComponent trunk = new NscRectangle(49, 164, 13, 51);\n createShape(trunk, brown, true);\n\n // branches\n drawLine(50, 125, 50, 165, 10, brown);\n drawLine(25, 125, 50, 165, 10, brown);\n drawLine(75, 125, 50, 165, 10, brown);\n\n // branch outlines\n drawLine(49, 125, 49, 150, 1, Color.black);\n drawLine(60, 125, 60, 150, 1, Color.black);\n drawLine(24, 125, 49, 165, 1, Color.black);\n drawLine(35, 125, 50, 150, 1, Color.black);\n drawLine(85, 125, 60, 165, 1, Color.black);\n drawLine(74, 125, 60, 150, 1, Color.black);\n\n // leafs\n NscEllipse leafs2 = new NscEllipse(0, 5, 60, 122);\n NscEllipse leafs3 = new NscEllipse(50, 5, 60, 122);\n NscEllipse leafs = new NscEllipse(25, 0, 60, 127);\n NscEllipse leafs4 = new NscEllipse(25, 1, 60, 124);\n createShape(leafs2, treeColor, true);\n createShape(leafs3, treeColor, true);\n createShape(leafs, treeColor, true);\n createShape(leafs4, treeColor, false);\n\n repaint();\n }", "public PointSET() {\n //s = new TreeSet<Point2D>(Point2D.X_ORDER);\n }", "public Tree() // constructor\n\t{ root = null; }", "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 TreeNode(boolean alive) {\n this.northWest = null;\n this.northEast = null;\n this.southWest = null;\n this.southEast = null;\n\n this.level = 0;\n this.alive = alive;\n this.population = alive ? 1 : 0;\n }", "public Leaf(){}", "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 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 PMQuadtree() {\n\t\tvalidator = null;\n\t\troot = whiteSingleton;\n\t\t\n\t\tspatialOrigin = new Point2D.Float(0, 0);\n\t}", "public KdTree() \r\n\t{\r\n\t}", "public KdTree() \n\t {\n\t\t \n\t }", "public TreeNode() {\n // do nothing\n }", "private BinaryTree() {\n root = new Node(0);\n }", "public Node()\n {\n this.name=\"/\";\n this.type=0;\n this.stage=0;\n children=new ArrayList<Node>();\n }", "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}", "FractalTree() {\r\n }", "private Node createNullLeaf(Node parent) {\n Node leaf = new Node();\n leaf.color = Color.BLACK;\n leaf.isNull = true;\n leaf.parent = parent;\n leaf.count = Integer.MAX_VALUE;\n leaf.ID = Integer.MAX_VALUE;\n return leaf;\n }", "private Node constructParsedTree(Node[] nodes) {\n int rootIndex = 0;\n for (int i = 0; i < nodes.length; i++) {\n if (nodes[i].getFather() > 0)\n nodes[nodes[i].getFather() - 1].addChild(nodes[i]);\n else\n rootIndex = i;\n }\n return nodes[rootIndex];\n }", "private void createRootNode()\r\n {\r\n root = new Node(\"root\", null);\r\n Node.clear();\r\n }", "public PointSET() {\n pointSet = new TreeSet<>();\n }", "public TreeNode() {\n }", "public KdTree() {\n size = 0;\n }", "public BinaryTree(){\r\n root = null;\r\n }", "public void insert(Point2D p) { // add the point to the set (if it is not already in the set)\n // \"write a simplified version of insert() which does everything except set up the RectHV for each node\"\n if (p == null) throw new IllegalArgumentException();\n\n\n if (root == null) {\n Node node = new Node();\n node.p = p;\n node.horizontal = false;\n node.rect = new RectHV(0.0, 0.0, 1.0, 1.0);\n root = node;\n size = 1;\n return;\n }\n\n if (!contains(p)) {\n size++;\n insertNextFreeSubTree(p, root);\n }\n\n }", "public TtreeNode() {\n\t numberOfNodes++;\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 AVLTree() \r\n\t{\r\n\t\tthis.root = new AVLNode(null);\r\n\t}", "TreeNode(){\n this.elem = null;\n this.left = null;\n this.right = null;\n }", "private TreeNode createTree() {\n // Map<String, String> map = new HashMap<>();\n // map.put(\"dd\", \"qq\");\n // 叶子节点\n TreeNode G = new TreeNode(\"G\");\n TreeNode D = new TreeNode(\"D\");\n TreeNode E = new TreeNode(\"E\", G, null);\n TreeNode B = new TreeNode(\"B\", D, E);\n TreeNode H = new TreeNode(\"H\");\n TreeNode I = new TreeNode(\"I\");\n TreeNode F = new TreeNode(\"F\", H, I);\n TreeNode C = new TreeNode(\"C\", null, F);\n // 构造根节点\n TreeNode root = new TreeNode(\"A\", B, C);\n return root;\n }", "public Node() {}", "public Node() {}", "public Node() {}", "public Node() {}", "public ExpressionTree()\n\t\t{\n\t root = null;\n\t\t}", "public void createNode()\r\n\t{\r\n\t\tTreeNode first=new TreeNode(1);\r\n\t\tTreeNode second=new TreeNode(2);\r\n\t\tTreeNode third=new TreeNode(3);\r\n\t\tTreeNode fourth=new TreeNode(4);\r\n\t\tTreeNode fifth=new TreeNode(5);\r\n\t\tTreeNode sixth=new TreeNode(6);\r\n\t\tTreeNode seventh=new TreeNode(7);\r\n\t\tTreeNode eight=new TreeNode(8);\r\n\t\tTreeNode nine=new TreeNode(9);\r\n\t\troot=first;\r\n\t\tfirst.left=second;\r\n\t\tfirst.right=third;\r\n\t\tsecond.left=fourth;\r\n\t\tthird.left=fifth;\r\n\t\tthird.right=sixth;\r\n\t\tfifth.left=seventh;\r\n\t\tseventh.right=eight;\r\n\t\teight.left=nine;\r\n\t\t\r\n\t}", "public KdTree() {\n }", "public TreeNode()\r\n\t\t{\r\n\t\t\thead = null; //no data so set head to null\r\n\t\t}", "public BinaryTree() {\n root = null;\n }", "public BinaryTree() {\n root = null;\n }", "public AVLTree() { \n super();\n // This acts as a sentinel root node\n // How to identify a sentinel node: A node with parent == null is SENTINEL NODE\n // The actual tree starts from one of the child of the sentinel node !.\n // CONVENTION: Assume right child of the sentinel node holds the actual root! and left child will always be null.\n \n }", "private void populate_tree(KDTree kdtree, ArrayList<Point> pointSet) {\n\t\tfor (Point p : pointSet) {\n\t\t\t\n\t\t\tArrayList<Double> coordinates = p.getCoordinates();\n\n\t\t\tdouble[] key = new double[coordinates.size()];\n\n\t\t\tfor (int i = 0; i < coordinates.size(); i++) {\n\t\t\t\tkey[i] = coordinates.get(i);\n\t\t\t}\n\n\t\t\tkdtree.insert(key, p);\n\t\t}\n\n\t}", "public RedBlackTree()\n { \n \t root = null;\n }", "public FpTreeNode() {\n item_num = -1;\n parentNode = null;\n }", "public TwoFourTree()\r\n\t{\r\n\t\troot = new TreeNode(); //assign the root to a new tree node\r\n\t}", "public BinaryTree() {\n\t}", "public KdTree() {\n this.root = null;\n this.size = 0;\n }", "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 void makeEmpty( )\r\n\t{\r\n\t\troot = null;\r\n\t}", "public BinaryTree(){}", "public Node()\n {\n \n name = new String();\n type = new String(\"internal\"); //Initial Node type set to internal\n length = new Double(0); //Set initial branch length to zero\n children = new ArrayList<Node>();\n level = 0;\n treesize = new Double(0);\n depth = 0;\n newicklength = 0;\n startycoord = -1;\n startxcoord = -1;\n endxcoord = -1;\n endycoord = -1;\n standardy = -1;\n selected = false;\n xmultiplier = 0;\n ymultiplier = 0;\n }", "public RBTree() {\r\n\t\t// well its supposed just create a new Red Black Tree\r\n\t\t// Maybe create a new one that does a array of Objects\r\n\t}", "public MyTreeSet()\r\n {\r\n root = null;\r\n }", "public Node(){}", "public BrutePointST() {\n\n bst = new RedBlackBST();\n \n //for (Point2D key: bst.keys()) {\n // bst.put(null, null);\n //}\n }", "public TernaryTree() {\n root = null;\n\n }", "public AVLTree() {\n\t\tthis.root = null;\n\t}", "public PointSET() { // construct an empty set of points\n\n }", "public TreeBuilder() {\n\t\troot = null;\n\t}", "public TreeNode() { \n this.name = \"\"; \n this.rule = new ArrayList<String>(); \n this.child = new ArrayList<TreeNode>(); \n this.datas = null; \n this.candAttr = null; \n }", "public TreeImpl(T dato) {\r\n\t\traiz = new NodeImpl<T>(dato, null);// El null dice que es raiz\r\n\t}", "public BinaryTree()\n\t{\n\t\troot = null;\n\t}", "protected void makeTheTree(){\n\n structure.getRootNode().branchList.add(structure.getNode11());\n structure.getRootNode().branchList.add(structure.getNode12());\n structure.getRootNode().branchList.add(structure.getNode13());\n\n structure.getNode11().branchList.add(structure.getNode111());\n structure.getNode11().branchList.add(structure.getNode112());\n structure.getNode11().branchList.add(structure.getNode113());\n\n structure.getNode13().branchList.add(structure.getNode131());\n\n structure.getNode112().branchList.add(structure.getNode1121());\n\n }", "public PointSET() {\n mPoints = new TreeSet<Point2D>();\n }", "public void insert(Point2D p) {\n checkNull(p);\n if (size == 0) {\n root = new Node(p, V);\n } else {\n Node n = root;\n while (true) {\n double cmp = comparePoints(p, n);\n if (cmp < 0) {\n if (n.leftOrBot == null) {\n n.leftOrBot = new Node(p, !n.dir);\n break;\n }\n n = n.leftOrBot;\n } else if (cmp ==0) {\n return;\n } else {\n if (n.rightOrTop == null) {\n n.rightOrTop = new Node(p, !n.dir);\n break;\n }\n n = n.rightOrTop;\n }\n }\n }\n size++;\n }", "public Node() {\r\n\t}", "public Node() {\r\n\t}", "public AVLTree() {\r\n\r\n\r\n this.root = new AVLTreeNode(9);\r\n Delete(9);\r\n }", "public BinarySearchTree() {}", "public void makeEmpty()\n {\n root = nil;\n }", "public BinaryTree() {\n count = 0;\n root = null;\n }", "public void makeEmpty() {\r\n\t\troot = null;\r\n\t}", "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() {\r\n root = null;\r\n }", "public ObjectBinaryTree() {\n root = null;\n }", "public void nodeDemo() {\n final PLayer layer = getCanvas().getLayer();\n final PNode aNode = PPath.createRectangle(0, 0, 100, 80);\n\n // A node needs to be a descendent of the root to be displayed on the\n // screen.\n layer.addChild(aNode);\n\n // The default color for a node is blue, but you can change that with\n // the setPaint method.\n aNode.setPaint(Color.red);\n\n // A node can have children nodes added to it.\n aNode.addChild(PPath.createRectangle(0, 0, 100, 80));\n\n // The base bounds of a node is easy to change. Note that changing the\n // base\n // bounds of a node will not change it's children.\n aNode.setBounds(-10, -10, 200, 110);\n\n // Each node has a transform that can be used to transform the node, and\n // all its children on the screen.\n aNode.translate(100, 100);\n aNode.scale(1.5);\n aNode.rotate(45);\n\n // The transparency of any node can be set, this transparency will be\n // applied to any of the nodes children as well.\n aNode.setTransparency(0.75f);\n\n // Its easy to copy nodes.\n final PNode aCopy = (PNode) aNode.clone();\n\n // Make is so that the copies children are not pickable. For this\n // example\n // that means you will not be able to grab the child and remove it from\n // its parent.\n aNode.setChildrenPickable(false);\n\n // Change the look of the copy\n aNode.setPaint(Color.GREEN);\n aNode.setTransparency(1.0f);\n\n // Let's add the copy to the root, and translate it so that it does not\n // cover the original node.\n layer.addChild(aCopy);\n aCopy.setOffset(0, 0);\n aCopy.rotate(-45);\n }", "private void createVertices(int iX, int iY, int iXO, int iYO, int num, int increment) {\n int y = iY;\n if (num == 0 && increment == 0) {\n BracketNode last = new BracketNode(\"\", iX, y - 20, iXO, 20);\n nodes.add(last);\n getChildren().addAll(new Line(iX, iY, iX + iXO, iY), last);\n last.setName(currentBracket.getBracket().get(location));\n bracketMap.put(last, location);\n nodeMap.put(location, last);\n } else {\n ArrayList<BracketNode> aNodeList = new ArrayList<>();\n for (int i = 0; i < num; i++) {\n Point2D tl = new Point2D(iX, y);\n Point2D tr = new Point2D(iX + iXO, y);\n Point2D bl = new Point2D(iX, y + iYO);\n Point2D br = new Point2D(iX + iXO, y + iYO);\n BracketNode nTop = new BracketNode(\"\", iX, y - 20, iXO, 20);\n aNodeList.add(nTop);\n nodes.add(nTop);\n BracketNode nBottom = new BracketNode(\"\", iX, y + (iYO - 20), iXO, 20);\n aNodeList.add(nBottom);\n nodes.add(nBottom);\n Line top = new Line(tl.getX(), tl.getY(), tr.getX(), tr.getY());\n Line bottom = new Line(bl.getX(), bl.getY(), br.getX(), br.getY());\n Line right = new Line(tr.getX(), tr.getY(), br.getX(), br.getY());\n getChildren().addAll(top, bottom, right, nTop, nBottom);\n isTop = !isTop;\n y += increment;\n }\n ArrayList<Integer> tmpHelp = helper(location, num);\n for (int j = 0; j < aNodeList.size(); j++) {\n //System.out.println(currentBracket.getBracket().get(tmpHelp.get(j)));\n aNodeList.get(j).setName(currentBracket.getBracket().get(tmpHelp.get(j)));\n bracketMap.put(aNodeList.get(j), tmpHelp.get(j));\n nodeMap.put(tmpHelp.get(j), aNodeList.get(j));\n //System.out.println(bracketMap.get(aNodeList.get(j)));\n }\n }\n\n }", "public Node()\n\t{\n\t\toriginalValue = sumValue = 0;\n\t\tparent = -1;\n\t}", "public void makeEmpty() {\n\t\troot = null;\n\t}", "public Node(Point p, Node n)\n\t{\n\t\tpoint = p;\n\t\tnext = n;\n\t}", "public Node() {\n\t}", "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 }", "public TreeRootNode() {\n super(\"root\");\n }", "public IntTree() {\n overallRoot = null;\n }", "public TDTree(TriangleShape root,int leafCapacity,StorageManager sm,JavaSparkContext sparkContext) {\n super(root,leafCapacity);\n triangleEncoder = new TriangleEncoder((TriangleShape)this.baseTriangle);\n storageManager=sm;\n leafInfos = new HashMap<>();\n\n emptyNodes = new ArrayList<String>();\n emptyNodes.add(\"1\");\n sparkRDD=null;\n constructedRDD= new AtomicBoolean(false);\n this.sparkContext=sparkContext;\n }", "public static void build ()\r\n {\r\n lgt.insert(1);\r\n lgt.insert(2);\r\n lgt.insert(5);\r\n \r\n lgt.findRoot();\r\n lgt.insert(3);\r\n \r\n lgt.findRoot();\r\n lgt.insert(4);\r\n \r\n lgt.insert(6);\r\n lgt.findParent();\r\n lgt.insert(7);\r\n \r\n }" ]
[ "0.6911319", "0.64693767", "0.6431476", "0.64108413", "0.6404717", "0.6279186", "0.62749624", "0.6237752", "0.6192859", "0.61899585", "0.6152549", "0.6141922", "0.6130734", "0.6117975", "0.61032754", "0.6100419", "0.60949415", "0.60905707", "0.60790527", "0.6074118", "0.607267", "0.60725695", "0.60684896", "0.60657996", "0.606092", "0.60553896", "0.60433394", "0.60289216", "0.60266685", "0.60181373", "0.60062844", "0.6005472", "0.5999109", "0.59987926", "0.59955645", "0.5987462", "0.597228", "0.5971595", "0.5953841", "0.5947001", "0.59441584", "0.5937104", "0.59368044", "0.5915764", "0.5913146", "0.5913146", "0.5913146", "0.5913146", "0.59131116", "0.59080076", "0.59078056", "0.59031427", "0.59024215", "0.59024215", "0.5890678", "0.5889032", "0.58884656", "0.5878928", "0.5878295", "0.58780974", "0.5876289", "0.5867237", "0.5863522", "0.58572435", "0.58544886", "0.58518976", "0.5847297", "0.58470315", "0.5840827", "0.58374", "0.5825607", "0.5810906", "0.5808179", "0.58035696", "0.57963514", "0.5789091", "0.57875466", "0.5786773", "0.5773308", "0.5768248", "0.5768248", "0.5755636", "0.5741748", "0.573071", "0.57304597", "0.57284313", "0.5727018", "0.5724293", "0.57057536", "0.57045573", "0.5701373", "0.57009125", "0.5699389", "0.56956154", "0.569011", "0.5687734", "0.56867886", "0.5680528", "0.56784385", "0.5675378" ]
0.58803374
57
is the tree empty?
public boolean isEmpty() { return root == null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean empty() {\r\n\t\t return(this.root == null);\r\n\t }", "public boolean isEmpty() \n\t{\n\t\treturn root == null;//if root is null, tree is empty\n\t}", "private boolean isEmpty()\r\n\t{\r\n\t\treturn getRoot() == null;\r\n\t}", "public boolean empty() {\n\t\treturn (this.root == null); // to be replaced by student code\n\t}", "public boolean isEmpty()\r\n {\r\n return root == null;\r\n }", "public boolean isEmpty(){\n return this.root == null;\n }", "public boolean empty( ) {\n return (root == null);\n }", "@Override\n public boolean isEmpty() {\n return root == null;\n }", "boolean isEmpty(){\r\n\t\t\r\n\t\treturn root == null;\r\n\t}", "public boolean empty() {\n if(root==EXT_NODE) {\r\n \treturn true;\r\n }\r\n return false;\r\n }", "public boolean isEmpty()\r\n {\r\n return root == null;\r\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn (this.root == null);\r\n\t}", "@Override\n public boolean isEmpty() {\n return (that.rootNode == null);\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\tmodCount = root.numChildren();\n\t\treturn (modCount == 0);\n\t}", "public boolean isEmpty( )\r\n\t{\r\n\t\treturn root == null;\r\n\t}", "boolean isEmpty(){\n return root == null;\n }", "public boolean isEmpty(){\n return (root == null);\n }", "public boolean isEmpty()\n {\n return root == nil;\n }", "public boolean isEmpty()\n {\n return root == nil;\n }", "public boolean isEmpty() {\n // if the root has nothing then there can be no tree. so True\n if (root == null) {\n return true;\n } else {\n return false;\n }\n }", "public boolean isEmpty() {\r\n\t\treturn root == null;\r\n\t}", "public boolean isEmpty() {\r\n\t\treturn root == null;\r\n\t}", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n return root == null;\n }", "public boolean isEmpty() {\n\t\treturn root == null;\n\t}", "public boolean isEmpty() {\n\t\treturn treeMap.isEmpty();\n\t}", "public boolean isEmpty() {\n\t\treturn BST.isEmpty();\n\t\t}", "public boolean isEmpty() { \n return (bst.size() == 0);\n }", "public boolean isEmpty() {\r\n \r\n // return a boolean, true if empty\r\n return root == null;\r\n }", "public boolean isEmpty() {\n\t\treturn mSentinel == mRoot;// if the root is equal to the sentinel(empty\n\t\t\t\t\t\t\t\t\t// node) then the tree is empty otherwise it\n\t\t\t\t\t\t\t\t\t// is not\n\t}", "public void testIsEmpty() {\r\n assertTrue(tree.isEmpty());\r\n tree.insert(\"apple\");\r\n assertFalse(tree.isEmpty());\r\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\tif (root == null) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean empty() {\n if(root.next==null)\n return true;\n return false;\n }", "@Override\r\n public boolean isEmpty(){\r\n // Set boolean condition to false\r\n boolean isEmpty = false;\r\n // If the root is null, the tree is empty\r\n if(root == null){\r\n //Set condition to true\r\n isEmpty = true;\r\n }\r\n // Return the condition\r\n return isEmpty;\r\n }", "public boolean isEmpty() {\r\n\t\t\r\n\t\treturn topNode == null; // Checks if topNode is null;\r\n\t\t\r\n\t}", "public boolean isEmpty(){\n return firstNode == null;\n }", "public boolean isEmpty(){\n return firstNode == null;\n }", "@Override\n public boolean isEmpty() {\n return this.numNodes == 0;\n }", "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn getNumberOfNodes() == 0;\r\n\t}", "public boolean isEmpty()\n {\n return(nodes.isEmpty());\n }", "public boolean isNotEmpty(){\n return root != null;\n }", "public boolean isEmpty()\n {\n return (numNodes == 0);\n }", "public boolean isLeaf()\n/* */ {\n/* 477 */ return this.children.isEmpty();\n/* */ }", "private boolean isTreeFull() {\n // The number of leaf nodes required to store the whole vector\n // (each leaf node stores 32 elements).\n int requiredLeafNodes = (totalSize >>> 5);\n\n // The maximum number of leaf nodes we can have in a tree of this\n // depth (each interior node stores 32 children).\n int maxLeafNodes = (1 << treeDepth);\n\n return (requiredLeafNodes > maxLeafNodes);\n }", "public boolean empty() \n { \n\treturn(top==-1);\n \n }", "@Override\n \t\tpublic boolean isEmpty() {\n \t\t\treturn (state != null && state.getChildrenCount(currentPage) == 0);\n \t\t}", "public boolean isEmpty() {\n return firstNode == null;\n }", "public boolean empty(){\n return this.top == -1;\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn firstNode.equals(null);\n\t}", "@Override\n\tpublic boolean isEmpty() {\n\t\tif(nodeCount == 0) return true;\n\t\telse return false;\n\t}", "public boolean isEmpty() {\n\t\treturn firstNode == null;\n\t}", "public Boolean isEmpty() {\n\t\tBoolean empty=true;\n\t\tif(nodes.isEmpty()==false) {\n\t\t\tempty=false;\n\t\t}\n\t\treturn empty;\n\t}", "public boolean isLeaf() { return (data.length == 0); }", "@Override\n\t\tpublic boolean isLeaf() {\n\t\t\treturn getChildCount() == 0;\n\t\t}", "public boolean isEmpty() {\n return this.top == null;\n }", "public boolean isEmpty() {\r\n return (top == null);\r\n }", "public boolean isLeaf() {\n\t\treturn children.isEmpty();\n\t}", "public boolean isEmpty()\r\n {\n return this.top == null;\r\n }", "public boolean checkEmpty() \n { \n return header.rightChild == nullNode; \n }", "public boolean empty() { \n if (top == -1) {\n return true;\n }\n else {\n return false;\n }\n }", "public boolean isEmpty(){\n return (top == 0);\n }", "public boolean isLeaf() {\r\n return (_children == null) || (_children.size() == 0);\r\n }", "boolean isEmpty() {\n\t\treturn m_list_nodes.size() == 0;\n\t}", "public boolean isEmpty(){\n \treturn top==-1;\n\t}", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn top==null;\r\n\t}", "public boolean hasChildren()\n/* */ {\n/* 487 */ return !this.children.isEmpty();\n/* */ }", "public boolean isLeaf() {\n return children.size() == 0;\n }", "public boolean isLeaf() {\n return children.size() == 0;\n }", "public boolean isEmpty() {\n\n return (top == null);\n }", "public boolean empty() {\n return left.isEmpty()&&right.isEmpty();\n }", "public boolean isEmpty() {\n return top==-1;\n }", "public boolean isEmpty() {\n\t\treturn (top == null) ? true : false;\n\t}", "public boolean isEmpty()\n\t{\n\t\treturn top == null;\n\t}", "boolean isEmpty() {\r\n\t\treturn top==0;\r\n\t}", "public boolean isEmpty(){\n if(top == null)return true;\n return false;\n }", "public boolean isEmpty() {\n return (this.top == 0);\n }", "boolean treeFinished(treeNode root){\n\t\treturn (root.parent == null && root.lc == null && root.rc == null);\n\t}", "public boolean isLeaf() {\r\n\t\t\treturn (children.size() == 0);\r\n\t\t}", "public boolean isEmpty()\r\n\t{\r\n\t\treturn top<=0;\r\n\t}", "boolean isEmpty() {\n // -\n if(top == null)\n return true;\n return false;\n }", "private boolean isLeaf()\r\n\t\t{\r\n\t\t\treturn getLeftChild() == null && getRightChild() == null;\r\n\t\t}", "public boolean isEmpty() {\n return top == null;\n }", "public boolean isEmpty() {\n return top == null;\n }", "private boolean isLeafNode() {\r\n return (this.left == null && this.right == null);\r\n }", "public boolean isEmpty() {\n\t\t\n\t\treturn top == null;\n\t}", "public boolean isEmpty() {\n if(this.top== -1) {\n return true;\n }\n return false;\n }", "private boolean isLeaf() {\n return this.children == null;\n }", "public boolean isEmpty()\n {\n return graph.isEmpty();\n }", "public boolean isEmpty() {\n \treturn stack.size() == 0;\n }", "public boolean isLeaf(){\n\t\tif(this.leftTree().isEmpty() && this.rightTree().isEmpty())\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean empty() {\r\n return stack.isEmpty();\r\n }", "protected final boolean isLeaf() {\n return (getChildIds().isEmpty());\n }", "public boolean empty() {\n return stack.empty();\n }", "public boolean empty() {\r\n return stack.isEmpty();\r\n }", "public boolean isLeaf()\r\n {\r\n return this.getLeft()==null&&this.getRight()==null;\r\n }" ]
[ "0.85653037", "0.84948325", "0.8449184", "0.84094703", "0.83166915", "0.8300659", "0.8298185", "0.82509357", "0.82114965", "0.8197395", "0.8178642", "0.81565094", "0.8141589", "0.81260127", "0.81071603", "0.81053954", "0.80862606", "0.80812204", "0.80812204", "0.8047776", "0.8037431", "0.8037431", "0.80236536", "0.80236536", "0.80236536", "0.80236536", "0.80236536", "0.80236536", "0.79996985", "0.79668087", "0.79552543", "0.7913313", "0.7903407", "0.7889426", "0.7885029", "0.78728193", "0.7822905", "0.7797197", "0.7764968", "0.77629274", "0.77629274", "0.776248", "0.7718079", "0.77100235", "0.7643994", "0.7630298", "0.76043844", "0.7603421", "0.75966644", "0.758276", "0.7578382", "0.75719905", "0.75692785", "0.7547904", "0.75307494", "0.7524284", "0.74888724", "0.7455686", "0.7445699", "0.7440189", "0.74400645", "0.74388605", "0.74314684", "0.7416066", "0.7411584", "0.74037945", "0.7395378", "0.73917663", "0.737824", "0.7375852", "0.73595923", "0.73595923", "0.73365164", "0.73288894", "0.7327261", "0.7326497", "0.73182666", "0.7317079", "0.73109096", "0.7307097", "0.73045474", "0.72957665", "0.72873926", "0.7266532", "0.7259386", "0.7257645", "0.7257645", "0.7245771", "0.72112495", "0.72035706", "0.71782047", "0.7158283", "0.7156889", "0.7152197", "0.7151811", "0.71476144", "0.7140724", "0.71399266", "0.7133119" ]
0.8113572
15
number of nodes in the tree
public int size() { return size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int countNodes(){\r\n \treturn count(root);\r\n }", "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 {\r\n return countNodes(root);\r\n }", "int getNodeCount();", "int getNodeCount();", "public int numberOfNodes() {\n return numberOfNodes(root);\n }", "public int countNodes()\n {\n return countNodes(root);\n }", "public int countNodes()\n {\n return countNodes(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 }", "@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}", "int NoOfNodes() {\r\n return noOfNodes;\r\n }", "protected int numNodes() {\n\t\treturn nodes.size();\n\t}", "public static int countNodes() {\n\t\treturn count_nodes;\n\t}", "public int size() {\n return tree.count();\n }", "public int getNumOfNodes() {\n\t\treturn getNumOfNodes(this);\n\t}", "int nodeCount();", "public int numNodes() {\r\n\t\treturn numNodes(root);\r\n\t}", "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}", "public int getNodeCount() {\n return dataTree.getNodeCount();\n }", "public int my_node_count();", "public int nodeCount(){\r\n\t\treturn size;\r\n\t}", "public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }", "public int nodesCount() {\n return nodes.size();\n }", "private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}", "public int getNodeCount() {\n return node_.size();\n }", "int totalNumberOfNodes();", "public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }", "public int getNodeCount() {\n return nodeCount;\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 }", "@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 nodeSize()\n{\n\treturn getNodes().size();\n}", "public int size(){\n if(root!=null){ // มี node ใน tree\n return size(root);\n }\n else{\n return 0; // tree เปล่า size 0\n }\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 getNumNodes() {\n\t\treturn nodes.size();\n\t}", "@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}", "public int totalNumNodes () { throw new RuntimeException(); }", "public abstract int getNumChildren();", "int numNodes() {\n\t\treturn num_nodes;\n\t}", "int getChildCount();", "public int count( ) {\n if(empty()) {\n return 0;\n } else{\n return countNodes(root);\n }\n }", "public int nodeCount() {\n return this.root.nodeCount();\n }", "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 numNodes() {\n\t\treturn numNodes;\n\t}", "public int size(){\n return nodes.size();\n }", "public int size()\r\n { \r\n return numNodes;\r\n }", "public int my_leaf_count();", "public int getNodeCount() {\n if (nodeBuilder_ == null) {\n return node_.size();\n } else {\n return nodeBuilder_.getCount();\n }\n }", "@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\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 }", "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 numTrees () { throw new RuntimeException(); }", "public int getChildCount();", "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 }", "public int size() // return the number of nodes in the tree\r\n {\r\n return root.sizen;\r\n }", "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 getNodesCount() {\n if (nodesBuilder_ == null) {\n return nodes_.size();\n } else {\n return nodesBuilder_.getCount();\n }\n }", "private int numberOfNodes(Node root){\n if(root==null){\n return 0;\n }\n return 1 + numberOfNodes(root.getLeft()) + numberOfNodes(root.getRight());\n }", "@Override\n\tpublic int size() {\n\t\tmodCount = root.numChildren();\n\t\treturn modCount;\n\t}", "public int size()\n {\n return nodes.size();\n }", "int size()\r\n\t{\r\n\t\treturn size(root);\r\n\t}", "public int size() \r\n\t{\r\n\t\treturn size(root);\r\n\t}", "public int size() {\n return root.getNumberOfTerminalsInSubTree();\n }", "public int size(){\n return size(root);\n }", "public int size() {\n return nodes.size();\n }", "public final int size() {\n return nNodes;\n }", "public int size() {\r\n\t\treturn size(rootNode);\r\n\t}", "@Override\n public int nodeSize() {\n return this.nodes.size();\n }", "public int size() {\n\t\treturn nodes.size();\n\t}", "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 }", "public int size() \n\t {\n\t\t return size(root);\n\t }", "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 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 getVariablesNumberInTree() {\n\t\tList<Node> l = getFirstLevelSubnodes();\n\n\t\treturn l != null ? l.size() : 0;\n\t}", "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}", "int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}", "int size() \n { \n return size(root); \n }", "public int size() {\n\t\treturn root.count();\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 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 nodesInTree() \n { \n return nodesInTree(header.rightChild); \n }", "public int countLeaves(){\n return countLeaves(root);\n }", "public abstract int getNodeRowCount();", "public int numNodes() {\n return nodeVector.size();\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 }", "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 {\n return _root.size();\n }", "public int size() \n {\n return size(root);\n }", "public int size() {\n\t\treturn size(root);\n\t}", "public int size() {\n\t\treturn size(root);\n\t}", "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}", "@Override\n\tpublic int size() {\n\t\tif(top == null) {\n\t\t\treturn 0;\n\t\t}\n\t\tNode<T> tempNode = top;\n\t\tint counter = 1;\n\t\twhile(tempNode.getLink() != null) {\n\t\t\tcounter++;\n\t\t\ttempNode = tempNode.getLink();\n\t\t}\n\t\treturn counter;\n\t}", "@Override\n\tpublic int size() {\n\t\treturn nodeCount;\n\t}", "@Override\n public int nodeCount() {\n return graphNodes.size();\n }", "@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\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}", "public int getChildCount()\n/* */ {\n/* 500 */ return this.children.size();\n/* */ }", "@Override\n\tpublic int nodeSize() {\n\t\treturn this.Nodes.size();\n\t}", "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 }" ]
[ "0.86105424", "0.85084546", "0.8398174", "0.83646375", "0.83646375", "0.8360599", "0.83514637", "0.83514637", "0.8338222", "0.8338222", "0.82478076", "0.8200851", "0.81961626", "0.8187722", "0.8183124", "0.81815493", "0.81353706", "0.8125691", "0.809621", "0.8093353", "0.808436", "0.8061709", "0.80229807", "0.8017825", "0.80069906", "0.7987458", "0.7963395", "0.7961012", "0.7947302", "0.7927518", "0.79117435", "0.7909681", "0.79042864", "0.79021496", "0.78970593", "0.78959423", "0.78940666", "0.78730655", "0.7856249", "0.7823775", "0.7801588", "0.77982527", "0.7793945", "0.7784047", "0.7782916", "0.77722454", "0.7755345", "0.77544993", "0.7749367", "0.7748064", "0.77430767", "0.77369624", "0.7732097", "0.7728635", "0.7715073", "0.7714379", "0.770839", "0.77065825", "0.7702056", "0.76739687", "0.7671502", "0.7663756", "0.7637696", "0.76124215", "0.7609255", "0.76027274", "0.75931525", "0.75902", "0.758731", "0.75836164", "0.7569148", "0.75599897", "0.7556752", "0.75535744", "0.7550669", "0.7544583", "0.75424063", "0.75413644", "0.75358665", "0.7526407", "0.75208974", "0.7519047", "0.75142646", "0.7511928", "0.751156", "0.7506577", "0.75040805", "0.7493308", "0.749172", "0.74753493", "0.74753493", "0.7474251", "0.74643105", "0.7455529", "0.7455364", "0.7452258", "0.7451902", "0.74438214", "0.74437714", "0.7436537", "0.74349624" ]
0.0
-1
add the point p to the tree (if it is not already in the tree)
public void insert(Point2D p) { if (isEmpty()) { Node n = new Node(p, true); root = n; return; } if (!contains(p)) { Node current = root; Node prev = null; boolean left = false; while (current != null) { prev = current; left = false; if (current.isVertical()) // compare by x { if (p.x() < current.getPoint().x()) { current = current.getLeft(); left = true; } else { current = current.getRight(); } } else // compare by y { if (p.y() < current.getPoint().y()) { current = current.getLeft(); left = true; } else { current = current.getRight(); } } } Node toInsert = new Node(p, !prev.isVertical()); if (left) { prev.setLeft(toInsert); } else { prev.setRight(toInsert); } size++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(Point2D p) { // add the point to the set (if it is not already in the set)\n // \"write a simplified version of insert() which does everything except set up the RectHV for each node\"\n if (p == null) throw new IllegalArgumentException();\n\n\n if (root == null) {\n Node node = new Node();\n node.p = p;\n node.horizontal = false;\n node.rect = new RectHV(0.0, 0.0, 1.0, 1.0);\n root = node;\n size = 1;\n return;\n }\n\n if (!contains(p)) {\n size++;\n insertNextFreeSubTree(p, root);\n }\n\n }", "public void insert(Point p) {\n if (p == null) {\n System.out.println(\"Illegal point argument\");\n }\n if (head == null || !search(p)) { //if root is empty or when the point isn't in the tree we insert it\n size++;\n head = insert(head, p, true);\n }\n }", "public void insert(Point2D p) {\n if (this.n ==0) {\n this.root = new Node(p, true, new RectHV(0,0,1,1));\n this.n++;\n } else {\n if (insert1(root, p)) this.n++;\n }\n }", "public void insert(Point2D p) {\n checkNull(p);\n if (size == 0) {\n root = new Node(p, V);\n } else {\n Node n = root;\n while (true) {\n double cmp = comparePoints(p, n);\n if (cmp < 0) {\n if (n.leftOrBot == null) {\n n.leftOrBot = new Node(p, !n.dir);\n break;\n }\n n = n.leftOrBot;\n } else if (cmp ==0) {\n return;\n } else {\n if (n.rightOrTop == null) {\n n.rightOrTop = new Node(p, !n.dir);\n break;\n }\n n = n.rightOrTop;\n }\n }\n }\n size++;\n }", "public void insert(Point2D p) {\n if (p == null)\n throw new IllegalArgumentException(\"Insert point is null\");\n Node newNode = new Node(p, null, null);\n if (isEmpty()) {\n root = newNode;\n n++;\n return;\n }\n if (this.contains(p))\n return;\n Node curr = root;\n boolean isX = true;\n int cmp;\n while (true) {\n if (isX)\n cmp = Point2D.X_ORDER.compare(p, curr.point);\n else\n cmp = Point2D.Y_ORDER.compare(p, curr.point);\n if (cmp < 0) {\n if (curr.left == null) {\n curr.left = newNode;\n break;\n }\n curr = curr.left;\n }\n else {\n if (curr.right == null) {\n curr.right = newNode;\n break;\n }\n curr = curr.right;\n }\n isX = !isX;\n }\n n++;\n }", "public void insert(Point2D p) {\n\t\tif (p == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tif (isEmpty()) {\n\t\t\troot = new Node(USING_X, null, p, new RectHV(0, 0, 1, 1));\n\t\t\tsize++;\n\t\t} else {\n\t\t\tNode nParent = findParent(root, null, p);\n\t\t\tif (nParent != null) {\n\t\t\t\tinsertChild(nParent, p);\n\t\t\t\tsize++;\n\t\t\t}\n\t\t}\n\t}", "public void insert(Point2D p) \r\n\t{\r\n\t\troot = insert(p, root, VER);\r\n\t}", "public void insert(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"insert: Point2D is null\");\n if (root == null) {\n root = new Node(p);\n size++;\n root.rect = new RectHV(0.0, 0.0, 1.0, 1.0); // the whole unit\n }\n else root = insertNode(root, p, true);\n }", "public void insert(Point2D p) {\n if (this.contains(p)) {\n return;\n }\n\n root = insert(root, root, p, ORIENTATION_VERTICAL);\n }", "public void insert(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"Attempted to insert null argument\");\n addTo(root, p);\n size++;\n }", "public void insert(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException();\n }\n this.root = insert(this.root, p, true);\n }", "public boolean addPoint(Point p);", "public void insert(Point2D p)\n\t {\n\t\t if(p==null)\n\t\t\t throw new java.lang.NullPointerException();\n\t\t root = insert(root,p,0,0,1,1, true);\n\t }", "private DataPoint _addPoint(DataPoint point) {\n DataPoint existingPoint = ntree.add(point);\n if (existingPoint != null) {\n return existingPoint;\n }\n ensureDistances();\n lastAddedPoint = point;\n return null;\n }", "@Override\n public boolean add(Point point) {\n if (!this.rectangle.contains(point)) {\n return false;\n }\n\n if (hasChildren) {\n for (QuadtreeNode node : children) {\n if (node.add(point)) {\n return true;\n }\n }\n return false;\n\n\n } else {\n points.add(point);\n if (points.size() == QuadtreeNode.MAX_LOCATION_CAPACITY) {\n subdivide();\n }\n }\n\n return true;\n }", "public void insert(Point2D p) {\n pointSet.add(p);\n }", "public void add(Point p) {\n add(p.xyz.x, p.xyz.y, p.xyz.z);\n }", "public void addPoint(Point3d p) {\n\n\t\t// Add the new point\n\t\tpoints.add(p);\n\n\t\tgeneratePoints();\n\t}", "public void insert(Point2D p) {\n mPoints.add(p);\n }", "public void addPoint(T p) {\n points.add(p);\n }", "public void insert(Point2D p) {\n if (p == null) {\n throw new java.lang.NullPointerException(\"inserting a null point\");\n }\n if (s.contains(p)) {\n return;\n }\n s.add(p);\n }", "public void insert(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException();\n }\n if (!points.contains(p))\n points.add(p);\n }", "public void addPoint(Point p) {\r\n line.add(p);\r\n }", "public void insert(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException(\"cannot insert null pt\");\n }\n pointsSet.add(p);\n }", "public boolean add(Point p, E data) {\n\t\tif (hasSpaces()) {\n\t\t\tpoints.put(p, data);\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public void addPoint(Point p) {\n\t\tpoints.add(p);\n\t\tnotifyListeners();\n\t}", "public void insert(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"Point is null or invalid\");\n if (!contains(p)) size++;\n put(p);\n }", "public void insert(Point2D p) {\n\n if (p == null)\n throw new IllegalArgumentException(\"Got null object in insert()\");\n\n point2DSET.add(p);\n }", "private Node put(Node x, Point2D p, Value val, boolean test) {\n\t\tif (x == null) {\n\t\t\tsize++;\n\t\t\treturn new Node(p, val,\n\t\t\t\t\tnew RectHV(-Double.MAX_VALUE, -Double.MAX_VALUE, Double.MAX_VALUE, Double.MAX_VALUE));\n\t\t}\n\t\t// decides where to place to point\n\t\tdouble comp = comparePoints(x, p, test);\n\t\tif (comp < 0)\n\t\t\tx.left = put(x.left, p, val, !test);\n\t\telse if (comp > 0)\n\t\t\tx.right = put(x.right, p, val, !test);\n\t\telse if (x.point.equals(p))\n\t\t\tx.val = val;\n\t\telse\n\t\t\tx.right = put(x.right, p, val, !test);\n\t\treturn x;\n\n\t}", "public boolean add(PointF point)\n {\n flushCache();\n return points.add(Geometry.clone(point));\n }", "public void add(Point3 p) {\r\n\t\tadd(p.x, p.y, p.z);\r\n\t}", "private void addPoint(PointF p) {\n final long t = System.currentTimeMillis();\n final int size;\n synchronized (lastSegment) {\n size = lastSegment.size();\n final PointF sheetPoint = sheet.toSheet(p);\n lastSegment.add(sheetPoint);\n lastSegmentTimes.add(t);\n lastSegmentCurve.setThickness(currentThickness);\n lastSegmentCurve.addPoint(sheetPoint);\n }\n if (size >= maxPoints - 1) {\n finishSegment();\n mode = IDLE_MODE;\n }\n }", "public void addTo(Point p){\n Point point = new Point(this.nbAttributes);\n float accu = 0;\n for (int i = 0; i < this.attributes.length; i++){\n accu = this.attributes[i] + p.attributes[i];\n this.attributes[i] = Math.round(accu) ;\n// System.out.print(accu + \" \");\n }\n }", "public void insert(Point2D p2d) {\n if (size == 0) {\n root = new Node();\n root.p2d = p2d;\n root.rect = new RectHV(0.0, 0.0, 1.0, 1.0);\n size++;\n }\n insert(root, p2d, true);\n }", "private KdTreeNode insert(Point point, KdTreeNode current, int idx) {\n if (current == null) {\n return new KdTreeNode(new Point(point.getX(), point.getY()));\n }\n\n // change 0 to 1 and vice versa, also can do i = 1 - i;\n if (KdTree.comparePoints(current.point, point, idx) > 0) {\n idx ^= 1;\n current.left = this.insert(point, current.left, idx);\n } else if (KdTree.comparePoints(current.point, point, idx) < 0) {\n idx ^= 1;\n current.right = this.insert(point, current.right, idx);\n }\n return current;\n }", "@Action\n public void addPoint() { \n Point2D pt = randomPoint();\n PrimitiveGraphic bp = JGraphics.point(pt, RandomStyles.point());\n bp.setDefaultTooltip(\"<html><b>Point</b>: <i> \" + pt + \"</i>\");\n bp.setDragEnabled(true);\n root1.addGraphic(bp);\n }", "public void put(Point2D p, Value val) {\n\n\t\tif (p == null || val == null)\n\t\t\tthrow new IllegalArgumentException(\"Can't be null\");\n\t\troot = put(root, p, val, true);\n\n\t}", "public void insertNearest(Point p) {\n if (size() == 0) {\n first.next = first;\n first.p = p;\n return;\n }\n double distanceBetweenNode;\n double minimumDistance = Double.POSITIVE_INFINITY;\n Node nearestN = null;\n Node n = first;\n do {\n distanceBetweenNode = n.p.distanceTo(p);\n if (distanceBetweenNode < minimumDistance) {\n nearestN = n;\n minimumDistance = distanceBetweenNode;\n }\n n = n.next;\n } while (!n.equals(first));\n Node newNode = new Node();\n newNode.p = p;\n newNode.next = nearestN.next;\n nearestN.next = newNode;\n }", "TreeNode(Point point) \r\n {\r\n if (point == null) throw new IllegalArgumentException();\r\n this.point = point;\r\n }", "public void appendPath(LinkedList newTree) {\n EtmPoint current = (EtmPoint) newTree.removeFirst();\n\n ExecutionAggregate aggregate = getChild(current.getName());\n\n if (newTree.isEmpty()) {\n aggregate.addTransaction(current);\n } else {\n aggregate.appendPath(newTree);\n }\n }", "public void put(Point2D p, Value val) {\n if (p == null || val == null) throw new IllegalArgumentException(\"input null\");\n root = put(p, val, root, rootVertical);\n }", "protected Point getNewPointRelatively(Point p){\n\t\treturn new Point((int) (p.getX()-CELL_SIZE),(int) (p.getY()-CELL_SIZE));\n\t}", "public void insertSmallest(Point p) {\n if (size() == 0) {\n first.next = first;\n first.p = p;\n return;\n }\n double leastDist;\n double minimumDistance = Double.POSITIVE_INFINITY;\n Node nearestN = null;\n Node n = first;\n do {\n leastDist = n.p.distanceTo(p) + n.next.p.distanceTo(p);\n leastDist = leastDist - n.p.distanceTo(n.next.p);\n if (leastDist < minimumDistance) {\n nearestN = n;\n minimumDistance = leastDist;\n }\n n = n.next;\n } while (!n.equals(first));\n Node newNode = new Node();\n newNode.p = p;\n newNode.next = nearestN.next;\n nearestN.next = newNode;\n }", "public Point2F add(Point2F p)\r\n {return new Point2F(x + p.x, y + p.y);}", "public void addPoints(int addP){\n this.points += addP;\n }", "@Override\n protected void rebalanceInsert(Position<Entry<K, V>> p) {\n if (!isRoot(p)) {\n makeRed(p);\n resolveRed(p); // The inserted red node may cause a double-red problem\n }\n }", "public void addPoint( final Point2d point ){\n points.add(new Point2d(point));\n\n dirty = true;\n }", "public void doAddPlaceable(TreePath path) {\n \n \t\tNode node = (Node) path.getLastPathComponent();\n \t\t// load and add palceable to tree here\n \t\trepaint();\n \t}", "public boolean testPoint(Point p){\n\t\tif(parents.contains(p)) return false;\n\t\treturn true;\n\t}", "public void addPricePoint(Prosument prosument, Point point)\n\t{\n\t\t\n\t\tint idListy = prosument.getID()-1;\n\t\tArrayList<Point> pointList = listaFunkcjiUzytecznosci.get(idListy);\t\t\n\t\t\n\t\tif (pointList.size()==0)\n\t\t{\n\t\t\tpointList.add(point);\n\t\t}\n\t\telse\n\t\t{\n\t\t\taddPricePointAndListNotEmpty(prosument, point, pointList);\n\t\t}\n\t\t\n\t\trynekHistory.addPointToHistoryFunkcjaUzytecznosci(idListy, listaFunkcjiUzytecznosci);\n\t\t\n\t}", "public Point add(Point point)\n {\n return new Point(this.x + point.x, this.y + point.y);\n }", "public void add(GPoint point) {\n\t\tpoints.add(new GPoint(point));\n\t}", "synchronized protected int addPoint(int x_p, int y_p, long layer_id, double magnification) {\n \t\tif (-1 == n_points) setupForDisplay(); //reload\n \t\t//lookup closest point and then get the closest clicked point to it\n\t\tint index = 0;\n\t\tif (n_points > 1) index = findClosestSegment(x_p, y_p, layer_id, magnification);\n \t\t//check array size\n \t\tif (p[0].length == n_points) {\n \t\t\tenlargeArrays();\n \t\t}\n \t\t//decide:\n \t\tif (0 == n_points || 1 == n_points || index + 1 == n_points) {\n \t\t\t//append at the end\n \t\t\tp[0][n_points] = x_p;\n \t\t\tp[1][n_points] = y_p;\n \t\t\tp_layer[n_points] = layer_id;\n \t\t\tindex = n_points;\n \n \t\t\tlast_autotrace_start = -1;\n \t\t} else if (-1 == index) {\n \t\t\t// decide whether to append at the end or prepend at the beginning\n \t\t\t// compute distance in the 3D space to the first and last points\n \t\t\tfinal double[] sqd0N = sqDistanceToEndPoints(x_p, y_p, layer_id);\n \t\t\t//final double sqdist0 = sqd0N[0];\n \t\t\t//final double sqdistN = sqd0N[1];\n \n \t\t\t//if (sqdistN < sqdist0)\n \t\t\tif (sqd0N[1] < sqd0N[0]) {\n \t\t\t\t//append at the end\n \t\t\t\tp[0][n_points] = x_p;\n \t\t\t\tp[1][n_points] = y_p;\n \t\t\t\tp_layer[n_points] = layer_id;\n \t\t\t\tindex = n_points;\n \n \t\t\t\tlast_autotrace_start = -1;\n \t\t\t} else {\n \t\t\t\t// prepend at the beginning\n \t\t\t\tfor (int i=n_points-1; i>-1; i--) {\n \t\t\t\t\tp[0][i+1] = p[0][i];\n \t\t\t\t\tp[1][i+1] = p[1][i];\n \t\t\t\t\tp_layer[i+1] = p_layer[i];\n \t\t\t\t}\n \t\t\t\tp[0][0] = x_p;\n \t\t\t\tp[1][0] = y_p;\n \t\t\t\tp_layer[0] = layer_id;\n \t\t\t\tindex = 0;\n \n \t\t\t\tif (-1 != last_autotrace_start) last_autotrace_start++;\n \t\t\t}\n \t\t} else {\n \t\t\t//insert at index:\n \t\t\tindex++; //so it is added after the closest point;\n \t\t\t// 1 - copy second half of array\n \t\t\tint sh_length = n_points -index;\n \t\t\tdouble[][] p_copy = new double[2][sh_length];\n \t\t\tlong[] p_layer_copy = new long[sh_length];\n \t\t\tSystem.arraycopy(p[0], index, p_copy[0], 0, sh_length);\n \t\t\tSystem.arraycopy(p[1], index, p_copy[1], 0, sh_length);\n \t\t\tSystem.arraycopy(p_layer, index, p_layer_copy, 0, sh_length);\n \t\t\t// 2 - insert value into 'p' (the two control arrays get the same value)\n \t\t\tp[0][index] = x_p;\n \t\t\tp[1][index] = y_p;\n \t\t\tp_layer[index] = layer_id;\n \t\t\t// 3 - copy second half into the array\n \t\t\tSystem.arraycopy(p_copy[0], 0, p[0], index+1, sh_length);\n \t\t\tSystem.arraycopy(p_copy[1], 0, p[1], index+1, sh_length);\n \t\t\tSystem.arraycopy(p_layer_copy, 0, p_layer, index+1, sh_length);\n \n \t\t\t// Reset autotracing records\n \t\t\tif (index < last_autotrace_start) {\n \t\t\t\tlast_autotrace_start++;\n \t\t\t}\n \t\t}\n \t\t//add one up\n \t\tthis.n_points++;\n \n \t\treturn index;\n \t}", "public void union(int p, int q) {\n\t\tint i = find(p);\n\t\tint j = find(q);\n\t\tif (i == j)\n\t\t\treturn;\n\t\t\n\t\t// make shorter root point to taller one\n\t\tif (height[i] < height[j]) parent[i] = j;\n\t else if (height[i] > height[j]) parent[j] = i;\n\t else {\n\t \tparent[j] = i;\n\t height[i]++;\n\t }\n\t\tcount--;\n\t}", "public void addPoint(FPointType fpt) {\n moved = true;\n if (tLayerPool.getFirst() == null)\n throw new IllegalStateException(\"No layers exist in this TransformDesign.\");\n tLayerPool.getFirst().addPoint(fpt);\n }", "public Position add(Position p) {\n return new Position(r + p.getR(), c + p.getC());\n }", "public void addPoint(Point pon)\n {\n poly[size] = pon;\n size++;\n }", "public Point applyToPoint(Point p) {\n double newX, newY;\n Point newP;\n //the new x\n newX = p.getX() + this.dx;\n //the new y\n newY = p.getY() + this.dy;\n //the new point\n newP = new Point((newX), (newY));\n return newP;\n }", "public void addPoint(Point point)\r\n\t\t{\r\n\t\t\tif (locations.size() == 0) //if no locations just add\r\n\t\t\t\tlocations.add(point);\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t//insert in sorted order\r\n\t\t\t\tint i = 0;\r\n\t\t\t\twhile ((i < locations.size()) && (locations.get(i).x <= point.x))\r\n\t\t\t\t{\r\n\t\t\t\t\tif (locations.get(i).x == point.x)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (locations.get(i).y >= point.y)\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\tlocations.add(i, point);\r\n\t\t\t}\r\n\r\n\t\t}", "public void addPoint(GridPoint newPoint) {\n\t\t//System.out.println(\"Added rubbish at coordinates X=\" + newPoint.getX() + \", Y=\" + newPoint.getY());\n\t\tsolutionRepresentation.add(newPoint);\n\t}", "TreeNode addChild(TreeNode node);", "public void addPoint() {\n points += 1;\n }", "void add(Point point) {\n\t\tpoints[posit]=point;\n\t\tposit++;\n\t\t//if method add is applied, size should also change\n\t\tsize++;\n\t}", "private Node put(Point2D p, Value val, Node x, boolean vertical) {\n if (x == null) return new Node(p, val, vertical);\n if (x.p.equals(p)) {\n x.val = val;\n }\n else if ((vertical && p.x() < x.p.x()) || (!vertical && p.y() < x.p.y())) {\n x.left = put(p, val, x.left, !x.vertical);\n }\n else {\n // if (vertical) {\n // bbox = new RectHV(x.p.x(), bbox.ymin(), bbox.xmax(), bbox.ymax());\n // }\n // else bbox = new RectHV(bbox.xmin(), x.p.y(), bbox.xmax(), bbox.ymax());\n x.right = put(p, val, x.right, !x.vertical);\n }\n return x;\n }", "public void addPoint(Point point) {\n if (isValidStroke) {\n points.add(point);\n }\n }", "public Point applyToPoint(Point p) {\r\n double newX = p.getX() + this.dx;\r\n double newY = p.getY() + this.dy;\r\n Point newP = new Point(newX, newY);\r\n return newP;\r\n }", "public void add(Point point) {\n\t\tthis.points.add(point);\n\t}", "public boolean contains(Point2D p)\n {\n if (p != null && !isEmpty())\n {\n Node current = root;\n while (current != null)\n {\n if (current.isVertical()) // compare by x\n {\n if (p.x() < current.getPoint().x())\n {\n current = current.getLeft();\n }\n else if (p.x() > current.getPoint().x())\n {\n current = current.getRight();\n }\n else // equal x, now compare y\n {\n if (p.y() == current.getPoint().y())\n {\n return true;\n }\n }\n }\n else // compare by y\n {\n if (p.y() < current.getPoint().y())\n {\n current = current.getLeft();\n }\n else if (p.y() > current.getPoint().y())\n {\n current = current.getRight();\n }\n else // equal y, now compare x\n {\n if (p.x() == current.getPoint().x())\n {\n return true;\n }\n }\n }\n }\n }\n return false;\n }", "public void add(GPoint point) {\n\t\tif (point == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tpoints.add(point);\n\t\trepaint();\n\t}", "public void addSample(Point punto) {\n\t\tthis.punti.add(punto); //non gestisco il ritorno booleano di add volutamente,\n\t\t//semplicemente non sono accettati valori duplicati poichè da quelli \n\t\t//non si otterrebbe una funzione\n\t}", "private void addPath(final Path p) {\n\t\taddIdIfContainsSpecialPrefix();\n\t\t// TODO: Should we be doing this check? What if the evaluator expects there to be a\n\t\t// Style object?\n\t\tif (this.mProperties.svgStyle != null) {\n\t\t\taddStyle();\n\t\t}\n\n\t\t// The transform MUST be the item that goes immediately before the path in the instruction\n\t\t// code sequence, as the evaluator expects this. So the order is style, transform, path.\n\n\t\t// TODO: Previously I only added a Matrix for a Path if that Path has a transform. However,\n\t\t// this means that any transform belonging specifically to a previous path would still\n\t\t// be applied. So at the moment I have to add a Matrix for every Path, which might\n\t\t// be wasteful as most Paths might have an identity Matrix (no transform). One\n\t\t// way of optimising this could be to add an identity tranform ONLY if the previous\n\t\t// path had a non-identity transform.\n\t\t// (I think what I meant by this is when you have two path elements in parallel, not nested.)\n\t\t// (Or maintain a matrix stack in the evaluator.)\n\t\t// Note: The parser uses a Matrix stack. The evaluator uses a Matrix list.\n\n\t\t// if(this.mProperties.transformData!=null){\n\t\taddTransform();\n\t\t// }\n\n\t\tthis.pathList.add(p);\n\t\taddInstruction(INST_PATH);\n\t}", "synchronized protected int appendPoint(int x_p, int y_p, long layer_id) {\n \t\tif (-1 == n_points) setupForDisplay(); //reload\n \t\t//check array size\n \t\tif (p[0].length == n_points) {\n \t\t\tenlargeArrays();\n \t\t}\n \t\tp[0][n_points] = x_p;\n \t\tp[1][n_points] = y_p;\n \t\tp_layer[n_points] = layer_id;\n \t\tn_points++;\n \t\treturn n_points-1;\n \t}", "public boolean contains(Point2D p) {\n if (p == null) {\n throw new NullPointerException();\n }\n if (bst.contains(p))\n return true;\n return false;\n }", "@Override\r\n\tpublic void insertPrestito(Prestito p) {\n\t\t\r\n\t}", "Point add(Point otherPoint) {\n\t\treturn(new Point(x+otherPoint.x,y+otherPoint.y));\n }", "public boolean placeStack(TakStack stack, Point p){\n // START CONDITIONS\n //----------------\n // Is the space empty that we are trying to place\n if(stacks[p.x][p.y].size() > 0) return false;\n //----------------\n // END CONDITIONS\n\n // Valid - move start operation\n // Add new piece to the stack\n stacks[p.x][p.y].add(stack);\n\n // RETURN FALSE WHILE NOT IMPLEMENTED\n return true;\n }", "public void insert(String word, Point point)\r\n\t{\r\n\t\t//call insert\r\n\t\troot.insert(new Data(word, point));\r\n\t}", "private void addPoint( LatLng point ) {\n \t\tthis.addMarker( point );\n \t\tthis.commitPolygon();\n \t}", "private void insertNodeIntoTree(Node node) {\n\t\troot = insert(root,node);\t\n\t}", "public Point applyToPoint(Point p) {\n double newX = p.getX() + this.dx;\n double newY = p.getY() + this.dy;\n return new Point(newX, newY);\n }", "public void push(RatPoly p) {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->push() unimplemented!\\n\");\n }", "public Point applyToPoint(Point p) {\r\n return new Point(p.getX() + this.dx, p.getY() + this.dy);\r\n }", "public void put(Point2D p, Value val) {\n if (p == null) {\n throw new NullPointerException();\n }\n \n bst.put(p, val);\n }", "public void union(int p, int q)\n {\n int i = this.root(p);\n int j = this.root(q);\n if (i == j) return;\n\n if (this.size[i] < this.size[j])\n {\n this.parent[i] = j;\n this.size[j] += this.size[i];\n }\n else\n {\n this.parent[j] = i;\n this.size[i] += this.size[j];\n }\n }", "public void addPoint(Point point) {\r\n\t\t\r\n\t\tthis.listOfPoints.add(point);\r\n\t}", "protected void insertFromLeaf(Node node, Page page){\n if(!node.isFull()){\n // basta inserir \n if (node instanceof Leaf){\n Entry e = new Entry<Page>(page.getKey(), page);\n node.inserir(e);\n }else{\n Entry e = new Entry<IntNode>(page.getKey());\n //e.setKey(node.getEntry(node.size-1).getKey());\n node.inserir(e);\n }\n\n }else{\n \n Node nodep;\n if(node instanceof Leaf){\n nodep = new Leaf(n);\n }else{\n nodep = new IntNode(n);\n }\n\n node.split(nodep);\n\n // a chave dessa entrada deve ser o maximo do left\n\n Node pai;\n Entry e1;\n if(!node.hasPai()){\n \n pai = new IntNode(n);\n \n int at = 0;\n if(node.size > 0){\n at = node.size-1;\n } \n\n e1 = new Entry<Node>(node.getEntry(at).getKey(), node, nodep);\n e1.setKey(node.getEntry(node.size-1).getKey());\n \n pai.inserir(e1);\n \n node.setPai((IntNode) pai);\n head = pai;\n \n }else{ \n pai = node.pai;\n e1 = new Entry<Node>(node.getKey(node.size - 1), node, nodep);\n \n pai.inserir(e1);\n }\n nodep.setPai((IntNode) pai);\n\n // decidindo se insere no node ou nodep\n int i = node.find(page.getKey());\n if(i >= node.size){\n nodep.inserir(e1);\n }else{ \n node.inserir(e1);\n }\n\n //down(pai, page);\n //insertFromLeaf(pai, page);\n }\n }", "private Node putHelper(K key, V value, Node p) {\n if(p == null){\n size++;\n Node node = new Node(key, value);\n return node;\n }\n int cmp = key.compareTo(p.key);\n if(cmp < 0){\n // put int the left\n p.left = putHelper(key, value, p.left);\n }else if(cmp > 0){\n // put in the right\n p.right = putHelper(key, value, p.right);\n }else{\n p.value = value;\n }\n return p;\n }", "public boolean add(T x) {\t// taken from AVLTree\n\t\tEntry<T> newElement = new Entry<T>(x, null, null);\n\n\t\tif (root == null) {\n\t\t\troot = newElement;\n\t\t\tnewElement.parent = null;\n\t\t\t//size++;\n\t\t}\n\n\t\tEntry<T> t = getSplay(find(x));\n\t\tif (t.element.compareTo(x) == 0) {\n\t\t\tt.element = x;\n\t\t\treturn false;\n\t\t} else if (x.compareTo(t.element) < 0) {\n\t\t\tt.left = newElement;\n\t\t\tnewElement.parent = t;\n\n\t\t} else {\n\t\t\tt.right = newElement;\n\t\t\tnewElement.parent = t;\n\t\t}\n\n\t\t//size++;\n\t\tsplay(newElement);\n\t\treturn true;\n\t}", "public void addPoints(int point){\n\t\tthis.points += point;\n\t}", "public void addPoint(Point point){\n\t\tif (point.getX() < minPoint.getX()){\n\t\t\tminPoint.setX(point.getX());\n\t\t}\n\t\tif (point.getY() < minPoint.getY()){\n\t\t\tminPoint.setY(point.getY());\n\t\t}\n\t\tif (point.getX() > maxPoint.getX()){\n\t\t\tmaxPoint.setX(point.getX());\n\t\t}\n\t\tif (point.getY() > maxPoint.getY()){\n\t\t\tmaxPoint.setY(point.getY());\n\t\t}\n\t}", "public void addPointInOrder(Point2D newPoint) {\n\t\tif (pointList.size()>0 && newPoint.getX() < getMaxX())\n\t\t\tthrow new IllegalArgumentException(\"Non-increasing x value\");\n\t\tprevYSum = ySum;\n\t\tif (Double.isNaN(maxY) || newPoint.getY() > maxY)\n\t\t\tmaxY = newPoint.getY();\n\n\t\tif (Double.isNaN(minY) || newPoint.getY() < minY)\n\t\t\tminY = newPoint.getY();\n\n\t\t//System.out.println(\"Adding point \" + newPoint.getY() + \" to series\");\n\t\tdouble y = newPoint.getY();\n\t\tySum += y;\n\t\tif (pointList.size()>1)\n\t\t\tm2n += (y-ySum/(pointList.size()+1.0))*(y-prevYSum/(pointList.size()));\n\t\tpointList.add(newPoint);\n\t}", "public boolean contains(Point2D p) {\n if (p == null)\n throw new IllegalArgumentException(\"Input point is null\");\n if (isEmpty())\n return false;\n boolean isX = true;\n Node curr = root;\n int cmp;\n while (true) {\n if (curr.point.equals(p))\n return true;\n if (isX)\n cmp = Point2D.X_ORDER.compare(p, curr.point);\n else\n cmp = Point2D.Y_ORDER.compare(p, curr.point);\n if (cmp < 0) {\n if (curr.left == null)\n return false;\n curr = curr.left;\n }\n else {\n if (curr.right == null)\n return false;\n curr = curr.right;\n }\n isX = !isX;\n }\n }", "public void union(int p, int q){\r\n\t\tint rootP = root(p);\r\n\t\tint rootQ = root(q);\r\n\t\t\r\n\t\tif(rootP == rootQ) return;\r\n\t\t// Calculate height of tree and then link the root of smaller tree to root of larger tree\r\n\t\t\r\n\t\tif(size[rootP] < size[rootQ]) {\r\n\t\t\tid[rootP] = rootQ;\r\n\t\t\tsize[rootQ] = size[rootQ] + size[rootP];\r\n\t\t}\r\n\t\telse {\r\n\t\t\tid[rootQ] = rootP;\r\n\t\t\tsize[rootP] = size[rootQ] + size[rootP];\r\n\t\t}\r\n\t}", "public void addPoint(Point point){\n\t\t\tclusterPointsList.add(point);\n\t\t}", "Point add (double x, double y);", "public void addPatient(Patient p){\r\n if (counter ==0){\r\n NodeP newNode = new NodeP(p);\r\n front = newNode;\r\n back = newNode;\r\n counter++;\r\n }\r\n else{\r\n NodeP newNode = new NodeP(p);\r\n back.setNext(newNode);\r\n back = back.getNext();\r\n counter++;\r\n }\r\n }", "public void addPoint( final Point2D point ){\n this.addPoint(point.getX(),point.getY());\n }", "private void insert(RBNode<T> node) {\r\n RBNode<T> current = this.root;\r\n //need to save the information of parentNode\r\n //because need the parentNode to connect the new node to the tree\r\n RBNode<T> parentNode = null;\r\n\r\n //1. find the insert position\r\n while(current != null) {\r\n parentNode = current;//store the parent of current, because current is going to move\r\n int cmp = node.key.compareTo(current.key);\r\n if(cmp < 0)//if insert data is smaller than current data, then go into left subtree\r\n current = current.left;\r\n else//if insert data is bigger than or equal to current data, then go into right subtree\r\n current = current.right;\r\n }\r\n\r\n //find the position, let parentNode as the parent of newNode\r\n node.parent = parentNode;\r\n\r\n //2. connect newNode to parentNode\r\n if(parentNode != null) {\r\n int cmp = node.key.compareTo(parentNode.key);\r\n if(cmp < 0)\r\n parentNode.left = node;\r\n else\r\n parentNode.right = node;\r\n } else {\r\n //if parentNode is null, means tree was empty, let root = newNode\r\n this.root = node;\r\n }\r\n\r\n //3. fix the current tree to be a RBTree again\r\n insertFixUp(node);\r\n }", "public boolean ajoutPolygone(Polygone p) {\n if(this.list.contains(p)){\n return false;\n }\n else {\n return this.list.add(p);\n }\n }", "public Point applyToPoint(Point p) {\n return new Point(this.dx + p.getX(), this.dy + p.getY());\n }" ]
[ "0.81844896", "0.77734846", "0.76206744", "0.7612923", "0.7540096", "0.7394992", "0.73586744", "0.7243866", "0.72007084", "0.713828", "0.7072268", "0.7066922", "0.70618814", "0.699136", "0.69662076", "0.69566035", "0.6849497", "0.6761093", "0.6727694", "0.6725739", "0.6691458", "0.6609163", "0.66045207", "0.65904415", "0.6498614", "0.64922714", "0.64327043", "0.6425503", "0.634325", "0.6265649", "0.62526333", "0.6228207", "0.6216688", "0.62010705", "0.6165344", "0.6108217", "0.6039347", "0.6039305", "0.6010735", "0.59790015", "0.5965566", "0.5944483", "0.5926737", "0.59064466", "0.5895256", "0.58820254", "0.5877808", "0.5876046", "0.58750546", "0.58692706", "0.58648664", "0.58647287", "0.58615863", "0.5858818", "0.58537257", "0.58447206", "0.5838968", "0.5833147", "0.583109", "0.5801725", "0.5793265", "0.5780109", "0.5776516", "0.57740515", "0.5761008", "0.5757934", "0.57467276", "0.57438827", "0.5742813", "0.57402724", "0.5732932", "0.5729341", "0.57124084", "0.57086784", "0.5690061", "0.56759655", "0.56698036", "0.5665209", "0.56574994", "0.5641375", "0.56365037", "0.56350577", "0.5631151", "0.56304646", "0.56243116", "0.5618883", "0.5616368", "0.56108874", "0.5602224", "0.55871093", "0.55850834", "0.55745506", "0.5569591", "0.5563477", "0.5561743", "0.55613273", "0.5553291", "0.5544633", "0.5544502", "0.55416656" ]
0.7596004
4
does the tree contain the point p?
public boolean contains(Point2D p) { if (p != null && !isEmpty()) { Node current = root; while (current != null) { if (current.isVertical()) // compare by x { if (p.x() < current.getPoint().x()) { current = current.getLeft(); } else if (p.x() > current.getPoint().x()) { current = current.getRight(); } else // equal x, now compare y { if (p.y() == current.getPoint().y()) { return true; } } } else // compare by y { if (p.y() < current.getPoint().y()) { current = current.getLeft(); } else if (p.y() > current.getPoint().y()) { current = current.getRight(); } else // equal y, now compare x { if (p.x() == current.getPoint().x()) { return true; } } } } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean testPoint(Point p){\n\t\tif(parents.contains(p)) return false;\n\t\treturn true;\n\t}", "public boolean contains(Point2D p) {\n checkNull(p);\n if (size == 0) {\n return false;\n } else {\n Node n = root;\n while (n != null) {\n double cmp = comparePoints(p, n);\n if (cmp < 0) {\n n = n.leftOrBot;\n } else if (cmp == 0) {\n return true;\n } else {\n n = n.rightOrTop;\n }\n }\n }\n return false;\n }", "public boolean contains(Point2D p) {\n if (p == null)\n throw new IllegalArgumentException(\"Input point is null\");\n if (isEmpty())\n return false;\n boolean isX = true;\n Node curr = root;\n int cmp;\n while (true) {\n if (curr.point.equals(p))\n return true;\n if (isX)\n cmp = Point2D.X_ORDER.compare(p, curr.point);\n else\n cmp = Point2D.Y_ORDER.compare(p, curr.point);\n if (cmp < 0) {\n if (curr.left == null)\n return false;\n curr = curr.left;\n }\n else {\n if (curr.right == null)\n return false;\n curr = curr.right;\n }\n isX = !isX;\n }\n }", "public boolean contains(Point2D p) {\n if (p == null) {\n throw new NullPointerException();\n }\n if (bst.contains(p))\n return true;\n return false;\n }", "public boolean contains(Point2D p) \r\n\t{\r\n\t\treturn get(root, p) != null;\r\n\t}", "public boolean contains(Point2D p) \n\t {\n\t\t if(p==null)\n\t\t\t throw new java.lang.NullPointerException();\n\t\t if(root==null)\n\t\t\t return false;\n\t\t return contains(root,p,true);\n\t }", "private boolean contains(Point2D p, Node x) {\n if (x == null) return false;\n if (x.p.equals(p)) return true;\n if ((x.vertical && p.x() < x.p.x()) || (!x.vertical && p.y() < x.p.y())) {\n return contains(p, x.left);\n }\n else return contains(p, x.right);\n }", "public boolean contains(Point p);", "public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"Attempted to search for null query\");\n return isItThisNode(root, p);\n }", "private boolean isItThisNode(KdNode kdNode, Point2D p) {\n int comparison;\n\n if (kdNode == null) return false;\n if (kdNode.point.equals(p))\n return true;\n\n if (kdNode.dimension) { // if this KdNode is vertical (root.dimension == true)\n comparison = Double.compare(p.x(), kdNode.point.x());\n if (comparison == 0) comparison = Double.compare(p.y(), kdNode.point.y());\n }\n else { // if this KdNode is horizontal (root.dimension == false)\n comparison = Double.compare(p.y(), kdNode.point.y());\n if (comparison == 0) comparison = Double.compare(p.x(), kdNode.point.x());\n }\n\n if (comparison > 0) {\n if (kdNode.right == null) {\n // dead end when searching for where point should be, it is not in the set\n return false;\n }\n else {\n return isItThisNode(kdNode.right, p);\n }\n }\n else { // comparison < 0\n if (kdNode.left == null) {\n // dead end when searching for where point should be, it is not in the set\n return false;\n }\n else {\n return isItThisNode(kdNode.left, p);\n }\n }\n }", "public boolean contains(Point2D p) {\n if (isEmpty()) return false;\n return search1(root, p);\n }", "public boolean contains(Point p) {\n\t\tif ((p.y > (super.getY() - super.height/2)) && (p.x > (super.getX() - width/2)) && (p.y < (super.getY() + super.height/2 + super.height)) && (p.x < (super.getX() - width/2 + super.width))) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean containsPoint( Point p ) {\r\n return (( p.x > drawx-getWidth()/2) && ( p.x < drawx+getWidth()/2) \r\n && ( p.y > drawy-getHeight()/2) && ( p.y < drawy+getHeight()/2));\r\n }", "public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"input p is null\");\n return contains(p, root);\n }", "public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"contains: Point2D is null\");\n return containSearch(root, p, true);\n }", "public boolean contains(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException();\n }\n return contains(this.root, p);\n }", "public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException();\n if (root == null) return false;\n\n return containsSubMethod(p, root);\n }", "public boolean contain(Point p) {\n\t\tdouble n1, n2, n3, n4, n5, n6;\n\t\tPlane pl1, pl2, pl3, pl4, pl5, pl6;\n\t\tpl1 = new Plane(A1, B1, C1); // Mat phang A1.B1.C1.D1 (1)\n\t\tpl2 = new Plane(A1, B1, A2); // Mat phang A1.B1.B2.A2 (2)\n\t\tpl3 = new Plane(A1, D1, A2); // Mat phang A1.D1.D2.A2 (3)\n\t\tpl4 = new Plane(A2, pl1.getV()); // Mat phang A2.B2.C2.D2 (1)\n\t\tpl5 = new Plane(C1, pl2.getV()); // Mat phang C1.D1.D2.C2 (2)\n\t\tpl6 = new Plane(B1, pl3.getV()); // Mat phang B1.C1.C2.B2 (3)\n\n\t\tn1 = pl1.doSomething(p);\n\t\tn4 = pl4.doSomething(p);\n\n\t\tif (n1 * n4 > 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tn2 = pl2.doSomething(p);\n\t\tn5 = pl5.doSomething(p);\n\t\tif (n2 * n5 > 0f) {\n\t\t\treturn false;\n\t\t}\n\n\t\tn3 = pl3.doSomething(p);\n\t\tn6 = pl6.doSomething(p);\n\t\tif (n3 * n6 > 0f) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean contains(Point2D.Double p) {\n if(p.x <= middle.x + length/2.0 &&\n p.x >= middle.x - length/2.0 &&\n p.y <= middle.y + length/2.0 &&\n p.y >= middle.y - length/2.0) return true;\n else return false;\n }", "public abstract boolean isRoot(Position<E> p);", "public boolean containsPoint(Point p) {\n \treturn\n \t\tp.x >= x &&\n \t\tp.x <= x + width &&\n \t\tp.y >= y &&\n \t\tp.y <= y + height;\n }", "public boolean contains(final Point2d p){\n return this.getDistance(p) < 0.0000000001;\n }", "public boolean inside(final Point p)\n\t\t{\n\t\t\tif(obj.contains(p))\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}", "boolean isPointEnclosed(Point p);", "public boolean contains(GJPoint2D p) {\n\t\treturn this.contains(p.x(), p.y());\n\t}", "public boolean containsPoint(Point pt)\n {\n\n // E[O(log(n))]\n if(_lineBVH != null)\n {\n throw new Error(\"Implement me Please!\");\n }\n else\n {\n // O(n).\n return _point_in_polygon_test(pt);\n }\n }", "public boolean isLeaf(int pcr);", "public boolean containsPoint(Point p) {\n\t\treturn (p.x >= x && p.x <= (x + WIDTH)\n\t\t\t\t&& p.y >= y && p.y <= (y + HEIGHT));\n\t}", "public boolean contains(Point2D p) {\n return search(root, p, ORIENTATION_VERTICAL) != null;\n }", "boolean isLeaf();", "boolean isLeaf();", "boolean isLeaf();", "boolean isLeaf();", "public boolean onPosition(Point p)\n {\n for(Point pellet : pellets) // iterate over all the pellets\n {\n if (pellet.equals(p))\n return true;\n }\n return false;\n }", "public boolean pointInside(Point2D p) {\n AffineTransform fullTransform = this.getFullTransform();\n AffineTransform inverseTransform = null;\n try {\n inverseTransform = fullTransform.createInverse();\n } catch (NoninvertibleTransformException e) {\n e.printStackTrace();\n }\n Point2D newPoint = (Point2D)p.clone();\n inverseTransform.transform(newPoint, newPoint);\n return rect.contains(newPoint); \n }", "public boolean isIn(Point p)\n {\n \n \treturn isIn(p.x, p.y);\n \t\n //\tboolean cond1 = false;\n // boolean cond2 = false; \n // cond1 = (p.x>=rettangoloX)&&(p.x<=(rettangoloX+larghezza));\n // cond2 = (p.y>=rettangoloY)&&(p.y<=(rettangoloY+altezza));\n // return (cond1&&cond2);\n }", "public boolean isInShape(Point p) \n\t{\n\t\tPoint centre = new Point((int)posX + diam/2, (int)posY + diam/2);\n\t\t//If distance between two points if less than or equal to radius, true is\n\t\t//returned\n\t\treturn p.distance(centre) <= diam/2;\n\t}", "private boolean checkSurroundingOfPoint(Point p) {\n\t\tPoint check = new Point();\n\t\tcheck.x\t\t= p.x;\n\t\tcheck.y \t= p.y;\n\t\t\n\t\tfor(int y = -1; y <= 1; y++) {\n\t\t\tcheck.y += y;\n\t\t\tfor(int x = -1; x <= 1; x++) {\n\t\t\t\tcheck.x += x;\n\t\t\t\tif(occupiedPositions.contains(check)) return false;\n\t\t\t\t//restore values\n\t\t\t\tcheck.x\t= p.x;\n\t\t\t}\n\t\t\t//restore values\n\t\t\tcheck.y = p.y;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isAt(Point punto) {\r\n Point inner = toInnerPoint(punto);\r\n for (Point block : innerPiece.getPoints())\r\n \tif (block.X() == inner.X() && block.Y() == inner.Y())\r\n \t\treturn true;\r\n return false;\r\n }", "public abstract boolean containsPoint(int x, int y);", "@JsMethod(name = \"containsPoint\")\n public boolean contains(double p) {\n return p >= lo && p <= hi;\n }", "public boolean includesPoint(Point p) {\n double ABC = getArea();\n double PAB = new Triangle(p, p1, p2).getArea();\n double PBC = new Triangle(p, p2, p3).getArea();\n double PAC = new Triangle(p, p1, p3).getArea();\n return abs(ABC - (PAB + PBC + PAC)) < 0.000000001;\n }", "private boolean findPixel(Location p) {\n\t\treturn !(bst.get(bst.getRoot(), p) == null);\n\t}", "@Override\n public boolean add(Point point) {\n if (!this.rectangle.contains(point)) {\n return false;\n }\n\n if (hasChildren) {\n for (QuadtreeNode node : children) {\n if (node.add(point)) {\n return true;\n }\n }\n return false;\n\n\n } else {\n points.add(point);\n if (points.size() == QuadtreeNode.MAX_LOCATION_CAPACITY) {\n subdivide();\n }\n }\n\n return true;\n }", "public boolean fits(Point p) {\n\t\treturn boundary.contains(p);\n\t}", "public boolean contains(Point2D p) {\n return pointSet.contains(p);\n }", "abstract boolean isLeaf();", "public boolean isLeaf();", "public boolean isLeaf();", "public boolean isLeaf();", "public boolean isLeaf();", "public boolean contains(Point point) {\n\t\treturn false;\r\n\t}", "public void test_containsLorg_eclipse_swt_graphics_Point() {\n\tfinal int COUNT = 60000000;\n\t\n\tRectangle rect = new Rectangle(1, 2, 3, 4);\n\tPoint p1 = new Point(2, 3);\n\tPoint p2 = new Point(9, 10);\n\t\n\tPerformanceMeter meter = createMeter(\"contains\");\n\tmeter.start();\n\tfor (int i = 0; i < COUNT; i++) {\n\t\trect.contains(p1);\t\t// does contain\n\t}\n\tmeter.stop();\n\t\n\tdisposeMeter(meter);\n\t\n\tmeter = createMeter(\"disjoint\");\n\tmeter.start();\n\tfor (int i = 0; i < COUNT; i++) {\n\t\trect.contains(p2);\t\t// does not contain\n\t}\n\tmeter.stop();\n\t\n\tdisposeMeter(meter);\n}", "public boolean search(Point p) {\n\t\tif(p == null) {\n\t\t\tSystem.out.println(\"Illegal point argument\");\n\t\t}\n\t\treturn search(head, p);\n\t}", "public boolean contains(Vector pt) {\r\n final double x = pt.getX();\r\n final double y = pt.getY();\r\n final double z = pt.getZ();\r\n return x >= this.getMinimumPoint().getBlockX() && x < this.getMaximumPoint().getBlockX() + 1\r\n && y >= this.getMinimumPoint().getBlockY() && y < this.getMaximumPoint().getBlockY() + 1\r\n && z >= this.getMinimumPoint().getBlockZ() && z < this.getMaximumPoint().getBlockZ() + 1;\r\n }", "public boolean contains(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException(\"cannot query null pt\");\n }\n return pointsSet.contains(p);\n\n }", "public boolean contains(PointF point)\n {\n return contains(point.x, point.y);\n }", "boolean contains(Polygon p);", "public boolean contains(Point2D p) {\n return mPoints.contains(p);\n }", "@Override\n\tpublic boolean contains(Vec2f pnt) {\n\t\tboolean isIn = false;\n\t\tif (_shape != null) {\n\t\t\tisIn = _shape.contains(pnt);\n\t\t}\n\t\treturn isIn;\n\t}", "@Override\r\n\tpublic void isMatched(Point p) {\n\t\t\r\n\t}", "public abstract boolean hasLeftChild(Position<E> p);", "public boolean pointInside(Point2D p) throws NoninvertibleTransformException {\n AffineTransform fullTransform = this.getFullTransform();\n AffineTransform inverseTransform = null;\n inverseTransform = fullTransform.createInverse();\n Point2D newP = (Point2D)p.clone();\n inverseTransform.transform(newP, newP);\n return elp.contains(newP);\n }", "public void insert(Point2D p) { // add the point to the set (if it is not already in the set)\n // \"write a simplified version of insert() which does everything except set up the RectHV for each node\"\n if (p == null) throw new IllegalArgumentException();\n\n\n if (root == null) {\n Node node = new Node();\n node.p = p;\n node.horizontal = false;\n node.rect = new RectHV(0.0, 0.0, 1.0, 1.0);\n root = node;\n size = 1;\n return;\n }\n\n if (!contains(p)) {\n size++;\n insertNextFreeSubTree(p, root);\n }\n\n }", "public boolean contains(Point point) {\n return this.center.distance(point) <= this.r;\n }", "public boolean dominates(Point p) {\n if (p.getX() >= this.getX() && p.getY() >= this.getY()) {\n return true;\n }\n return false;\n }", "boolean isRoot(Position<E> p) throws IllegalArgumentException;", "public boolean belongsToTree(RBNode x){\r\n\t\twhile (x != nil) {\r\n\t\t\tif (x == root) return true;\r\n\t\t\telse x = x.p;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean inside(Point p) {\n\t\tif (p.getX() < boundingRect.getX() || p.getY() < boundingRect.getY()) return false;\n\t\tif (p.getX() > boundingRect.getX() + boundingRect.getW() || \n\t\t p.getY() > boundingRect.getY() + boundingRect.getH()) return false;\n\n\t\t// Create a line from the point to the left\n\t\tLine l = new Line(p.getX(), p.getY(), p.getX() - boundingRect.getW(), p.getY());\n\n\t\t// Count intersections\n\t\tint count= 0;\t\t\n\t\tfor(int i=0; i<lines.size(); i++ ) {\n\t\t\tif (lines.get(i).intersectsAt(l) != null) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n // We are inside if the number of intersections is odd\n\t\treturn count%2 == 1;\n\t}", "public boolean contains(Point2D p)\n {\n if (degree == 1)\n {\n return overlaps(corner[0], p) || overlaps(corner[1], p) || overlaps(corner[2], p);\n }\n else if (degree == 2)\n {\n Point tp = new Point((int) Math.round(p.getX()), (int) Math.round(p.getY()));\n return line.linePoints.contains(tp);\n }\n\n /*\n the following code judges whether a point is contained in a normal triangle, \n taking the on edge case as contained\n */\n double pv0 = edgeEquationValue(p, corner[1], corner[2]);\n /*\n if corner[0] and point p are on different sides of line from corner[1] to corner[2], \n p is outside of the triangle\n */\n if (pv0 * v0 < 0)\n {\n return false;\n }\n double pv1 = edgeEquationValue(p, corner[2], corner[0]);\n /*\n if vertex corner[1] and point p are on different sides of line from corner[2] to corner[0], \n p is outside of the triangle\n */\n if (pv1 * v1 < 0)\n {\n return false;\n }\n double pv2 = edgeEquationValue(p, corner[0], corner[1]);\n /*\n only left one case:\n if corner[1] and point p are on different sides of line from corner[2] to corner[0], \n p is outside of the triangle, otherwise p is contained in the triangle\n */\n return pv2 * v2 >= 0; // !(pv2 * v2 < 0)\n }", "@Override\r\n public boolean isPointEnclosed(Point P) {\r\n boolean isEnclosed=false;\r\n if(P.getXCoordinate()>=origin.getXCoordinate() && P.getXCoordinate()<=(origin.getXCoordinate()+length)\r\n && P.getYCoordinate()>=origin.getYCoordinate() && P.getYCoordinate()<=(origin.getYCoordinate()+breadth))\r\n {\r\n isEnclosed=true;\r\n }\r\n return isEnclosed;\r\n }", "public boolean contains(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException();\n }\n return points.contains(p);\n }", "@Override\n\tpublic boolean isPointEnclosed(Point p)\n\t{\n\t\tdouble[] centre = circleCentre();\n\t\tdouble distance = Math.sqrt((centre[0] - p.x)*(centre[0] - p.x) + (centre[1] - p.y)*(centre[1] - p.y));\n\t\t\n\t\tif(distance <= radius)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "boolean contains( Geometry gmo );", "private boolean containsSameCoord(Point p) {\n boolean elementsContainsP = false;\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n Point pt = it.next();\n if (x(pt) == x(p) && y(pt) == y(p)) {\n elementsContainsP = true;\n break;\n }\n }\n return elementsContainsP;\n }", "@Override\n\tpublic boolean contains(Point pPtrRelPrnt, Point pCmpRelPrnt) {\n\t\tPoint loc = this.getLocation();\n\t\tint px = (int) pPtrRelPrnt.getX();\n\t\tint py = (int) pPtrRelPrnt.getY();\n\t\tint xLoc = (int) (pCmpRelPrnt.getX() + loc.getX());\n\t\tint yLoc = (int) (pCmpRelPrnt.getY() + loc.getY());\n\t\t\n\t\tif ((px >= xLoc) && (px <= xLoc + width) && (py >= yLoc) && (py <= yLoc + height)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean containsNode(VisualNode node) {\r\n\r\n\t\tProbNode probNode = node.getProbNode();\r\n\r\n\t\treturn rectangleSelection.contains(probNode.getNode().getCoordinateX(), \r\n\t\t\t\tprobNode.getNode().getCoordinateY());\r\n\r\n\t}", "boolean hasTreeNodeId();", "boolean hasCoordinates();", "boolean hasCoordinates();", "boolean hasCoordinates();", "boolean hasIsBoundaryNodeOf();", "@JsMethod(name = \"interiorContainsPoint\")\n public boolean interiorContains(double p) {\n return p > lo && p < hi;\n }", "boolean hasNode();", "boolean hasNode();", "public boolean contains(Point2D p) {\n\n\t\tif (p == null)\n\t\t\tthrow new IllegalArgumentException(\"arguemnt to contains() is null\");\n\t\treturn get(p) != null;\n\n\t}", "public boolean contains(RMPoint aPoint)\n{\n // Get line width to be used in contain test\n float lineWidth = getStrokeWidth();\n \n // If polygon or line, make line width effectively at least 8, so users will have a better shot of selecting it\n if(this instanceof RMPolygonShape || this instanceof RMLineShape)\n lineWidth = Math.max(8, getStrokeWidth());\n \n // Get bounds, adjusted for line width\n RMRect bounds = getBoundsInside();\n bounds.inset(-lineWidth/2, -lineWidth/2);\n\n // If point isn't even in bounds rect, just return false\n if(!aPoint.inRect(bounds))\n return false;\n \n // Get shape path in bounds rect\n RMPath path = getPathInBounds();\n \n // Return whether path intersects point\n return path.intersects(aPoint, lineWidth);\n}", "public boolean contains(Point mousePt) {\r\n\t\treturn (p.x <= mousePt.x && mousePt.x <= (p.x + width + 1)\t&&\tp.y <= mousePt.y && mousePt.y <= (p.y + height + 1));\r\n\t}", "public boolean connected(int p, int q)\n {\n return this.root(p) == this.root(q);\n }", "public boolean pointWhithin(Point point) {\n\t\treturn false;\n\t}", "public boolean contains(Point2D p2d) {\n return contains(root, p2d, true);\n }", "public boolean contains(Point2D p) {\n\n if (p == null)\n throw new IllegalArgumentException(\"Got null object in contains()\");\n\n return point2DSET.contains(p);\n }", "public boolean contains(Point point) {\n\t\treturn (point.x >= getX1() && point.y >= getY1() && point.x < getX2() && point.y < getY2());\n\t}", "boolean hasIsNodeOf();", "boolean hasIsVertexOf();", "public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"Point is null or invalid\");\n return get(p) != null;\n }", "public boolean isInside(final Tuple3d point) {\n final double distance = this.distanceToPoint(point);\n\n return IntersectionUtils.isGreaterOrEqual(distance, 0.0);\n }", "public void insert(Point2D p) {\n checkNull(p);\n if (size == 0) {\n root = new Node(p, V);\n } else {\n Node n = root;\n while (true) {\n double cmp = comparePoints(p, n);\n if (cmp < 0) {\n if (n.leftOrBot == null) {\n n.leftOrBot = new Node(p, !n.dir);\n break;\n }\n n = n.leftOrBot;\n } else if (cmp ==0) {\n return;\n } else {\n if (n.rightOrTop == null) {\n n.rightOrTop = new Node(p, !n.dir);\n break;\n }\n n = n.rightOrTop;\n }\n }\n }\n size++;\n }", "abstract public boolean isPickedBy(Point p);", "public boolean addPoint(Point p);" ]
[ "0.7946723", "0.76452446", "0.7543551", "0.7474106", "0.73442304", "0.731967", "0.73136014", "0.7284936", "0.72459525", "0.72345275", "0.7191683", "0.7166089", "0.70569366", "0.70366836", "0.6991487", "0.69786954", "0.69512916", "0.6890544", "0.68858546", "0.68775105", "0.68549246", "0.6839497", "0.68345475", "0.68327105", "0.67571247", "0.6743935", "0.6731758", "0.6716972", "0.6715882", "0.6714811", "0.6714811", "0.6714811", "0.6714811", "0.6690811", "0.66774166", "0.6644114", "0.6625798", "0.6624994", "0.6619319", "0.6602012", "0.659235", "0.65905553", "0.65593326", "0.65533805", "0.6543871", "0.6531803", "0.65050334", "0.6473776", "0.6473776", "0.6473776", "0.6473776", "0.64636683", "0.64477247", "0.6427348", "0.638164", "0.63743395", "0.6368983", "0.6366031", "0.6365296", "0.63645786", "0.63629246", "0.6352452", "0.632777", "0.6322912", "0.63096595", "0.628656", "0.62563384", "0.6255975", "0.62522835", "0.6242191", "0.62014663", "0.619241", "0.6191054", "0.6183141", "0.61816096", "0.6175102", "0.6170187", "0.6161087", "0.61607057", "0.61607057", "0.61607057", "0.61447084", "0.61361617", "0.6126734", "0.6126734", "0.612465", "0.611019", "0.6108554", "0.6106409", "0.61024755", "0.6096553", "0.608212", "0.6081991", "0.6079026", "0.6078891", "0.6059387", "0.60572124", "0.6043097", "0.6042359", "0.604048" ]
0.78252757
1
draw all the points to standard draw
public void draw() { inorder(root); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw() {\n for (Point2D point : pointSet) {\n point.draw();\n }\n }", "public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(0.01);\n for (Point2D point : points) {\n StdDraw.point(point.x(), point.y());\n }\n StdDraw.setPenRadius();\n }", "public void draw() {\n for (Point2D p: mPoints) {\n StdDraw.filledCircle(p.x(), p.y(), 0.002);\n }\n }", "public void draw() {\n for (Point2D i : pointsSet)\n i.draw();\n }", "public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(.01);\n for (Point2D p : s) {\n p.draw();\n }\n }", "public void draw() {\r\n /* DO NOT MODIFY */\r\n StdDraw.point(x, y);\r\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "@Override\r\n public void paintComponent(Graphics g)\r\n {\r\n super.paintComponent(g); // clears drawing area\r\n\r\n for(Point point : points)\r\n g.fillOval(point.x, point.y, 4, 4);\r\n }", "private void drawPoints(Graphics2D g2d) {\n for(int i = 0; i < controlPoints.length; i++) {\n int x = (int)controlPoints[i].x;\n int y = (int)controlPoints[i].y;\n drawFatPoint(x, y, g2d);\n }\n }", "public GLGraphics drawPoints(Iterable<Vec2f> points) {\n\t\treturn render(GL.GL_POINTS, points);\n\t}", "public void drawAll(){\n for (Triangle triangle : triangles) {\n triangle.draw();\n }\n for (Circle circle : circles) {\n circle.draw();\n }\n for(Rectangle rectangle : rectangles){\n rectangle.draw();\n }\n }", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\n\tprotected void paint2d(Graphics2D g) {\n\t\tdouble x = 0;//getX();\n\t\tdouble y = 0;//getY();\n\t\tfor (int i = 0; i < size() - 1; i++) {\n\t\t\tGPoint p1 = points.get(i);\n\t\t\tGPoint p2 = points.get(i + 1);\n\t\t\tdouble x0 = p1.getX() - x;\n\t\t\tdouble y0 = p1.getY() - y;\n\t\t\tdouble x1 = p2.getX() - x;\n\t\t\tdouble y1 = p2.getY() - y;\n\t\t\tg.drawLine(GMath.round(x0), GMath.round(y0),\n\t\t\t\t\tGMath.round(x1), GMath.round(y1));\n\t\t}\n\t}", "public void drawAllGraphics(){\r\n\t\t \r\n\t}", "private void paintCourbePoints() {\n\t\tfloat x, y;\n\t\tint i, j;\n\t\t\n\t\tfor(x=xMin; x<=xMax; x++) {\n\t\t\ty = parent.getY(x);\n\t\t\t\n\t\t\tif(y>yMin && y<yMax) {\n\t\t\t\ti = convertX(x);\n\t\t\t\tj = convertY(y);\n\t\t\t\t\n\t\t\t\t//Utilisation d'un carre/losange pour simuler un point \n\t\t\t\t//de taille superieur a un pixel car celui-ci est peu visible.\n\t\t\t\tpaintPointInColor(i-2, j);\n\t\t\t\tpaintPointInColor(i-1, j-1);\t\t\t\t\n\t\t\t\tpaintPointInColor(i-1, j);\n\t\t\t\tpaintPointInColor(i-1, j+1);\n\t\t\t\tpaintPointInColor(i, j-2);\t//\t *\n\t\t\t\tpaintPointInColor(i, j-1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j);\t//\t* * * * *\n\t\t\t\tpaintPointInColor(i, j+1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j+2);\t//\t *\n\t\t\t\tpaintPointInColor(i+1, j-1);\n\t\t\t\tpaintPointInColor(i+1, j);\n\t\t\t\tpaintPointInColor(i+1, j+1);\n\t\t\t\tpaintPointInColor(i+2, j);\n\t\t\t}\n\t\t}\t\t\n\t}", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}", "public void draw()\n\t{\t\t\n\t\tArrayList<Segment> seg = new ArrayList<Segment>();\n\t\tfor(int i = 0; i < hullVertices.length - 1; i++)\n\t\t{\n\t\t\tSegment s = new Segment(hullVertices[i], hullVertices[i+1]);\n\t\t\tseg.add(s);\n\t\t}\n\t\tSegment s1 = new Segment(hullVertices[hullVertices.length-1], hullVertices[0]);\n\t\tseg.add(s1);\n\t\t// Based on Section 4.1, generate the line segments to draw for display of the convex hull.\n\t\t// Assign their number to numSegs, and store them in segments[] in the order.\n\t\tSegment[] segments = new Segment[seg.size()];\n\t\tfor(int i = 0; i < seg.size(); i++)\n\t\t{\n\t\t\tsegments[i] = seg.get(i);\n\t\t}\n\t\t// The following statement creates a window to display the convex hull.\n\t\tPlot.myFrame(pointsNoDuplicate, segments, getClass().getName());\n\t}", "public void draw() {\n\t\tSystem.out.println(getMessageSource().getMessage(\"greeting2\", null, null));\r\n\r\n\t\tSystem.out.println(getMessageSource().getMessage(\"drawing.circle\", null, null));\r\n\t\tSystem.out.println(\"Center's Coordinates: (\" + getCenter().getX() + \", \" + getCenter().getY() + \")\");\r\n\t\tSystem.out.println(getMessageSource().getMessage(\"drawing.center\",\r\n\t\t\t\tnew Object[] { getCenter().getX(), getCenter().getY() }, \"Default point coordinates msg\", null));\r\n\t}", "public void draw() {\n \n // TODO\n }", "public void drawCircle() {\n mMap.clear();\n // Generate the points\n mMap.addPolygon(new PolygonOptions().addAll(points).strokeWidth(5).strokeColor(Color.RED).fillColor(Color.TRANSPARENT));\n // Create and return the polygon\n for (int i=0;i<points.size();i++){\n Log.v(\"DrawCircle\",\"drwaakmdaskfmlsmn\"+points.get(i));\n }\n\n\n\n }", "@Override\n\t\tpublic void paintComponent(Graphics g) {\n\t\t\tsuper.paintComponent(g);\n\t\t\tsetBackground(Color.gray);\n\n\t\t\tif (points != null) {\n\t\t\t\tPoint lastPoint = null;\n\t\t\t\tint step = 0;\n\t\t\t\tfor (Point p : points) {\n\t\t\t\t\tint shade = 255 * step / points.length;\n\t\t\t\t\tstep++;\n\t\t\t\t\tg.setColor(new Color(shade, 0, 255 - shade));\n\n\t\t\t\t\t// Draw the point, and maybe connect to the previous point\n\t\t\t\t\tif (p != null) {\n\t\t\t\t\t\tint jiggleX = (int) (jiggleFactor * Math.random() - jiggleFactor / 2);\n\t\t\t\t\t\tint jiggleY = (int) (jiggleFactor * Math.random() - jiggleFactor / 2);\n\n\t\t\t\t\t\tg.fillOval(p.x + jiggleX - diameter / 2, p.y + jiggleY\n\t\t\t\t\t\t\t\t- diameter / 2, diameter, diameter);\n\t\t\t\t\t\tif (connectTheDots) {\n\t\t\t\t\t\t\tif (lastPoint != null)\n\t\t\t\t\t\t\t\tg.drawLine(lastPoint.x, lastPoint.y, p.x, p.y);\n\t\t\t\t\t\t\tlastPoint = p;\n\t\t\t\t\t\t}\n\t\t\t\t\t} // end of drawing one point\n\t\t\t\t} // End of loop that draws all points\n\t\t\t} // end of non-null logic\n\t\t}", "void draw() {\n\t\tSystem.out.println(\"Drawing the Rectange...\");\n\t\t}", "@Override\r\n\tpublic void draw() {\n\t\tPoint p = this.getP();\r\n\t\tint start_point = p.getX();\r\n\t\tint end_point = p.getY();\r\n\t\t\r\n\t\tint width = this.getWidth();\r\n\t\tint height = this.getHeight();\r\n\t\t\r\n\t\tSystem.out.println(\"�l�p�`��`�� �_(\" + start_point +\",\"+ end_point + \")����Ƃ��āA��\"+ width +\"����\"+ height +\"�̎l�p�`\");\r\n\t}", "public void draw() {\n\t\tp.pushStyle();\n\t\t{\n\t\t\tp.rectMode(PConstants.CORNER);\n\t\t\tp.fill(360, 0, 70, 180);\n\t\t\tp.rect(60f, 50f, p.width - 110f, p.height * 2f * 0.33f - 50f);\n\t\t\tp.rect(60f, p.height * 2f * 0.33f + 50f, p.width - 110f, p.height * 0.33f - 130f);\n\t\t}\n\t\tp.popStyle();\n\n\t\tlineChart.draw(40f, 40f, p.width - 80f, p.height * 2f * 0.33f - 30f);\n\t\tlineChart2.draw(40f, p.height * 2f * 0.33f + 45f, p.width - 80f, p.height * 0.33f - 110f);\n\t\t//p.line(x1, y1, x2, y2);\n\n\t}", "void draw() {\n canvas.drawColor(Color.BLACK);\n insertSort(vstar);\n for( int i=0; i<NUMSTARS; i++){\n vstar[i].draw();\n }\n }", "void drawPointArr(Graphics2D g2d, ArrayList<Point2D.Double> l){\r\n\t\tfor(int i=0; i<l.size()-1; i++){\r\n\t\t\tLine2D.Double line=new Line2D.Double(l.get(i), l.get(i+1));\r\n\t\t\tg2d.draw(line);\r\n\t\t}\r\n\r\n\t}", "public void drawSelf() {\n for (Point p : matches) {\n this.drawPoint(p, Color.WHITE);\n }\n }", "@Override\n\tpublic void draw(Graphics graphics) {\n\t\tgraphics.setColor(Color.black);\t\t\t\t\t\t\t\t\t//Farbe schwarz\n\t\tgraphics.drawRect(point.getX(),point.getY() , width, height);\t//malt ein leeren Rechteck\n\t}", "protected abstract void draw();", "public void drawControlPolygon() {\n\t\t//this.frame.stroke(255, 0, 0);\n\t\tfor(int i=0;i<points.length;i++) {\n\t\t\tfor(int j=0;j<points[i].length;j++)\n\t\t\t\tthis.frame.drawVertex(points[i][j]);\n\t\t}\n\t}", "public void Draw(Graphics g)\n/* */ {\n/* 55 */ g.setColor(this.m_color);\n/* */ \n/* 57 */ Point prevPt = new Point(0, 0);Point currPt = new Point(0, 0);\n/* */ \n/* 59 */ for (double t = 0.0D; t < 1.01D; t += this.m_tValue) {\n/* 60 */ ptFromTVal(t, currPt);\n/* */ \n/* 62 */ if (t == 0.0D) {\n/* 63 */ prevPt.x = currPt.x;\n/* 64 */ prevPt.y = currPt.y;\n/* */ }\n/* */ \n/* 67 */ g.drawLine(prevPt.x, prevPt.y, currPt.x, currPt.y);\n/* */ \n/* 69 */ if (this.m_showTPoints) {\n/* 70 */ g.fillOval(currPt.x - this.PT_RADIUS, currPt.y - this.PT_RADIUS, this.PT_DIAMETER, this.PT_DIAMETER);\n/* */ }\n/* */ \n/* 73 */ prevPt.x = currPt.x;\n/* 74 */ prevPt.y = currPt.y;\n/* */ }\n/* */ }", "private void onStrokeDrawingFinished(ArrayList<double[]> points){\n for(double[] point : points){\n point[0] = PX2M(point[0]); //x coordinate\n point[1] = PX2M(resolution_tablet[1] - point[1]); //y coordinate\n }\n //interactionManager.publishUserDrawnShapeMessage(points);\n Log.e(TAG, \"Adding stroke to message\");\n userDrawnMessage.add(points);\n }", "public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}", "@Override\n\tpublic void draw(GraphicsContext gc) {\n\t\tgc.setFill(this.color.getColor());\n\t\tgc.fillRect(MyPoint.point[0], MyPoint.point[1], this.width, this.height);\n\t}", "public void draw()\n {\n super.draw();\n k = 0;\n traceOK = true;\n\n // Initialize n, x0, and xn in the control panel.\n nText.setText(\" \");\n x0Text.setText(\" \");\n xnText.setText(\" \");\n\n PlotFunction plotFunction = getSelectedPlotFunction();\n\n // Create the fixed-point iteration root finder.\n finder = new FixedPointRootFinder((Function) plotFunction.getFunction());\n }", "public void draw() {\n \n }", "public static void main(String[] args) {\n Point a = new Point(46, 65);\n Point b = new Point(40, 265);\n// Point c = new Point(20, 20);\n// Point d = new Point(21, 211);\n// Point e = new Point(2, 221);\n// Point f = new Point(23, 21);\n// Point g = new Point(-2, 21);\n// Point h = new Point(212, 22);\n//// StdDraw.setPenRadius(0.05);\n//// StdDraw.setPenColor(StdDraw.BLUE);\n//// StdDraw.point(1.0, 2.0);\n//// StdDraw.setCanvasSize(720, 720);\n//// StdDraw.setScale(-10, 10);\n//\n System.out.println(\"Compare : \"+ a.slopeTo(b));\n//\n//// a.draw();\n//// b.draw();\n//// c.draw();\n//// d.draw();\n//// e.draw();\n//// f.draw();\n//// g.draw();\n//// h.draw();\n//// a.drawTo(b);\n//\n//// a.draw();\n\n }", "public void draw()\n {\n drawLine(x1, y1, x2, y2);\n }", "public void draw()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\tfor(int i = lines.size()-1; i >= 0; i--)\r\n\t\t\t{\r\n\t\t\t\tlines.get(i).draw();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void draw() {\r\n\t\tbackground(255); // Clear the screen with a white background\r\n\r\n\t\ttextSize(12);\r\n\t\tfill(0);\r\n\r\n\t\tstroke(0);\r\n\t\tcurve.draw(this);\r\n\t}", "private void drawAllIntersections(Point[] points, DrawSurface d) {\n for (Point point : points) {\n if (point == null) {\n break;\n }\n int r = 3;\n d.setColor(Color.RED);\n d.fillCircle((int) point.getX(), (int) point.getY(), r);\n }\n }", "void draw();", "private void definePoints(){\n defineLinePoints(x1, y1, x2, y2);\n defineLinePoints(x1,y1, x3, y3);\n defineLinePoints(x2,y2, x3, y3);\n }", "public void draw();", "public void draw();", "public void draw();", "@Override\n\t\t\tvoid drawCurve(Point2D.Double[] p, Graphics2D g) {\n\t\t\t\t\n\t\t\t\tdouble minx = p[0].x;\n\t\t\t\tdouble maxx = p[0].x;\n\t\t\t\tdouble miny = p[0].y;\n\t\t\t\tdouble maxy = p[0].y;\n\t\t\t\tfor (int i = 1; i < p.length ; i++) {\n\t\t\t\t\tminx = Math.min(minx, p[i].x);\n\t\t\t\t\tmaxx = Math.max(maxx, p[i].x);\n\t\t\t\t\tminy = Math.min(miny, p[i].y);\n\t\t\t\t\tmaxy = Math.max(maxy, p[i].y);\n\t\t\t\t}\n\t\t\t Color c = g.getColor();\n\t\t\t\tg.setColor(new Color(1.0f,0.0f,0.0f,0.3f));\n\t\t\t\tfor (int x = (int) minx; x< maxx; x++) {\n\t\t\t\t\tfor (int y = (int) miny; y< maxy; y++) {\n\t\t\t\t\t\tif (inPolygonTurningCount(p, (double)x, (double)y)) g.fillRect(x, y, 1, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tg.setColor(c);\n\t\t\t\tg.draw(new Rectangle2D.Double(minx,miny,maxx-minx,maxy-miny));\t\n\t\t\t\t// \n\t\t\t\tfor (int i = 0; i < p.length ; i++) {\n\t\t\t\t\tg.draw(new Line2D.Double(p[i].x, p[i].y,p[(i+1)%p.length].x, p[(i+1)%p.length].y));\n\t\t\t\t}\n\t\t\t}", "private void drawT(int[] xPoints,int[] yPoints,boolean condition){\r\n if(condition)\r\n g.setColor(Color.red); \r\n else\r\n g.setColor(Color.gray); \r\n g.fillPolygon(xPoints,yPoints,3);\r\n g.setColor(Color.black);\r\n g.drawPolygon(xPoints,yPoints,3); \r\n }", "public static void main(String[] args) {\n StdDraw.setXscale(0, 32768);\n StdDraw.setYscale(0, 32768);\n StdDraw.show(0);\n StdDraw.setPenRadius(0.01); // make the points a bit larger\n\n // read in the input\n String filename = args[0];\n In in = new In(filename);\n int N = in.readInt();\n Point[] points = new Point[N];\n for (int i = 0; i < N; i++) {\n int x = in.readInt();\n int y = in.readInt();\n Point p = new Point(x, y);\n p.draw();\n points[i] = p;\n }\n \n // reset the pen radius\n StdDraw.setPenRadius();\n \n Arrays.sort(points, 0, points.length);\n for (int i = 0; i < N; i++) {\n for (int j = 1; j < N; j++) {\n for (int k = 0; k < N; k++) {\n for (int l = 0; l < N; l++) {\n \n // calculate slopes\n double slopeone = points[i].slopeTo(points[j]);\n double slopetwo = points[i].slopeTo(points[k]);\n double slopethree = points[i].slopeTo(points[l]);\n \n // draw line segments\n if (slopeone == slopetwo && slopetwo == slopethree) {\n if (points[i].compareTo(points[j]) < 0\n && points[j].compareTo(points[k]) < 0\n && points[k].compareTo(points[l]) < 0) {\n StdOut.print(points[i].toString()\n + \" -> \" + points[j].toString()\n + \" -> \" + points[k].toString()\n + \" -> \" + points[l].toString()\n + \"\\n\");\n points[i].drawTo(points[l]);\n }\n }\n }\n }\n }\n }\n\n // display to screen all at once\n StdDraw.show(0);\n }", "public void draw() {\n }", "public void drawGraph(){\n this.post(new Runnable(){\n @Override\n public void run(){\n removeAllSeries();\n addSeries(xySeries);\n addSeries(currentPoint);\n //addSeries(currentPoint);\n }\n });\n }", "private void run() {\n List<Point> points = Arrays.asList(this.points);\n Collections.sort(points);\n for (int i=0; i < points.size(); i++) {\n Point p0 = points.get(i);\n List<Point> cp = new ArrayList<>(points); // clone\n Collections.sort(cp, p0.SLOPE_ORDER);\n for (int s=0, e; s < cp.size(); s=e) {\n for (e=s; e < cp.size() && p0.SLOPE_ORDER.compare(cp.get(s) , cp.get(e)) == 0; e++);\n if (e-s+1>= 4) {\n List<Point> r = new ArrayList<>(cp.subList(s, e));\n r.add(p0);\n Collections.sort(r);\n if (r.get(0).equals(p0)) {\n Point[] ret = r.toArray(new Point[e-s+1]);\n StdOut.println(this.toString(ret));\n this.drawLine(ret);\n }\n }\n }\n }\n }", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\n\t\tg.setColor(Color.BLACK);\n\n\t\tg.setFont(numFont);\n\n\t\tif (param.showaxis) {\n\t\t\t// pixels\n\t\t\tint actualcenterx = (int) math.Math.scale(0, param.minx, param.maxx, 0, getWidth());\n\t\t\tint actualcentery = (int) math.Math.scale(0, param.miny, param.maxy, getHeight(), 0);\n\n\t\t\tg.drawLine(actualcenterx, 0, actualcenterx, getHeight());\n\t\t\tg.drawLine(0, actualcentery, getWidth(), actualcentery);\n\t\t\tg.drawString(0 + \"\", actualcenterx - xoffset, actualcentery + yoffset);\n\n\t\t\tg.drawString(param.maxx + \"\", getWidth() - xoffset * (param.maxx + \"\").length(), actualcentery + yoffset);\n\t\t\tg.drawString(param.minx + \"\", 0, actualcentery + yoffset);\n\t\t\tg.drawString(param.maxy + \"\", actualcenterx - xoffset * (param.maxy + \"\").length(), yoffset);\n\t\t\tg.drawString(param.miny + \"\", actualcenterx - xoffset * (param.miny + \"\").length(), getHeight() - yoffset);\n\t\t}\n\n\t\tfor (UIPointSet pointSet : pointSets) {\n\n\t\t\tint prevpx = 0, prevpy = 0;\n\t\t\tfor (int i = 0; i < pointSet.getPoints().length; i++) {\n\n\t\t\t\tdouble[] point = pointSet.getPoints()[i];\n\t\t\t\t// pixels\n\t\t\t\tint px = (int) math.Math.scale(point[0], param.minx, param.maxx, 0, getWidth());\n\t\t\t\tint py = (int) math.Math.scale(point[1], param.miny, param.maxy, getHeight(), 0);\n\n\t\t\t\tif (pointSet.getPointColor() != null) {\n\t\t\t\t\tint pointWidth = 10;\n\t\t\t\t\tg.setColor(pointSet.getPointColor());\n\t\t\t\t\tg.fillOval(px - pointWidth / 2, py - pointWidth / 2, pointWidth, pointWidth);\n\t\t\t\t}\n\n\t\t\t\tif (pointSet.getLineColor() != null && i > 0) {// if (Math.abs(y2 - y) < (getHeight())) {\n\t\t\t\t\tg.setColor(pointSet.getLineColor());\n\t\t\t\t\tg.drawLine(prevpx, prevpy, px, py);\n\t\t\t\t\tfor (int ii = 1; ii < 2; ii++) {\n\t\t\t\t\t\tg.drawLine(prevpx, prevpy - ii, px, py - ii);\n\t\t\t\t\t\tg.drawLine(prevpx, prevpy + ii, px, py + ii);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tprevpx = px;\n\t\t\t\tprevpy = py;\n\n\t\t\t}\n\t\t}\n\n\t\tfor (PointBox bx : savedBoxes) {\n\t\t\tbx.updatePixCoordinate();\n\t\t\tg.setColor(bx.pointSet.getPointColor());\n\t\t\tbx.paint(g, clickingmBox && mBox.equals(bx), false);\n\t\t}\n\t\tif (showmBox) {\n\t\t\tint index = savedBoxes.indexOf(mBox);\n\t\t\tg.setColor(mBox.pointSet.getPointColor());\n\t\t\tif (index < 0) {\n\t\t\t\tmBox.paint(g, clickingmBox, false);\n\t\t\t} else {\n\t\t\t\tsavedBoxes.get(index).paint(g, clickingmBox, true);\n\t\t\t}\n\t\t\t// now draw the box (top left)\n\t\t\tint corneroffset = 10;\n\t\t\tString eqS = \"y = \" + mBox.pointSet.getTitle();\n\t\t\tString fnumS = pointSets.indexOf(mBox.pointSet) + \"\";\n\n\t\t\tint boxx = corneroffset + 10;\n\t\t\tint boxy = corneroffset;\n\t\t\tint boxw = eqS.length() * (xoffset - 4) + 8 + corneroffset;\n\t\t\tint boxh = yoffset + corneroffset;\n\n\t\t\tg.clearRect(boxx, boxy, boxw, boxh);\n\n\t\t\tg.drawString(eqS, xoffset + corneroffset, yoffset + corneroffset);\n\n\t\t\tg.setFont(subFont);\n\t\t\tg.drawString(fnumS, xoffset * 2 + corneroffset, (yoffset * 4 / 3) + corneroffset);\n\n\t\t\tg.drawRect(boxx, boxy, boxw, boxh);\n\n\t\t}\n\t}", "abstract void draw();", "abstract void draw();", "private void draw() {\n gsm.draw(g);\n }", "public void Draw() {\n \tapp.fill(this.r,this.g,this.b);\n\t\tapp.ellipse(posX, posY, 80, 80);\n\n\t}", "@Override\r\n\tpublic void display(GLAutoDrawable drawable) {\r\n\t\tGL2 gl = drawable.getGL().getGL2();\r\n\t\tgl.glClear(GL2.GL_COLOR_BUFFER_BIT);\r\n\r\n\t\t//points should be in the same zone\r\n\t\tDrawMPL(gl,0,0,30,25);\r\n\t\tDrawMPL(gl,0,0,-100,0);\r\n\t\tDrawMPL(gl,0,0,0,-100);\r\n\t\tDrawMPL(gl,-70,25,30,25);\r\n\t\tDrawMPL(gl,-70,25,-100,0);\r\n\t\tDrawMPL(gl,-70,25,-70,-75);\r\n\t\tDrawMPL(gl,-100,-100,-100,0);\r\n\t\tDrawMPL(gl,-100,-100,0,-100);\r\n\t\tDrawMPL(gl,-100,-100,-70,-75);\r\n\t\tDrawMPL(gl,-70,-75,30,-75);\r\n\t\tDrawMPL(gl,0,-100,30,-75);\r\n\t\tDrawMPL(gl,30,-75,30,25);\r\n\t}", "public abstract void draw( );", "protected void drawPlot()\n\t{\n \t\tfill(255);\n \t\tbeginShape();\n \t\tvertex(m_ViewCoords[0] - 1, m_ViewCoords[1] - 1);\n \t\tvertex(m_ViewCoords[2] + 1, m_ViewCoords[1] - 1);\n \t\tvertex(m_ViewCoords[2] + 1, m_ViewCoords[3] + 1);\n \t\tvertex(m_ViewCoords[0] - 1, m_ViewCoords[3] + 1);\n \t\tendShape(CLOSE);\n\t}", "final public void drawPolyline(int[] points)\r\n\t{\n\t\tCanvasAdaptor.drawPolylineForMe(points, this);\r\n\t}", "static void draw()\n {\n for (Viewport viewport : viewports)\n viewport.draw(renderers);\n }", "public void paint (Graphics graphics)\r\n {\r\n graphics_ = graphics;\r\n SPlotPoint point;\r\n \r\n drawAxes();\r\n\r\n\r\n // Plot the points, highlighting those who are set to be highlighted\r\n for (int i = 0; i<pointVector_.size(); i++)\r\n {\r\n point = (SPlotPoint)pointVector_.elementAt(i);\r\n \r\n // The color for non-highlighted scatter plot points\r\n graphics_.setColor(Color.blue);\r\n \r\n // If the scatter plot point should be highlighted, draw it red\r\n if (point.getIsHilited() == true)\r\n {\r\n graphics_.setColor(Color.red);\r\n }\r\n\r\n\r\n // test for previous highlighted point and set that to blue\r\n if ( resetColor_ == true )\r\n {\r\n graphics_.setColor(Color.blue);\r\n resetColor_ = false;\r\n }\r\n\r\n\r\n // draw point if values are valid\r\n graphics_.fillOval((int)point.x, \r\n (int)point.y, \r\n OVAL_DIAMETER, \r\n OVAL_DIAMETER);\r\n\r\n\r\n }// End for\r\n }", "public void drawAll(List<? extends Shape> shapes) {\n\t}", "public void draw(Graphics g){\n\n g.setColor(Color.red);\n g.drawLine(x1,y1,x2,y2);\n g.drawLine(x2,y2,x3,y3);\n g.drawLine(x3,y3,x1,y1);\n g.setFont(new Font(\"Courier\", Font.BOLD, 12));\n DecimalFormat fmt = new DecimalFormat(\"0.##\"); \n g.setColor(Color.blue);\n g.drawString(fmt.format(perimeter()) + \" \" + name,x1+2 , y1 -2);\n \n }", "public void paint(Graphics brush){\r\n\t\t//declarations of points\r\n\t\tPoint[] points = this.getPoints();\r\n\t\tint n = points.length;\r\n\t\tint[] xPoints = new int[n];\r\n\t\tint[] yPoints = new int[n];\r\n\r\n\t\t//creates x and y points\r\n\t\tfor (int i = 0; i < n; i ++){\r\n\t\t\txPoints[i] = (int) points[i].getX();\r\n\t\t\tyPoints[i] = (int) points[i].getY();\t\t\t\r\n\t\t}\r\n\t\t//fills in the ship\r\n\t\tbrush.fillPolygon(xPoints, yPoints, n);\r\n\t}", "public void show() {\r\n\t\tif ((polygon.npoints > 1)\r\n\t\t\t\t&& ((polygon.xpoints[0] != polygon.xpoints[1]) || (polygon.ypoints[0] != polygon.ypoints[1]))) {\r\n\t\t\tGraphics2D gr = (Graphics2D) graphics;\r\n\t\t\tgr.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n\t\t\t\t\tRenderingHints.VALUE_ANTIALIAS_ON);\r\n\t\t\tgr.setPaint(colorPar.getDevColor());\r\n\t\t\tgr.setStroke(new BasicStroke((float) lineWidth));\r\n\t\t\tPolygon p = isTransformed ? transformed() : polygon;\r\n\t\t\tGeneralPath gp = new GeneralPath();\r\n\t\t\tgp.moveTo((float) (p.xpoints[0]), (float) (p.ypoints[0]));\r\n\t\t\tfor (int i = 1; i < p.npoints; i++) {\r\n\t\t\t\tgp.lineTo((float) (p.xpoints[i]), (float) (p.ypoints[i]));\r\n\t\t\t}\r\n\t\t\tgr.draw(gp);\r\n\t\t\tif (validBounds) {\r\n\t\t\t\tsetBounds(gp.getBounds());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n public void draw() {\n }", "@Override public void draw(){\n // this take care of applying all styles (colors/stroke)\n super.draw();\n // draw our shape\n pg.ellipseMode(PGraphics.CORNER); // TODO: make configurable\n pg.ellipse(0,0,getSize().x,getSize().y);\n }", "public static void mainDraw(Graphics graphics) {\n int x1 = 50;\r\n int x2 = 180;\r\n int y1 = 180;\r\n int y2 = 50;\r\n Color[] colors = {Color.blue, Color.cyan, Color.green, Color.magenta};\r\n graphics.setColor(colors[1]);\r\n graphics.drawLine(x1, y2, x2, y2);\r\n graphics.setColor(colors[2]);\r\n graphics.drawLine(x2, y2, x2, y1);\r\n graphics.setColor(colors[3]);\r\n graphics.drawLine(x2, y1, x1, y1);\r\n graphics.setColor(colors[0]);\r\n graphics.drawLine(x1, y1, x1, y2);\r\n }", "private ArrayList<Vector2f> drawRasterLine(Graphics g, Vector2f p0, Vector2f p1) {\r\n g.setColor(Color.BLUE);\r\n // Storage for drawn points\r\n ArrayList<Vector2f> vertices = new ArrayList<>();\r\n // Get pixels on the canvas\r\n int x0 = (int) world2Pixel(p0).x;\r\n int y0 = (int) world2Pixel(p0).y;\r\n int x1 = (int) world2Pixel(p1).x;\r\n int y1 = (int) world2Pixel(p1).y;\r\n // Delta x\r\n float dx = Math.abs(x1 - x0);\r\n // Step for x-value\r\n int sx = x0 < x1 ? 1 : -1;\r\n // Delta y\r\n float dy = -Math.abs(y1 - y0);\r\n // Step for y-value\r\n int sy = y0 < y1 ? 1 : -1;\r\n // Error values to determine with step to take\r\n float err = dx + dy, e2;\r\n // Loop until algorithm has finished\r\n while(true) {\r\n // Draw point on current coordinates\r\n g.drawArc(x0, y0, 1, 1, 0, 360);\r\n // Add point to drawn points list\r\n vertices.add(new Vector2f(x0, y0));\r\n // Loop condition\r\n if (x0==x1 && y0==y1) break;\r\n // Check which step to take for next point to draw\r\n e2 = 2 * err;\r\n if (e2 > dy) {\r\n err += dy;\r\n x0 += sx;\r\n }\r\n if (e2 < dx) {\r\n err += dx;\r\n y0 += sy;\r\n }\r\n }\r\n // Return all drawn points\r\n return vertices;\r\n }", "public void draw() {\n\n }", "public abstract void draw();", "public abstract void draw();", "public abstract void draw();", "public void draw() {\n\t\tfor (int i = 0; i < particleCount; i++) {\r\n\t\t\tif (particles[i] != null) {\r\n\t\t\t\tglBegin(GL_QUADS);\r\n\t\t\t\t{\r\n\t\t\t\t\tparticles[i].draw();\r\n\t\t\t\t}\r\n\t\t\t\tglEnd();\r\n\t\t\t}\r\n\t\t}\r\n\t\tglColor3f(1, 1, 1);\r\n\t}", "public void draw(){\n }", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "public void paintComponent(Graphics g2d)\n {\n Iterator<ColoredPoint> iter = PlottedDataSet.iterator();\n ColoredPoint dot = null;\n while(iter.hasNext())\n {\n dot = iter.next();\n g2d.setColor(dot.getColor()); \n g2d.fillOval((int)dot.getX(),(int)dot.getY(),POINT_SIZE, POINT_SIZE);\n g2d.drawString(dot.getLabel(), (int)dot.getX(),(int)dot.getY());\n }\n }", "public void clearAllPoints() {\n\t\tpoints.clear();\n\t\tnotifyListeners();\n\t}", "@Override\n public void draw() {\n super.draw(); \n double radius = (this.getLevel() * 0.0001 + 0.025) * 2.5e10;\n double x = this.getR().cartesian(0) - Math.cos(rot) * radius;\n double y = this.getR().cartesian(1) - Math.sin(rot) * radius;\n StdDraw.setPenRadius(0.01);\n StdDraw.setPenColor(StdDraw.RED);\n StdDraw.point(x, y);\n \n }", "private void draw()\n {\n Canvas canvas = Canvas.getCanvas();\n canvas.draw(this, color, new Ellipse2D.Double(xPosition, yPosition, \n diameter, diameter));\n canvas.wait(10);\n }", "void render() {\n smooth();\n for (int x = 0; x < yvalues.length; x++) {\n noStroke();\n fill(0,0,255,100);\n ellipseMode(CENTER);\n ellipse(x*xspacing,yvalues[x],16,16);\n }\n }", "public void draw() {\n\t\tsuper.repaint();\n\t}", "@Override\n public void draw(GraphicsContext gc){\n for(int i = 1; i < path.size(); i++) {\n Point2D from = path.get(i-1);\n Point2D to = path.get(i);\n gc.strokeLine(from.getX(), from.getY(), to.getX(), to.getY());\n }\n }", "private void showDraw() {\n StdDraw.show(0);\n // reset the pen radius\n StdDraw.setPenRadius();\n }", "public void draw() {\n draw(root, true);\n }", "public static void mainDraw(Graphics graphics) {\n Color[] colors = {Color.green, Color.blue, Color.red, Color.cyan};\n int rectangles[] = {50, 100, 150, 200};\n for (int k = 0; k < 4; k++) {\n toCenter(graphics, rectangles[k], colors[k]);\n }\n }", "public void draw(Shape s)\r\n\t{\r\n\t\tPathIterator path = s.getPathIterator(_g2.getTransform());\r\n\t\tfloat[] coords = new float[6];\r\n\r\n\t\tPoint lastPoint = null;\r\n\t\tPoint newPoint = null;\r\n\r\n\t\twhile (!path.isDone())\r\n\t\t{\r\n\t\t\tint type = path.currentSegment(coords);\r\n\r\n\t\t\tswitch (type)\r\n\t\t\t{\r\n\t\t\tcase PathIterator.SEG_MOVETO:\r\n\t\t\t{\r\n\t\t\t\tlastPoint = new Point((int) coords[0], (int) coords[1]);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase PathIterator.SEG_LINETO:\r\n\t\t\t{\r\n\t\t\t\tnewPoint = new Point((int) coords[0], (int) coords[1]);\r\n\t\t\t\tif (lastPoint != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.drawLine(lastPoint.x, lastPoint.y, newPoint.x, newPoint.y);\r\n\t\t\t\t}\r\n\t\t\t\tlastPoint = newPoint;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t\tcase PathIterator.SEG_QUADTO:\r\n\t\t\t{\r\n\t\t\t\tlastPoint = new Point((int) coords[0], (int) coords[1]);\r\n\t\t\t\tnewPoint = new Point((int) coords[2], (int) coords[3]);\r\n\t\t\t\tthis.drawLine(lastPoint.x, lastPoint.y, newPoint.x, newPoint.y);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t\tcase PathIterator.SEG_CUBICTO:\r\n\t\t\t{\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t\tcase PathIterator.SEG_CLOSE:\r\n\t\t\t{\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tpath.next();\r\n\t\t}\r\n\t}", "public void draw() {\n draw(root, false);\n }", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"Inside draw of Circle ..Point is: \"+center.getX() +\",\"+center.getY());\n\t}", "public void afficherPoints(){\n for(Point point : pointArrayList){\n getMapPane().getChildren().add(point.getImageView());\n visualObjects.add(point);\n }\n }", "public void draw(){\n StdDraw.picture(this.xCoordinate,this.yCoordinate,this.img);\n }" ]
[ "0.8220091", "0.8139483", "0.80436707", "0.80167764", "0.78704166", "0.7644552", "0.76027393", "0.76027393", "0.76027393", "0.76027393", "0.7192317", "0.6952031", "0.6862337", "0.6829775", "0.68277574", "0.68277574", "0.68277574", "0.6824045", "0.67747164", "0.6751766", "0.6646198", "0.6640838", "0.6605714", "0.6587587", "0.6512787", "0.6501808", "0.6487412", "0.6485429", "0.647696", "0.6466788", "0.6457477", "0.64549", "0.6450045", "0.6434915", "0.6431736", "0.64304954", "0.6413976", "0.63916224", "0.6374068", "0.6365644", "0.63655967", "0.63571566", "0.6355163", "0.63527524", "0.6342068", "0.63219607", "0.63163966", "0.6306561", "0.6306436", "0.6306436", "0.6306436", "0.62917334", "0.62770635", "0.62685776", "0.62655425", "0.6262934", "0.62557286", "0.61895144", "0.61895144", "0.6187304", "0.618541", "0.618541", "0.61826223", "0.6181584", "0.6178019", "0.61734813", "0.61638373", "0.6163583", "0.6161206", "0.61603713", "0.61580044", "0.61577886", "0.6155811", "0.61444545", "0.6135701", "0.6131818", "0.6131251", "0.61298585", "0.61282265", "0.6121081", "0.6121081", "0.6121081", "0.6119236", "0.6118892", "0.6111311", "0.6111311", "0.61071044", "0.60994357", "0.60945773", "0.6093039", "0.60897446", "0.6085949", "0.6082848", "0.60823935", "0.60781777", "0.60717887", "0.6068143", "0.6065866", "0.60620683", "0.60602957", "0.6047932" ]
0.0
-1
all the points in the tree that are inside the rectangle
public Iterable<Point2D> range(RectHV rect) { Stack<Point2D> pointsInRect = new Stack<Point2D>(); range(root, rect, pointsInRect); return pointsInRect; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public ArrayList<Point> points(Rectangle inRectangle) {\n // if the node's rect and the given rect don't intersect, return an empty array,\n // because there can't be any points that lie the node's (or its children's) rect and\n // in the given rect\n if (!this.rectangle.intersects(inRectangle)) {\n return new ArrayList<Point>();\n }\n\n ArrayList<Point> result = new ArrayList<Point>();\n\n // collect the node's points that lie in the rect\n for (Point point : points) {\n if (inRectangle.contains(point)) {\n result.add(point);\n }\n }\n\n if (hasChildren) {\n // recursively add children's points that lie in the rect\n for (QuadtreeNode node : children) {\n result.addAll(node.points(inRectangle));\n }\n }\n\n return result;\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\n \"Null pointer provided instead of a query rectangle\");\n ptsInside = new SET<Point2D>();\n searchForPoints(root, rect);\n return ptsInside;\n }", "public Iterable<Point2D> range(RectHV rect) \n\t {\n\t\t if(rect==null)\n\t\t\t throw new java.lang.NullPointerException();\n\t\t LinkedQueue<Point2D> insidePoints = new LinkedQueue<Point2D>();\n\t\t range(root,rect.xmin(),rect.ymin(),rect.xmax(),rect.ymax(),insidePoints,true);\n\t\t return insidePoints;\n\t }", "public Iterable<Point2D> range(RectHV rect) {\n if (isEmpty())\n return null;\n IntersectingPoints ip = new IntersectingPoints(rect);\n return new KdTreeIterable(ip.intersecting, ip.lenIntersecting);\n }", "public Iterable<Point2D> range(RectHV rect) {\n\t\tif (rect == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tQueue<Point2D> queue = new Queue<Point2D>();\n\t\tStack<Node> stack = new Stack<>();\n\t\tstack.push(root);\n\t\twhile (!stack.isEmpty()) {\n\t\t\tNode nCur = stack.pop();\n\t\t\tPoint2D pCur = nCur.point;\n\t\t\tif (rect.contains(pCur)) {\n\t\t\t\tqueue.enqueue(pCur);\n\t\t\t\tif (nCur.right != null) {\n\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t}\n\t\t\t\tif (nCur.left != null) {\n\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (nCur.bDirection == USING_X) {\n\t\t\t\t\tif (nCur.x < rect.xmin() && nCur.right != null) {\n\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t} else if (nCur.x > rect.xmax() && nCur.left != null) {\n\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (nCur.right != null) {\n\t\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (nCur.left != null) {\n\t\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (nCur.y < rect.ymin() && nCur.right != null) {\n\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t} else if (nCur.y > rect.ymax() && nCur.left != null) {\n\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (nCur.right != null) {\n\t\t\t\t\t\t\tstack.push(nCur.right);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (nCur.left != null) {\n\t\t\t\t\t\t\tstack.push(nCur.left);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn queue;\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\"Rectangle is null or invalid\");\n points = new ArrayList<>();\n if (root == null) return points;\n searchRange(root, rect);\n return points;\n }", "public Iterable<Point2D> range(RectHV rect) {\n\n if (rect == null)\n throw new IllegalArgumentException(\"Got null object in range()\");\n \n Queue<Point2D> pointsInside = new Queue<>();\n \n for (Point2D p : point2DSET) {\n \n double x = p.x();\n double y = p.y();\n if (x >= rect.xmin() && x <= rect.xmax() &&\n y >= rect.ymin() && y <= rect.ymax())\n pointsInside.enqueue(p);\n \n }\n \n return pointsInside;\n }", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> point_list = new SET<Point2D>();\n rangesearch(root, rect, point_list);\n return point_list;\n }", "public Iterable<Point2D> range(RectHV rect) {\n Queue<Point2D> pointsInRect = new Queue<Point2D>();\n range(root, rect, pointsInRect);\n return pointsInRect;\n }", "public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }", "public Iterable<Point2D> range(RectHV rect) {\n checkNull(rect);\n LinkedList<Point2D> pointList = new LinkedList<Point2D>();\n\n range(rect, root, pointList);\n\n return pointList;\n }", "public Array<Point> allOuterPoints() {\r\n \tArray<Point> innerPoints = innerPiece.getPoints();\r\n Array<Point> outerPoints = new Array<Point>();\r\n for (Point inner : innerPoints) {\r\n outerPoints.add(toOuterPoint(inner));\r\n }\r\n return outerPoints;\r\n }", "public Iterable<Point2D> points() {\n\n\t\tQueue<Point2D> points = new Queue<Point2D>();\n\t\tQueue<Node> queue = new Queue<Node>();\n\t\tqueue.enqueue(root);\n\n\t\twhile (!queue.isEmpty()) {\n\t\t\tNode x = queue.dequeue();\n\t\t\tif (x == null)\n\t\t\t\tcontinue;\n\t\t\tpoints.enqueue(x.point);\n\t\t\tqueue.enqueue(x.left);\n\t\t\tqueue.enqueue(x.right);\n\t\t}\n\t\treturn points;\n\t}", "public List<Point> query(Rectangle rectangle) {\n if (!boundary.intersects(rectangle)) {\n return Collections.emptyList();\n }\n\n List<Point> found = new ArrayList<>();\n points.stream()\n .filter(rectangle::contains)\n .forEach(found::add);\n\n if (isSubdivided) {\n found.addAll(nw.query(rectangle));\n found.addAll(ne.query(rectangle));\n found.addAll(se.query(rectangle));\n found.addAll(sw.query(rectangle));\n }\n\n return found;\n }", "public Iterable<Point2D> points() {\n if (root == null) return new Queue<Point2D>();\n\n Queue<Point2D> pts = new Queue<Point2D>();\n Queue<Node> ptStore = new Queue<>();\n ptStore.enqueue(root);\n do {\n Node current = ptStore.dequeue();\n pts.enqueue(current.p);\n if (current.left != null) ptStore.enqueue(current.left);\n if (current.right != null) ptStore.enqueue(current.right);\n } while (!ptStore.isEmpty());\n return pts;\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }", "public Iterable<Point2D> range(RectHV rect) {\n SET<Point2D> result = new SET<Point2D>();\n if (root == null) {\n return result;\n }\n\n range(root, rect, result);\n return result;\n }", "public List<PointDetails> getIntersectingPoints(Rectangle2D rect) {\n\t\tboolean useParallelStreaming = numPoints() > 10000;\n\t\treturn Utils.parallelize(getPointDetails().stream(), useParallelStreaming)\n\t\t\t\t.filter(p->rect.contains(p.location))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "public List<Point> rangeSearch(Rectangle rect) {\n\t\tif (rect == null) {\n System.out.println(\"Rectangle can't be null\");\n\t\t\tSystem.exit(0);\n }\n List<Point> rangePoints = new List<>();\n if (!isEmpty()) {\n range(head, rect, rangePoints);\n }\n return rangePoints;\n\t}", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\"range: RectHV is null\");\n Queue<Point2D> q = new Queue<>();\n rangeSearch(root, rect, q);\n return q;\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n SET<Point2D> result = new SET<Point2D>();\n for (Point2D point : points) {\n if (rect.contains(point))\n result.add(point);\n }\n return result;\n }", "public Collection <Point> getAllPoints(){\n Collection <Point> points = new ArrayList<>();\n for(int i = 0; i < width; i++){\n for(int j = 0; j < height; j++){\n points.add(new Point(i, j));\n }\n }\n return points;\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException(\"rects cannot be null\");\n Queue<Point2D> pts = new Queue<Point2D>();\n range(pts, rect, root, inftyBbox);\n return pts;\n }", "@Override\n public String toString() {\n if (hasChildren) {\n return \"parent \" + rectangle + \" Points: \" + Arrays.toString(points.toArray());\n } else {\n return \"leaf \" + rectangle + \" Points: \" + Arrays.toString(points.toArray());\n }\n }", "public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new IllegalArgumentException();\n if (root == null) return new ArrayList<>();\n\n return rangeSubMethod(rect, root);\n }", "public Iterable<Point2D> range(RectHV rect) {\n ArrayList<Point2D> returnArray = new ArrayList<Point2D>();\n if (rect == null) {\n throw new IllegalArgumentException(\"rect input is null\");\n }\n for (Point2D i : pointsSet) {\n if (rect.contains(i))\n returnArray.add(i);\n }\n return returnArray;\n }", "public Set<Point> getHitboxPoints() {\n Set<Point> hitboxPoints = new HashSet<>();\n\n for(Point p : relevantPoints)\n {\n int currX = (int)(p.x + xPos - (getWidth() / 2));\n int currY = (int)(p.y + yPos - (getHeight() / 2));\n\n hitboxPoints.add(new Point(currX, currY));\n }\n\n return hitboxPoints;\n }", "Collection<Point> getAllCoordinates();", "List<PathRectangle> getCollisionRectangles();", "private QuadTree[] findChild(QuadTree parent) {\n double point1_lon = parent.ullon;\n double point1_lat = parent.ullat;\n double point2_lon = (parent.lrlon + parent.ullon) / 2;\n double point2_lat = parent.ullat;\n double point3_lon = parent.ullon;\n double point3_lat = (parent.ullat + parent.lrlat) / 2;\n double point4_lon = (parent.lrlon + parent.ullon) / 2;\n double point4_lat = (parent.ullat + parent.lrlat) / 2;\n double point5_lon = (parent.lrlon + parent.ullon) / 2;\n double point5_lat = parent.lrlat;\n double point6_lon = parent.lrlon;\n double point6_lat = parent.lrlat;\n double point7_lon = parent.lrlon;\n double point7_lat = (parent.ullat + parent.lrlat) / 2;\n QuadTree ul, ur, ll, lr;\n if (parent.name.equals(\"root\")) {\n ul = new QuadTree(\"1\", point1_lon, point1_lat, point4_lon, point4_lat, parent.depth + 1);\n ur = new QuadTree(\"2\", point2_lon, point2_lat, point7_lon, point7_lat, parent.depth + 1);\n ll = new QuadTree(\"3\", point3_lon, point3_lat, point5_lon, point5_lat, parent.depth + 1);\n lr = new QuadTree(\"4\", point4_lon, point4_lat, point6_lon, point6_lat, parent.depth + 1);\n } else {\n ul = new QuadTree(parent.name + \"1\", point1_lon, point1_lat, point4_lon, point4_lat, parent.depth + 1);\n ur = new QuadTree(parent.name + \"2\", point2_lon, point2_lat, point7_lon, point7_lat, parent.depth + 1);\n ll = new QuadTree(parent.name + \"3\", point3_lon, point3_lat, point5_lon, point5_lat, parent.depth + 1);\n lr = new QuadTree(parent.name + \"4\", point4_lon, point4_lat, point6_lon, point6_lat, parent.depth + 1);\n }\n QuadTree[] child = new QuadTree[4];\n child[0] = ul;\n child[1] = ur;\n child[2] = ll;\n child[3] = lr;\n return child;\n }", "public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) {\n throw new IllegalArgumentException();\n }\n List<Point2D> list = new LinkedList<>();\n range(rect, new RectHV(0.0, 0.0, 1.0, 1.0), list, this.root);\n return list;\n }", "public Queue<Point> getPoints() {\n\tQueue<Point> iter = new Queue<Point>();\n\tfor (Shape s : this.shapes) {\n\t for (Point p : s.getPoints())\n\t\titer.enqueue(p);\n\t}\n\n\treturn iter;\n }", "public Iterable<Point2D> range(RectHV rect) {\n\n\t\tif (rect == null)\n\t\t\tthrow new NullPointerException(\"Rectangle can not be null\");\n\n\t\tQueue<Point2D> rangeQueue = new Queue<Point2D>();\n\t\trange(rect, rangeQueue, root);\n\t\treturn rangeQueue;\n\n\t}", "public ArrayList<QuadTreeNode<E>> getIntersecting(Circle range) {\n\t\tif (!divided) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tArrayList<QuadTreeNode<E>> intersecting = new ArrayList<QuadTreeNode<E>>();\n\t\t\n\t\tfor (QuadTreeNode<E> n : nodes) {\n\t\t\tif (n.intersects(range)) {\n\t\t\t\tintersecting.add(n);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn intersecting;\n\t}", "public Iterable<Point2D> range(RectHV rect) \r\n\t{\r\n\t\tStack<Point2D> insiders = new Stack<Point2D>();\r\n\t\trange(insiders, root, rect, new RectHV(0,0,1,1));\r\n\t\treturn insiders;\r\n\t}", "public int area(String[] rectangles){\n TreeMap<Integer, Events> events = new TreeMap<>();\n\n int tag = 0;\n for(String r : rectangles){\n tag++;\n Scanner sc = new Scanner(r);\n int x1 = sc.nextInt();\n int y1 = sc.nextInt();\n int x2 = sc.nextInt();\n int y2 = sc.nextInt();\n if(!events.containsKey(x1))\n events.put(x1, new Events());\n if(!events.containsKey(x2))\n events.put(x2, new Events());\n\n events.get(x1).in.add(new YRange(y1, y2, tag));\n events.get(x2).out.add(new YRange(y1, y2, tag));\n }\n\n // Active set of tags for each unique y\n // we need to identify where each each rectangle starts & end\n // positve tag - start \n // negative tag - end\n // We need all of them sorted\n TreeMap<Integer, TreeSet<Integer>> active = new TreeMap<>();\n int area = 0;\n for(Map.Entry<Integer, Events> entry : events.entrySet()){\n int x = entry.getKey();\n Integer next_x = events.higherKey(x);\n // processed last unique x\n if(next_x == null) break;\n Events e = entry.getValue();\n\n // Construct the current active set\n for(YRange y : e.in){\n if(!active.containsKey(y.y1)) active.put(y.y1, new TreeSet<>());\n if(!active.containsKey(y.y2)) active.put(y.y2, new TreeSet<>());\n\n active.get(y.y1).add(y.tag);\n active.get(y.y2).add(-y.tag);\n }\n for(YRange y : e.out){\n active.get(y.y1).remove(y.tag);\n active.get(y.y2).remove(-y.tag);\n }\n // Compute union of y segments\n Integer lasty = null;\n int ySum = 0;\n int cnt = 0;\n for(Map.Entry<Integer, TreeSet<Integer>> ytags : active.entrySet()){\n int y = ytags.getKey();\n if(cnt == 0){\n lasty = y;\n }\n for(int ytag : ytags.getValue()){\n // closing\n if(ytag < 0) cnt--;\n else cnt++;\n }\n\n if(cnt == 0){\n ySum += y - lasty;\n // reset lasty\n lasty = null;\n }\n }\n area += (next_x - x)*ySum;\n }\n return area;\n }", "public static void main(String[] args) {\n \n PointSET pset = new PointSET();\n System.out.println(\"Empty: \" + pset.isEmpty());\n pset.insert(new Point2D(0.5, 0.5));\n pset.insert(new Point2D(0.5, 0.5));\n pset.insert(new Point2D(0.5, 0.6));\n pset.insert(new Point2D(0.5, 0.7));\n pset.insert(new Point2D(0.5, 0.8));\n pset.insert(new Point2D(0.1, 0.5));\n pset.insert(new Point2D(0.8, 0.5));\n pset.insert(new Point2D(0.1, 0.1));\n System.out.println(\"Empty: \" + pset.isEmpty());\n System.out.println(\"Size: \" + pset.size());\n System.out.println(\"Nearest to start: \" + pset.nearest(new Point2D(0.0, 0.0)));\n System.out.println(\"Contains #1: \" + pset.contains(new Point2D(0.0, 0.0)));\n System.out.println(\"Contains #2: \" + pset.contains(new Point2D(0.5, 0.5)));\n System.out.print(\"Range #1: \");\n for (Point2D p : pset.range(new RectHV(0.001, 0.001, 0.002, 0.002)))\n System.out.print(p.toString() + \"; \");\n System.out.print(\"\\n\");\n System.out.print(\"Range #2: \");\n for (Point2D p : pset.range(new RectHV(0.05, 0.05, 0.15, 0.15)))\n System.out.print(p.toString() + \"; \");\n System.out.print(\"\\n\");\n System.out.print(\"Range #3: \");\n for (Point2D p : pset.range(new RectHV(0.25, 0.35, 0.65, 0.75)))\n System.out.print(p.toString() + \"; \");\n System.out.print(\"\\n\");\n \n }", "List<Coord> allActiveCells();", "private void analyzeBox(QuadTreeNode node) {\n\t\t\tif (node.type().equals(\"leaf\")) {\n\t\t\t\tif (node.isWithin(((LeafNode)node).id, xl, yl, xu, yu)) elements.add(((LeafNode)node).id);\n\t\t\t} else if (node.type().equals(\"inner\")) {\n\t\t\t\tInnerNode nodeHandle = (InnerNode) node;\n\t\t\t\t//First Quad\n\t\t\t\tif (!nodeHandle.children[0].type().equals(\"empty\") && \n\t\t\t\t\t\txu >= nodeHandle.children[0].llx() && \n\t\t\t\t\t\tyu >= nodeHandle.children[0].lly()) analyzeBox(nodeHandle.children[0]);\n\t\t\t\t//Second Quad\n\t\t\t\tif (!nodeHandle.children[1].type().equals(\"empty\") && \n\t\t\t\t\t\txl < nodeHandle.children[1].urx() && \n\t\t\t\t\t\tyu > nodeHandle.children[1].lly()) analyzeBox(nodeHandle.children[1]);\n\t\t\t\t//Third Quad\n\t\t\t\tif (!nodeHandle.children[2].type().equals(\"empty\") && \n\t\t\t\t\t\txl < nodeHandle.children[2].urx() && \n\t\t\t\t\t\tyl < nodeHandle.children[2].ury()) analyzeBox(nodeHandle.children[2]);\n\t\t\t\t//Fourth Quad\n\t\t\t\tif (!nodeHandle.children[3].type().equals(\"empty\") && \n\t\t\t\t\t\txu >= nodeHandle.children[3].llx() && \n\t\t\t\t\t\tyl <= nodeHandle.children[3].ury()) analyzeBox(nodeHandle.children[3]);\n\t\t\t}\n\t\t}", "Collection<P> getPointsOfInterest ();", "List<GeoPoint> findGeoIntersections(Ray ray);", "private static Array<int[]> findAllOpenAreas(int[][] board, int width, int height) {\n Array<int[]> positions = new Array<int[]>();\n boolean[][] good = new boolean[board.length][board[0].length];\n\n // go across horizontally, finding areas where the rectangle may fit\n // width wise\n for (int y = 1; y < board[0].length-1; ++y) {\n int horizontal_count = 0;\n for (int x = 1; x < board.length-1; ++x) {\n // count up in areas where there is no room\n if (board[x][y] == NULL)\n horizontal_count++;\n // if we encounter a room, the rectangle can not fit there\n else\n horizontal_count = 0;\n\n // when we've reached the edge of our rectangle's width\n // we can mark that this is a safe place to measure from\n if (horizontal_count == width) {\n good[x - width + 1][y] = true;\n // increment back one in case the next space is also\n // acceptable for being a rectangle\n horizontal_count--;\n }\n }\n }\n\n // now that count verticals we have established good lines of where a\n // rectangle may start\n // we need to count vertically down where it can fit\n\n for (int x = 0; x < board.length; ++x) {\n int vertical_count = 0;\n for (int y = 0; y < board[0].length; ++y) {\n // check against only the points that we flagged as potentially\n // okay\n if (good[x][y])\n vertical_count++;\n // if we didn't flag that point, then we can't fit a rectangle\n // there vertically\n else\n vertical_count = 0;\n\n // when our rectangle is fully formed, we can add it as a\n // plausible location\n if (vertical_count == height) {\n positions.add(new int[] { x, y - height + 1 });\n vertical_count--;\n }\n }\n }\n\n return positions;\n }", "private List<VariableCoefficientTuple> getVariablesUsedForBranchingInThisRectangle(Rectangle rect){\r\n List<VariableCoefficientTuple> variablesUsedForBranchingInThisRectangle = new ArrayList<VariableCoefficientTuple> ();\r\n \r\n for (String var : rect.zeroFixedVariables) {\r\n if (!treeNode_zeroFixedVariables.contains(var) ) \r\n variablesUsedForBranchingInThisRectangle.add(new VariableCoefficientTuple(var, ZERO) );\r\n }\r\n for (String var : rect.oneFixedVariables){ \r\n if ( !treeNode_oneFixedVariables.contains(var)) {\r\n variablesUsedForBranchingInThisRectangle.add(new VariableCoefficientTuple(var, ONE));\r\n } \r\n }\r\n \r\n return variablesUsedForBranchingInThisRectangle;\r\n }", "public Set<Coordinate> getAllSurroundingCellsAsCoordinates() {\n Set<MapCoordinate> mapCoordinates = getAllSurroundingCellsAsMapCoordinatesStartingFromTopLeft(1);\n return mapCoordinates\n .stream()\n .map(mapCoordinate -> mapCoordinate.toCoordinate())\n .collect(\n Collectors.toSet()\n );\n }", "public int area(String[] rectangles){\n TreeMap<Integer, Events> events = new TreeMap<>();\n\n int tag = 0;\n for(String r : rectangles){\n tag++;\n Scanner sc = new Scanner(r);\n int x1 = sc.nextInt();\n int y1 = sc.nextInt();\n int x2 = sc.nextInt();\n int y2 = sc.nextInt();\n if(!events.containsKey(x1))\n events.put(x1, new Events());\n if(!events.containsKey(x2))\n events.put(x1, new Events());\n\n events.get(x1).in.add(new YRange(y1, y2, tag));\n events.get(x2).out.add(new YRange(y1, y2, tag));\n }\n\n // Active set of tags for each unique y\n // we need to identify where each each rectangle starts & end\n // positve tag - start \n // negative tag - end\n // We need all of them sorted\n TreeSet<Pair> active = new TreeSet<Pair>(new Comparator<Pair>(){\n @Override\n public int compare(Pair a, Pair b){\n if(a.y == b.y)\n return Integer.compare(a.tag, b.tag);\n return Integer.compare(a.y, b.y);\n }\n });\n\n int area = 0;\n for(Map.Entry<Integer, Events> entry : events.entrySet()){\n int x = entry.getKey();\n Integer next_x = events.higherKey(x);\n // processed last unique x\n if(next_x == null) break;\n Events e = entry.getValue();\n\n // Construct the current active set\n for(YRange y : e.in){\n active.add(new Pair(y.y1, y.tag));\n active.add(new Pair(y.y2, -y.tag));\n }\n\n for(YRange y : e.out){\n active.remove(new Pair(y.y1, y.tag));\n active.remove(new Pair(y.y2, -y.tag));\n }\n // Compute union of y segments\n Integer lasty = null;\n int ySum = 0;\n int cnt = 0;\n for(Pair p : active){\n int y = p.y;\n if(cnt == 0){\n lasty = y;\n }\n // closing\n if(p.tag < 0) cnt--;\n else cnt++;\n\n if(cnt == 0){\n ySum += y - lasty;\n // reset lasty\n lasty = null;\n }\n }\n area += (next_x - x)*ySum;\n }\n return area;\n }", "static public int getAtLeastKVisitors(int[][] rectangles, int k) {\n\n if(rectangles.length==0)\n return 0;\n if(k > rectangles.length)\n return 0;\n\n TreeSet<Rectangle> avlTree = new TreeSet<>();//To store the rectangles ordered\n TreeSet<Integer> Ys = new TreeSet<>();\n\n for(int[] coordinates: rectangles) {\n //x2 = x2 + 1 , y2 = y2 +1 for the inclusive constraints\n Rectangle r = new Rectangle(coordinates[0], coordinates[1], coordinates[2]+1, coordinates[3]+1);\n avlTree.add(r);\n if(!Ys.contains(r.getY1()))\n Ys.add(r.getY1());\n if(!Ys.contains(r.getY2()))\n Ys.add(r.getY2());\n }\n\n int ans = 0;\n Iterator<Integer> yIterator = Ys.iterator();\n int previousY = yIterator.next();\n\n //Traverse by slices of Y's\n while(yIterator.hasNext()) {\n\n int currentY = yIterator.next();\n List<int[]> segments = new ArrayList<>();\n Iterator<Rectangle> treeIterator = avlTree.iterator();\n\n //Look for the rectangles that fall in the slice and create a segment's list\n while(treeIterator.hasNext()) {\n Rectangle r = treeIterator.next();\n //We stop traversing the tree once the rectangles are completely above the slice\n if(r.getY1()>currentY)\n break;\n if(r.getY1()<= previousY && r.getY2()>=currentY) {\n int[] segmentL = new int[2]; int[] segmentR = new int[2];\n segmentL[0] = r.getX1(); segmentL[1] = Type.OPEN.getValue();\n segmentR[0] = r.getX2(); segmentR[1] = Type.CLOSED.getValue();\n segments.add(segmentL); segments.add(segmentR);\n }\n //We remove the rectangles that are left behind by the slice\n if(r.getY2() < previousY)\n treeIterator.remove();\n }\n\n //Sort the segments to analyze them\n Collections.sort(segments, (a, b) -> Integer.compare(a[0], b[0]));\n Iterator<int[]> it = segments.iterator();\n int[] segmentEnd, segmentStart = it.next();\n int nRectangles = Type.OPEN.getValue(); //The first interval will always be opening\n\n while(it.hasNext()) {\n segmentEnd = it.next();\n if(nRectangles >=k) {\n ans+= (currentY - previousY) * (segmentEnd[0] - segmentStart[0]);\n }\n segmentStart = segmentEnd;\n nRectangles += segmentEnd[1];\n }\n\n previousY = currentY;\n }\n\n return ans;\n }", "public LinkedList<Point> segmentsToDraw() {\n LinkedList<Point> segmentCoordinates = new LinkedList<Point>();\n for (int segment = 1; segment <= snakeSize; segment++) {\n //search array for each segment number\n for (int x = 0; x < maxX; x++) {\n for (int y = 0; y < maxY; y++) {\n if (snakeSquares[x][y] == segment) {\n //make a Point for this segment's coordinates and add to list\n Point p = new Point(x * SnakeGame.getSquareSize(), y * SnakeGame.getSquareSize());\n segmentCoordinates.add(p);\n }\n }\n }\n }\n return segmentCoordinates;\n\n }", "public static void main(String[] args) {\n TreeNode n20 = new TreeNode(20);\n TreeNode n8 = new TreeNode(8);\n TreeNode n4 = new TreeNode(4);\n TreeNode n7 = new TreeNode(7);\n TreeNode n12 = new TreeNode(12);\n TreeNode n14 = new TreeNode(14);\n TreeNode n21 = new TreeNode(21);\n TreeNode n22 = new TreeNode(22);\n TreeNode n25 = new TreeNode(25);\n TreeNode n24 = new TreeNode(24);\n n20.left = n8;\n n20.right = n22;\n n8.left = n4;\n n8.right = n12;\n n4.right = n7;\n n12.right = n14;\n n22.left = n21;\n n22.right = n25;\n n25.left = n24;\n\n for (Integer i : printBoundary(n20)) {\n System.out.println(i);\n }\n }", "private void searchForNearest(KdNode kdNode, Point2D p, RectHV rectangle) {\n int comparison;\n // 2 rectangles that will store the coordinates of the rectangles that are delimited by kdNode's children,\n // used in order to calculate the distance to them and see if it's worth looking down the path inside them as well\n // (i.e. if the distance from point p to the rectangle is less than the distance to an already established nearest)\n RectHV rectLeftBelow, rectRightAbove;\n\n if (kdNode.point.equals(p)) {\n // if the point we're looking at actually equals the query point, we return here,\n // as we can no longer find a distance lower than 0\n nearest = kdNode.point;\n return;\n }\n\n // if the point in the current node is closer to the searched node, we update nearest\n if (p.distanceSquaredTo(kdNode.point) < p.distanceSquaredTo(nearest))\n nearest = kdNode.point;\n\n if (kdNode.dimension) { // if this KdNode is vertical (root.dimension == true), then we have left/right rectangles\n rectLeftBelow = new RectHV(rectangle.xmin(), rectangle.ymin(),\n kdNode.point.x(), rectangle.ymax());\n rectRightAbove = new RectHV(kdNode.point.x(), rectangle.ymin(),\n rectangle.xmax(), rectangle.ymax());\n }\n else { // if this KdNode is horizontal (root.dimension == false), then we have below/above rectangles\n rectLeftBelow = new RectHV(rectangle.xmin(), rectangle.ymin(),\n rectangle.xmax(), kdNode.point.y());\n rectRightAbove = new RectHV(rectangle.xmin(), kdNode.point.y(),\n rectangle.xmax(), rectangle.ymax());\n }\n // we look at which rectangle is nearest to the query point, in order to go down that path first\n comparison = Double.compare(rectLeftBelow.distanceSquaredTo(p),\n rectRightAbove.distanceSquaredTo(p));\n\n if (comparison < 0) { // if distance to left/lower rectangle is lower than to right/upper\n if (kdNode.left != null) {\n if (rectLeftBelow.distanceSquaredTo(p) < p.distanceSquaredTo(nearest)) {\n searchForNearest(kdNode.left, p, rectLeftBelow);\n }\n // if it's larger than to nearest, the distance to the other\n // rectangle will certainly be even larger, so we return here\n else return;\n }\n if (kdNode.right != null) {\n if (rectRightAbove.distanceSquaredTo(p) < p.distanceSquaredTo(nearest)) {\n searchForNearest(kdNode.right, p, rectRightAbove);\n }\n // else return; // return statement not needed, if (comparison < 0) statement terminates here anyway\n }\n }\n else { // comparison < 0, the opposite situation holds: distance to right/upper rectangle is lower than to left/lower\n if (kdNode.right != null) {\n if (rectRightAbove.distanceSquaredTo(p) < p.distanceSquaredTo(nearest)) {\n searchForNearest(kdNode.right, p, rectRightAbove);\n }\n else return;\n }\n if (kdNode.left != null) {\n if (rectLeftBelow.distanceSquaredTo(p) < p.distanceSquaredTo(nearest)) {\n searchForNearest(kdNode.left, p, rectLeftBelow);\n }\n }\n\n }\n }", "private List<Rectangle> getRectanglesToConsiderForBranchingVarCalculation () {\r\n \r\n List<Rectangle> rectanglesToConsider = new ArrayList<Rectangle> ();\r\n \r\n //for every constraint, see if it has rects at the best lp\r\n \r\n for (Map <Double, List<Rectangle>> rectMap: myInfeasibleRectanglesList) {\r\n for (List<Rectangle> rectList : rectMap.values()) { \r\n \r\n rectanglesToConsider.addAll(rectList );\r\n \r\n } \r\n }\r\n \r\n return rectanglesToConsider;\r\n }", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "Collection<? extends Boundary> getIsBoundaryNodeOf();", "public double minAreaFreeRect(int[][] points) {\n if (points.length < 4) {\n return 0;\n }\n\n //key: info of distance, x,y center positions\n double minVal = Double.MAX_VALUE;\n Map<String, List<int[]>> map = new HashMap<>();\n for (int i = 0; i < points.length - 1; i++) {\n for (int j = i + 1; j < points.length; j++) {\n long dis = (points[i][0] - points[j][0]) * (points[i][0] - points[j][0]) +\n (points[i][1] - points[j][1]) * (points[i][1] - points[j][1]);\n double centerX = (double)(points[i][0] + points[j][0]) / 2;\n double centerY = (double)(points[i][1] + points[j][1]) / 2;\n String key = dis + \" \" + centerX + \" \" + centerY;\n if (!map.containsKey(key)) {\n map.put(key, new ArrayList<int[]>());\n }\n map.get(key).add(new int[]{i,j});\n }\n }\n\n //therefore all vals stored in same key can form rectangles\n //just try all of them to find the one with smallest area\n for (String key: map.keySet()) {\n if (map.get(key).size() < 2) {\n continue;\n }\n List<int[]> values = map.get(key);\n for (int i = 0; i < values.size() - 1; i++) {\n for (int j = i + 1; j < values.size(); j++) {\n int p1 = values.get(i)[0];\n int p2 = values.get(i)[1];\n int p3 = values.get(j)[0];\n\n double len1 = Math.sqrt((points[p1][0] - points[p3][0]) * (points[p1][0] - points[p3][0]) + (points[p1][1] - points[p3][1]) * (points[p1][1] - points[p3][1]));\n double len2 = Math.sqrt((points[p2][0] - points[p3][0]) * (points[p2][0] - points[p3][0]) + (points[p2][1] - points[p3][1]) * (points[p2][1] - points[p3][1]));\n\n minVal = Math.min(minVal, len1 * len2);\n }\n }\n }\n return minVal == Double.MAX_VALUE? 0: minVal;\n\n }", "@Test\r\n public void testAllPoints() {\r\n Path all = backend.getPoints();\r\n int numPointsInterest = 0; // Store number of points of interest\r\n // Verify all intersections\r\n if(all.getPath().size() != intersections.size())\r\n fail(\"Failed to get all intersections\");\r\n // Get number of points of interest\r\n for(int i = 0; i < intersections.size(); i++) {\r\n numPointsInterest += intersections.get(i).getPointOfInterests().size();\r\n }\r\n if(all.getPOI().size() != numPointsInterest)\r\n fail(\"Failed to get all points of interest\");\r\n }", "Set<String> underMouse(MouseEvent me) {\n RenderContext myrc = (RenderContext) rc; if (myrc == null) return new HashSet<String>();\n Rectangle2D mouse_rect = new Rectangle2D.Double(me.getX()-1,me.getY()-1,3,3);\n Set<String> under_mouse = new HashSet<String>();\n Iterator<String> it = myrc.node_coord_set.keySet().iterator();\n while (it.hasNext()) {\n String node_coord = it.next(); \n if (myrc.node_to_geom.containsKey(node_coord) && mouse_rect.intersects(myrc.node_to_geom.get(node_coord).getBounds())) {\n under_mouse.addAll(myrc.node_coord_set.get(node_coord));\n }\n }\n if (under_mouse.size() == 0) { // If nothing, check the links\n }\n return under_mouse;\n }", "public abstract Node getBoundingNode();", "public List<Vector3D> getConvexCellsInsidePoints() {\n return convexCellsInsidePoints;\n }", "private void paintCourbePoints() {\n\t\tfloat x, y;\n\t\tint i, j;\n\t\t\n\t\tfor(x=xMin; x<=xMax; x++) {\n\t\t\ty = parent.getY(x);\n\t\t\t\n\t\t\tif(y>yMin && y<yMax) {\n\t\t\t\ti = convertX(x);\n\t\t\t\tj = convertY(y);\n\t\t\t\t\n\t\t\t\t//Utilisation d'un carre/losange pour simuler un point \n\t\t\t\t//de taille superieur a un pixel car celui-ci est peu visible.\n\t\t\t\tpaintPointInColor(i-2, j);\n\t\t\t\tpaintPointInColor(i-1, j-1);\t\t\t\t\n\t\t\t\tpaintPointInColor(i-1, j);\n\t\t\t\tpaintPointInColor(i-1, j+1);\n\t\t\t\tpaintPointInColor(i, j-2);\t//\t *\n\t\t\t\tpaintPointInColor(i, j-1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j);\t//\t* * * * *\n\t\t\t\tpaintPointInColor(i, j+1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j+2);\t//\t *\n\t\t\t\tpaintPointInColor(i+1, j-1);\n\t\t\t\tpaintPointInColor(i+1, j);\n\t\t\t\tpaintPointInColor(i+1, j+1);\n\t\t\t\tpaintPointInColor(i+2, j);\n\t\t\t}\n\t\t}\t\t\n\t}", "List<GridCoordinate> getCoordinates(int cellWidth, int cellHeight);", "public abstract Rect getRectForNodeHighlight();", "public ArrayList<E> getAt(Point p) {\n\t\tArrayList<E> result = new ArrayList<E>();\n\t\tfor (E e : entities)\n\t\t\tif (e.getBounds().contains(p))\n\t\t\t\tresult.add(e);\n\t\treturn result;\n\t}", "void addRects() {\n ArrayList<Rect> current_path_rects = new ArrayList<>();\n for (int i = 0; i < path_points.get(paths.size()-1).size()-1; i ++) {\n int x1 = path_points.get(paths.size()-1).get(i).get(0);\n int y1 = path_points.get(paths.size()-1).get(i).get(1);\n int x2 = path_points.get(paths.size()-1).get(i+1).get(0);\n int y2 = path_points.get(paths.size()-1).get(i+1).get(1);\n Rect rect = new Rect();\n // Find correct x/y coords to set up for rect\n if (x1 <= x2) {\n if (y1 > y2) {\n int temp_y1 = y1;\n y1 = y2;\n y2 = temp_y1;\n }\n }\n else {\n int temp_x1 = x1;\n x1 = x2;\n x2 = temp_x1;\n if (y1 > y2) {\n int temp_y1 = y1;\n y1 = y2;\n y2 = temp_y1;\n }\n }\n // If rectangle is too small, collision will be hard\n // Make small rectangle into bigger rectangle\n ArrayList<Integer> adjusted_coords = adjustCoords(x1, y1, x2, y2);\n rect.set(adjusted_coords.get(0), adjusted_coords.get(1), adjusted_coords.get(2), adjusted_coords.get(3));\n current_path_rects.add(rect);\n }\n paths_rects.add(current_path_rects);\n }", "public List<Point> generatePointList(){\r\n\t\t//Can move up to 3 squares horizontally or vertically, but cannot move diagonally.\r\n List<Point> pointList = new ArrayList<>();\r\n int pointCount = 0;\r\n int px = (int)getCoordinate().getX();\r\n int py = (int)getCoordinate().getY();\r\n\r\n for (int i=px-3;i<=px+3;i++){\r\n for(int j=py-3;j<=py+3;j++){\r\n if((i>=0) && (i<9) && (j>=0) && (j<9) && ((i!=px)||(j!=py))){\r\n if ((i==px)||(j==py)){\r\n pointList.add(pointCount, new Point(i,j));\r\n pointCount+=1;\r\n } \r\n }\r\n }\r\n }\r\n return pointList;\r\n }", "private ArrayList<Point> getNeighbors(Point p) {\n\t\tArrayList<Point> arr = new ArrayList<Point>();\n\t\tfor (int y = -1; y <= 1; y++) {\n\t\t\tfor (int x = -1; x <= 1; x++) {\n\t\t\t\tPoint npoint = new Point( p.x + x, p.y + y);\n\t\t\t\tint sind = spacesContains(npoint);\n\t\t\t\tif ( p.compareTo(npoint) != 0 && sind >= 0 ) { \n\t\t\t\t\tarr.add( spaces.get(sind) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}", "public static void main(String args[])\n\t{\n\t\t\n\t\tprQuadTree <Point> tree1 = new prQuadTree <Point> (-128,128,-128,128);\n\t\t\n\t\ttree1.insert(new Point(30,30));\n\t\ttree1.insert(new Point(20,-30));\n\t\ttree1.insert(new Point(-30,-30));\n\t\ttree1.insert(new Point(-30,30));\n\t\ttree1.insert(new Point(90,80));\n\t\t\n\t\tSystem.out.println(tree1.display());\n\t\tSystem.out.println(\"\");\n\t\t\n\t\t/**\n\t\tSystem.out.println(tree1.remove(new Point(90,80)));\n\t\tSystem.out.println(tree1.display());\t\n\t\tSystem.out.println(\"\");\n\t\t\n\t\tSystem.out.println(tree1.remove(new Point(-30,-30)));\n\t\tSystem.out.println(tree1.display());\n\t\tSystem.out.println(\"\");\n\t\t\n\n\t\tSystem.out.println(tree1.remove(new Point(20,-30)));\n\t\tSystem.out.println(tree1.display());\n\t\tSystem.out.println(\"\");\n\t\t\n\t\tSystem.out.println(tree1.remove(new Point(-30,30)));\n\t\tSystem.out.println(tree1.display());\n\t\tSystem.out.println(\"\");\n\t\t\n\t\tSystem.out.println(tree1.remove(new Point(30,30)));\n\t\tSystem.out.println(tree1.display());\n\t\tSystem.out.println(\"\");\n\t\t**/\n\t\t\n\t\tVector <Point> vector;\n\t\t\n\t\tvector = tree1.find(0, 128, 0, 128);\n\t\tSystem.out.println(vector);\n\t\t\n\t\tvector = tree1.find(0, 128, -128, 0);\n\t\tSystem.out.println(vector);\n\t\t\n\t\tvector = tree1.find(-128, 128, -128, 128);\n\t\tSystem.out.println(vector);\n\t\t\n\t\tvector = tree1.find(-50, 300, -35, 70);\n\t\tSystem.out.println(vector);\n\t\n\t}", "public ArrayList<Integer> pointsInRange( int min, int max )\n {\n ArrayList<Integer> points = new ArrayList<Integer>();\n _root.findPoints( min, max, points );\n return points;\n }", "public static void main(String[] args) {\n KdTree tree = new KdTree();\n String filename = args[0];\n In in = new In(filename);\n while (!in.isEmpty()) {\n double x = in.readDouble();\n double y = in.readDouble();\n Point2D p = new Point2D(x, y);\n tree.insert(p);\n }\n tree.draw();\n // tree.info();\n // RectHV rect = new RectHV(0.793893, 0.345492, 1.0, 0.654508);\n // rect.draw();\n // Point2D point = new Point2D(0.5, 0.5);\n // point.draw();\n // StdDraw.show();\n // StdDraw.pause(40);\n // StdDraw.text(0.5, 0.5, \"ksdjlfjasdlfkjsadkflasdjfdaslkjfas\");\n // StdDraw.show();\n // while (true) {\n // System.out.println(StdDraw.mouseX());\n // StdDraw.show();\n // }\n // // Point2D point = new Point2D(0.5, 0.5);\n // // Point2D point2 = new Point2D(0.25, 0.25);\n // // Point2D point3 = new Point2D(0.75, 0.75);\n // // RectHV rect = new RectHV(0.0, 0.0, 0.3, 0.3);\n // // RectHV rect2 = new RectHV(0.0, 0.0, 0.3, 0.3);\n // tree.insert(new Point2D(0.5, 0.5));\n // tree.insert(new Point2D(0.0, 0.0));\n // tree.insert(new Point2D(0.75, 1.0));\n // tree.insert(new Point2D(0.75, 0.0));\n // tree.insert(new Point2D(1.0, 1.0));\n // tree.insert(new Point2D(0.25, 1.0));\n // tree.insert(new Point2D(0.75, 0.75));\n // tree.insert(new Point2D(1.0, 0.5));\n // tree.insert(new Point2D(1.0, 0.0));\n // tree.insert(new Point2D(1.0, 0.75));\n // // tree.insert(new Point2D(0.375, 1.0));\n // // Point2D point = new Point2D(0.375, 1.0);\n // // System.out.println(tree.get(point));\n // // A 0.5 0.5\n // // B 0.0 0.0\n // // C 0.75 1.0\n // // D 0.75 0.0\n // // E 1.0 1.0\n // // F 0.25 1.0\n // // G 0.75 0.75\n // // H 1.0 0.5\n // // I 1.0 0.0\n // // J 1.0 0.75\n // // System.out.println(tree.isEmpty());\n // // tree.insert(point);\n // // tree.insert(point2);\n // // tree.insert(point3);\n // // tree.insert(point);\n // // tree.insert(point);\n // // tree.insert(point);\n // // System.out.println(tree.isEmpty());\n // System.out.println(tree.size());\n // // System.out.println(tree.get(new Point2D(0.375, 1.0)));\n // System.out.println(tree.contains(new Point2D(1.0, 0.0)));\n // // System.out.println(tree.contains(new Point2D(0.5, 0.5)));\n // // tree.draw();\n // // for (Point2D points : tree.range(rect)) System.out.println(points);\n // // System.out.println();\n // // for (Point2D points : tree.range(rect2)) System.out.println(points);\n }", "Rectangle getBoundingBox(Rectangle rect);", "public boolean contains(Point2D p)\n {\n if (p != null && !isEmpty())\n {\n Node current = root;\n while (current != null)\n {\n if (current.isVertical()) // compare by x\n {\n if (p.x() < current.getPoint().x())\n {\n current = current.getLeft();\n }\n else if (p.x() > current.getPoint().x())\n {\n current = current.getRight();\n }\n else // equal x, now compare y\n {\n if (p.y() == current.getPoint().y())\n {\n return true;\n }\n }\n }\n else // compare by y\n {\n if (p.y() < current.getPoint().y())\n {\n current = current.getLeft();\n }\n else if (p.y() > current.getPoint().y())\n {\n current = current.getRight();\n }\n else // equal y, now compare x\n {\n if (p.x() == current.getPoint().x())\n {\n return true;\n }\n }\n }\n }\n }\n return false;\n }", "int getHitpoints(Unit unit);", "public RMRect getBoundsMarkedDeep()\n{\n // Get normal marked bounds\n RMRect bounds = getBoundsMarked();\n \n // Iterate over (visible) children and union with their BoundsMarkedDeep (converted to this shape coords)\n for(int i=0, iMax=getChildCount(); i<iMax; i++) { RMShape child = getChild(i);\n if(!child.isVisible()) continue;\n RMRect childBounds = child.getBoundsMarkedDeep();\n childBounds = child.convertRectToShape(childBounds, this);\n bounds.unionEvenIfEmpty(childBounds);\n }\n\n // Return marked bounds\n return bounds;\n}", "public void afficherPoints(){\n for(Point point : pointArrayList){\n getMapPane().getChildren().add(point.getImageView());\n visualObjects.add(point);\n }\n }", "private HashSet<Position> getInRange(int p_r, Distance p_d)\n {\n HashSet<Position> s = new HashSet<Position>();\n\n for (int x = 0; x <= p_r; x++)\n {\n int y = 0;\n Position p = new Position(this.x + x, this.y + y);\n\n while (p_d.inside(this, p, p_r))\n {\n s.add(p);\n s.add(new Position(this.x - x, this.y + y));\n s.add(new Position(this.x + x, this.y - y));\n s.add(new Position(this.x - x, this.y - y));\n p = new Position(this.x + x, this.y + ++y);\n }\n }\n return s;\n }", "public List<REPoint> getObstacles();", "private void drawTree(GraphicsContext gc, BinaryTree.TreeNode treeNode, double xMin, double xMax, double yMin, double yMax) {\n if (treeNode.getLeft() != null) {\n Line line = new Line((xMin + xMax) / 2, yMin + yMax / 2, (xMin + (xMin + xMax) / 2) / 2, yMin + yMax + yMax / 2);\n\n line.draw(gc);\n\n // Recurse left circle nodes\n drawTree(gc, treeNode.getLeft(), xMin, (xMin + xMax) / 2, yMin + yMax, yMax);\n }\n\n // If right node is not null then draw a line to it\n if (treeNode.getRight() != null) {\n Line line = new Line((xMin + xMax) / 2, yMin + yMax / 2, (xMax + (xMin + xMax) / 2) / 2, yMin + yMax + yMax / 2);\n\n line.draw(gc);\n\n // Recurse right circle nodes\n drawTree(gc, treeNode.getRight(), (xMin + xMax) / 2, xMax, yMin + yMax, yMax);\n }\n }", "default List<Point3D> findIntersections(Ray ray) {\n\tList<GeoPoint> geoList = findGeoIntersections(ray);\n\treturn geoList == null ? null\n\t: geoList .stream()\n\t.map(gp -> gp.point)\n\t.collect(Collectors.toList());\n\t}", "public Iterable<Point2D> hull() {\r\n Stack<Point2D> s = new Stack<Point2D>();\r\n for (Point2D p : hull) s.push(p);\r\n return s;\r\n }", "@Override\n public boolean add(Point point) {\n if (!this.rectangle.contains(point)) {\n return false;\n }\n\n if (hasChildren) {\n for (QuadtreeNode node : children) {\n if (node.add(point)) {\n return true;\n }\n }\n return false;\n\n\n } else {\n points.add(point);\n if (points.size() == QuadtreeNode.MAX_LOCATION_CAPACITY) {\n subdivide();\n }\n }\n\n return true;\n }", "public native Point [] getAllocationVertices(Actor ancestor);", "public ArrayList<Point> getUpperPoints(BufferedImage image_dest, int y_center, int width) {\n\n int w = image_dest.getWidth();\n\n //\tSystem.out.println(\"lebar x :\" +w);\n //\tSystem.out.println(\"tinggi y :\"+image_dest.getHeight());\n //int h = image_dest.getHeight();\n\n int xUpperCentroid = 0;\n int yUpperCentroid = 0;\n\n int xUpperLeft = 0;\n int yUpperLeft = 0;\n\n int xUpperRight = 0;\n int yUpperRight = 0;\n\n int x_sum = 0;\n int y_sum = 0;\n\n int x_sum_left = 0;\n int y_sum_left = 0;\n\n int x_sum_right = 0;\n int y_sum_right = 0;\n\n\n int count = 0;\n\n Point point1 = null;\n Point point2 = null;\n Point point3 = null;\n\n ArrayList<Point> points = new ArrayList<Point>();\n\n for (int y = 0; y <= y_center; y++) {\n if (width == 0) {\n\n }\n\n for (int x = 0; x < w; x++) {\n //System.out.println(\"test \"+image_dest.getRGB(x, y));\n if (image_dest.getRGB(x, y) != -1) {\n //System.out.print(image_dest.getRGB(x, y));\n x_sum += x;\n y_sum += y;\n count++;\n\n //\t\t\t\tSystem.out.print(\"0\");\n } else {\n //System.err.print(\"X\"+x+\" Y : \"+y);\n //return;\n //System.out.print(image_dest.getRGB(x, y));\n //\t\t\t\tSystem.out.print(\"1\");\n }\n }\n //\t\tSystem.out.println(\"\");\n\n\n }\n\n //\tSystem.out.println(\"\\n\\n\");\n //\tSystem.out.println(\"KIRI\");\n double d_yUpperCentroid = Double.valueOf(df.format(new Double(y_sum).doubleValue() / new Double(count).doubleValue()));\n double d_xUpperCentroid = Double.valueOf(df.format(new Double(x_sum).doubleValue() / new Double(count).doubleValue()));\n yUpperCentroid = (int) Math.round(new Double(d_yUpperCentroid));\n xUpperCentroid = (int) Math.round(new Double(d_xUpperCentroid));\n\n//\t\txUpperCentroid = (int)Math.round(new Double(x_sum)/new Double(count));\n//\t\tyUpperCentroid = (int)Math.round(new Double(y_sum)/new Double(count)); //point 3\n\n count = 0;\n for (int y = 0; y <= y_center; y++) {\n for (int x = 0; x <= xUpperCentroid; x++) {\n\n if (image_dest.getRGB(x, y) != -1) {\n //System.out.print(\"A\");\n x_sum_left += x;\n y_sum_left += y;\n count++;\n //\t\t\t System.out.print(\"0\");\n } else {\n //\t\t\t\tSystem.out.print(\"1\");\n }\n }\n //\tSystem.out.println(\"\");\n\n }\n\n double d_yUpperLeft = Double.valueOf(df.format(new Double(y_sum_left).doubleValue() / new Double(count).doubleValue()));\n double d_xUpperLeft = Double.valueOf(df.format(new Double(x_sum_left).doubleValue() / new Double(count).doubleValue()));\n yUpperLeft = (int) Math.round(new Double(d_yUpperLeft));\n xUpperLeft = (int) Math.round(new Double(d_xUpperLeft));\n\n//\t\txUpperLeft = (int)Math.round(new Double(x_sum_left)/new Double(count));\n//\t\tyUpperLeft = (int)Math.round(new Double(y_sum_left)/new Double(count));\n\n count = 0;\n\n\n for (int y = 0; y <= y_center; y++) {\n for (int x = xUpperCentroid; x < w; x++) {\n //System.out.println(\"x3 : \"+x3);\n //System.out.println(\"y3 : \"+x3);\n if (image_dest.getRGB(x, y) != -1) {\n x_sum_right += x;\n y_sum_right += y;\n count++;\n //\t\t\tSystem.out.print(\"0\");\n } else {\n //\t\t\tSystem.out.print(\"1\");\n }\n }\n //\tSystem.out.println(\"\");\n }\n\n double d_yUpperRight = Double.valueOf(df.format(new Double(y_sum_right).doubleValue() / new Double(count).doubleValue()));\n double d_xUpperRight = Double.valueOf(df.format(new Double(x_sum_right).doubleValue() / new Double(count).doubleValue()));\n yUpperLeft = (int) Math.round(new Double(d_yUpperRight));\n xUpperLeft = (int) Math.round(new Double(d_xUpperRight));\n\n//\t\txUpperRight= (int)Math.round(new Double(x_sum_right)/new Double(count));\n//\t\tyUpperRight =(int)Math.round(new Double(y_sum_right)/new Double(count));\n count = 0;\n\n point1 = new Point(xUpperRight, yUpperRight);\n point2 = new Point(xUpperLeft, yUpperLeft);\n point3 = new Point(xUpperCentroid, yUpperCentroid);\n\n\n points.add(point1);\n points.add(point2);\n points.add(point3);\n//\n return points;\n }", "public ArrayList<GraphNode> getAroundNodes(GraphNode n1){\n ArrayList<GraphNode> temp1 = new ArrayList<GraphNode>();\n if(!n1.isValid())\n return temp1;\n EdgeList<GraphEdge> m1 = edgeListVector.get(n1.getIndex());\n\n\n for(GraphEdge e1:m1){\n temp1.add(nodeVector.get(e1.getTo()));\n }\n return temp1;\n }", "abstract void findArea();", "abstract void findArea();", "public Point2D[] getGivenPoints(){ \n return this.points; \n }", "public List<Point> getPoints() {\n return pointRepository.findAll()//\n .stream() //\n .sorted((p1, p2) -> Integer.compare(p1.getPosition(), p2.getPosition()))//\n .collect(Collectors.toList());\n }", "public java.util.List[] getPointArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(POINT$0, targetList);\n java.util.List[] result = new java.util.List[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getListValue();\n return result;\n }\n }", "PVector[] _getPoints() {\n PVector cen = _getCenter();\n \n PVector[] points = new PVector[_hitbox.length];\n float angle = _rotVector.heading();\n for(int i = 0; i < _hitbox.length; i++) {\n points[i] = new PVector(_hitbox[i].x, _hitbox[i].y);\n points[i].rotate(angle);\n points[i].x += cen.x;\n points[i].y += cen.y;\n }\n return points;\n }", "public Iterable<Point2D> points() {\n\n return bst.keys();\n }", "private void range(Node h, RectHV nrect, RectHV rect, TreeSet<Point2D> rangeSet) {\n \tif (h == null) {\r\n \t\treturn;\r\n \t}\r\n\r\n \tif (rect.intersects(nrect)) {\r\n \t\tif(rect.contains(h.p)) {\r\n \t\t\trangeSet.add(h.p);\r\n }\r\n \t\trange(h.lb, leftRect(nrect, h), rect, rangeSet);\r\n \t\trange(h.rt, rightRect(nrect, h), rect, rangeSet);\r\n \t}\r\n }", "void checkTrees(Box tree);", "public List<Point> findCornerPoints(Mat mRgba) throws NoSudokuFoundException{\n // draw edge points\n findUpperAndLowerEdge();\n findLeftAndRightEdge();\n \n for(int i=0; i<edges.length; i++){\n Point a = new Point(edges[i][0], edges[i][1]);\n Point b = new Point(edges[i][2], edges[i][3]);\n Core.line(mRgba, a, b, new Scalar(255, 0, 0), 3);\n }\n // Find the upper left corner point\n Point tl = findCornerPoint(edges[0], edges[3]);\n // Find the upper right corner point\n Point tr = findCornerPoint(edges[0], edges[1]);\n // Find the lower left corner point\n Point bl = findCornerPoint(edges[3], edges[2]);\n // Find the lower right corner point\n Point br = findCornerPoint(edges[2], edges[1]);\n \n // Sanity check: The corner points have to be correctly relative\n // to each other\n if(tl.x > tr.x || bl.x > br.x || tl.y > br.y || tr.y > br.y) {\n throw new NoSudokuFoundException(\"Points are not correctly aligned\");\n }\n \n // Sanity check: The Sudoku has to be about square\n // calculate and compare the distance of the diagonals\n // raise an exception if the difference is more than 10%.\n double a = Math.sqrt(Math.pow(tr.y-bl.y, 2) + Math.pow(tr.x-bl.x, 2));\n double b = Math.sqrt(Math.pow(tl.y-br.y, 2) + Math.pow(tl.x-br.x, 2));\n double diff = Math.abs(a-b);\n \n // Sanity check: The upper edge is the shortest because it is farthest\n // from the lens. So the area of the square found must be larger than \n // the square of the upper line.\n\n \n\n // draw the points cyan.\n Core.line(mRgba, tl, tl, new Scalar(20,255,255), 3);\n Core.line(mRgba, tr, tr, new Scalar(20,255,255), 3);\n Core.line(mRgba, bl, bl, new Scalar(20,255,255), 3);\n Core.line(mRgba, br, br, new Scalar(20,255,255), 3);\n \n if(diff * 10 > a || diff * 10 > b) {\n throw new NoSudokuFoundException(\"Structure is not a square.\");\n }\n List<Point> points = new ArrayList<Point>();\n points.add(bl);\n points.add(br);\n points.add(tr);\n points.add(tl);\n return points;\n }", "public Collection<Point> getAdjacency(Point point){\n Preconditions.checkNotNull(point, \"point must not be null\");\n Collection <Point> results = new ArrayList<>();\n for(int i = -1; i < 2; i++){\n for(int j = -1; j < 2; j++){\n int new_x = point.getX() + i;\n int new_y = point.getY() + j;\n if(new_x >= 0 && new_y >= 0 &&\n (i != 0 || j != 0) &&\n new_x < width && new_y < height){\n results.add(new Point(new_x, new_y));\n }\n }\n }\n return results;\n }", "public Rectangle points(){\n\t\treturn shotRect;\n\t}", "public Point[] getPoints()\n {\n return getPointsForAlignment(this);\n }", "List<Rectangle> getWordBoundaries();", "private void splitIntoRoots() {\n\t\tArrayList<ArrayList<Coord>> circ = findCircles();\n\t\tcombinePastRoots(circ);\n\t}", "private void range(Queue<Point2D> pts, RectHV rect, Node x, RectHV bbox) {\n if (x == null) return;\n if (!bbox.intersects(rect)) return;\n if (rect.contains(x.p)) pts.enqueue(x.p);\n\n range(pts, rect, x.left, calcBBox(x, bbox, true));\n range(pts, rect, x.right, calcBBox(x, bbox, false));\n }", "public List<Float> getBoundingsOfCell() {\n\n\t\tfloat minXPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxXPoint = Float.NEGATIVE_INFINITY;\n\t\tfloat minYPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxYPoint = Float.NEGATIVE_INFINITY;\n\n\t\tfor (int i = 0; i < face.edges().size(); i++) {\n\n\t\t\tDCEL_Edge e = (DCEL_Edge) face.edges().get(i);\n\n\t\t\tArc2_Sweep arc = (Arc2_Sweep) e.reference;\n\n\t\t\t// Looking for most left located point of cell\n\t\t\tif (minXPoint > arc.minX().x) {\n\t\t\t\tminXPoint = arc.minX().x;\n\t\t\t}\n\t\t\t// Looking for most right located point of cell\n\t\t\tif (maxXPoint < arc.maxX().x) {\n\t\t\t\tmaxXPoint = arc.maxX().x;\n\t\t\t}\n\t\t\t// Looking for highest located point of cell\n\t\t\tif (minYPoint > arc.minY().y) {\n\t\t\t\tminYPoint = arc.minY().y;\n\t\t\t}\n\t\t\t// Looking for lowest located point of cell\n\t\t\tif (maxYPoint < arc.maxY().y) {\n\t\t\t\tmaxYPoint = arc.maxY().y;\n\t\t\t}\n\n\t\t}\n\n\t\tList<Float> boundings = new ArrayList<Float>();\n\t\tboundings.add(minXPoint);\n\t\tboundings.add(maxXPoint);\n\t\tboundings.add(minYPoint);\n\t\tboundings.add(maxYPoint);\n\t\treturn boundings;\n\n\t}", "private Map<Geometry, List<Point3D>> getSceneRayIntersections(Ray ray){\n //Map key - geometric\n //value - a list of cut points\n Map<Geometry, List<Point3D>> sceneRayIntersectPions = new HashMap<Geometry, List<Point3D>>();\n //Iterator we can go through all the geometric shapes\n Iterator<Geometry> geometries = _scene.getGeometriesIterator();\n //for each geometry finde intersection points\n while (geometries.hasNext()){\n Geometry geometry = geometries.next();\n List<Point3D> geometryIntersectionPoints = geometry.FindIntersections(ray);\n if(!geometryIntersectionPoints.isEmpty())\n //add geometryIntersectionPoints(list) to key geometry\n sceneRayIntersectPions.put(geometry, geometryIntersectionPoints);\n }\n return sceneRayIntersectPions;\n }" ]
[ "0.7667782", "0.7122941", "0.7082314", "0.6994732", "0.697051", "0.6929006", "0.6900325", "0.6870586", "0.6836841", "0.6631022", "0.6626061", "0.6623893", "0.6590352", "0.6555226", "0.6554865", "0.649885", "0.64823365", "0.64498204", "0.6347766", "0.63471884", "0.6269545", "0.62446886", "0.62076837", "0.6190058", "0.617964", "0.6175169", "0.61038756", "0.60406834", "0.60232353", "0.5966035", "0.5963431", "0.5950548", "0.5886245", "0.5884032", "0.58119845", "0.57607454", "0.57360595", "0.5735312", "0.5728456", "0.5721961", "0.5720606", "0.56980234", "0.56754243", "0.5671019", "0.56458575", "0.56319755", "0.55995435", "0.55809045", "0.55689746", "0.5562718", "0.5554746", "0.55248076", "0.55200624", "0.5515892", "0.55125856", "0.54834545", "0.54660094", "0.5457675", "0.5453193", "0.54409045", "0.54400444", "0.5433533", "0.54209846", "0.540481", "0.54044366", "0.5402097", "0.5380896", "0.5376574", "0.5366287", "0.5359828", "0.5349521", "0.5314049", "0.5301127", "0.5300874", "0.5290184", "0.5272955", "0.5255126", "0.5251707", "0.52348894", "0.52343667", "0.5227427", "0.52241635", "0.5223998", "0.5223998", "0.52236974", "0.5216743", "0.5214011", "0.5211204", "0.5206527", "0.5188491", "0.51832473", "0.5178533", "0.5175982", "0.5174695", "0.5169159", "0.5160847", "0.5157969", "0.51494014", "0.51488847", "0.51376903" ]
0.6870185
8
a nearest neighboe in the tree to p; null if tree is empty
public Point2D nearest(Point2D p) { if (p != null && !isEmpty()) { Node current = root; Node nearest = null; while (current != null) { nearest = current; if (current.isVertical()) // compare by x { if (p.x() < current.getPoint().x()) { current = current.getLeft(); } else { current = current.getRight(); } } else // compare by y { if (p.y() < current.getPoint().y()) { current = current.getLeft(); } else { current = current.getRight(); } } } return nearest.getPoint(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point2D nearest(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException();\n }\n if (isEmpty()) {\n return null;\n }\n\n Node nearestNode = new Node(root.point, true);\n nearestNode.left = root.left;\n nearestNode.right = root.right;\n nearest(root, nearestNode, new RectHV(0.0, 0.0, 1.0, 1.0), p);\n return nearestNode.point;\n }", "public Point nearestNeighbor(Point p) {\n\t\tif (p == null) {\n System.out.println(\"Point is null\");\n }\n if (isEmpty()) {\n return null;\n }\n\n return nearest(head, p, head).item;\n\t}", "public Point2D nearest(Point2D p) \n\t {\n\t\t if(p==null)\n\t\t\t throw new java.lang.NullPointerException();\n\t\t if(root == null)\n\t\t\t return null;\n\t\t RectHV rect = new RectHV(0,0,1,1);\n\t\t return nearest(root,p,root.p,rect,true);\n\t }", "public Point2D nearest(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"p cannot be null\");\n if (isEmpty()) return null;\n Point2D champ = root.p;\n champ = nearest(p, champ, root, inftyBbox);\n return champ;\n }", "public Point2D nearest(Point2D p) {\n\t\tif (p == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tif (isEmpty()) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tPoint2D result = null;\n\t\t\tresult = nearest(root, p, result);\n\t\t\treturn result;\n\t\t}\n\t}", "public Point2D nearest(Point2D p) {\n checkNull(p);\n Node n = nearest(p, root);\n if (n == null) return null;\n return n.p;\n }", "public Point2D nearest(Point2D p) \r\n\t{\r\n\t\treturn nearest(p, null, root, new RectHV(0,0,1,1));\r\n\t}", "public Point2D nearest(Point2D p) {\n return nearestHelper(root, new RectHV(0,0,1,1), p.x(), p.y(), null);\n }", "public Point2D nearest(Point2D p) {\n if (p == null) throw new IllegalArgumentException();\n if (root == null) return null;\n nearest = root.point;\n searchForNearest(root, p, new RectHV(0.0, 0.0, 1.0, 1.0));\n return nearest;\n }", "public Point2D nearest(Point2D p) {\n\t\tRectHV rect = new RectHV(-Double.MAX_VALUE, -Double.MAX_VALUE, Double.MAX_VALUE, Double.MAX_VALUE);\n\t\treturn nearest(root, p, rect, true);\n\t}", "public Point2D nearest(Point2D p) {\n if (p == null)\n throw new IllegalArgumentException(\"Input point is null\");\n if (root == null)\n return null;\n findNearP = p;\n double dist = findNearP.distanceSquaredTo(root.point);\n RectHV rect = new RectHV(0, 0, 1, 1);\n PointDist res = findNearest(root, rect, new PointDist(root.point, dist), true);\n return res.point;\n }", "public Point2D nearest(Point2D p) {\n if (root == null) return null;\n else if (p == null) throw new IllegalArgumentException(\"Point is null or invalid\");\n nearest = root.p;\n return searchNearest(root, p, false);\n }", "public Point2D nearest(Point2D p) {\n if (bst.isEmpty()) {\n return null;\n }\n\n Point2D nearest = null;\n double nearestDist = Double.POSITIVE_INFINITY;\n \n \n for (Point2D point: bst.keys()) {\n\n if (nearest == null \n || point != null \n && (nearestDist > point.distanceSquaredTo(p)\n && (!point.equals(p)))) {\n nearest = point;\n nearestDist = point.distanceSquaredTo(p);\n }\n \n }\n return nearest;\n }", "public Point2D nearest(Point2D p) {\n if (root == null) {\n return null;\n }\n\n currentNearest = root.p;\n currentMinDistance = root.p.distanceTo(p);\n nearest(root, p, ORIENTATION_VERTICAL);\n return currentNearest;\n }", "private Point backtrack(Point p){\n\t\t// coordinates of the point\n\t\tint x = (int)p.getX();\n\t\tint y = (int)p.getY();\n\t\t// neigh hold the return value\n\t\tPoint neigh= p;\n\t\t// the lowest score\n\t\tint score=10000;\n\t\t// look at all the neighbor and compare them\n\t\tif(x>0\t && topology[x-1][y]>=0){\n\t\t\tscore = topology[x-1][y];\n\t\t\tneigh = new Point(x-1,y);\n\t\t}\n\t\tif(x<row-1 && topology[x+1][y]>=0 && score > topology[x+1][y]) {\n\t\t\tscore = topology[x+1][y];\n\t\t\tneigh = new Point(x+1,y);\n\t\t}\n\t\tif(y<col-1 && topology[x][y+1]>=0 && score > topology[x][y+1]) {\n\t\t\tscore = topology[x][y+1];\n\t\t\tneigh = new Point(x,y+1);\n\t\t}\n\t\tif(y>0 && topology[x][y-1]>=0 && score > topology[x][y-1]) {\n\t\t\tscore = topology[x][y-1];\n\t\t\tneigh = new Point(x,y-1);\n\t\t}\n\t\treturn neigh;\n\t}", "public final Node getNearestNode(Point p) {\n double minDistanceSq = Double.MAX_VALUE;\n Node minPrimitive = null;\n for (Node n : getData().nodes) {\n if (n.deleted || n.incomplete)\n continue;\n Point sp = getPoint(n.eastNorth);\n double dist = p.distanceSq(sp);\n if (minDistanceSq > dist && dist < snapDistance) {\n minDistanceSq = p.distanceSq(sp);\n minPrimitive = n;\n }\n // prefer already selected node when multiple nodes on one point\n else if(minDistanceSq == dist && n.selected && !minPrimitive.selected)\n {\n minPrimitive = n;\n }\n }\n return minPrimitive;\n }", "public Point2D nearest(Point2D p) {\n if (p == null) throw new IllegalArgumentException();\n return nearestSub(p, root);\n }", "public Point2D nearest(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"nearest: Point2D is null\");\n mindist = Double.POSITIVE_INFINITY;\n nearestSearch(p, root);\n return nearest;\n }", "public OsmPrimitive getNearest(Point p) {\n OsmPrimitive osm = getNearestNode(p);\n if (osm == null)\n {\n osm = getNearestWay(p);\n }\n return osm;\n }", "public Point2D nearest(Point2D p2d) {\n if (size == 0) {\n return null;\n } \n return nearest(root, p2d, root.p2d, true);\n }", "public void insertNearest(Point p) {\n if (size() == 0) {\n first.next = first;\n first.p = p;\n return;\n }\n double distanceBetweenNode;\n double minimumDistance = Double.POSITIVE_INFINITY;\n Node nearestN = null;\n Node n = first;\n do {\n distanceBetweenNode = n.p.distanceTo(p);\n if (distanceBetweenNode < minimumDistance) {\n nearestN = n;\n minimumDistance = distanceBetweenNode;\n }\n n = n.next;\n } while (!n.equals(first));\n Node newNode = new Node();\n newNode.p = p;\n newNode.next = nearestN.next;\n nearestN.next = newNode;\n }", "public Point getClosestPoint(Point p) {\n\t\t// If the node is not diveded and there are no points then we \n\t\t// cant return anything\n\t\tif (!divided && points.keySet().size() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// Loop through all the points and find the one that is the\n\t\t// closest to the point p\n\t\tdouble smallestDistance = Double.MAX_VALUE;\n\t\tPoint closest = null;\n\t\t\n\t\tfor (Point c : points.keySet()) {\n\t\t\tif (closest == null) {\n\t\t\t\tclosest = c;\n\t\t\t\tsmallestDistance = p.distance(c);\n\t\t\t} else if (p.distance(c) < smallestDistance) {\n\t\t\t\tsmallestDistance = p.distance(c);\n\t\t\t\tclosest = c;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn closest;\n\t}", "public Point2D nearest(Point2D p) {\n if (isEmpty()) {\n return null;\n }\n double minDistance = Double.POSITIVE_INFINITY;\n Point2D nearest = null;\n for (Point2D i : pointsSet) {\n if (i.distanceTo(p) < minDistance) {\n nearest = i;\n minDistance = i.distanceTo(p);\n }\n }\n return nearest;\n\n }", "public Point2D nearest(Point2D p) {\n \n if (p == null)\n throw new IllegalArgumentException(\"Got null object in nearest()\");\n \n double rmin = 2.;\n Point2D pmin = null;\n \n for (Point2D q : point2DSET) {\n \n double r = q.distanceTo(p);\n if (r < rmin) {\n \n rmin = r;\n pmin = q;\n }\n }\n return pmin;\n }", "public QuadTreeNode<E> getBestQuad(Point p) {\n\t\tif (divided) {\n\t\t\t// Loop through the sub nodes and return the one that contains\n\t\t\t// the point p\n\t\t\tfor (QuadTreeNode<E> n : nodes) {\n\t\t\t\tif (n.fits(p)) {\n\t\t\t\t\treturn n;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public Point2D nearest(Point2D p) {\n Point2D nearest = null;\n double nearestDistance = Double.MAX_VALUE;\n for (Point2D cur: mPoints) {\n double distance = cur.distanceTo(p);\n if (nearestDistance > distance) {\n nearest = cur;\n nearestDistance = distance;\n }\n }\n return nearest;\n }", "public Node closestPrecedingNode(int id);", "public Point2D nearest(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException();\n }\n if (isEmpty()) return null;\n\n Point2D nearestPoint = null;\n double distance = Double.NEGATIVE_INFINITY;\n for (Point2D point : points) {\n if (nearestPoint == null) {\n nearestPoint = point;\n distance = point.distanceSquaredTo(p);\n } else {\n double newDistance = point.distanceSquaredTo(p);\n if (newDistance < distance) {\n nearestPoint = point;\n distance = newDistance;\n }\n }\n }\n return nearestPoint;\n }", "private int getNearestNode(LatLng vic) {\n\t\tint node = 0;\n\t\tfor(int j=0; j<nodeList.size()-1; j++){\n\t\t\tdouble dist1 = getWeight(vic, nodeList.get(node));\n\t\t\tdouble dist2 = getWeight(vic, nodeList.get(j));\n\t\t\tif(dist1 > dist2){\n\t\t\t\tnode = j;\n\t\t\t}\n\t\t}\n\t\treturn node;\n\t}", "private void searchForNearest(KdNode kdNode, Point2D p, RectHV rectangle) {\n int comparison;\n // 2 rectangles that will store the coordinates of the rectangles that are delimited by kdNode's children,\n // used in order to calculate the distance to them and see if it's worth looking down the path inside them as well\n // (i.e. if the distance from point p to the rectangle is less than the distance to an already established nearest)\n RectHV rectLeftBelow, rectRightAbove;\n\n if (kdNode.point.equals(p)) {\n // if the point we're looking at actually equals the query point, we return here,\n // as we can no longer find a distance lower than 0\n nearest = kdNode.point;\n return;\n }\n\n // if the point in the current node is closer to the searched node, we update nearest\n if (p.distanceSquaredTo(kdNode.point) < p.distanceSquaredTo(nearest))\n nearest = kdNode.point;\n\n if (kdNode.dimension) { // if this KdNode is vertical (root.dimension == true), then we have left/right rectangles\n rectLeftBelow = new RectHV(rectangle.xmin(), rectangle.ymin(),\n kdNode.point.x(), rectangle.ymax());\n rectRightAbove = new RectHV(kdNode.point.x(), rectangle.ymin(),\n rectangle.xmax(), rectangle.ymax());\n }\n else { // if this KdNode is horizontal (root.dimension == false), then we have below/above rectangles\n rectLeftBelow = new RectHV(rectangle.xmin(), rectangle.ymin(),\n rectangle.xmax(), kdNode.point.y());\n rectRightAbove = new RectHV(rectangle.xmin(), kdNode.point.y(),\n rectangle.xmax(), rectangle.ymax());\n }\n // we look at which rectangle is nearest to the query point, in order to go down that path first\n comparison = Double.compare(rectLeftBelow.distanceSquaredTo(p),\n rectRightAbove.distanceSquaredTo(p));\n\n if (comparison < 0) { // if distance to left/lower rectangle is lower than to right/upper\n if (kdNode.left != null) {\n if (rectLeftBelow.distanceSquaredTo(p) < p.distanceSquaredTo(nearest)) {\n searchForNearest(kdNode.left, p, rectLeftBelow);\n }\n // if it's larger than to nearest, the distance to the other\n // rectangle will certainly be even larger, so we return here\n else return;\n }\n if (kdNode.right != null) {\n if (rectRightAbove.distanceSquaredTo(p) < p.distanceSquaredTo(nearest)) {\n searchForNearest(kdNode.right, p, rectRightAbove);\n }\n // else return; // return statement not needed, if (comparison < 0) statement terminates here anyway\n }\n }\n else { // comparison < 0, the opposite situation holds: distance to right/upper rectangle is lower than to left/lower\n if (kdNode.right != null) {\n if (rectRightAbove.distanceSquaredTo(p) < p.distanceSquaredTo(nearest)) {\n searchForNearest(kdNode.right, p, rectRightAbove);\n }\n else return;\n }\n if (kdNode.left != null) {\n if (rectLeftBelow.distanceSquaredTo(p) < p.distanceSquaredTo(nearest)) {\n searchForNearest(kdNode.left, p, rectLeftBelow);\n }\n }\n\n }\n }", "private Point2D nearest(Node x, Point2D p, RectHV rect, boolean test) {\n\t\tPoint2D incumbent = x.point;\n\t\tPoint2D challenger;\n\t\tRectHV leftRect, rightRect;\n\t\tdouble distance = incumbent.distanceTo(p);\n\t\t\n\t\tif (test) {\n\t\t\tleftRect = new RectHV(rect.xmin(), rect.ymin(), x.point.x(), rect.ymax());\n\t\t\trightRect = new RectHV(x.point.x(), rect.ymin(), rect.xmax(), rect.ymax());\n\t\t} else {\n\t\t\tleftRect = new RectHV(rect.xmin(), rect.ymin(), rect.xmax(), x.point.y());\n\t\t\trightRect = new RectHV(rect.xmin(), x.point.y(), rect.xmax(), rect.ymax());\n\t\t}\n\n\t\tdouble comp = comparePoints(x, p, test);\n\t\tif (comp <= 0) {\n\t\t\tif (x.left != null) {\n\t\t\t\tif ((challenger = nearest(x.left, p, leftRect, !test)).distanceTo(p) < distance) {\n\t\t\t\t\tincumbent = challenger;\n\t\t\t\t\tdistance = challenger.distanceTo(p);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (x.right != null) {\n\t\t\t\tif (rightRect.distanceTo(p) < distance) {\n\t\t\t\t\tif ((challenger = nearest(x.right, p, rightRect, !test)).distanceTo(p) < distance) {\n\t\t\t\t\t\tincumbent = challenger;\n\t\t\t\t\t\tdistance = challenger.distanceTo(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse {\n\t\t\tif (x.right != null) {\n\t\t\t\tif ((challenger = nearest(x.right, p, rightRect, !test)).distanceTo(p) < distance) {\n\t\t\t\t\tincumbent = challenger;\n\t\t\t\t\tdistance = challenger.distanceTo(p);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (x.left != null) {\n\t\t\t\tif (leftRect.distanceTo(p) < distance) {\n\t\t\t\t\tif ((challenger = nearest(x.left, p, leftRect, !test)).distanceTo(p) < distance) {\n\t\t\t\t\t\tincumbent = challenger;\n\t\t\t\t\t\tdistance = challenger.distanceTo(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn incumbent;\n\t}", "public Point2D nearest(Point2D p) {\n if (p == null) throw new NullPointerException();\n Point2D champion = pointSet.first();\n if (champion == null) return null;\n \n for (Point2D point : pointSet) {\n if (point.distanceSquaredTo(p) < champion.distanceSquaredTo(p)) {\n champion = point;\n }\n }\n return champion;\n }", "private ProblemModel findCheapestNode(){\n\t\tProblemModel ret = unvisitedPM.peek();\n\t\t\n\t\tfor(ProblemModel p : unvisitedPM){ \n\t\t\t//f(s) = depth + cost to make this move\n\t\t\tif(p.getCost() + p.getDepth() <= ret.getCost() + ret.getDepth()) ret = p;\n\t\t}\n\t\tunvisitedPM.remove(ret);\n\t\treturn ret;\n\t}", "public void insertSmallest(Point p) {\n if (size() == 0) {\n first.next = first;\n first.p = p;\n return;\n }\n double leastDist;\n double minimumDistance = Double.POSITIVE_INFINITY;\n Node nearestN = null;\n Node n = first;\n do {\n leastDist = n.p.distanceTo(p) + n.next.p.distanceTo(p);\n leastDist = leastDist - n.p.distanceTo(n.next.p);\n if (leastDist < minimumDistance) {\n nearestN = n;\n minimumDistance = leastDist;\n }\n n = n.next;\n } while (!n.equals(first));\n Node newNode = new Node();\n newNode.p = p;\n newNode.next = nearestN.next;\n nearestN.next = newNode;\n }", "public closest(){\n\t\tthis.pnt = null;\n\t}", "private Point2D nearest(Point2D p, Point2D champ, Node x, RectHV bbox) {\n nncall++;\n if (x == null) return champ;\n double dist = p.distanceSquaredTo(champ);\n if (bbox.distanceSquaredTo(p) > dist) return champ;\n\n if (x.p.distanceSquaredTo(p) < dist) champ = x.p;\n\n if (p.x() < x.p.x() || p.y() < x.p.y()) {\n champ = nearest(p, champ, x.left, calcBBox(x, bbox, true));\n champ = nearest(p, champ, x.right, calcBBox(x, bbox, false));\n }\n else {\n champ = nearest(p, champ, x.right, calcBBox(x, bbox, false));\n champ = nearest(p, champ, x.left, calcBBox(x, bbox, true));\n }\n return champ;\n }", "public T getPater(T target) {\r\n int index = getIndex(target);\r\n if (index * 2 + 1 >= SIZE) {\r\n return null;\r\n } else if (tree[index * 2 + 1] == null) {\r\n return null;\r\n } else {\r\n return tree[index * 2 + 1];\r\n }\r\n }", "private Node smallest(Node p){\n if(p == null){\n return null;\n }\n Node smallest = p;\n while(smallest.left!=null){\n smallest = smallest.left;\n }\n return smallest;\n }", "public Iterable<Point2D> nearest(Point2D p, int k) {\n if (k == 0) {\n throw new NullPointerException();\n }\n \n if (p == null) {\n throw new NullPointerException();\n }\n MinPQ<Point2D> pq = new<Point2D> MinPQ(p.distanceToOrder());\n \n for (Point2D s: bst.keys()) {\n if (!s.equals(p)) {\n //Point2D near = nearest(p);\n pq.insert(s);\n }\n \n }\n \n Queue kpq = new Queue(); \n \n for (int j = 0; j < k; j++) {\n kpq.enqueue(pq.delMin());\n }\n return kpq;\n }", "public TreeNode lowestCommonAncestor2(TreeNode root, TreeNode p, TreeNode q) {\r\n\t\t if(root == null || p == root || q == root)\r\n\t return root;\r\n\t \r\n\t TreeNode left = lowestCommonAncestor(root.left, p, q);\r\n\t TreeNode right = lowestCommonAncestor(root.right, p, q);\r\n\t \r\n\t if(left == null && right != null) { // both on right\r\n\t return right;\r\n\t }\r\n\t if(right == null && left != null) { // both on left\r\n\t return left;\r\n\t }\r\n\t if(right == null && left == null) { // not in left and right\r\n\t return null;\r\n\t }\r\n\t return root; // right != null && left != null, one in left, one in right\r\n\t }", "public TreeNode inorderSuccessor(TreeNode root, TreeNode p) {\n\t\tif (root == null || p == null)\n\t\t\treturn null;\n\t\tif (p.right != null)\n\t\t\treturn findMin(p.right); // find the minimum from the right subtree\n\n\t\tTreeNode current = root;\n\t\tTreeNode successor = null;\n\t\twhile (current != null) {\n\t\t\tif (p.data < current.data) {\n\t\t\t\tsuccessor = current;\n\t\t\t\tcurrent = current.left;\n\t\t\t} else if (p.data > current.data) {\n\t\t\t\tcurrent = current.right;\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn successor;\n\t}", "public TreeNode inorderSuccessor_naive(TreeNode root, TreeNode p) {\n Stack<TreeNode> stack = new Stack<>();\n TreeNode prev = null;\n while (root != null || !stack.empty()) {\n if (root != null) {\n stack.push(root);\n root = root.left;\n }\n else {\n root = stack.pop();\n if (prev != null && prev == p) {\n return root;\n }\n prev = root;\n root = root.right;\n }\n }\n return null;\n }", "double treeNodeCostOfPoint(treeNode node, Point p){\n\t\tif(p.weight == 0.0){\n\t\t\treturn 0.0;\n\t\t}\n\n\t\t//stores the distance between centre and p\n\t\tdouble distance = 0.0;\n\t\t\n\t\t//loop counter variable\n\t\tint l;\n\n\t\tfor(l=0;l<p.dimension;l++){\n\t\t\t//centroid coordinate of the point\n\t\t\tdouble centroidCoordinatePoint;\n\t\t\tif(p.weight != 0.0){\n\t\t\t\tcentroidCoordinatePoint = p.coordinates[l] / p.weight;\n\t\t\t} else {\n\t\t\t\tcentroidCoordinatePoint = p.coordinates[l];\n\t\t\t}\n\t\t\t//centroid coordinate of the centre\n\t\t\tdouble centroidCoordinateCentre;\n\t\t\tif(node.centre.weight != 0.0){\n\t\t\t\tcentroidCoordinateCentre = node.centre.coordinates[l] / node.centre.weight;\n\t\t\t} else {\n\t\t\t\tcentroidCoordinateCentre = node.centre.coordinates[l];\n\t\t\t}\n\t\t\tdistance += (centroidCoordinatePoint-centroidCoordinateCentre) * \n\t\t\t\t\t(centroidCoordinatePoint-centroidCoordinateCentre) ;\n\t\t\t\t\t\n\t\t}\n\t\treturn distance * p.weight;\n\t}", "private PointDist findNearest(Node curr, RectHV rect, PointDist minP, boolean Isx) {\n double currDist;\n PointDist p1;\n PointDist p2;\n // double currDist = findNearP.distanceSquaredTo(curr.point);\n /*\n if (currDist < pointDist.dist)\n minP = new PointDist(curr.point, currDist);\n else\n minP = pointDist;\n\n */\n if (Isx) {\n if (curr.left != null) {\n RectHV leftRect = new RectHV(rect.xmin(), rect.ymin(), curr.point.x(), rect.ymax());\n currDist = findNearP.distanceSquaredTo(curr.left.point);\n if (currDist < minP.dist)\n minP = new PointDist(curr.left.point, currDist);\n if (minP.dist > leftRect.distanceSquaredTo(findNearP)) {\n p1 = findNearest(curr.left, leftRect, minP, false);\n if (p1 != null)\n if (p1.dist < minP.dist)\n minP = p1;\n }\n }\n if (curr.right != null) {\n RectHV rightRect = new RectHV(curr.point.x(), rect.ymin(), rect.xmax(), rect.ymax());\n currDist = findNearP.distanceSquaredTo(curr.right.point);\n if (currDist < minP.dist)\n minP = new PointDist(curr.right.point, currDist);\n if (minP.dist > rightRect.distanceSquaredTo(findNearP)) {\n p2 = findNearest(curr.right, rightRect, minP, false);\n if (p2 != null)\n if (p2.dist < minP.dist)\n minP = p2;\n }\n }\n }\n else {\n if (curr.left != null) {\n RectHV leftRect = new RectHV(rect.xmin(), rect.ymin(), rect.xmax(), curr.point.y());\n currDist = findNearP.distanceSquaredTo(curr.left.point);\n if (currDist < minP.dist)\n minP = new PointDist(curr.left.point, currDist);\n if (minP.dist > leftRect.distanceSquaredTo(findNearP)) {\n p1 = findNearest(curr.left, leftRect, minP, true);\n if (p1 != null)\n if (p1.dist < minP.dist)\n minP = p1;\n }\n }\n if (curr.right != null) {\n RectHV rightRect = new RectHV(rect.xmin(), curr.point.y(), rect.xmax(), rect.ymax());\n currDist = findNearP.distanceSquaredTo(curr.right.point);\n if (currDist < minP.dist)\n minP = new PointDist(curr.right.point, currDist);\n if (minP.dist > rightRect.distanceSquaredTo(findNearP)) {\n p2 = findNearest(curr.right, rightRect, minP, true);\n if (p2 != null)\n if (p2.dist < minP.dist)\n minP = p2;\n }\n }\n }\n return minP;\n }", "public TreeNode lowestCommonAncestor2(TreeNode root, TreeNode p, TreeNode q) {\n \n //base\n if(root == null || p == root || q == root){\n return root;\n }\n \n //Logic\n TreeNode left = lowestCommonAncestor2(root.left, p, q);\n TreeNode right = lowestCommonAncestor2(root.right, p, q);\n \n if(left != null && right != null){\n return root; \n }\n else if(left != null){\n return left;\n }\n else \n return right;\n }", "public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n if(root == null || root == p || root == q){\n return root;\n }\n TreeNode left = lowestCommonAncestor(root.left, p, q);\n TreeNode right = lowestCommonAncestor(root.right, p, q);\n if(left != null && right != null) return root;\n if(left != null) return left;\n if(right != null) return right;\n return null;\n }", "private Node closestUnvisitedNeighbour(HashMap <Node, Integer > shortestPathMap){\n int shortestDistance = Integer.MAX_VALUE;\n Node closestReachableNode = null;\n for (Node node : getNodes()) {\n if (node.isVisited())\n continue;\n\n int currentDistance = shortestPathMap.get(node);\n if (currentDistance == Integer.MAX_VALUE)\n continue;\n\n if (currentDistance < shortestDistance) {\n shortestDistance = currentDistance;\n closestReachableNode = node;\n }\n }\n return closestReachableNode;\n }", "Point findNearestActualPoint(Point a, Point b) {\n\t\tPoint left = new Point(a.x-this.delta/3,a.y);\n\t\tPoint right = new Point(a.x+this.delta/3,a.y);\n\t\tPoint down = new Point(a.x,a.y-this.delta/3);\n\t\tPoint up = new Point(a.x,a.y+this.delta/3);\n\t\tPoint a_neighbor = left;\n\t\tif (distance(right,b) < distance(a_neighbor,b)) a_neighbor = right;\n\t\tif (distance(down,b) < distance(a_neighbor,b)) a_neighbor = down;\n\t\tif (distance(up,b) < distance(a_neighbor,b)) a_neighbor = up;\n\n\t\treturn a_neighbor;\n\t}", "public TreeNode inorderSuccessor(TreeNode root, TreeNode p) {\n TreeNode ans = null;\n while (root != null) {\n if (root.val > p.val) {\n ans = root;\n root = root.left;\n } else root = root.right;\n }\n return ans;\n}", "public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n TreeNode cur = root;\n while (true) {\n if (cur.val > p.val && cur.val > q.val) cur = cur.left;\n else if (cur.val < p.val && cur.val < q.val) cur = cur.right;\n else return cur;\n }\n}", "public TreeNode inorderSuccessor(TreeNode root, TreeNode p) {\n if (root == null) return null;\n if (root.val > p.val) {\n TreeNode left = inorderSuccessor(root.left, p);\n return left == null ? root : left;\n } else return inorderSuccessor(root.right, p);\n}", "private IAVLNode findSuccessor(IAVLNode node) \r\n\t {\r\n\t\t if(node.getRight().getHeight() != -1) \r\n\t\t\t return minPointer(node.getRight());\r\n\t\t IAVLNode parent = node.getParent();\r\n\t\t while(parent.getHeight() != -1 && node == parent.getRight())\r\n\t\t {\r\n\t\t\t node = parent;\r\n\t\t\t parent = node.getParent();\r\n\t\t }\r\n\t\t return parent;\t \r\n\t\t}", "public Point2d getNearestPointOnLine(final Point2d p){\n\n Vector2d orth = MathUtil.getOrthogonalDirection(direction);\n Line other = new Line (p, orth);\n\n Point2d cut = this.cut(other);\n\n if( cut == null){\n System.out.println(\"Line.getNearestPointOnLine failed!!\");\n System.out.println(\"big fail: line is\" + this.point + \"lambda*\" + this.direction + \"; point is: \"+p);\n }\n\n return cut;\n }", "public void insert(Point2D p) {\n checkNull(p);\n if (size == 0) {\n root = new Node(p, V);\n } else {\n Node n = root;\n while (true) {\n double cmp = comparePoints(p, n);\n if (cmp < 0) {\n if (n.leftOrBot == null) {\n n.leftOrBot = new Node(p, !n.dir);\n break;\n }\n n = n.leftOrBot;\n } else if (cmp ==0) {\n return;\n } else {\n if (n.rightOrTop == null) {\n n.rightOrTop = new Node(p, !n.dir);\n break;\n }\n n = n.rightOrTop;\n }\n }\n }\n size++;\n }", "public Stack<Position> getAllNeighborPosition(Position p){\n Stack<Position> stackP=new Stack<Position>();\n Position up=new Position(p.getRow()-1,p.getCol());\n stackP.add(up);\n Position down=new Position(p.getRow()+1,p.getCol());\n stackP.add(down);\n Position right=new Position(p.getRow(),p.getCol()+1);\n stackP.add(right);\n Position left=new Position(p.getRow(),p.getCol()-1);\n stackP.add(left);\n return stackP;\n }", "public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n \n if(root == null) {\n return root;\n }\n \n if(p.val > root.val && q.val > root.val) {\n return lowestCommonAncestor(root.right, p, q);\n }\n else if(p.val < root.val && q.val < root.val) {\n return lowestCommonAncestor(root.left, p, q);\n }\n else {\n return root;\n }\n \n }", "public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n if (root == null) return null;\n if (root == q || root == p) return root;\n if (root.val > Math.max(p.val, q.val)) {\n return lowestCommonAncestor(root.left, p, q);\n } \n if (root.val < Math.min(p.val, q.val)) {\n return lowestCommonAncestor(root.right, p, q);\n }\n if (root.val > q.val && root.val < p.val || root.val > p.val && root.val < q.val) {//else\n return root;\n }\n \n return null;//never\n }", "public Node getBestSuccessor(){\n\t\t// Send false to the method to not save the neighbors.\n\t\treturn state.neighborWithlowestAttachNo(false);\n\t}", "public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\r\n\t if (root == null || root == p || root == q) \r\n\t \treturn root;\r\n\t \r\n\t TreeNode left = lowestCommonAncestor(root.left, p, q);\r\n\t TreeNode right = lowestCommonAncestor(root.right, p, q);\r\n\t \r\n\t return left == null ? right : right == null ? left : root;\r\n\t}", "public static <T> T findPredecessor(Node<T> t) {\n if(t == null)\n return null;\n else\n return findMax(t.left);//call to helper method to find the right most node of the left sub-tree\n }", "public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n if (root.val < p.val && root.val < q.val) return lowestCommonAncestor(root.right, p, q);\n else if (root.val > p.val && root.val > q.val) return lowestCommonAncestor(root.left, p, q);\n return root;\n}", "public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n \t\n \t\n \tStack<TreeNode> stack = new Stack<TreeNode>();\n \t\n \tMap<TreeNode,TreeNode> parentsMap = new HashMap<TreeNode, TreeNode>();\n \t\n \tstack.add(root);\n \tparentsMap.put(root, null);\n \t\n \t/*\n \t * loop until both p and q are in the map\n \t */\n \twhile( !parentsMap.containsKey(p) || !parentsMap.containsKey(q)) {\n \t\tTreeNode currentNode = stack.pop();\n \t\tif(currentNode.left != null) {\n \t\t\tstack.add(currentNode.left);\n \t\t\tparentsMap.put(currentNode.left, currentNode);\n \t\t}\n \t\tif(currentNode.right != null) {\n \t\t\tstack.add(currentNode.right);\n \t\t\tparentsMap.put(currentNode.right, currentNode);\n \t\t}\n \t}\n \t\n \t// set to get the p parents\n \tSet<TreeNode> pParents = new HashSet<TreeNode>();\n \t\n \t// backtrack the p parents till null \n \twhile(p != null) {\n \t\tpParents.add(p);\n \t\tp = parentsMap.get(p);\n \t}\n \t\n \t// backtrack the q parents till we find the common ancestor\n \twhile(!pParents.contains(q)) {\n \t\tq = parentsMap.get(q);\n \t}\n \treturn q;\n \t\n }", "public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n \n if(root.val > p.val && root.val >q.val)\n return lowestCommonAncestor(root.left,p,q);\n \n if(root.val < p.val && root.val <q.val)\n return lowestCommonAncestor(root.right,p,q);\n \n else\n return root;\n \n }", "public TreeNode lowestCommonAncestor_1(TreeNode root, TreeNode p, TreeNode q){\n Deque<TreeNode> stack = new ArrayDeque<>();\n Map<TreeNode, TreeNode> parent = new HashMap<>();\n parent.put(root, null);\n stack.push(root);\n\n // Iterate until we find both the nodes p and q\n while(!parent.containsKey(p) || !parent.containsKey(q)){\n TreeNode node = stack.pop();\n if (node.left != null){\n parent.put(node.left, node);\n stack.push(node.left);\n }\n if (node.right != null){\n parent.put(node.right, node);\n stack.push(node.right);\n }\n }\n // Ancestors set() for node p\n Set<TreeNode> ancestors = new HashSet<>();\n // Process all ancestors for node p using parent pointers.\n while(p!=null){\n ancestors.add(p);\n p = parent.get(p);\n }\n // The first ancestors of q which appears in\n // p's ancestor set() is their lowest common ancestor\n while(!ancestors.contains(q))\n q = parent.get(q);\n return q;\n }", "private KdTreeNode nearestInKDTree(KdTreeNode current, Point goal, KdTreeNode best, int idx) {\n if (current == null) {\n return best;\n }\n\n if (Point.distance(current.point, goal) < Point.distance(best.point, goal)) {\n best = current;\n }\n\n KdTreeNode goodSide = current.right;\n KdTreeNode badSide = current.left;\n if (KdTree.comparePoints(goal, current.point, idx) < 0) {\n goodSide = current.left;\n badSide = current.right;\n }\n int newIdx = idx ^ 1;\n best = this.nearestInKDTree(goodSide, goal, best, newIdx);\n\n double bestPossibleDis = 0;\n if (idx == 0) {\n bestPossibleDis = Math.pow(goal.getX() - current.point.getX(), 2);\n } else {\n bestPossibleDis = Math.pow(goal.getY() - current.point.getY(), 2);\n }\n if (bestPossibleDis < Point.distance(best.point, goal)) {\n best = this.nearestInKDTree(badSide, goal, best, newIdx);\n }\n\n return best;\n }", "public static void main(String[] args) \n\t {\n\t\t KdTree kt = new KdTree();\n\t\t Point2D p = new Point2D (0.406360,0.678100);\n\t\t Point2D q = new Point2D(0.740024,0.021714);\n\t\t kt.insert(p);\n\t\t kt.insert(q);\n\t\t p = new Point2D(0.010189,0.742363);\n\t\t kt.insert(p);\n\t\t p = new Point2D(0.147733,0.203388);\n\t\t kt.insert(p);\n\t\t p = new Point2D(0.537098,0.436150);\n\t\t kt.insert(p);\n\t\t Point2D pq = new Point2D(0.37,0.23);\n\t\t kt.draw();\n\t\t Point2D pqr = kt.nearest(pq);\n\t\t pqr.draw();\n\t\t System.out.println(\" x coordinate \"+pqr.x()+ \" y \"+pqr.y()); \n\t }", "public static Mention bfsNPRight(Tree<String> X, Tree<String> p, Mention m){\n\t\tint i=0;\n\t\twhile(i<X.getChildren().size() && !X.getChildren().get(i).equals(p)) i++;\n\t\tfor (int j=i+1;j<X.getChildren().size();j++) {\n\t\t\tMention propMention=bfsNP(X.getChildren().get(j),m,m.sentence,false);\n\t\t\tif (propMention!=null){\n\t\t\t\treturn propMention;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private Node largest(Node p){\n if(p == null){\n return null;\n }\n Node largest = p;\n while(largest.right != null){\n largest = largest.right;\n }\n return largest;\n }", "public TreeNode lowestCommonAncestor1(TreeNode root, TreeNode p, TreeNode q) {\n\t\tif(root == null || root == p || root == q) return root;\n\t\tboolean pOnLeft = exists(root.left, p);\n\t\tboolean pOnRight = exists(root.right, p);\n\n\t\tboolean qOnLeft = exists(root.left, q);\n\t\tboolean qOnRight = exists(root.right, q);\n\n\n\t\tif((pOnLeft & qOnRight) || (qOnLeft & pOnRight)) {System.out.println(\"LCA found...\"); return root;}\n\t\telse if(pOnLeft & qOnLeft) {System.out.println(\"Inside left...\"); return lowestCommonAncestor(root.left, p, q);}\n\t\telse if(pOnRight & qOnRight) {System.out.println(\"Inside right...\"); return lowestCommonAncestor(root.right, p, q);}\n\t\treturn null;\n\t}", "public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {\n\n int BOTH_DONE = 0;\n int LEFT_DONE = 1;\n int BOTH_PENDING = 2;\n\n Stack<Pair<TreeNode, Integer>> stack = new Stack<>();\n TreeNode LCA = null;\n stack.push(new Pair<>(root, BOTH_PENDING));\n\n while (!stack.isEmpty()) {\n Pair<TreeNode, Integer> topPair = stack.peek();\n if (topPair.second != BOTH_DONE) {\n //mark LCA on first entry, on back track , if reprocess then we'd send LCA incorrectly because\n //same p or q will be repeated when back tracking for example from left path\n if ((topPair.second == BOTH_PENDING) && (topPair.first == p || topPair.first == q)) {\n //node matched\n if (LCA != null) {\n return LCA;\n } else {\n LCA = topPair.first;\n }\n }\n\n //move left or right based on the state of the node\n TreeNode child;\n if (topPair.second == LEFT_DONE) {\n child = topPair.first.right;\n } else {\n child = topPair.first.left;\n }\n stack.pop();\n stack.push(new Pair<>(topPair.first, topPair.second - 1));\n if (child != null)\n stack.push(new Pair<>(child, BOTH_PENDING));\n\n } else {\n //if both childs visited, pop the element and move the LCA to the prior node which\n //was parent of the current node with LCA\n if (LCA == topPair.first) {\n stack.pop();\n LCA = stack.peek().first;\n } else {\n stack.pop();\n }\n }\n }\n return null;\n }", "public Node findClosest(int search_key){\n\n Node current, closest; //จำตำแหน่ง node ตอนนี้\n closest = current = root; // เก็บตำแหน่ง node ที่ใกล้ค่าที่หามากสุด\n int min_diff = Integer.MAX_VALUE; // ตัวเปรียบเทียบคสาต่าง\n while (current!= null){ // Use while loop to traverse from root to the closest leaf\n if (search_key == current.key){ //ถ้าเจอก็ return\n return current;\n }\n else{\n if(Math.abs(current.key - search_key) < min_diff){ //หาค่าความต่าง ถ้าอันใหม่ต่างน้อยกว่า แสดงว่าใกล้กว่า\n min_diff = Math.abs(current.key - search_key);\n closest = current;\n }\n\n }\n\n if(search_key < current.key) // กำหยดว่าจะลงไปในทิศทางไหนของ subtree\n {current = current.left;}\n else{current = current.right;}\n }\n\n\n\n return closest;\n }", "public FObj findNearestAncestorFObj() {\n FONode par = parent;\n while (par != null && !(par instanceof FObj)) {\n par = par.parent;\n }\n return (FObj) par;\n }", "public SegmentTreeNode<T> getNode (int target) {\n\t\t// have we narrowed down?\n\t\tif (left == target) {\n\t\t\tif (right == left+1) {\n\t\t\t\treturn this;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// press onwards\n\t\tint mid = (left+right)/2;\n\n\t\tif (target < mid) { return lson.getNode (target); }\n\t\treturn rson.getNode (target);\n\t}", "public Location getNearest(Location src)\r\n {\r\n if(Main.ASSERT) Util.assertion(!src.inside(bl, tr));\r\n // cases: \r\n // 3 6 9 \r\n // 2 x 8\r\n // 1 4 7\r\n if(src.getX()<=bl.getX())\r\n {\r\n if(src.getY()<=bl.getY())\r\n {\r\n return bl; // case 1\r\n }\r\n else if(src.getY()>=tr.getY())\r\n {\r\n return tl; // case 3\r\n }\r\n else\r\n {\r\n return new Location.Location2D(bl.getX(), src.getY()); // case 2\r\n }\r\n }\r\n else if(src.getX()>=tr.getX())\r\n {\r\n if(src.getY()<=bl.getY())\r\n {\r\n return br; // case 7\r\n }\r\n else if(src.getY()>=tr.getY())\r\n {\r\n return tr; // case 9\r\n }\r\n else\r\n {\r\n return new Location.Location2D(tr.getX(), src.getY()); // case 8\r\n }\r\n }\r\n else\r\n {\r\n if(src.getY()<=bl.getY())\r\n {\r\n return new Location.Location2D(src.getX(), bl.getY()); // case 4\r\n }\r\n else if(src.getY()>=tr.getY())\r\n {\r\n return new Location.Location2D(src.getX(), tr.getY()); // case 6\r\n }\r\n else\r\n {\r\n throw new RuntimeException(\"get nearest undefined for internal point\");\r\n }\r\n }\r\n }", "public GraphNode getGraphNode(FloorPoint loc){\n\n\n List<GraphNode> sameFloor = getGraphNodesOnFloor(loc.getFloor());\n if(sameFloor.isEmpty()) {\n return null;\n }\n // get the closest point to the node\n GraphNode closestNode = sameFloor.get(0);\n double minDistance = closestNode.getLocation().distance(loc);\n\n // find the minimum distance on the same floor\n for (int i = 0 ; i < sameFloor.size(); i++) {\n GraphNode currentNode = sameFloor.get(i);\n double currentDistance = currentNode.getLocation().distance(loc);\n if(currentDistance < minDistance){\n minDistance = currentDistance;\n closestNode = currentNode;\n }\n }\n return closestNode;\n }", "private PointD getNearestPointOnLine(Vector v, PointD p)\r\n\t{\r\n\t\t//for line of form ax + by + c = 0 and point (x0, y0)\r\n\t\tdouble a = -1*v.getY();\r\n\t\tdouble b = v.getX();\r\n\t\tdouble c = v.getY()*v.getTail().getX() - v.getX()*v.getTail().getY();\r\n\r\n\t\tdouble x0 = p.getX();\r\n\t\tdouble y0 = p.getY();\r\n\t\t\r\n\t\t//nearest point on line is (x1,y1)\r\n\t\tdouble x1 = (b*(b*x0 - a*y0) - a*c )/(a*a + b*b);\r\n\t\tdouble y1 = (a*(-b*x0 + a*y0) - b*c )/(a*a + b*b);\r\n\t\t\r\n\t\treturn new PointD(x1,y1);\r\n\t}", "private static Point getNearest(Collection<Point> centers, Point p) {\n\t\tdouble min = 0;\n\t\tPoint minPoint = null;\n\t\tfor(Point c : centers){\n\t\t\tif(minPoint == null || c.distance(p) < min){\n\t\t\t\tmin = c.distance(p);\n\t\t\t\tminPoint = c;\n\t\t\t}\n\t\t}\n\t\treturn minPoint;\n\t}", "private Node<?> findClosestAncestor(ZQuadTree<?> tree, long quad) {\n assert ZQuad.isAncestor(this.quad, quad);\n if (this.size <= tree.splitThreshold || this.quad == quad) {\n return this;\n } else {\n Node<?>[] children = (Node<?>[]) data;\n for (int i = 0; i < kJunctionChildCount; i++) {\n Node<?> child = children[i];\n if (child != null && ZQuad.isAncestor(child.quad, quad))\n return child.findClosestAncestor(tree, quad);\n }\n return kEmpty;\n }\n }", "public double frogPosition(int n, int[][] edges, int t, int target) {\n Map<Integer, List<Integer>> tree = new HashMap<>();\n for(int[] edge : edges) {\n List<Integer> children = tree.getOrDefault(edge[0], new ArrayList<>());\n children.add(edge[1]);\n tree.put(edge[0], children);\n\n children = tree.getOrDefault(edge[1], new ArrayList<>());\n children.add(edge[0]);\n tree.put(edge[1], children);\n }\n\n Queue<Node> queue = new LinkedList<>();\n Set<Integer> visited = new HashSet<>();\n queue.offer(new Node(1, 1.0));\n while(!queue.isEmpty() && t >= 0) {\n int size = queue.size();\n for(int i = 0; i < size; i++) {\n Node node = queue.poll();\n\n visited.add(node.index);\n List<Integer> children = tree.getOrDefault(node.index, new ArrayList<>())\n .stream()\n .filter(obj -> !visited.contains(obj))\n .collect(Collectors.toList());\n if(node.index == target && (t == 0 || children.size() == 0)) {\n return node.p;\n }\n for(int child : children) {\n queue.offer(new Node(child, node.p / (double)children.size()));\n }\n }\n t--;\n }\n return 0;\n }", "public static int[][] optimalBST(double[] p, int num){\n double[][] e = new double[num+2][num+2];\n double[][] w = new double[num+1][num+1];\n //this will to easy count the sum of w from i to j\n //so use w[i][j] = w[i][j-1] + p[j]\n //therefor the size of w is also need num+1\n\n int[][] root = new int[num+1][num+1];//记录根节点\n //root[i][j] -- 用来存放i-j组成的最优二叉查找树的根节点\n\n for(int d = 0; d<num; d++){\n for(int i=1; i<=num-d; i++){\n int j = i + d;\n e[i][j] = Double.MAX_VALUE;\n w[i][j] = w[i][j-1] + p[j-1];//\n for(int k=i; k<=j; k++){\n double temp = w[i][j] + e[i][k-1] + e[k+1][j];;\n if(temp < e[i][j]){\n e[i][j] = temp;\n root[i][j] = k;\n }\n }\n }\n }\n ArrayTool.printDoubleMatrix(w);\n System.out.println(\"the total Search probability of this optimal BST is \"+ e[1][num]);\n return root;\n }", "public Node atLocation(Point p) {\n return mazeMap.get(p);\n }", "private BinaryNode<AnyType> findMin( BinaryNode<AnyType> t )\r\n\t{\r\n\t\tif( t == null )\r\n\t\t\treturn null;\r\n\t\telse if( t.left == null )\r\n\t\t\treturn t;\r\n\t\treturn findMin( t.left );\r\n\t}", "protected Point hooverPoint(Point p) {\n\t\tif (p == null)\n\t\t\treturn null;\n\n\t\t// De geldige punten zoeken.\n\t\tVector<Point> temp = selectionTool.searchControlPoint(p);\n\t\tif (temp != null && temp.size() > 0) {\n\t\t\tfor (int i = 0; i < temp.size(); ++i) {\n\t\t\t\thooveredPoints.add(temp.elementAt(i));\n\n\t\t\t\t// Per gevonden inputpunt de daaraan verbonden curves zoeken en\n\t\t\t\t// hooveren indien dat al niet het geval was.\n\t\t\t\tCurve temp2 = selectionTool.searchCurvesByControlPoint(temp\n\t\t\t\t\t\t.elementAt(i));\n\t\t\t\tif (temp2 != null) {\n\t\t\t\t\tboolean found = false;\n\t\t\t\t\tfor (int k = 0; k < hooveredCurves.size(); ++k) {\n\t\t\t\t\t\tif (hooveredCurves.elementAt(k).equals(temp2))\n\t\t\t\t\t\t\tfound = true;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!found)\n\t\t\t\t\t\thooveredCurves.add(temp2);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Het eerste gevonden punt teruggeven, dat kan dan bvb. gebruikt\n\t\t\t// worden om uit te tekenen.\n\t\t\treturn temp.elementAt(0);\n\t\t} else\n\t\t\treturn null;\n\t}", "TreeNode commonAncestor(TreeNode p, TreeNode q) {\n\t// find depths of the two nodes \n\tint depthP = depth(p);\n\tint depthQ = depth(q);\n\t// find difference in depths \n\tint diffDepths = depthP - depthQ;\n\t// q is more shallow\n\tTreeNode first = diffDepths > 0 ? q : p; \n\t// p is more deep\n\tTreeNode second = diffDepths > 0 ? p : q; \n\t// Bring the second one up \n\tsecond = goUpBy(second, Math.abs(delta));\n\n\t// FIND INTERSECTING PATH BY GOING UP ONE AT A TIME\n\t// WHILE THEY ARE NOT THE SAME AND BOTH NOT NULL \n\twhile (first != second && first != null && second != null) {\n\t\tfirst = first.parent;\n\t\tsecond = second.parent; \n\t}\n\t// if either is null, no common, therefore return null\n\t// else we can return one of the two bc they are the same\n\treturn first == null || second == null ? null : first; \n\n}", "public Node getNearestNode(Point mousePos,\n\t\t\tPredicate<OsmPrimitive> isSelectablePredicate) {\n\t\treturn null;\n\t}", "private void findNeighbour(int offset) {\n TreeNodeImpl node = (TreeNodeImpl) projectTree.getLastSelectedPathComponent();\n TreePath parentPath = projectTree.getSelectionPath().getParentPath();\n NodeList list = (NodeList) node.getParent().children();\n\n for (int i = 0; i < list.size(); ++i) {\n if (list.get(i).equals(node)) {\n if (offset > 0 && i < list.size() - offset) {\n projectTree.setSelectionPath(parentPath.pathByAddingChild(list.get(i + offset)));\n break;\n }\n if (offset < 0 && i >= offset) {\n projectTree.setSelectionPath(parentPath.pathByAddingChild(list.get(i + offset)));\n break;\n }\n }\n }\n }", "public BSTMapNode findMin() \n\t{\n\t\t\n\t\t\n\t\treturn null;\n\t}", "private BinaryNode<AnyType> findMin(BinaryNode<AnyType> t) {\r\n\t\tif (t == null)\r\n\t\t\treturn null;\r\n\t\telse if (t.left == null)\r\n\t\t\treturn t;\r\n\t\treturn findMin(t.left);\r\n\t}", "private IAVLNode minPointer(IAVLNode node) \r\n\t {\r\n\t\t\twhile (node.isRealNode())\r\n\t\t\t\tnode = node.getLeft();\r\n\t\t\treturn node.getParent();\t\r\n\t }", "private IAVLNode findPredecessor(IAVLNode node)\r\n\t{\r\n\t\t//minimum node has no predecessor\r\n\t\tif (node == minimum) \r\n\t\t\treturn null; \r\n\t\t\r\n\t\tif (node.getLeft().isRealNode()) \r\n\t\t\treturn maxPointer(node.getLeft()); \r\n\t\telse \r\n\t\t{\r\n\t\t\tIAVLNode parent = node.getParent();\r\n\t\t\twhile ((node == parent.getLeft())&&(parent != null)) \r\n\t\t\t{ \r\n\t\t\t\tnode = parent; \r\n \t\t\t\tparent = parent.getParent() ; \r\n\t\t\t}\r\n\t\t\treturn parent;\t\r\n\t\t}\r\n\t}", "public TreeNode inorderSuccessor(TreeNode root, TreeNode p) {\n TreeNode suc = null;\n while (root != null) {\n if (root.val > p.val) {\n suc = root;\n root = root.left;\n }\n else {\n root = root.right;\n }\n }\n return suc;\n }", "protected BinaryNode<AnyType> findMin(BinaryNode<AnyType> t) {\n\t\tif (t != null)\n\t\t\twhile (t.left != null)\n\t\t\t\tt = t.left;\n\n\t\treturn t;\n\t}", "TreeNode<T> getParent();", "Pair<Vertex, Double> closestVertexToPath(Loc pos);", "public int find(int p) {\n\t\tvalidate(p);\n\t\twhile (p != parent[p])\n\t\t\tp = parent[p];\n\t return p;\n\t}", "public abstract Proximity2DResult getNearestVertex(Geometry geom,\n\t\t\tPoint inputPoint);", "public static Node findClosestLeaf(Node node, int search_key){\n\n if(search_key==node.key){ //เมื่อเจอ return ค่า\n return node;\n }\n else if(search_key>node.key){ //ถ้า search_key มากกว่า node.key ตอนนี้ แสดงว่า อยู่ทางด้านขวา\n if(node.right!=null){ //ถ้า node ตอนนี้มี right-subtree เรียก recursive โดยส่ง right-subtree\n return findClosestLeaf(node.right, search_key);\n }\n else {return node;} //ถ้า node ตอนนี้มีไม่มี right-subtree แสดงว่า node ตอนนีใกล้ search_key ที่สุด\n }\n else { //ถ้า search_key น้อยกว่า node.key ตอนนี้ แสดงว่า อยู่ทางด้านซ้าย\n if(node.left!=null){ //ถ้า node ตอนนี้มี left-subtree เรียก recursive โดยส่ง left-subtree\n return findClosestLeaf(node.left, search_key);\n }\n else{ return node;} ////ถ้า node ตอนนี้มีไม่มี left-subtree แสดงว่า node ตอนนีใกล้ search_key ที่สุด\n }\n\n }", "public void insert(Point2D p) {\n if (p == null)\n throw new IllegalArgumentException(\"Insert point is null\");\n Node newNode = new Node(p, null, null);\n if (isEmpty()) {\n root = newNode;\n n++;\n return;\n }\n if (this.contains(p))\n return;\n Node curr = root;\n boolean isX = true;\n int cmp;\n while (true) {\n if (isX)\n cmp = Point2D.X_ORDER.compare(p, curr.point);\n else\n cmp = Point2D.Y_ORDER.compare(p, curr.point);\n if (cmp < 0) {\n if (curr.left == null) {\n curr.left = newNode;\n break;\n }\n curr = curr.left;\n }\n else {\n if (curr.right == null) {\n curr.right = newNode;\n break;\n }\n curr = curr.right;\n }\n isX = !isX;\n }\n n++;\n }", "public Point2D.Double getExitClosestPoint(Exit e, Point2D.Double p) {\n\t\tPoint2D.Double closestPoint;\n\n\t\tdouble delta_x = e.p2.x - e.p1.x;\n\t\tdouble delta_y = e.p2.y - e.p1.y;\n\n\t\tif ((delta_x == 0) && (delta_y == 0)) {\n\t\t\t// throw sth\n\t\t}\n\n\t\tdouble u = ((p.x - e.p1.x) * delta_x + (p.y - e.p1.y) * delta_y)\n\t\t\t\t/ (delta_x * delta_x + delta_y * delta_y);\n\n\t\tif (u < 0) {\n\t\t\tclosestPoint = new Point2D.Double(e.p1.x, e.p2.y);\n\t\t} else if (u > 1) {\n\t\t\tclosestPoint = new Point2D.Double(e.p2.x, e.p2.y);\n\t\t} else {\n\t\t\tclosestPoint = new Point2D.Double(\n\t\t\t\t\t(int) Math.round(e.p1.x + u * delta_x),\n\t\t\t\t\t(int) Math.round(e.p1.y + u * delta_y));\n\t\t}\n\n\t\treturn closestPoint;\n\t}", "private Node findLargestNodeIn(Node n) {\n if (n != null) {\n while (n.rightChild != null) {\n n = n.rightChild;\n }\n }\n return n;\n }" ]
[ "0.8015504", "0.7839122", "0.7812748", "0.7724437", "0.7663292", "0.76365", "0.7547178", "0.75082386", "0.7488445", "0.7479941", "0.7445144", "0.742146", "0.7377844", "0.73191786", "0.7315285", "0.7305385", "0.73002744", "0.7281518", "0.70300055", "0.69008285", "0.68543667", "0.6762827", "0.67350024", "0.66815877", "0.6595781", "0.6581724", "0.6468688", "0.6460839", "0.645134", "0.6439166", "0.63458866", "0.63144785", "0.6285352", "0.62818253", "0.61984473", "0.61579156", "0.61317945", "0.6117637", "0.6044521", "0.60165477", "0.60165405", "0.6005963", "0.59397864", "0.5937134", "0.5936429", "0.59308076", "0.59240186", "0.5897455", "0.5892129", "0.58770406", "0.58758456", "0.5864766", "0.58640194", "0.5858234", "0.5853221", "0.585079", "0.58360535", "0.58251655", "0.58127755", "0.57985616", "0.57915", "0.5784295", "0.577825", "0.5777086", "0.5759703", "0.57350886", "0.5704489", "0.5703073", "0.57006586", "0.5691657", "0.56908596", "0.56677324", "0.5666643", "0.5662799", "0.565855", "0.5637812", "0.56372774", "0.5635713", "0.5625268", "0.56063133", "0.55988616", "0.5592975", "0.55836457", "0.5577719", "0.55770093", "0.55722344", "0.5560281", "0.554756", "0.5539469", "0.5535825", "0.55239534", "0.5513036", "0.5512046", "0.5500596", "0.5488639", "0.5484017", "0.54650146", "0.545972", "0.54581976", "0.5446615" ]
0.77934235
3
Initialize counter with initial value 0.
public ConnectionCount() { this(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Counter() {\r\n value = 0;\r\n }", "public Counter() {\r\n this.count = 0;\r\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "public Counter(int init){\n \tvalue = init;\n }", "public Counter()\n {\n this(0);\n }", "public BasicCounter() {\n count = 0;\n }", "public myCounter() {\n\t\tcounter = 1;\n\t}", "public void setinitialcounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, 0).commit();\r\n\t}", "public void setCountToZero() {\r\n \r\n // set count to 0\r\n count = 0;\r\n }", "public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}", "public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}", "private final int initializeInt() {\n\t\treturn 0;\r\n\t}", "private static void setCounter() {++counter;}", "public Counter(int val) {\r\n value = val;\r\n }", "public Counter() {\n //this.max = max;\n }", "public void resetCount() {\n\t\tcount = 0;\n\t}", "public Counter (int modulus) {\n count = 0;\n this.modulus = modulus;\n }", "public myCounter(int startValue) {\n\t\tcounter = startValue;\n\t}", "public static void resetCount() {\n count = 1;\n }", "public void resetCount() {\n count = 0;\n }", "public void ResetCounter()\r\n {\r\n counter.setCurrentValue(this.startValue);\r\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 Counter(int m) {\n this(DEFAULT_MIN_VALUE, m);\n }", "@Override\n public void setCounterToInitialAmount() {\n UserPreferences.sharedInstance().setEventId(null);\n //reset timer to normal recording time\n timeCounter = UserPreferences.sharedInstance().recordTime() * 1000;\n }", "public Counter(int count)\n {\n this.setCount(count);\n }", "public void setCounter(int value) { \n\t\tthis.count = value;\n\t}", "void reset() {\n count = 0;\n\n }", "public static int getCounter() {return counter;}", "public void setCounter(int counter) {\n this.counter = counter;\n }", "public MoleculeCounter() {\r\n\t\tsetMolecule(\"\");\r\n\t\tsetComponent(\"\");\r\n\t\tsetState(\"\");\r\n\t\tsetCount(0);\r\n\t}", "private void resetCounter() {\n // Obtain the most recent changelist available on the client\n String depot = parent.getDepot();\n Client client = Client.getClient();\n Changelist toChange = Changelist.getChange(depot, client);\n\n // Reset the Perforce counter value\n String counterName = parent.getCounter();\n Counter.setCounter(counterName, toChange.getNumber());\n }", "public Counter(Counter count) {\r\n value = count.value;\r\n }", "private SchedulerThreadCounter()\n\t{\n\t\tii_counter = 100;\n\t}", "private void initCounts() {\n this.angry_count = findViewById(R.id.anger_count);\n this.fear_count = findViewById(R.id.fear_count);\n this.joyful_count = findViewById(R.id.joy_count);\n this.love_count = findViewById(R.id.love_count);\n this.sad_count = findViewById(R.id.sad_count);\n this.suprise_count = findViewById(R.id.suprise_count);\n\n this.updateCounts();\n }", "@Test\n // begin method verifyInitialCount\n public void verifyInitialCount() {\n\n // 0. create a new click counter\n // 1. verify that the new counter's initial count is zero\n\n // 0. create a new click counter\n\n ClickCounter clickCounter = new ClickCounter();\n\n // 1. verify that the new counter's initial count is zero\n\n assert clickCounter.getCount() == 0;\n\n }", "studentCounter(){ \n\t\tnumStudentInRoom = 0 ;\n\t}", "@Override\n public Integer reduceInit() { return 0; }", "public HitCounter() {\n q = new ArrayDeque();\n map = new HashMap();\n PERIOD = 300;\n hits = 0;\n }", "public void setCounter(int number){\n this.counter = number;\n }", "public HitCounter() {\n q = new ArrayDeque();\n PERIOD = 300;\n }", "public MyCounter()\n {\n counter = 0;\n \n this.setSize(100, 200);\n this.setTitle(\"My Counter\");\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n Container contentPane = getContentPane(); \n contentPane.setLayout(new BorderLayout());\n\n label = new JLabel(\"0\", SwingConstants.CENTER);\n label.setFont(new Font(\"serif\", Font.PLAIN, 24));\n add(label, BorderLayout.CENTER);\n\n button = new JButton(\"Click\");\n contentPane.add(button, BorderLayout.SOUTH);\n button.addActionListener(this);\n }", "private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}", "public void incCounter()\n {\n counter++;\n }", "public static void initializeCount(int[] count){\n\t\tif (count != null){\n\t\t\tfor (int i = 0; i < count.length; i++)\n\t\t\t\tcount[i] = 0;\n\t\t}\n\t}", "public void reset() {\n\t\tthis.count = 0;\n\t}", "public void reset() {\n\t\tcount = 0;\n\t}", "public void resetCount() {\n\t\tresetCount(lineNode);\n\t}", "public void createCounters() {\n // COUNTERS CREATION //\n //create a new counter for the blocks.\n this.blockCounter = new Counter();\n //create a new counter for the blocks.\n this.ballCounter = new Counter();\n }", "public BasicCalculator() {\n // Initialization here.\n // this.count = 0;\n\n }", "public static void resetIdCounter(){\n idCounter = 0;\n }", "public ZeroCountDataWriter() {\n\t\tsuper(DataWriterType.ZEROCNTType);\n\t}", "public HitCounter() {\n map = new HashMap<Integer, Integer>();\n }", "private Count() {}", "private Count() {}", "public void zero() {\n fill(0);\n }", "@Override\r\n\tprotected Integer zero() {\n\t\treturn 0;\r\n\t}", "public void resetCounters()\n {\n cacheHits = 0;\n cacheMisses = 0;\n }", "public void reset() {\n/* 54 */ this.count = 0;\n/* 55 */ this.totalTime = 0L;\n/* */ }", "public void incCounter(){\n counter++;\n }", "public final void initialize() {\n initialize(0);\n }", "public void IncrementCounter()\r\n {\r\n \tsetCurrentValue( currentValue.add(BigInteger.ONE)); \r\n \r\n log.debug(\"counter now: \" + currentValue.intValue() );\r\n \r\n }", "public void set_counter(long value) {\n setUIntBEElement(offsetBits_counter(), 32, value);\n }", "static IterV<String, Integer> counter() {\n return cont(count.f(0));\n }", "public void initializeCounters() {\n resetCounters();\n lastAd = tozAdCampaign.size() - 1;\n if (baseAd > lastAd) baseAd = lastAd;\n if (baseViewIndex > lastAd) baseViewIndex = lastAd;\n if (baseViewIndex < 0) baseViewIndex = 0;\n alignRefreshInterval();\n reInitializeCampaign = false;\n }", "public SynchronizedCounter(int count) {\n\t\tthis.count = count;\n\t}", "public Int() {\n this(0);\n }", "public void reset(){\n value = 0;\n }", "protected void setNumbertoZero() {\n\t\tnumber = 0;\n\t}", "public HitCounter() {\n map = new TreeMap<>();\n }", "public HitCounter() {\n hits = new int[300];\n times = new int[300];\n }", "public HitCounter() {\n hits = new int[300];\n times = new int[300];\n }", "public void resetZero() {\n\t\tset((byte) (get() & ~(1 << 7)));\n\t}", "public HitCounter() {\n q = new LinkedList<>();\n }", "public void incCount() { }", "public ClickCounter() {\n System.out.println(\"Click constructor: \" + count);\n \n }", "public int counter (){\n return currentID;\n }", "public Happy_Number()\r\n\t{\r\n\t\tnumberHolder = new int[20];\r\n\t\tfor(int ii = 0; ii < numberHolder.length; ii++)\r\n\t\t{\r\n\t\t\tnumberHolder[ii] = 0;\r\n\t\t}\r\n\t}", "public void startCounter(){\n //keeps the counter value from the last time phone was unlocked\n lastPointsUnlocked = counter;\n if(!counterStarted) {\n timer = new Timer();\n //this timer will execute the code every intervalTime time\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n --counter;\n updateCounterView(null);\n //if counter reaches 0 stop counter\n if (counter <= 0) {\n updateCounterView(\"0\");\n MainActivity.setGameOn(false);\n timer.cancel();\n //if phone was unlocked for a while stop timer too\n } else if((lastPointsUnlocked - counter)>totalPoints/5 && !PhoneService.isPhoneLocked()) {\n System.out.println(\"Lost more than 1/5, bomb is deactivated\");\n timer.cancel();\n }\n }\n }, intervalTime, intervalTime);\n counterStarted = true;\n }\n }", "public int getCounter() {\r\n return counter;\r\n }", "public ConnectionCount(int counter) {\nthis.counter = counter;\n}", "public static void resetTestCount() {\n mTestCount = 0;\n }", "public int getCounter()\n {\n return counter;\n }", "public int ZERO() {\n return getInt(setting.ZERO);\n }", "private void inititalzeAnimalMatrixCounter() {\r\n\t\tCounterProperties cp = new CounterProperties();\r\n\t\tcp.set(AnimationPropertiesKeys.FILLED_PROPERTY, true);\r\n\t\tcp.set(AnimationPropertiesKeys.FILL_PROPERTY, Color.BLUE);\r\n\t\tcounter = lang.newCounter(mainMatrix);\r\n\t\tlang.newCounterView(counter, new Offset(200, 0, \"header\", AnimalScript.DIRECTION_NW), cp, true, true);\r\n\t}", "public void resetCounters() {\n setErrorCounter(0);\n setDelayCounter(0);\n }", "@Override public void init_loop() {\n loop_cnt_++;\n }", "public void zero();", "public int getCounter(){\n return counter;\n }", "public Builder clearCounter() {\n if (counterBuilder_ == null) {\n counter_ = null;\n onChanged();\n } else {\n counter_ = null;\n counterBuilder_ = null;\n }\n\n return this;\n }", "public static void performanceCountReset() { }", "ThreadCounterRunner() {}", "private void resetCount(){\r\n\t\t\tactiveAgent = 0;\r\n\t\t\tjailedAgent = 0;\r\n\t\t\tquietAgent = 0;\r\n\t\t}", "void setZeroStart();", "public void resetCount(View view) {\n\t\tcounterModel.resetCounter();\n\t\tcurrentCountTextView.setText(Integer.toString(counterModel.getCount()));\n\t}", "public void setlatercounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, 7).commit();\r\n\t}", "public void clearCount() {\n this.bitField0_ &= -3;\n this.count_ = 0;\n }", "public int getCounter() {\n return counter;\n }", "public void setCount(final int c) {\n\t\tcount = c;\n\t}", "public int counter()\n {\n if(count<=825){\n return count++;\n }\n else{ \n count = 0;\n return count;\n }\n }" ]
[ "0.8358166", "0.81692046", "0.8131097", "0.8131097", "0.798377", "0.78421444", "0.7815684", "0.77442557", "0.75088084", "0.74979615", "0.7315113", "0.7315113", "0.7215561", "0.7214368", "0.7127586", "0.7048207", "0.6983108", "0.6919233", "0.6916757", "0.6909741", "0.6894063", "0.6847489", "0.6769724", "0.66461164", "0.65661126", "0.6554731", "0.65459174", "0.6539322", "0.6508473", "0.64958745", "0.6492162", "0.64637756", "0.64573234", "0.6456575", "0.6419111", "0.64188826", "0.6398942", "0.63634974", "0.636238", "0.6352438", "0.63327885", "0.6299561", "0.6297474", "0.62806946", "0.62583923", "0.62571055", "0.62483025", "0.6241654", "0.62411493", "0.6240332", "0.62298346", "0.6214699", "0.6213144", "0.6166581", "0.6166581", "0.61608845", "0.6153623", "0.61411667", "0.6120037", "0.6119223", "0.60986465", "0.60974735", "0.60971904", "0.6092737", "0.60764694", "0.60311747", "0.6021319", "0.60039216", "0.5994251", "0.5991683", "0.5978854", "0.5978854", "0.59765816", "0.5963677", "0.5953753", "0.5952378", "0.59389585", "0.5919553", "0.59069514", "0.58966935", "0.5891934", "0.5888935", "0.5887172", "0.58794105", "0.5870345", "0.5869127", "0.58686763", "0.5867555", "0.5865414", "0.58609", "0.58535844", "0.58407414", "0.5837634", "0.58336824", "0.5833573", "0.58311206", "0.58307135", "0.58295804", "0.5828034", "0.5825574" ]
0.6070155
65
Initialize counter with initial value.
public ConnectionCount(int counter) { this.counter = counter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Counter(int init){\n \tvalue = init;\n }", "public Counter() {\r\n value = 0;\r\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "public Counter() {\r\n this.count = 0;\r\n }", "public void setinitialcounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, 0).commit();\r\n\t}", "public Counter()\n {\n this(0);\n }", "public myCounter() {\n\t\tcounter = 1;\n\t}", "public BasicCounter() {\n count = 0;\n }", "public Counter(int val) {\r\n value = val;\r\n }", "public myCounter(int startValue) {\n\t\tcounter = startValue;\n\t}", "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 }", "private final int initializeInt() {\n\t\treturn 0;\r\n\t}", "public Counter() {\n //this.max = max;\n }", "public void setCountToZero() {\r\n \r\n // set count to 0\r\n count = 0;\r\n }", "private static void setCounter() {++counter;}", "public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}", "public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}", "public Counter(Counter count) {\r\n value = count.value;\r\n }", "public Counter(int m) {\n this(DEFAULT_MIN_VALUE, m);\n }", "@Override\n public void setCounterToInitialAmount() {\n UserPreferences.sharedInstance().setEventId(null);\n //reset timer to normal recording time\n timeCounter = UserPreferences.sharedInstance().recordTime() * 1000;\n }", "public void ResetCounter()\r\n {\r\n counter.setCurrentValue(this.startValue);\r\n }", "public void setCounter(int value) { \n\t\tthis.count = value;\n\t}", "public Counter (int modulus) {\n count = 0;\n this.modulus = modulus;\n }", "public void initialize() {\r\n\t\tsetValue(initialValue);\r\n\t}", "public static void resetCount() {\n count = 1;\n }", "public Counter(int count)\n {\n this.setCount(count);\n }", "public void setInitialValue(int initialValue) {\n this.initialValue = initialValue;\n }", "public void setInitialValue(int initialValue) {\n this.initialValue = initialValue;\n }", "public void resetCount() {\n\t\tcount = 0;\n\t}", "public void setCounter(int counter) {\n this.counter = counter;\n }", "public void resetCount() {\n count = 0;\n }", "public void setCounter(int number){\n this.counter = number;\n }", "private SchedulerThreadCounter()\n\t{\n\t\tii_counter = 100;\n\t}", "public int getInitialValue()\n {\n return _init;\n }", "private void initCounts() {\n this.angry_count = findViewById(R.id.anger_count);\n this.fear_count = findViewById(R.id.fear_count);\n this.joyful_count = findViewById(R.id.joy_count);\n this.love_count = findViewById(R.id.love_count);\n this.sad_count = findViewById(R.id.sad_count);\n this.suprise_count = findViewById(R.id.suprise_count);\n\n this.updateCounts();\n }", "private void resetCounter() {\n // Obtain the most recent changelist available on the client\n String depot = parent.getDepot();\n Client client = Client.getClient();\n Changelist toChange = Changelist.getChange(depot, client);\n\n // Reset the Perforce counter value\n String counterName = parent.getCounter();\n Counter.setCounter(counterName, toChange.getNumber());\n }", "@Override\n public Integer reduceInit() { return 0; }", "public int getInitialValue() {\n return initialValue;\n }", "public int getInitialValue() {\n return initialValue;\n }", "public void setInitialValue(int initialValue) {\n if(initialValue <= 0) {\n initialValue = 1;\n }\n super.setInitialValue(initialValue);\n }", "public MoleculeCounter() {\r\n\t\tsetMolecule(\"\");\r\n\t\tsetComponent(\"\");\r\n\t\tsetState(\"\");\r\n\t\tsetCount(0);\r\n\t}", "public int getInitialValue() {\r\n\t\treturn initialValue;\r\n\t}", "public static int getCounter() {return counter;}", "public void set_counter(long value) {\n setUIntBEElement(offsetBits_counter(), 32, value);\n }", "public static void initializeCount(int[] count){\n\t\tif (count != null){\n\t\t\tfor (int i = 0; i < count.length; i++)\n\t\t\t\tcount[i] = 0;\n\t\t}\n\t}", "public BasicCalculator() {\n // Initialization here.\n // this.count = 0;\n\n }", "public void IncrementCounter()\r\n {\r\n \tsetCurrentValue( currentValue.add(BigInteger.ONE)); \r\n \r\n log.debug(\"counter now: \" + currentValue.intValue() );\r\n \r\n }", "public void setlatercounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, 7).commit();\r\n\t}", "@Test\n // begin method verifyInitialCount\n public void verifyInitialCount() {\n\n // 0. create a new click counter\n // 1. verify that the new counter's initial count is zero\n\n // 0. create a new click counter\n\n ClickCounter clickCounter = new ClickCounter();\n\n // 1. verify that the new counter's initial count is zero\n\n assert clickCounter.getCount() == 0;\n\n }", "public final void initialize() {\n initialize(0);\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 Int() {\n this(0);\n }", "@Override\n public void initialize(CounterInitializationContext context) {\n assertThat(context.getLeaf().getChildren()).isEmpty();\n\n Optional<Measure> measureOptional = context.getMeasure(NEW_LINES_TO_COVER_KEY);\n if (!measureOptional.isPresent()) {\n return;\n }\n this.values.increment((int) measureOptional.get().getVariation());\n }", "public HitCounter() {\n q = new ArrayDeque();\n PERIOD = 300;\n }", "public MyCounter()\n {\n counter = 0;\n \n this.setSize(100, 200);\n this.setTitle(\"My Counter\");\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n Container contentPane = getContentPane(); \n contentPane.setLayout(new BorderLayout());\n\n label = new JLabel(\"0\", SwingConstants.CENTER);\n label.setFont(new Font(\"serif\", Font.PLAIN, 24));\n add(label, BorderLayout.CENTER);\n\n button = new JButton(\"Click\");\n contentPane.add(button, BorderLayout.SOUTH);\n button.addActionListener(this);\n }", "public HitCounter() {\n q = new ArrayDeque();\n map = new HashMap();\n PERIOD = 300;\n hits = 0;\n }", "public void initializeCounters() {\n resetCounters();\n lastAd = tozAdCampaign.size() - 1;\n if (baseAd > lastAd) baseAd = lastAd;\n if (baseViewIndex > lastAd) baseViewIndex = lastAd;\n if (baseViewIndex < 0) baseViewIndex = 0;\n alignRefreshInterval();\n reInitializeCampaign = false;\n }", "public SynchronizedCounter(int count) {\n\t\tthis.count = count;\n\t}", "void reset() {\n count = 0;\n\n }", "public Counter(int min, int max) {\n this.min = min;\n this.max = max;\n value = min;\n }", "private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}", "public void setInital_value(int inital_value){\n this.inital_value= inital_value;\n }", "studentCounter(){ \n\t\tnumStudentInRoom = 0 ;\n\t}", "public HitCounter() {\n map = new HashMap<Integer, Integer>();\n }", "public PrimeCounter(long startValue) {\n\t\t\tnum = startValue;\n\t\t}", "@Override public void init_loop() {\n loop_cnt_++;\n }", "public void resetCount() {\n\t\tresetCount(lineNode);\n\t}", "public ConnectionCount() {\nthis(0);\n}", "public void setCount(final int c) {\n\t\tcount = c;\n\t}", "private void initializeStats() {\n for (Stat stat:Stat.values()) {\n stats.put(stat, initialValue);\n }\n }", "public static void resetIdCounter(){\n idCounter = 0;\n }", "public void incCounter()\n {\n counter++;\n }", "public void setInitialValue(int pipVal) {\r\n\t\tif (pipVal == 0) {\r\n\t\t\t// this is an ace\r\n\t\t\tthis.value = 11;\r\n\t\t} else if (pipVal >= 9) {\r\n\t\t\tthis.value = 10;\r\n\t\t} else {\r\n\t\t\tthis.value = pipVal + 1;\r\n\t\t}\r\n\t}", "public Int() {\n super(Expression.X_IS_UNDEFINED);\n this.value = 0;\n }", "public void reset() {\n\t\tthis.count = 0;\n\t}", "public void setInitialValue(int newInitialValue) {\n\t\tinitialValue = newInitialValue;\n\t}", "public void reset(){\n value = 0;\n }", "public AccumulatorNumber ()\n\t{ total = 0.0; }", "public void createCounters() {\n // COUNTERS CREATION //\n //create a new counter for the blocks.\n this.blockCounter = new Counter();\n //create a new counter for the blocks.\n this.ballCounter = new Counter();\n }", "public void reset() {\n\t\tcount = 0;\n\t}", "public ZeroCountDataWriter() {\n\t\tsuper(DataWriterType.ZEROCNTType);\n\t}", "private Count() {}", "private Count() {}", "public MyInteger( )\n {\n this( 0 );\n }", "public Happy_Number()\r\n\t{\r\n\t\tnumberHolder = new int[20];\r\n\t\tfor(int ii = 0; ii < numberHolder.length; ii++)\r\n\t\t{\r\n\t\t\tnumberHolder[ii] = 0;\r\n\t\t}\r\n\t}", "public MyInteger(){\n //initialize to 0\n Integer myint = new Integer(0);\n }", "public IntHolder() {\r\n\t}", "private void inititalzeAnimalMatrixCounter() {\r\n\t\tCounterProperties cp = new CounterProperties();\r\n\t\tcp.set(AnimationPropertiesKeys.FILLED_PROPERTY, true);\r\n\t\tcp.set(AnimationPropertiesKeys.FILL_PROPERTY, Color.BLUE);\r\n\t\tcounter = lang.newCounter(mainMatrix);\r\n\t\tlang.newCounterView(counter, new Offset(200, 0, \"header\", AnimalScript.DIRECTION_NW), cp, true, true);\r\n\t}", "protected void setNumbertoZero() {\n\t\tnumber = 0;\n\t}", "public TestMe()\r\n/* 11: */ {\r\n/* 12:10 */ this.myNumber = (instanceCounter++);\r\n/* 13: */ }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "public void setCount(int value) {\n this.count = value;\n }", "static IterV<String, Integer> counter() {\n return cont(count.f(0));\n }", "@Override\n\tpublic void initialize() {\n\t\tthis.begin = System.currentTimeMillis();\n\t\taccumulatorController.setState(AccumulatorState.EJECTING);\n\t}", "public IntHolder( final int value ) {\r\n\t\tthis.value = value;\r\n\t}", "public void reset() {\n/* 54 */ this.count = 0;\n/* 55 */ this.totalTime = 0L;\n/* */ }", "public static void setidCounter(int a)\n\t{\n\t\tidCounter = a;\n\t}", "public void set_count(int c);" ]
[ "0.84536994", "0.82489026", "0.80667907", "0.80667907", "0.7876712", "0.7799519", "0.7646212", "0.76219726", "0.74797875", "0.7460013", "0.72711045", "0.72573507", "0.70915824", "0.70557904", "0.7021853", "0.7000994", "0.696695", "0.696695", "0.68213314", "0.6814222", "0.675783", "0.67570734", "0.67397547", "0.6697506", "0.6648394", "0.66391194", "0.6632066", "0.65536195", "0.65536195", "0.65529835", "0.65117097", "0.6481283", "0.6474657", "0.6356294", "0.6340461", "0.6331584", "0.63020754", "0.6293307", "0.62820023", "0.62820023", "0.62578267", "0.6248487", "0.6247229", "0.62070054", "0.62068707", "0.61957926", "0.6179158", "0.61694646", "0.61637956", "0.6153196", "0.61493707", "0.612928", "0.611487", "0.61067057", "0.6105313", "0.6101089", "0.6091923", "0.6089545", "0.608865", "0.6083478", "0.6066445", "0.6029768", "0.6005458", "0.59577376", "0.59409255", "0.59388554", "0.59333736", "0.59210503", "0.59201986", "0.5911269", "0.5904274", "0.58847696", "0.58722377", "0.58658475", "0.58650845", "0.58606035", "0.5860019", "0.58539575", "0.5839478", "0.5833426", "0.58294034", "0.58262", "0.5822787", "0.5822787", "0.5804877", "0.5798892", "0.5793942", "0.5783635", "0.5783213", "0.5773467", "0.5761221", "0.5749286", "0.5749286", "0.5749286", "0.574614", "0.57455385", "0.5741735", "0.5737437", "0.57305247", "0.5725029" ]
0.5838852
79
Retrieve current value of counter.
public int getCounter() { return this.counter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCurrentCounter() {\n return currentCounter;\n }", "public BigInteger getCurrentValue()\r\n { \t\r\n \tlog.debug(\"counter: \" + currentValue.intValue() );\r\n return this.currentValue;\r\n }", "public static int getCounter() {return counter;}", "public Integer getCounter() {\n return counter;\n }", "private int getCurrentValue()\n {\n return\n // Overall wait time...\n _countdownValue -\n // ...minus the time we waited so far.\n (int)(_clock.currentTime() - _startWait);\n }", "public int getCurrentValue() {\n\t\treturn this.currentValue;\n\t}", "public int getCounter()\n {\n return counter;\n }", "public int getCounter() {\r\n return counter;\r\n }", "public int getCounter() {\n return counter;\n }", "public Result getCurrentValue() throws IOException, InterruptedException {\n return value;\n }", "public Integer getCurrentValue() {\n return currentValue;\n }", "public Integer getCurrentValue() {\n return currentValue;\n }", "@Override\n\tpublic int getCounter() {\n\t\treturn counter;\n\t}", "public int getcounter() {\n\t\treturn counter;\r\n\t}", "public int getCounter(){\n return counter;\n }", "@Override\n public Integer get() {\n return ++counter;\n }", "public Integer getCurrent() {\n return this.current;\n }", "public AtomicLong getCounter() {\n return counter;\n }", "public long getCurrent() {\n return current;\n }", "@Override\r\n\tpublic Text getCurrentValue() throws IOException, InterruptedException {\n\t\treturn this.value;\r\n\t}", "public String getCounter() {\n counter = Integer.valueOf(counterInt++).toString();\n return counter;\n }", "public io.dstore.values.IntegerValue getCounter() {\n return counter_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : counter_;\n }", "public io.dstore.values.IntegerValue getCounter() {\n if (counterBuilder_ == null) {\n return counter_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : counter_;\n } else {\n return counterBuilder_.getMessage();\n }\n }", "public Number getValue() {\n return currentVal;\n }", "public long getCount() {\n return counter.get();\n }", "public Short getCounter()\n {\n return counter;\n }", "public long get_counter() {\n return (long)getUIntBEElement(offsetBits_counter(), 32);\n }", "@Override\r\n\tpublic long getCurrent() {\n\t\treturn 0;\r\n\t}", "public int nextValue() {\n\t\tint temp = counter;\n\t\tcounter++;\n\t\treturn temp;\n\t}", "public int getValue() {\n return value_;\n }", "public int getValue() {\n return value_;\n }", "String getCurrentValue();", "public int getValue() {\n return value_;\n }", "public int getValue () {\n return value;\n }", "public int getValue() {\n return _value;\n }", "public int getValue() {\n return value_;\n }", "public int counter (){\n return currentID;\n }", "public int getCurrentValue() throws DfException {\n\t\tfinal String valueStr = object.getString(CURRENT_VALUE);\n\t\tfinal int value = Integer.parseInt(valueStr);\n\t\treturn value;\n\t}", "public long getValue()\n {\n return itsValue;\n }", "public int value() {\n return value;\n }", "public int getValue()\n {\n return value;\n }", "public int getValue()\r\n {\r\n return value;\r\n }", "public int getValue() {\r\n return value;\r\n }", "public int getValue() {\r\n return value;\r\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n\t\treturn _value;\n\t}", "public int getValue() {\r\n return value;\r\n }", "@Override\r\n public int intValue() {\r\n return (int) this.m_current;\r\n }", "public int getValue()\n {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\r\n return Value;\r\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue() \n {\n return value;\n }", "public int value() {\n return this.value;\n }", "public final int getValue() {\n return mValue;\n }", "public int getValue(){\n\t\treturn value;\n\t}", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue ()\r\n\t{\r\n\t\treturn (m_value);\r\n\t}", "public int getValue(){\n return this.value;\n }", "public int value() \n {\n return value;\n }", "public int getValue() {\r\n\t\treturn this.value;\r\n\t}", "public int getValue() {\r\n\t\treturn this.value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\n return mValue;\n }", "public int getValue() {\n return m_value;\n }", "io.dstore.values.IntegerValue getCounter();", "public int value() {\r\n\t\treturn value;\r\n\t}", "public int getValue() {\n return mValue;\n }" ]
[ "0.7823021", "0.77727664", "0.7639355", "0.7637431", "0.75875956", "0.7545277", "0.7529167", "0.7495119", "0.7438356", "0.73080444", "0.7292689", "0.7292689", "0.72879046", "0.7262293", "0.72340596", "0.7207919", "0.719842", "0.71980405", "0.71377707", "0.7082053", "0.7073699", "0.70317835", "0.7012053", "0.699097", "0.6970839", "0.6912321", "0.68287814", "0.68107367", "0.67827266", "0.67799234", "0.67799234", "0.67456275", "0.6739183", "0.6733979", "0.6732842", "0.67300665", "0.672026", "0.66952693", "0.6689257", "0.66870207", "0.66862184", "0.6681752", "0.667293", "0.66716033", "0.6666137", "0.6666137", "0.6666137", "0.6666137", "0.6666137", "0.6666137", "0.6665601", "0.6661001", "0.665543", "0.6654047", "0.66475004", "0.66475004", "0.66429484", "0.6641292", "0.6641292", "0.6641292", "0.6641292", "0.6641292", "0.6641292", "0.6641292", "0.6641292", "0.6641292", "0.6641292", "0.6641292", "0.6641292", "0.6641292", "0.6641292", "0.6641292", "0.6635676", "0.6630884", "0.6621872", "0.6608173", "0.66062576", "0.6601079", "0.6597123", "0.6597123", "0.6597123", "0.6597123", "0.6596789", "0.6593647", "0.65876865", "0.65812004", "0.65812004", "0.65797967", "0.65797967", "0.65797967", "0.65797967", "0.65797967", "0.65797967", "0.65797967", "0.65797967", "0.6579181", "0.656916", "0.6568089", "0.6567737", "0.6560984" ]
0.679187
28
Add the counter when new connection is established.
public synchronized void add() { counter += 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void incrConnectionCount() {\n connectionCount.inc();\n }", "public void incrementNumConnects() {\n this.numConnects.incrementAndGet();\n }", "private void countConnectingSocket() {\n \t\tcurrentlyConnectingSockets.incrementAndGet();\n \t}", "public void incrementClients() {\n\t\tconnectedClients.incrementAndGet();\n\t}", "private synchronized static void incrementNumberOfOpenSockets() {\r\n\r\n\t\tnumberOfOpenSockets++;\r\n\t}", "public synchronized void increaseUsersConn() {\r\n\t\tusersConn++;\r\n\t}", "private void updateNumberOfConnections(int delta)\n\t{\n\t\tint count = numberOfConnections.addAndGet(delta);\t\t\n\t\tLOG.debug(\"Active connections count = {}\", count);\n\t}", "public ConnectionCount(int counter) {\nthis.counter = counter;\n}", "public void incrementNumDisconnects() {\n this.numDisconnects.incrementAndGet();\n }", "public static int getConnectionCount()\r\n {\r\n return count_; \r\n }", "public int connectionCount()\n {\n return _connectionCount;\n }", "public static void increaseNumberOfClients()\n {\n ++numberOfClients;\n }", "public synchronized void incrementClients()\r\n\t{\r\n\t\tnumberOfClients++;\r\n\t}", "void onConnectionAdded(SocketConnection connection);", "public void addConnection(Connection connection) {\n connection.start();\n connections.put(keyCounter, connection);\n keyCounter++;\n }", "private void countConnectFinished() {\n \t\tcurrentlyConnectingSockets.decrementAndGet();\n \t\tsynchronized (this) {\n \t\t\tthis.notifyAll();\n \t\t}\n \t}", "int getTotalCreatedConnections();", "private synchronized void incrNumCurrentClients() {\n\t\t\tthis.numCurrentClients++;\n\t\t\tthis.numTotalClients++; // only increases, never decreases\n\t\t}", "@Override\r\n\tpublic int getConnectionsCount() {\r\n\t\treturn currentConnections.get();\r\n\t}", "@Override\n public void onOpen(WebSocketConnection connection) {\n System.out.println(\"ClientConnected!\");\n clients.add(connection);\n projectIdReference.add(\"\");\n connectionCount++;\n }", "@Override\n public void addNew(int latency) {\n count.getAndIncrement();\n }", "@Override\n public void addConnection(Connection connection) {\n Connection originConn = this.connectionPoolTable.get(connection.getUniqueKey());\n if(originConn == null){\n this.connectionPoolTable.put(connection.getUniqueKey(),connection);\n connectionNumbers.incrementAndGet();\n }else {\n originConn.increaseRef();\n }\n\n }", "int getConnectionsCount();", "public void addConnection(Integer node) {\n\t\t\n\t\tconnections.add(node);\n\t\tthis.d++;\n\t}", "void incrementAddedCount() {\n addedCount.incrementAndGet();\n }", "@Override\n public int getNumConnections()\n {\n return connections.size();\n }", "public int numConnections(){\n return connections.size();\n }", "public int getTotalConnections()\n {\n // return _connections.size();\n return 0;\n }", "public long getConnectionCount() {\n return connectionCount.getCount();\n }", "int getConnectionCount();", "public static void resetConnectionCounts() {\n CREATED_TCP_CONNECTIONS.set(0);\n CREATED_UDP_CONNECTIONS.set(0);\n }", "public void addCount()\n {\n \tcount++;\n }", "private void handleConnection(Socket socket) throws IOException{\n \n if (isMonitoringEnabled()) {\n getGlobalRequestProcessor().increaseCountOpenConnections();\n getPipelineStat().incrementTotalAcceptCount();\n }\n\n getReadBlockingTask(socket).execute();\n }", "public void incrementNumBindRequests() {\n this.numBindRequests.incrementAndGet();\n }", "protected void connectionEstablished() {}", "protected static synchronized long getNextConnectionAttemptGlobalCounter() {\n connectionAttemptsGlobalCounter++;\n if (connectionAttemptsGlobalCounter < 0) {\n connectionAttemptsGlobalCounter = 1;\n }\n return connectionAttemptsGlobalCounter;\n }", "private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}", "public int manyConnections() {\n\t\tint ammound = 0;\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(this.get(i).clientAlive) {\n\t\t\t\tammound++;\n\t\t\t}\n\t\t\tSystem.out.println(\"Ist Client Nr. \" + i + \" frei? \" + !this.get(i).isAlive());\n\t\t}\n\t\treturn ammound;\n\t\t\n\t}", "void connectionCreated();", "void incrementConnectionLevel(Integer requestedIDNumber, int newConnectionLevel) {\n if (connections.getConnection(requestedIDNumber) != null) {\n connections.getConnection(requestedIDNumber).connectionLevel += newConnectionLevel;\n }\n }", "private void decrConnectionCount() {\n connectionCount.dec();\n }", "public static synchronized long getConnectionAttemptsGlobalCounter() {\n return connectionAttemptsGlobalCounter;\n }", "public int getNumOfConnections() {\r\n\t\treturn numOfConnections;\r\n\t}", "public int getNumConnects() {\n\t\treturn numConnects;\n\t}", "public void onConnectionClosed() {\r\n\t\tcurrentConnections.decrementAndGet();\r\n\t}", "private void generateConnCookie(ActionRequest req) {\n\t\tSBUserRole role = (SBUserRole) req.getSession().getAttribute(Constants.ROLE_DATA);\n\t\tint count = getMemeberConnectionCount(RezDoxUtils.getMemberId(req), role != null ? role.getRoleId() : \"\");\n\t\tlog.debug(\"found \" +count+ \" connections\");\n\t\t//set the total in a cookie. This may be excessive for repeat calls to the rewards page, but ensures cached data is flushed\n\t\tCookieUtil.add(req, CONNECTION_COOKIE, String.valueOf(count), \"/\", -1);\n\t}", "private void addClient () {\n ArrayList<String> info = loadOnePlayerInfo();\n Ntotal++;\n Nnow++;\n\n System.out.println(\"Vai ser inicializado o utilizador \" + info.get(0));\n initThread(info.get(0), info.get(1));\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "@Override\n public void initialize() {\n counter = 0;\n }", "public void increasecounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, counter + 1).commit();\r\n\t}", "public void addConnectionState() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"connection-state\",\n null,\n childrenNames());\n }", "ConnectionState( final C conn ) {\n this.connection = conn ;\n\n busyCount = 0 ;\n expectedResponseCount = 0 ;\n reclaimableHandle = null ;\n }", "public void incrementPacketNumber()\n {\n nextPacketNumber++;\n }", "public void counterAddup(){\n\t\tfor (int i=0; i<window.size(); i++){\n\t\t\tif ( window.get(i).acked == false ){\n\t\t\t\twindow.get(i).counter = window.get(i).counter+1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn ;\n\t}", "public void connectTo( Wire w ) {\n inCount = inCount + 1;\n }", "private void updateConnections(NodeRecord currentNode, NodeRecord nextNode) {\n currentNode.incrementConnections();\n currentNode.decrementConnectionsToInitiate();\n\n nextNode.incrementConnections();\n nextNode.decrementConnectionsToInitiate();\n }", "private void countSocketClose() {\n \t\tcurrentlyOpenSockets.decrementAndGet();\n \t\tsynchronized (this) {\n \t\t\tthis.notifyAll();\n \t\t}\n \n \t}", "public void setNumConnections(int connections) {\n\t\tnumConnects = connections;\n\t}", "public ConnectionCount() {\nthis(0);\n}", "private void eventLookupStarted() {\n\t\tsynchronized(lookupCounterMutex) {\n\t\t\tlookupCounter++;\n\t\t}\n\t}", "public myCounter() {\n\t\tcounter = 1;\n\t}", "public synchronized Connection incomingConnection(Socket s) throws IOException {\n\n Connection c;\n c = new Connection(s, count++);\n connections.add(c);\n System.out.println(\"Add a new connection!\");\n return c;\n }", "private synchronized void updateLogCount() {\n this.logCount++;\n }", "private synchronized void incrementCount()\n\t{\n\t\tcount++;\n\t}", "private void updateSessionCounter(HttpSessionEvent httpSessionEvent){\n httpSessionEvent.getSession().getServletContext()\r\n .setAttribute(\"activeSession\", counter.get());\r\n LOG.info(\"Total active session are {} \",counter.get());\r\n }", "synchronized void addConnected(SocketIoSocket socket) {\n mConnectedSockets.put(socket.getId(), socket);\n }", "public void incrementNumAddRequests() {\n this.numAddRequests.incrementAndGet();\n }", "@Override\n\tpublic void onOpen(org.java_websocket.WebSocket conn,\n\t\t\tClientHandshake handshake) {\n\t\t System.out.println(\"有人连接Socket conn:\" + conn);\n\t // l++;\n\t\t logger.info(\"有人连接Socket conn:\" + conn.getRemoteSocketAddress());\n\t\t l++;\n\t\t\n\t}", "public void incCounter()\n {\n counter++;\n }", "@Override\n public int getNumOpenConnections() {\n return allChannels.size() - 1;\n }", "public int getConnectionCount() {\n int i;\n synchronized (this.bindings) {\n i = 0;\n for (IntentBindRecord intentBindRecord : this.bindings) {\n i += intentBindRecord.connections.size();\n }\n }\n return i;\n }", "public void incrementCount() {\n\t\tcount++;\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 }", "public void newClientConnection (ServerSocket client) {\n this.connectedClients.add(client);\n }", "public Status connect()\n {\n return connect(5.0);\n }", "void incrementAccessCounterForSession();", "public void addConnectionMonitor(AtomicBoolean die, long checkInterval) {\n new ConnectionMonitor(die, checkInterval).start();\n }", "public void incrementCount() {\n count++;\n }", "@Override\n\tpublic void listenerStarted(ConnectionListenerEvent evt) {\n\t\t\n\t}", "public void addConnectionListener(ConnectionListener listener);", "@Override\r\n\tpublic void afterConnectionEstablished(WebSocketSession session) throws Exception {\r\n\t\tlogger.info(\"{} conntected\", session.getId());\r\n\t\tsessions.add(session); \t\r\n\t\t\r\n\t\t/*String non = \"비회원\" + a;\r\n\t\tSystem.out.println(non);\r\n\t\tsessions.put(non, session);\r\n\t\ta++;*/\r\n\t}", "public void peersAdded(List<Response> peerList) {\n peerList.stream()\n .filter(peer -> connectionMap.get(peer.getString(\"address\")) == null &&\n !peer.getString(\"version\").isEmpty())\n .forEach(peer -> {\n connectionList.add(peer);\n connectionMap.put(peer.getString(\"address\"), peer);\n if (State.fromCode(peer.getInt(\"state\")) == State.CONNECTED)\n activeCount++;\n });\n fireTableDataChanged();\n }", "protected void ping() {\n\t\tpingCount ++;\n\t\tif(pingCount > 5) {\n\t\t\tlog.debug(\"pingCount is exceed, so close this connection.\");\n\t\t\tclose();\n\t\t\treturn;\n\t\t}\n\t\tsendData(\"<ping />\");\n\t}", "@Override\n public void afterConnectionEstablished(WebSocketSession session) {\n System.out.println(\"SocketController: afterConnectionEstablished rad 75\");\n socketService.addSession(session);\n }", "public void incrementRetryCount() {\n this.retryCount++;\n }", "public void setNumOfConnections(int num) {\r\n\t\tnumOfConnections = num;\r\n\t}", "public void incrMetaCacheNumClearServer() {\n metaCacheNumClearServer.inc();\n }", "private static void setCounter() {++counter;}", "public void addCount() {\n \t\tdupCount++;\n \t}", "public void incrementActiveRequests() \n {\n ++requests;\n }", "public void increment() {\n mNewNotificationCount.setValue(mNewNotificationCount.getValue() + 1);\n }", "@Override\n\tpublic void sessionCreated(HttpSessionEvent event) {\n\n\t\tHttpSession session = event.getSession();\n\t\tServletContext application = session.getServletContext();\n\t\tInteger online = (Integer) application.getAttribute(\"online\");\n\t\tif(online != null){\n\t\t\tonline++;\n\t\t}else{\n\t\t\tonline = 1;\n\t\t}\n\t\tapplication.setAttribute(\"online\", online);\n\t}", "void updateRmiClientsCount() {\n int noOfClientsConnected = 0;\n\n String[] connectionIds = rmiConnector.getConnectionIds();\n\n if (connectionIds != null) {\n noOfClientsConnected = connectionIds.length;\n }\n\n logger.info(\"No. of RMI clients connected :: {}\", noOfClientsConnected);\n\n AdminDistributedSystemJmxImpl adminDSJmx = (AdminDistributedSystemJmxImpl) system;\n\n adminDSJmx.setRmiClientCountZero(noOfClientsConnected == 0);\n }", "public synchronized void receive() {\n inCountStat.received();\n inCount++;\n }", "public void mo34037a() {\n if (this.f30043c == 0) {\n this.f30042b.registerReceiver(this, new IntentFilter(\"android.net.conn.CONNECTIVITY_CHANGE\"));\n }\n this.f30043c++;\n }", "public int addNewUser(ConnectionHandler<T> connection) {\n activeUsers.put(Integer.valueOf(increaseId()), connection);\n return userId -1;\n }", "@Override\n protected void connectionEstablished()\n {\n peer.resetConnectionClosed();\n\n // send our handshake directly as it doesn't fit into peer message\n // and there is always space in send buffer on new connection\n //enqueue(pmCache.handshake(torrent.getTorrentId(), torrent.getClientId()));\n }", "@Override\r\n\tpublic void onChannelOnlineCount(LinkedHashMap<String, Integer> online)\r\n\t{\n\t\tif (channelListener != null)\r\n\t\t{\r\n\t\t\tchannelListener.onChannelOnlineCount(online);\r\n\t\t}\r\n\t}", "public void incCounter(){\n counter++;\n }", "public void counter(Topology tp, Node node)\n {\n index[x] = node.getID();\n x++;\n if (x > 1)\n {\n addlink(tp);\n }\n }", "@Override\r\n\t\tpublic void onConnect(Connection connection) {\n\r\n\t\t}" ]
[ "0.80809563", "0.70108926", "0.6881493", "0.6714142", "0.6681261", "0.6636845", "0.6630521", "0.66214406", "0.65668577", "0.64999324", "0.6466947", "0.6349471", "0.63469005", "0.6325268", "0.62541187", "0.6215384", "0.62012416", "0.61710906", "0.6148143", "0.6134893", "0.6132632", "0.61289626", "0.6111845", "0.6111468", "0.6080863", "0.60510385", "0.6047588", "0.60090506", "0.60067415", "0.5970399", "0.5945674", "0.5854614", "0.5853675", "0.5851518", "0.5849512", "0.58365756", "0.58106065", "0.5808909", "0.57964367", "0.57906425", "0.57797295", "0.574295", "0.5738129", "0.57223266", "0.57123923", "0.56873083", "0.5683524", "0.5653048", "0.5653048", "0.56466573", "0.56464696", "0.56333494", "0.56222224", "0.5613632", "0.5595613", "0.5580451", "0.55731636", "0.55566645", "0.5556254", "0.5548531", "0.5539425", "0.5535321", "0.5530256", "0.55295706", "0.5527588", "0.55123615", "0.55049646", "0.5489817", "0.5481432", "0.5481173", "0.54755294", "0.54723585", "0.547213", "0.5469529", "0.54620355", "0.5453704", "0.5453668", "0.5436996", "0.5435595", "0.54266584", "0.5425114", "0.54240036", "0.5420697", "0.5412794", "0.5408273", "0.540083", "0.53978753", "0.5394802", "0.5391482", "0.53892004", "0.5388594", "0.5372949", "0.5370552", "0.5370205", "0.53630716", "0.5341995", "0.5341787", "0.53304625", "0.53301424", "0.53282684", "0.532524" ]
0.0
-1
Delete the counter when a connection is terminated.
public synchronized void delete() { counter -= 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void decrConnectionCount() {\n connectionCount.dec();\n }", "public void onConnectionClosed() {\r\n\t\tcurrentConnections.decrementAndGet();\r\n\t}", "private void handleClosedConnection() {\n final int currentConnections = concurrentConnections.decrementAndGet();\n\n log.debug(\"[Vertx-EventMetricsStream] - Current Connections - {} / Max Connections {}\", currentConnections, maxConcurrentConnections.get());\n }", "public void destroy() {\n //Write hit count to DB!!\n }", "public void decrRefCounter() {\n\t\tthis.refCounter--;\n\t}", "public synchronized void connectionClosed() {\n connCount--;\n Waiter waiter = getNextWaiter();\n if (waiter != null) {\n // There's a waiter - so it can have a new connection\n createNewConnection(waiter);\n } else if (connCount == 0) {\n // No waiters and no connections - remove the ConnQueue\n connQueues.remove(address);\n }\n }", "private void decrementCounter()\r\n\t{\r\n\t\tthis.counter--;\r\n\t}", "public static void resetConnectionCounts() {\n CREATED_TCP_CONNECTIONS.set(0);\n CREATED_UDP_CONNECTIONS.set(0);\n }", "public void exit() {\n\t\tJWebSocketTokenClient lClient;\n\t\tfor (int lIdx = 0; lIdx < mFinished; lIdx++) {\n\t\t\tlClient = mClients[lIdx];\n\t\t\tlClient.removeTokenClientListener(this);\n\t\t\ttry {\n\t\t\t\tmLog(\"Closing client #\" + lIdx + \" on thread: \" + Thread.currentThread().hashCode() + \"...\");\n\t\t\t\tlClient.close();\n\t\t\t\tThread.sleep(20);\n\t\t\t} catch (Exception lEx) {\n\t\t\t\tmLog(\"Exception: \" + lEx.getMessage() + \". Closing client #\" + lIdx + \"...\");\n\t\t\t}\n\t\t}\n\t}", "@OnClose\n public void end() {\n listener.connectionTerminated();\n Logger.getGlobal().info(\"Connection with \" \n + nickname + \" terminated.\\n\"); //$NON-NLS-1$ //$NON-NLS-2$\n }", "@Override\n\tpublic void finalize() {\n\t\tcontext.unbindService(CONNECTION);\n\t}", "@Override\n\tpublic final void destroy() {\n\t\tsynchronized (this.connectionMonitor) {\n\t\t\tif (connection != null) {\n\t\t\t\tthis.connection.destroy();\n\t\t\t\tthis.connection = null;\n\t\t\t}\n\t\t}\n\t\treset();\n\t}", "private void countSocketClose() {\n \t\tcurrentlyOpenSockets.decrementAndGet();\n \t\tsynchronized (this) {\n \t\t\tthis.notifyAll();\n \t\t}\n \n \t}", "@Override\n public synchronized void close() {\n mOpenConnections--;\n if (mOpenConnections == 0) {\n super.close();\n }\n }", "@Override\n public synchronized void close() {\n mOpenConnections--;\n if (mOpenConnections == 0) {\n super.close();\n }\n }", "public void decrementClients() {\n\t\tconnectedClients.decrementAndGet();\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tunbindService(connection);\n\t}", "public void disconnect() {\n watchDog.terminate();\n synchronized (sync) {\n if (!connections.isEmpty()) {\n while (connections.size() > 0) {\n ThreadConnection tconn = connections.pop();\n try {\n tconn.conn.rollback();\n tconn.conn.close();\n } catch (SQLException e) {\n }\n }\n }\n }\n this.setChanged();\n this.notifyObservers(\"disconnect\");\n }", "public static void disconnect() {\n \t\tconnPool.stop();\n \t}", "boolean unregister(Counter counter);", "public void onDestroy() {\n BroadcastReceiver broadcastReceiver = this.mConnectionReceiver;\n if (broadcastReceiver != null) {\n unregisterReceiver(broadcastReceiver);\n }\n Handler handler = this.mHandler;\n if (handler != null) {\n handler.removeCallbacksAndMessages((Object) null);\n }\n NetworkDiagnosticsActivity.super.onDestroy();\n }", "public void terminate() {\n config.closeConnection();\n }", "@ForOverride\n public void onTerminated(InternalSubchannel internalSubchannel) {\n }", "private void onResponseTimerTick()\r\n {\r\n EneterTrace aTrace = EneterTrace.entering();\r\n try\r\n {\r\n cleanAfterConnection(true, true);\r\n }\r\n finally\r\n {\r\n EneterTrace.leaving(aTrace);\r\n }\r\n }", "protected void connectionClosed() {}", "void onConnectionRemoved(SocketConnection connection);", "public void cleanup() throws ResourceException {\n checkIfDestroyed();\n\n logger.fine(\" 8.- (\" + myId + \") ManagedConnection::cleanup called\");\n\n invalidateJavaMailConnections();\n }", "public void EndTimer() {\n\t\tCount.End();\n\t}", "@Override\n public void onDestroy() {\n mClient.terminate();\n mClient = null;\n \n super.onDestroy();\n }", "public void terminate() {\n terminated = true;\n }", "void decrementAddedCount() {\n addedCount.decrementAndGet();\n }", "private synchronized static void decrementNumberOfOpenSockets() {\r\n\r\n\t\tnumberOfOpenSockets--;\r\n\t}", "public void destroy() {\n \ttry{\n \t\tconn1.close();\n \t\tSystem.out.println(\"close\");\n \t}catch(Exception e)\n \t{\n \t\tSystem.out.println(e);\n \t}\n }", "private void countConnectFinished() {\n \t\tcurrentlyConnectingSockets.decrementAndGet();\n \t\tsynchronized (this) {\n \t\t\tthis.notifyAll();\n \t\t}\n \t}", "void resetMessageCounter();", "public void destroy() throws ResourceException {\n if (destroyed)\n return;\n\n logger.fine(\" 9.- (\" + myId + \") ManagedConnection::destroy called\");\n destroyed = true;\n\n testCounter--;\n\n invalidateJavaMailConnections();\n\n try {\n store.closeStore();\n } catch (Exception e) {\n logger.warning(\"ManagedConnectionImpl::destroy threw exception: \"\n + e);\n throw new ResourceException(e.getMessage());\n }\n\n }", "@Override\n\tpublic void deinit() throws Exception{\n\t\tfor (Map.Entry<Integer, ServerConnection> entry : pidToConnMap.entrySet()) {\n\t\t\tConnection conn = entry.getValue();\n\t\t\tconn.close();\n\t\t}\n\t\tsuper.deinit();\n\t}", "public final void deleteIfZeroRefCount() {\n }", "public void cleanup()\n {\n \tsuper.cleanup();\n _channelHandler.cleanup();\n }", "@Override\n\tpublic void onDestroy() {\n\t\tunbindService(serviceConnection);\n\t\tsuper.onDestroy();\n\t}", "@Test\n public void testCounterReportedOnClose() throws IOException {\n NameContext step = createStep(\"A\");\n tracker.enter(step);\n tracker.takeSample(10); // half of time attributed to initial IDLE execution\n assertThat(getCounter(step), nullValue());\n\n tracker.exit();\n tracker.takeSample(10); // half of time attributed to final IDLE execution\n assertThat(getCounterValue(step), equalTo(distribution(10)));\n }", "public void destroy() {\n this.deleteObservers();\n timer.stop();\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 }", "public synchronized void decrementClients()\r\n\t{\r\n\t\tnumberOfClients--;\r\n\t}", "@Override\n public void onEndRetrieval() {\n try {\n logger.debug(\"MetricsReceiver onEndRetrieval.\");\n if(!isResetConn){\n logger.info(\"onEndRetrieval PerformanceMetricsCountForEachRun: \" + metricsCount);\n }\n this.out.close();\n this.client.close();\n\n } catch (IOException ex) {\n logger.error(\"Can't close resources.\", ex);\n }\n }", "protected void finalize(){\n \ttry {\n\t\t\tdatabase.doDisconnect();\n\t\t} catch (SQLException e) {\n\t\t}\n }", "public void onDestroy() {\n super.onDestroy();\n Object object = this.mLock;\n synchronized (object) {\n Iterator<MediaSession2> iterator = this.getSessions().iterator();\n do {\n if (!iterator.hasNext()) {\n this.mSessions.clear();\n this.mNotifications.clear();\n // MONITOREXIT [2, 3, 4] lbl9 : MonitorExitStatement: MONITOREXIT : var1_1\n this.mStub.close();\n return;\n }\n this.removeSession(iterator.next());\n } while (true);\n }\n }", "public void cleanUp() { listener = null; }", "@Override\n public void onConnectionTerminated(Connection connection, String reason) {\n System.err.println(\"onConnectionTerminated \" + connection.getPid() + \" Reason \" + reason);\n }", "public void markConnectionStateDelete() throws JNCException {\n markLeafDelete(\"connectionState\");\n }", "private void cleanup() throws RemoteException {\n log.info(\"GP run complete.\");\n running = false;\n\n log.info(\"Releasing clients.\");\n for (IClient client : clients)\n client.release();\n clients.clear();\n\n writeCheckpoint(\"final_generation\");\n }", "@Override\r\n\tpublic void onTerminate() {\n\t\tsuper.onTerminate();\r\n\t}", "private void countDown() {\r\n\t\t\tref.get().countDown();\r\n\t\t}", "public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}", "public static void resetCounter() {\n\t\t\tcount = new AtomicInteger();\n\t\t}", "public void terminateSession(){\n\t\t\t\n\t\t\tsendMessage2Client(\"Session Terminated\");\n\t\t\t\n\t\t\tdb.getRecord(keyname).setClientStatus(\"TERMINATED\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tccSocket.close();\n\t\t\t\t\t\t\t\t\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\tdb.getRecord(keyname).setClientStatus(\"LOST\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "public synchronized void connectionClosed(Connection con) {\n if (!term) connections.remove(con);\n }", "public void cleanup() {\n endtracking();\n\n //sends data to UI\n MainActivity.trackingservicerunning = false;\n MainActivity.servicestopped();\n\n //stops\n stopSelf();\n }", "public synchronized void connectionClosed(ClientConnection conn) {\n synchronized (queue) {\n allConnections.remove(conn);\n availableConnections.remove(conn);\n queue.connectionClosed();\n }\n }", "@GuardedBy(\"lock\")\n public void handleTermination() {\n this.channelLogger.log(ChannelLogger.ChannelLogLevel.INFO, \"Terminated\");\n this.syncContext.executeLater(new Runnable() {\n public void run() {\n InternalSubchannel.this.callback.onTerminated(InternalSubchannel.this);\n }\n });\n }", "protected void kill() {\n disconnect = true;\n }", "protected void processDisconnection(){}", "private void cleanUp() {\n timer_.cancel();\n countdownTask_.cancel();\n vibrator_.cancel();\n }", "void handleSubchannelTerminated() {\n executorPool.returnObject(executor);\n terminatedLatch.countDown();\n }", "@Override\n public void close() {\n count = 100;\n }", "public void closeConnection(){\r\n\t\t_instance.getServerConnection().logout();\r\n\t}", "void handleConnectionClosed();", "@Override\n\tpublic void stopCounter() {\n\n\t\tstop = true;\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tunbindService(mServiceConn);\n\t}", "public boolean remove(HttpConnection connection) {\n/* 92 */ TimeValues times = this.connectionToTimes.remove(connection);\n/* 93 */ if (times == null) {\n/* 94 */ this.log.warn(\"Removing a connection that never existed!\");\n/* 95 */ return true;\n/* */ } \n/* 97 */ return (System.currentTimeMillis() <= times.timeExpires);\n/* */ }", "@Override\n public void afterConnectionClosed(WebSocketSession session, CloseStatus status) {\n System.out.println(\"SocketController: afterConnectionClosed rad 84\");\n socketService.removeSession(session);\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t\n\t\tmHandler.removeMessages(0);\n\t\tmHandler.sendEmptyMessageDelayed(0, 100);\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tif(connection.isConnected()){\n\t\t\tconnection.disconnect();\n\t\t\tconnection=null;\n\t\t}\n\t\tmHandler.removeMessages(HandleConfig.REFRESHROOMINFO);\n\t\tmHandler.removeMessages(HandleConfig.GETROOMINFO);\n\t\tSystem.out.println(\"---onDestroy---\");\n\t\tsuper.onDestroy();\n\t}", "public void onDestroy() {\n requestTracker.clearRequests();\n }", "public static void deleteClient( ) {\n if (ClientHandler.client != null) {\n ClientHandler.client.closeSocket();\n ClientHandler.client = null;\n }\n }", "abstract protected void onDisconnection();", "@Override\n protected void onDestroy() {\n super.onDestroy();\n unbindService(connection);\n }", "public void notifyCounter() {\n if (counter > 0) {\n this.counter = this.counter - 1;\n }\n }", "public void destroy() {\n \n if (indexTimer != null)\n indexTimer.cancel();\n \n }", "public void deconnectar() {\n connection = null;\n }", "public synchronized void decreaseUsersConn() {\r\n\t\tusersConn--;\r\n\t}", "public void close() {\n connection.close();\n running = false;\n }", "public static void delInstance() {\n \tINSTANCE = null;\n \tcloseConnection();\n }", "private void onTerminate(Terminated t){\n\t\t//If a device stops, we must remove it from the group\n\t\tActorRef deviceActor = t.getActor();\n\t\tString deviceId = actorsIds.get(deviceActor);\n\t\t\n\t\tlog.info(\"Device actor {} has been terminated\",deviceId);\n\t\t\n\t\tactorsIds.remove(deviceActor);\n\t\tdeviceActors.remove(deviceId);\n\t\t\n\t}", "protected void cleanupOnClose() {\n\t}", "public void destroy(){\n if(myConnection != null){\n try{\n myConnection.close();\n }\n catch(SQLException e ){\n System.out.println(e);\n }\n }\n }", "public void destroy() {\n this.alive = false;\n }", "@Override\n\tpublic void listenerInterrupted(ConnectionListenerEvent evt) {\n\t\t\n\t}", "public static synchronized void unregister(Connection connection) {\n connection.close();\n activeConnections.remove(connection);\n }", "public void destroy() {\n\t\tif(timer!=null) {\n\t\t\ttimer.purge();\n\t\t\ttimer.cancel();\n\t\t}\n\t}", "public void shutdown() {\n _udpServer.stop();\n _registrationTimer.cancel();\n _registrationTimer.purge();\n }", "void destruct()\n\t{\n\t\tlistenerList = null;\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tFilmOnService.getInstance().stopLoopKeepAlive(getApplicationContext());\n\t\tFilmOnService.release();\n\t\tChannelManagement manager = ChannelManagement.getInstance();\n\t\tmanager.deleteObserver(this);\n\t\tmanager.release();\n\t\tsuper.onDestroy();\n\t}", "@Override\n public void onDestroy() {\n Log.d(TAG, \"Shutting Server\");\n busHandler.sendMessage(busHandler.obtainMessage(BusHandler.DISCONNECT));\n }", "@Override\r\n protected void onDestroy() {\r\n super.onDestroy();\r\n socketManager.disconnectSocket();\r\n }", "public void unsetCount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(COUNT$8);\n }\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }", "public void finalize() {\n delete();\n }" ]
[ "0.76846254", "0.7016864", "0.62544245", "0.61464304", "0.6116563", "0.6024494", "0.5912539", "0.5879085", "0.5864374", "0.58596516", "0.58561337", "0.5846267", "0.5788485", "0.57600063", "0.57600063", "0.5751383", "0.5734298", "0.57338464", "0.5731777", "0.5708121", "0.56996334", "0.568987", "0.56879586", "0.5682824", "0.5682649", "0.5644417", "0.5637242", "0.5617141", "0.56155366", "0.5605021", "0.5575145", "0.55730295", "0.5568665", "0.5566195", "0.55632156", "0.5558663", "0.55487496", "0.5534304", "0.5527156", "0.55153024", "0.5515271", "0.55146545", "0.5508843", "0.54944825", "0.54879564", "0.5487219", "0.5478766", "0.546726", "0.5463665", "0.54630667", "0.54492897", "0.5447869", "0.5447719", "0.5447408", "0.5447408", "0.544383", "0.54399794", "0.54390216", "0.5424726", "0.5423539", "0.5412652", "0.5409759", "0.5407395", "0.54070073", "0.5406437", "0.5396977", "0.53883255", "0.5385196", "0.5380824", "0.5379562", "0.5377742", "0.53751737", "0.5371685", "0.53689724", "0.5368518", "0.536477", "0.5362611", "0.53602576", "0.536022", "0.53583306", "0.5356163", "0.53543437", "0.53510404", "0.5350885", "0.5346095", "0.53433394", "0.5340305", "0.5334565", "0.5326266", "0.5324707", "0.53164446", "0.5315564", "0.5311162", "0.5310961", "0.53093827", "0.5308574", "0.5297103", "0.5297103", "0.5297103", "0.5297103" ]
0.61925244
3
Make the couter show by String.
@Override public String toString() { return "" + counter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String visualizzaCampo(){\n\t\tString info= new String(\"Nome: \"+ nome +\"\\n\" +\"Descrizione: \" + descrizione+ \"\\n\"+ \"Obbligatoria: \" + obbligatorio +\"\\n\");\n\t\treturn info;\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"icecream in a \");\n sb.append(holder.toString().toLowerCase());\n sb.append(\" with:\\n\");\n for (IceCreamScoop scoop : scoops) {\n sb.append(\"\\t\");\n sb.append(scoop);\n sb.append(\"\\n\");\n }\n\n return sb.toString();\n }", "@Override\n public String toString() {\n return displayString;\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn super.getCor().equals(\"Branco\") ? \" ♘ \": \" ♞ \";\r\n\t}", "public String toString(){\n return \"+-----------------------+\\n\" +\n \"| Boleto para el metro |\\n\" +\n \"|derjere0ranfeore |\\n\" +\n \"+-----------------------+\\n\" ;\n }", "protected String myString(){\n \treturn( \"gate \" + name ); \n }", "public String toString()\r\n {\r\n DecimalFormat dFmt = new DecimalFormat(\"#,##0.0##\");\r\n return \"\\\"\" + label + \"\\\" is a cone with height = \"\r\n + dFmt.format(height) + \" units and radius = \"\r\n + dFmt.format(radius) + \" units,\\n\"\r\n + \"which has base perimeter = \"\r\n + dFmt.format(basePerimeter()) + \" units, base area = \"\r\n + dFmt.format(baseArea()) + \" square units,\\n\"\r\n + \"slant height = \" + dFmt.format(slantHeight())\r\n + \" units, side area = \" + dFmt.format(sideArea())\r\n + \" square units,\\n\" + \"surface area = \"\r\n + dFmt.format(surfaceArea()) + \" square units,\"\r\n + \" and volume = \" + dFmt.format(volume())\r\n + \" cubic units.\";\r\n }", "public String toString(){\n return \"Salir carcel\";\n }", "public abstract String visualizar();", "@Override\n public String comer(String c)\n {\n c=\"Gato No puede Comer Nada\" ;\n \n return c;\n }", "public String makeString(){\n\t\tString title = getTitle();\n\t\tString xlabel = getXLabel();\n\t\tString ylabel = getYLabel();\n\t\tString GraphableDataInfoString = (\"<\" + title + \",\" + xlabel + \",\" + ylabel + \">\");\n\t\treturn GraphableDataInfoString;\n\t}", "public void displayToScreen(String str){\r\n textPane1.setText(str);\r\n paintDiamond();\r\n }", "public String toString2 () {\n\t\tString a = \"ChampionnatComplexe : [\";\n\t\ta = a + \" { ( \" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpA1 [i] +\" \" ;\n\t\t}\n\t\ta = a + \") ( \" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpA2 [i] +\" \" ;\n\t\t}\n\t\ta = a + \") } { ( \" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpB1 [i] +\" \" ;\n\t\t}\n\t\ta = a + \") ( \" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpB2 [i] +\" \" ;\n\t\t}\n\t\ta = a + \") } ] \\n\" ;\n\t\ta = a + \"\\tNote Equilibre:\\t\"+this.getNoteEquilibre()+\"\\n\" ;\n\t\ta = a + \"\\tNote Distance:\\t\"+this.getNoteDistance()+\"\\n\" ;\n\t\ta = a + \"\\tMoyenne pondérée:\\t\" +getNoteMoyennePondereeEqDist()+\" (coefDist=\"+opt.getPourcentageDistance()+\", coefEq=\"+(100-opt.getPourcentageDistance())+\")\\n\" ;\n\t\treturn a;\n\t}", "public String toString() {\nString output = new String();\n\noutput = \"shortName\" + \" : \" + \"\" + shortName +\"\\n\"; \noutput += \"type\" + \" : \" + \"\" + type + \"\\n\";\noutput += \"description\" + \" : \" + \"\" + description + \"\\n\"; \n\nreturn output; \n}", "@Override\n\tpublic String toString() {\n\t\treturn \"Cube(\" + this.nom + \")@(\" + this.centre.getX() + \", \" + this.centre.getY() + \", \" + this.centre.getZ() + \") ar�te : \"+this.arete;\n\t}", "private void draw (String printable, StringBuffer canvas) {\r\n \t\t\tcanvas.append(\"| \");\r\n \t\t\t\r\n \t\t\tcanvas.append(printable);\r\n \t\t\tfor (int i=printable.length(); i<width-4; i++) //Fill in the spaces.\r\n \t\t\t{\r\n \t\t\t\tcanvas.append(' ');\r\n \t\t\t}\r\n \t\t\tcanvas.append(\" |\\n\");\r\n \t\t}", "public String toString() {\n String color = translateColor(card.getColor());\n StringBuilder build = new StringBuilder();\n build.append(color).append(\" \").append(color).append(card.getCardID()).append(color).append(\" \").append(Color.reset()).append(\"\\n\").append(color).append(\"╔════\").append(color).append(\"Level\").append(color).append(\"════╗\").append(Color.reset()).append(\"\\n\").append(color).append(\"║ \").append(color).append(card.getLevel()).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\").append(color).append(\"╠════\").append(color).append(\"Cost\").append(color).append(\"═════╣\").append(Color.reset()).append(\"\\n\");\n for (Resource resource : card.getCost().keySet()) {\n build.append(color).append(\"║ \").append(CLI.colorResource(resource)).append(card.getCost().get(resource)).append(\" \").append(CLI.shapeResource(resource)).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n build.append(color).append(\"╠═\").append(color).append(\"Production\").append(color).append(\"══╣\").append(Color.reset()).append(\"\\n\");\n for (Resource resource : card.getProductionPower().getConsumedResources().keySet()) {\n build.append(color).append(\"║ \").append(CLI.colorResource(resource)).append(card.getProductionPower().getConsumedResources().get(resource)).append(\" \").append(CLI.shapeResource(resource)).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n if (card.getProductionPower().getRequiredResourceOfChoice() != 0) {\n build.append(color).append(\"║ \").append(color).append(+card.getProductionPower().getRequiredResourceOfChoice()).append(\" \").append(\"?\").append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n build.append(color).append(\"║ \").append(color).append(\"--->>> \").append(color).append(\" ║ \").append(Color.reset()).append(\"\\n\");\n for (Resource resource : card.getProductionPower().getProducedResources().keySet()) {\n build.append(color).append(\"║ \").append(CLI.colorResource(resource)).append(card.getProductionPower().getProducedResources().get(resource)).append(\" \").append(CLI.shapeResource(resource)).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n if (card.getProductionPower().getFaithPointsProduced() != 0) {\n build.append(color).append(\"║ \").append(color).append(+card.getProductionPower().getFaithPointsProduced()).append(\" \").append(\"+\").append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n if (card.getProductionPower().getProducedResourceOfChoice() != 0) {\n build.append(color).append(\"║ \").append(color).append(+card.getProductionPower().getProducedResourceOfChoice()).append(\" \").append(\"?\").append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n }\n\n\n build.append(color).append(\"╠═══\").append(color).append(\"VPoints\").append(color).append(\"═══╣\").append(Color.reset()).append(\"\\n\");\n if (card.getVictoryPoints() < 10) {\n build.append(color).append(\"║ \").append(color).append(card.getVictoryPoints()).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n } else\n build.append(color).append(\"║ \").append(color).append(card.getVictoryPoints()).append(color).append(\" ║\").append(Color.reset()).append(\"\\n\");\n build.append(color).append(\"╚════\").append(color).append(color).append(\"═════════╝\").append(Color.reset()).append(\"\\n\");\n build.append((color + \" \" + color + color + \" \" + Color.reset() + \"\\n\").repeat(5));\n return build.toString();\n }", "public String toString() { \r\n\t\tif(sw!=null) { return sw.toString(); } \r\n\t\telse { return \"AsciiWriter \"+wr; }\r\n\t}", "@Override\n public String toString() {\n int width = DessertShoppe.RECEIPT_WIDTH; //get the width of the receipt\n int widthCand = width - (super.getName()).length(); //get the width of the candy receipt\n\n //get all of the information needed to output for the given candy\n String output = this.weight + \" lbs. @ $\" + DessertShoppe.cents2dollarsAndCents(this.pricePerLbs) + \" /lb. \\n\" + super.getName();\n String candCost = DessertShoppe.cents2dollarsAndCents(this.getCost()); //get the cost of the candy\n output += String.format(\"%\" + widthCand + \"s%n\", candCost); //format the line to fi properly to the receipt\n return output; //return the formatted output\n }", "private String showText() {\n\t\tString text = \"\";\n\t\ttry {\n\t\t\tString line1 = \"\";\n\t\t\tString line2 = \"\";\n\t\t\tString line3 = \"\";\n\t\t\tfor (LakeTile lake_tile : removed_laketile) {\n\t\t\t\tint i = removed_laketile.indexOf(lake_tile);\n\t\t\t\tPosition pos = removed_position.get(i);\n\t\t\t\tQueue<Color> color_queue = lake_tile.getColorOfFourSides();\n\t\t\t\tArrayList<Color> color_list = new ArrayList<Color>(color_queue);\n\n\t\t\t\tline1 += String.format(\"%12s\", \"\");\n\t\t\t\tline1 += Color.getColorText(color_list.get(0), \" \");\n\n\t\t\t\tline1 += String.format(\"%4s\", \"\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tline2 += String.format(\"%2s\", lake_tile.getIndex());\n\t\t\t\tline2 += \":\";\n\t\t\t\tline2 += String.format(\"%-7s\",\"(\" + pos.getX() + \",\" + pos.getY() + \")\");\n\t\t\t\tline2 += Color.getColorText(color_list.get(3), \" \");\n\t\t\t\tline2 += \" \";\n\t\t\t\tif (lake_tile.isPlatform()) {\n\t\t\t\t\tline2 += \"O\";\n\t\t\t\t} else {\n\t\t\t\t\tline2 += \"X\";\n\t\t\t\t}\n\t\t\t\tline2 += \" \" + Color.getColorText(color_list.get(1), \" \") + \" \";\n\n\t\t\t\tline3 += String.format(\"%12s\", \"\");\n\t\t\t\tline3 += Color.getColorText(color_list.get(2), \" \");\n\t\t\t\tline3 += String.format(\"%4s\", \"\");\n\n\t\t\t}\n\t\t\ttext += line1 + \"\\n\";\n\t\t\ttext += line2 + \"\\n\";\n\t\t\ttext += line3 + \"\\n\";\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\ttext = \"No Data\";\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn text;\n\n\t}", "public void stringPresentation () {\n System.out.println ( \"****** String Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n bookArrayList = new Request().postRequestBook();\n for (Book book: bookArrayList) {\n System.out.println(book.toString());\n }\n ClientEntry.showMenu ( );\n\n }", "public String toString() {\n \t\treturn getCssText();\n \t}", "@Override\n\tpublic String str(int number) {\n\t\treturn \"C3(\"+number+\")\";\n\t}", "public String build();", "public String build();", "public String displayString() {\r\n\treturn recupValCle(displayString);\r\n }", "public String toString() {\n\t\tString s = \"\";\n\t\tif(hidden) {\t\t\t\t\t//if hidden, only show the next character\n\t\t\tif(chars<=words.get(0).toString().length()) {\n\t\t\t\ts += (words.get(0).toString()+\" \").substring(0,chars+1);\n\t\t\t}\n\t\t}\n\t\telse {\t\t\t\t\t\t\t\n\t\t\tfor(Word w: words) {\n\t\t\t\ts += w.toString() + \" \";\n\t\t\t}\t\n\t\t}\n\t\treturn s;\n\t}", "public String toString() {\r\n\t\tString str = color.substring(0,1).toUpperCase()\r\n\t\t\t\t + color.substring(1) + \" \" \r\n\t\t\t\t + name.substring(0,1).toUpperCase()\r\n\t\t\t\t + name.substring(1);\r\n\t\treturn str;\r\n\t}", "public String makeString()\n {\n return \"ArcanaDungeonSource\";\n }", "public String toString() {\n return cords.toString() + type;\n }", "@Override\n public void showText(String s){\n }", "StringBuffer generateVc(){\n\n StringBuffer r = new StringBuffer();\n\n for(int i = 0; i <= sons.size() - 1; i++)\n r.append(getChildAt(i).toDot());\n \n return r;\n }", "@Override\n public String toString() {\n String s = \"\"; //Comienza con un string vacio, y se le va a agregando cada cliente por medio de un ciclo.\n NodoCliente aux = cabeza;\n while (aux != null) {\n s += aux + \"\\n\";\n aux = aux.getNext();\n }\n return s;\n }", "@Override String toString();", "@Override\n public String toString() {\n\n //convert cents to dollars using cents2dollarsAndCents\n String output = DessertShoppe.cents2dollarsAndCents(this.getCost());\n //create string storing cost in a string \n String costLength = Integer.toString(this.getCost());\n //find spacing needed between name and cost in reciept by subtracting 30(total spaces) by \n //length of name and length of cost\n int spacing = 30 - super.getName().length() - costLength.length() - 1;\n //loop through an add a space each time up to \"spacing\" integer\n for (int i = 0; i < spacing; i++) {\n output = \" \" + output;\n }\n //return name of cookie along with cost along with the right format posting amount of pounds with cost per pound\n return this.weight + \" lbs. \" + \"@ $\" + DessertShoppe.cents2dollarsAndCents(this.pricePerLbs) + \" /lb.\\n\" + this.getName() + output;\n }", "public String toString() { return kind() + \":\"+ text() ; }", "public String toString() { \r\n\t\tString str = \"&markers=color:\" + color + \"%7Clabel:\" + label + \"%7C\" + latitude + \",\" + longitude;\r\n\t\t\r\n\t\treturn str;\r\n\t\t\r\n\t}", "@Test\n\tpublic void testToString() {\n\t\tassertEquals(\n\t\t\t\t\"SHOW: Lana Del Rey planeta Terra, R$ 100.0, Nao emprestado, 120 min, LIVRE, Lana Del Rey, 10 faixas\",\n\t\t\t\tshow.toString());\n\t}", "public void displayCharacter() {\n System.out.println(\"**************************\");\n System.out.println(p.showDetails());\n System.out.println(\"**************************\"+\"\\n\");\n\n }", "public String toString()\r\n\t{\r\n\t\tString output = \" \";\r\n\t\tString specialModifier = \" \";\r\n\t\tif(this.isSpecial())\r\n\t\t{\r\n\t\t\tspecialModifier = \" *\";\r\n\t\t}\r\n\t\t\t\r\n\t\toutput = String.format(\"%-9s%-5s%-19s%s%.2f\",getType(), specialModifier, this.getName(),\"$ \", this.getPrice());\r\n\t\t//code to be done here\r\n\t\t\r\n\t\t\r\n\t\treturn output;\r\n\t}", "public String toString(){\r\n String output = \"\";\r\n //Display the name \r\n output += this.name;\r\n //Turn the cost int in cents to a string in dollars\r\n String totalcost = DessertShoppe.cents2dollarsAndCents(getCost());\r\n //Print out a space between the name and where the cost needs to be\r\n for (int i = this.name.length(); i < DessertShoppe.RECEIPT_WIDTH - totalcost.length(); i++){\r\n output+=\" \";\r\n }\r\n //Print outt he cost string with the dollar sign\r\n output += totalcost;\r\n return output;\r\n \r\n }", "@Override\n\tpublic String toString() {\n\t\tString result = candidateString;\n\t\tresult = result.replaceAll(TAG, \" \");\n\t\tresult = result.replaceAll(COLLAPSE, \"\");\n\t\tresult = result.replaceAll(SPACE, \" \");\n\n\t\treturn result;\n\t}", "public String toString () {\n\t\tString s =\"\";\n\t\tString finalStr =\"\";\n\n\t\t// for all the chords in this verse\n\t\tfor (int j=0; j<chords.size(); j++){\n\t\t\t\n\t\t\t// print each element of the chord \n\t\t\tfor (int i=0; i<chords.get(j).length; i++){\n\t\t\t\ts+=chords.get(j)[i]+ \"|\";\n\t\t\t}\n\t\t\tfinalStr+=s+ \"\\n \";\n\t\t\ts =\"\";\n\t\t}\n\t\treturn finalStr;\n\t}", "public String show() {\n\t\tif (opened) {\n\t\t\tif (isBomb()) {\n\t\t\t\treturn \"o*\";\n\t\t\t} else{\n\t\t\t\treturn \"\"+value;\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"\";\n\t\t}\n\t}", "public String toString() {\n\t\tStringBuilder buff = new StringBuilder();\n\t\tfor (int y = height-1; y>=0; y--) {\n\t\t\tbuff.append('|');\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tif (getGrid(x,y)) buff.append('+');\n\t\t\t\telse buff.append(' ');\n\t\t\t}\n\t\t\tbuff.append(\"|\\n\");\n\t\t}\n\t\tfor (int x=0; x<width+2; x++) buff.append('-');\n\t\treturn(buff.toString());\n\t}", "public String toString() {\n\t\tStringBuilder buff = new StringBuilder();\n\t\tfor (int y = height-1; y>=0; y--) {\n\t\t\tbuff.append('|');\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tif (getGrid(x,y)) buff.append('+');\n\t\t\t\telse buff.append(' ');\n\t\t\t}\n\t\t\tbuff.append(\"|\\n\");\n\t\t}\n\t\tfor (int x=0; x<width+2; x++) buff.append('-');\n\t\treturn(buff.toString());\n\t}", "@Override\r\n public String toString(){\n StringBuilder displayCard = new StringBuilder();\r\n \r\n if(rank==11)\r\n {\r\n displayCard.append(\"Jack\");\r\n }\r\n else if(rank==12)\r\n {\r\n displayCard.append(\"Queen\");\r\n }\r\n else if(rank == 13)\r\n {\r\n displayCard.append(\"King\");\r\n }\r\n else if(rank==14)\r\n {\r\n displayCard.append(\"Ace\");\r\n }\r\n else\r\n {\r\n displayCard.append(rank);\r\n }\r\n displayCard.append(\" of \"); //setting the format of the output\r\n \r\n if(suit==0)\r\n {\r\n displayCard.append(\"Spades\");\r\n }\r\n else if(suit==1)\r\n {\r\n displayCard.append(\"Hearts\");\r\n }\r\n else if(suit==2)\r\n {\r\n displayCard.append(\"Clubs\");\r\n }\r\n else if(suit==3)\r\n {\r\n displayCard.append(\"Diamonds\");\r\n }\r\n //return the result of an entire cmombined string\r\n return displayCard.toString();\r\n }", "@Override\n public String toString() {\n StringBuilder devPlaceArt = new StringBuilder();\n StringBuilder[] devString = new StringBuilder[3];\n devString[0] = new StringBuilder();\n devString[1] = new StringBuilder();\n devString[2] = new StringBuilder();\n int i = 0;\n String space = \" \";\n String emptyCard =\n \"\"\"\n ┌─────────────────┐\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n └─────────────────┘\n \"\"\";\n String emptySpace = \"\"\"\n \\s\n \\s\n \\s\n \"\"\";\n String[] temp1;\n String[] temp2;\n String[] temp3;\n\n for (ObservableList<DevelopmentCard> stacks : devStack) {\n if (stacks.isEmpty()) {\n devString[i].append(emptyCard);\n devString[i].append(emptySpace).append(emptySpace);\n } else {\n devString[i].append(stacks.get(stacks.size() - 1).toString());\n switch (stacks.size()) {\n case 1 -> devString[i].append(emptySpace).append(emptySpace);\n case 2 -> {\n int l = stacks.get(0).toString().length();\n devString[i].append(stacks.get(0).toString(), l - 58, l);\n devString[i].append(emptySpace);\n }\n case 3 -> {\n int len = stacks.get(0).toString().length();\n devString[i].append(stacks.get(0).toString(), len - 58, len);\n devString[i].append(stacks.get(1).toString(), len - 58, len);\n }\n }\n\n }\n i++;\n }\n temp1 = devString[0].toString().split(\"\\n\");\n temp2 = devString[1].toString().split(\"\\n\");\n temp3 = devString[2].toString().split(\"\\n\");\n\n for (int j = 0; j < 14; j++) {\n devPlaceArt.append(temp1[j]).append(space).append(temp2[j]).append(space).append(temp3[j]);\n devPlaceArt.append(\"\\n\");\n }\n return devPlaceArt.toString();\n }", "public String toString(){\r\n // creating instance\r\n StringBuilder sb = new StringBuilder();\r\n if(!isAvailable()){\r\n if(veh.getSize() == VehicleSize.Bus){\r\n sb.append('B');\r\n } else if (veh.getSize() == VehicleSize.Car){\r\n sb.append('C');\r\n } else {\r\n sb.append('M');\r\n }\r\n } else {\r\n if(sizeOfSp == VehicleSize.Bus){\r\n sb.append('b');\r\n } else if (sizeOfSp == VehicleSize.Car){\r\n sb.append('c');\r\n } else {\r\n sb.append('m');\r\n }\r\n }\r\n // return statement\r\n return sb.toString();\r\n }", "@AutoEscape\n\tpublic String getDisplay();", "protected abstract String display();", "public void display(){\n System.out.println(\"\\n Car 2:\");\n System.out.println(toString());\n }", "private static String center(Object obj){\r\n\t\tString str = obj.toString();\r\n\t\tint width = 17;\t\r\n\t\tint padSize = width - str.length();\r\n\t\tint padStart = str.length() + padSize / 2; \r\n\t\tstr = String.format(\"%\" + padStart + \"s\", str);\r\n\t\tstr = String.format(\"%-\" + width + \"s\", str);\r\n\t\t\r\n\t\treturn str;\r\n\t}", "@Override\r\n\t\tpublic String toString() {\r\n\t\t\tString ScheduledConcertsString = new String();\r\n\t\t\tfor (int i = 0; i < staffShows.size();i++){\r\n\t\t\t\tScheduledConcertsString = ScheduledConcertsString.concat(staffShows.get(i).toString());\r\n\t\t\t}\r\n\t\treturn \"\\nID: \" + this.staffID.toString() + \", name: \" + firstName + \" \" + lastName + \", \\naddress: \" + address.toString()\r\n\t\t+ \", \\nphone number: \" + this.getphoneNumber() + \", \\njob: \" + job + \r\n\t\t \", \\nShows : \" + ScheduledConcertsString + \"\\n*****************************************************\";\r\n\t\t}", "public char show() {\n\t\treturn 'S';\n\t}", "@Override\n public String toString(){\n return '+' + code + number.substring(0, 3) + '-' + number.substring(3, 6) + '-' +number.substring(6);\n }", "public String toString()\r\n\t\t{\r\n\t\t\tString str = \" \" ;\r\n\t\t\tif (this.num.size() == 0)\r\n\t\t\t\tstr = \"<vacia>\";\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tfor (int i = 0; i < this.num.size(); i++) \r\n\t\t\t\t\tstr = str + this.num.get(i) + \" \";\r\n\t\t\t}\r\n\t\t\treturn str;\r\n\t\t}", "public String toString(){\n return \"W \";\n }", "public String toString() {\n if(this.getName()==null) {\n String output = String.format(\"%40.2f\\n\", this.getCost());\n return output;\n }else {\n String output = String.format(\"%-15s(IceCream)%15.2f\\n\\n%s(IceCream) calories:%.0f\\n\\n\",\n this.getName(),this.getCost(),this.getName(),this.getCalories());\n return output;\n /**\n * @return A string with the data from this class such as the name, cost, calories and formats the string by using the String.format method.\n */\n }\n\n }", "public String toString() {\n // TODO\n return \"Plain\";\n }", "public String toString(){\n return (\"TextShape \"+x+\" \"+y+\" \"+col.getRed()+\" \"+col.getGreen()+\" \"+col.getBlue()+\" \"+str);\n }", "public String toString() \r\n {\r\n return \"The cruise ship \\\"\"+GetName()+\"\\\" was built in \"+GetYear()+\". It has a maximum payload of \"+maxPassengers+\" passengers and is currently carrying \"+curPassengers+\" passengers.\";\r\n }", "public String toString() {\n // show marbles on board with indexes\n String s = \"\";\n for (int i = 0; i < DIMENSION; i++) {\n if ((i > 4) && (i != 10)) {\n s += \" \".repeat(i - 2);\n // char index bottom board\n s += \"\\u001b[32m\" + String.valueOf((char) ((char) i + 'A' - 1)) + \"\\u001b[0m \";\n } else {\n s += \" \".repeat(i);\n }\n for (int j = 0; j < DIMENSION; j++) {\n if (i + j == 4) {\n if (i == 0) {\n s += \" \";\n } else {\n // char index top board\n s += \"\\u001b[32m\" + String.valueOf((char) ((char) i + 'A' - 1)) + \"\\u001b[0m\";\n }\n } else if ((i + j < 4) || i + j > 15) {\n s += \"\\u001b[32m\";\n if ((i == 7 && j == 9)) {\n s += \"9\";\n } else if ((i == 8 && j == 8)) {\n s += \"8\";\n } else if ((i == 9 && j == 7)) {\n s += \"7\";\n } else if ((i == 10 && j == 6)) {\n s += \"6\";\n } else {\n s += \" \";\n }\n s += \"\\u001b[0m\";\n } else if (isOutOfBoard(fields[i][j])) {\n \n s += fields[i][j].getMarbleColor().toString().charAt(0);\n } else {\n // show marbles with color\n switch (fields[i][j].getMarbleColor()) {\n case BLACK:\n s += \"\\u001b[30mo\";\n break;\n case WHITE:\n s += \"\\u001b[37mo\";\n break;\n case RED:\n s += \"\\u001b[31mo\";\n break;\n case BLUE:\n s += \"\\u001b[34mo\";\n break;\n case NONE:\n s += \" \";\n break;\n }\n }\n s += \"\\u001b[0m \";\n }\n \n s += \"\\n\";\n }\n \n s += \" \".repeat(13) + \"\\u001b[32m1 2 3 4 5\\u001b[0m\";\n return s;\n\n\n }", "public String toString()\n {\n\tString returnString = \"\";\n\treturnString += \"[ \" + cargo + \" ][ * ]--> \";\n\treturn returnString;\n }", "public String toString(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif(isFlag()==true){\n\t\t\t\tif(isDownBlock()==true){\n\t\t\t\t\tsb.append(\"g\"); //use G represent the goal\n\t\t\t\t\t\t\t\t\t\t// if down block is a block use small letter\n\t\t\t\t}\n\t\t\t\telse if(isRobot()==true){\n\t\t\t\t\tsb.append(\"V\"); //flag and robot on same position VICTORY!\n\t\t\t\t}\n\t\t\t\telse sb.append(\"G\"); \t\t\n\t\t\t}\n\t\telse if(isRobot()==true){\n\t\t\tif(isDownBlock()==true){\n\t\t\t\tsb.append(\"r\");//use R represent the Robot\n\t\t\t\t\t// if down move is a block use small letter\n\t\t\t}\n\t\t\telse sb.append(\"R\");\n\t\t}\n\t\telse{\n\t\t\tif(isDownBlock()==true){\n\t\t\t\tsb.append(\"_\"); \n\t\t\t\t//if down move is blocked then use underline\n\t\t\t}\n\t\t\telse sb.append(\"O\"); // use o represent the grid\n\t\t}\n\t\t\t\n\t\tif(isRightBlock()==true){\n\t\t\tsb.append(\"|\"); //best way to represent right block\n\t\t}\n\t\telse{\n\t\t\tsb.append(\" \"); // if no block just a space\n\t\t}\n\t\treturn sb.toString();\n\t}", "private String makeStringLine(char c, int leftMargin, int marginFromMiddle){\n\t\tString leftSide, centre, rightSide, line;\n\t\tline = \"\";\n\n\t\tif (marginFromMiddle == 0 && leftMargin == 0){\n\t\t\t line = String.valueOf(c);\n\t\t\t return line;\n\t\t}\n\t\tif (marginFromMiddle == 0 && leftMargin !=0){\n\t\t\tleftSide = String.format(\"%\" + (leftMargin)+\"s\", \"\");\n\t\t\tcentre = String.valueOf(c);\n\t\t\trightSide = String.valueOf(new StringBuilder(leftSide).reverse());\n\t\t\tline = leftSide + centre + rightSide;\n\t\t\t\t// System.out.println(\"leftSide: \" + leftSide);\n\t\t\t\t// System.out.println(\"centre: \" + centre);\n\t\t\t\t// System.out.println(\"rightSide: \" + rightSide);\n\t\t\treturn line;\n\n\t\t}\n\n\t\tif (leftMargin == 0 && marginFromMiddle !=0){\n\t\t\tleftSide = String.format(\"%s\", c) + String.format(\"%\" + (marginFromMiddle)+\"s\", \"\");\n\t\t\tcentre = \"\";\n\t\t\trightSide = String.valueOf(new StringBuilder(leftSide).reverse());\n\t\t\tline = leftSide + centre + rightSide;\n\n\t\t}\t\n\n\t\t//marginFromMiddle != 0\n\t\tif (leftMargin != 0 && marginFromMiddle != 0){\n\t\t\tleftSide = String.format(\"%\" + (leftMargin)+\"s\", c) + String.format(\"%\" + (marginFromMiddle)+\"s\", \"\");\n\t\t\tcentre = \"\";\n\t\t\trightSide = String.valueOf(new StringBuilder(leftSide).reverse());\n\t\t\tline = leftSide + centre + rightSide;\n\t\t\t// \tSystem.out.println(\"leftSide: \" + leftSide);\n\t\t\t// System.out.println(\"centre: \" + centre);\n\t\t\t// System.out.println(\"rightSide: \" + rightSide);\n\t\t\t\n\t\t}\n\t\treturn line;\n\t}", "public String toString() {\r\n\t\tString tentangCircle;\r\n\t\ttentangCircle = \"Bil objek ialah \" + bilObjekWujud;\r\n\t\t// tentangCircle = \"Jejari = \" + jejari\r\n\t\t// +\"\\nx = \" + x\r\n\t\t// + \"\\nLuas adalah \" + KiraLuas();\r\n\t\treturn tentangCircle;\r\n\r\n\t}", "public String cardDisplay(){\n if(this.faceDown) {\n return \"Bicycle\";}\n else{ return \"Friendly Names of: \" + this.rank + \":\"+this.suit;\n\n }\n }", "public String toString() { \n String canvas = \"\";\n for(int i=0; i<height; i++) {\n for(int j=0; j<width; j++) {\n if(drawingArray[i][j] == ' ') {\n canvas += \"_\";\n } else {\n canvas += drawingArray[i][j];\n }\n }\n canvas += System.lineSeparator();\n }\n return canvas;\n }", "public String toString () {\r\n String display = courseCode;\r\n display += \"\\nDepartment: \" + department;\r\n display += \"\\nGrade: \" + grade;\r\n return display;\r\n }", "@Override\n public String toString() {\n return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);\n }", "public String toString() { return stringify(this, true); }", "public String toDisplay(){\n\t\treturn String.format(\"%s | %c | %.2f | %.2f\",name ,gender ,taxableIncome ,taxAmount);\n\t}", "public void show() {\n\t\t System.out.println(\"这是A型产品\"); \r\n\t}", "public String preprocessingEncryptToDisplay(String in);", "public String display(){\n StringBuilder str = new StringBuilder();\n\n for(int i = 0; i < 3; ++i){\n if( Array[i] != null ) {\n str.append('\\n' + Names[i] + '\\n');\n str.append(Array[i].display());\n }\n }\n return str.toString();\n }", "@Override\r\n public String toString() {\r\n return toSmartText().toString();\r\n }", "@Override\n public String toString() {\n StringBuilder buff = new StringBuilder();\n\n buff.append(this.getClass().getSimpleName()).append(\": \");\n buff.append(\" ics:\");\n buff.append(this.initialCaseSignificantProperty.get());\n buff.append(\" lang:\");\n buff.append(\"'\").append(this.languageProperty.get()).append(\"'\");\n buff.append(\" text:\");\n buff.append(\"'\").append(this.textProperty.get()).append(\"'\");\n buff.append(super.toString());\n\n return buff.toString();\n }", "public void printToScreen() {\n String type = \"\";\n switch (this.type) {\n case 1:\n type = \"Fashion\";\n break;\n case 2:\n type = \"Electronic\";\n break;\n case 3:\n type = \"Consumable\";\n break;\n case 4:\n type = \"Household appliance\";\n break;\n }\n// System.out.println(\"Type : \" + type);\n System.out.printf(\"%6d%15s%6f%20s\\n\", id, name, price, type);\n }", "public String toString() {\n String mazeVisual = \"\";\n Maze routeMaze = this.getMaze();\n for (int row = 0; row < routeMaze.getTiles().size(); row++) {\n for (int col = 0; col < routeMaze.getTiles().get(0).size(); col++) {\n if (route.contains(routeMaze.getTiles().get(row).get(col))) {\n mazeVisual = (mazeVisual + \"*\");\n } else if (popped.contains(routeMaze.getTiles().get(row).get(col))) {\n mazeVisual = (mazeVisual + \"-\");\n } else {\n mazeVisual = (mazeVisual + routeMaze.getTiles().get(row).get(col).toString());\n }\n if ((col + 1) == routeMaze.getTiles().get(0).size()) {\n mazeVisual = mazeVisual + \"\\n\";\n }\n }\n }\n return mazeVisual;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"string dari class Main\";\n\t}", "public static StringBuilder render(Inspectable value, StringEncoder encoder) {\n encoder.encode(value.inspect());\n return encoder.target();\n }", "public String toString(){\r\n\t\t\t\t\treturn \"перший в черзі і шлях вільний\";\r\n\t\t\t\t}", "public String toString(){\n\r\n String res=\"*\";\r\n if(revelado==true){\r\n res=\"\"+minascerca;\r\n }\r\n if(espM==true&&revelado==true)\r\n res=\"X\";\r\n return res;\r\n }", "public String build() {\n\treturn prefixes.toString() + \" \\n CONSTRUCT { \" + variables.toString()\n\t\t+ \" } WHERE { \" + wheres.toString() + \" }\";\n }", "@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´ó¿ãñÃ\");\n\t}", "public String toString()\n {\n return color.charAt(0) + \"Q\";\n }", "@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 toString(){\n\t\tStringBuilder output = new StringBuilder();\n\t\tfor (int i=13; i<=16; i++){\n\t\t\toutput.append(linesAndStores[i].makeString());\n\t\t\toutput.append(\"\\n\");\n\t\t}\n\t\treturn output.toString();\n\t}", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();" ]
[ "0.59435064", "0.58463705", "0.58418894", "0.5795962", "0.57890475", "0.5788025", "0.57554656", "0.5754454", "0.5741061", "0.5724714", "0.5706422", "0.5699984", "0.5697271", "0.5693361", "0.5683993", "0.56691015", "0.5656954", "0.56530297", "0.5645045", "0.56356364", "0.5625073", "0.5621335", "0.56151444", "0.5608145", "0.5608145", "0.5604363", "0.56013304", "0.5599173", "0.5591484", "0.559005", "0.5589997", "0.55891514", "0.55869246", "0.558512", "0.55634725", "0.55528986", "0.5551345", "0.5548754", "0.55466986", "0.5546625", "0.55446863", "0.553715", "0.55190974", "0.55148274", "0.5513528", "0.5513528", "0.55106765", "0.5508699", "0.5500796", "0.54990375", "0.54921377", "0.5491133", "0.54877514", "0.5483679", "0.54751575", "0.54735184", "0.5469576", "0.54692227", "0.5465751", "0.5460598", "0.54532504", "0.54478", "0.544735", "0.54466224", "0.54440045", "0.5443842", "0.5442195", "0.5441781", "0.5437654", "0.54351", "0.54315084", "0.5428326", "0.5426206", "0.54229796", "0.54229414", "0.54215133", "0.5419483", "0.5418849", "0.5417847", "0.54175174", "0.5417364", "0.54169714", "0.54168564", "0.5416217", "0.5413561", "0.5413065", "0.53937155", "0.53906924", "0.5388423", "0.5386952", "0.5386952", "0.5386952", "0.5386952", "0.5386952", "0.5386952", "0.5386952", "0.5386952", "0.5386952", "0.5386952", "0.5386952", "0.5386952" ]
0.0
-1
Taking ABSTRACT from INTERFACE UNIMPLEMENTED METHODS FROM INTERFACE
public void sub(int x, int y) { int diff = x - y; System.out.println("Subtracting Integers: " + diff); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface B extends A {\n void b();\n}", "public interface AbstractC1953c50 {\n}", "private static interface Derived extends Base {\n\n public void foo();\n }", "private static interface Base {\n\n public void foo();\n }", "public interface AbstractC2502fH1 extends IInterface {\n}", "public interface AbstractC7729o0ooOoo {\n void OooO00o();\n}", "public interface AbstractC0211Dj0 {\n void a(int i);\n}", "public interface AbstractC03680oI {\n}", "public interface ITeslaProduct extends IProduct {\n //@Override\n public abstract void makeProduct();\n}", "@Override\n public boolean isInterface() { return false; }", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public abstract void abstractMethodToImplement();", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "public interface AbstractC0273Ek {\n void e();\n}", "public interface zzo\n extends IInterface\n{\n\n public abstract void zze(AdRequestParcel adrequestparcel);\n}", "interface A {\n void a();\n}", "public interface AbstractC00591m {\n void A9X(C0495Jm jm);\n\n void AAI(List<RG> list);\n}", "public interface AbstractC14990nD {\n void ACi(View view);\n\n void ACk(View view);\n\n void ACo(View view);\n}", "public interface AbstractC2726a {\n /* renamed from: a */\n void mo36480a(int i, int i2, ImageView imageView, Uri uri);\n\n /* renamed from: a */\n void mo36481a(int i, ImageView imageView, Uri uri);\n\n /* renamed from: a */\n void mo36482a(ImageView imageView, Uri uri);\n\n /* renamed from: b */\n void mo36483b(int i, ImageView imageView, Uri uri);\n}", "public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }", "public interface AbstractC01264e {\n void ABn(AnonymousClass4X v, @Nullable AnonymousClass4A v2, AnonymousClass4A v3);\n\n void ABp(AnonymousClass4X v, @NonNull AnonymousClass4A v2, @Nullable AnonymousClass4A v3);\n\n void ABr(AnonymousClass4X v, @NonNull AnonymousClass4A v2, @NonNull AnonymousClass4A v3);\n\n void ADd(AnonymousClass4X v);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "abstract interface I1 {\n public abstract void m1();\n}", "public interface WipableIngredient extends Ingredient {\n\n void wip();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface AbstractC3386kV0 {\n boolean b();\n\n void d();\n\n void dismiss();\n\n ListView f();\n}", "public interface Animal {\n\n //Animal reproduce();\n\n}", "public interface InterfaceReplacement {\n\n /** The ever present clone method\n */\n public Object clone(); \n\n /** This method will insert the given individual into the population\n * by replacing a individual either from the population or the given\n * subset\n * @param indy The individual to insert\n * @param pop The population\n * @param sub The subset\n */\n public void insertIndividual(AbstractEAIndividual indy, Population pop, Population sub);\n}", "public interface a extends IInterface {\n}", "public interface AbstractC2883ha {\n boolean a();\n}", "public interface Implementor {\n // 实现抽象部分需要的某些具体功能\n void operationImpl();\n}", "public interface AbstractC61422t9 {\n void AJZ(C61072sS v);\n}", "public interface a {\n void a();\n }", "public interface a {\n void a();\n }", "public interface A {\n void f();\n}", "public void interfaceMethod() {\n\t\tSystem.out.println(\"overriden method from interface\");\t\t\r\n\t}", "interface Hi {\n // MUST BE IMPLEMENTED IN IMPLEMENTING CLASS!!\n void Okay(String q);\n}", "public interface AbstractC7617o0oOO {\n void OooO00o(View view);\n\n void OooO0O0(View view);\n\n void OooO0OO(View view);\n}", "public interface Test2 extends Test1,Cloneable {\n void test2();\n}", "public interface IOverride extends IMeasurement_descriptor{\n\n\tpublic IRI iri();\n\n}", "public interface AnInterface {\n void f();\n\n void g();\n\n void h();\n}", "public interface i {\n int a();\n\n boolean b();\n\n void c();\n}", "abstract void method();", "public interface C3222n extends IInterface {\n /* renamed from: a */\n void mo13025a() throws RemoteException;\n\n /* renamed from: b */\n void mo13026b() throws RemoteException;\n}", "public interface Animal extends Cloneable {\r\n\tAnimal makeCopy();\r\n}", "public interface Animal {\n\n public void eat();\n public void travel();\n}", "public interface InterfaceB extends SuperInterface{\n\n int getB();\n}", "interface I {}", "public interface SampleA {\n void operation1();\n void operation2();\n}", "public interface AbstractC19090uP {\n void ADh(C07020Vp v);\n}", "public interface AbstractC1008ba extends JQ {\n void AA9();\n}", "public interface b {\n void a();\n }", "public interface b {\n void a();\n }", "public interface CurrentMaintenanceOperationIterator_I extends CurrentMaintenanceOperationIterator_IOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}", "public interface zze\n extends IInterface\n{\n\n public abstract void zza(zzd zzd, GoogleSignInConfig googlesigninconfig);\n\n public abstract void zza(zzd zzd, SignInConfiguration signinconfiguration);\n\n public abstract void zzb(zzd zzd, GoogleSignInConfig googlesigninconfig);\n\n public abstract void zzb(zzd zzd, SignInConfiguration signinconfiguration);\n\n public abstract void zzc(zzd zzd, GoogleSignInConfig googlesigninconfig);\n}", "public interface Citizen {\n public abstract void sayHello();\n}", "public interface AbstractC8526a extends AbstractC8530e, AbstractC8531f {\n /* renamed from: a */\n void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);\n}", "public interface AbstractC1509Ys0 extends Q31 {\n Object g(Callback callback);\n}", "public interface AbstractC0386gl {\n}", "public interface B\n{\n String foo();\n}", "public interface A {\n void a();\n void b();\n void c();\n void d();\n void e();\n void f();\n void g();\n}", "interface U {\n public void A() ;\n public void B() ;\n public void C() ;\n}", "public interface CoverCreationMethod {\n\n}", "public interface DiscoverIView extends BaseIView {\n\n}", "public interface C22486a {\n void bGQ();\n\n void cMy();\n }", "@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}", "@Mixins( RMIMixin.class )\npublic interface RemoteInterfaceComposite\n extends RemoteInterface, InvocationCacheAbstractComposite, TransientComposite\n{\n}", "@Override\n public List<JavaType> getInterfaces() {\n return ImmutableList.of();\n }", "public interface Interface {\n void doSomething();\n void somethingElse(String arg);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C16740s extends IInterface {\n /* renamed from: a */\n void mo43357a(C16726e eVar) throws RemoteException;\n}", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "public interface A {\n default void oi(){\n System.out.println(\"Dentro do oi de A\");\n }\n}", "public interface Filter extends Cloneable {\n public abstract Filter createClone();\n\n}", "public interface Extendable {\n void extend();\n}", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public interface IService {\n void methodA();\n void methodB();\n void methodC();\n}", "interface InterfaceChild extends InterfaceParent {\n default String introduce() {\n return \"InterfaceChild\";\n }\n}", "public interface MyAbstractElement extends EObject {\n}", "@Override\n\tpublic boolean isImplemented() {\n\t\treturn false;\n\t}", "public interface Ops extends OpsOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}", "public interface BaseView extends IView {\r\n void onSuccess();\r\n\r\n void onFailure();\r\n}", "public interface SampleB {\n void operation1();\n void operation2();\n}", "public interface y\n extends Iterable\n{\n\n public abstract u a(String s, String s1);\n\n public abstract u b(String s);\n\n public abstract u c(String s);\n\n public abstract Iterator iterator();\n}", "public interface BaseIView {\n}", "public interface IBaseCustomCard {\r\n\r\n public void initActions();\r\n}", "public interface AbstractC0647Pn {\n void A9C(AbstractC0645Pl pl);\n\n void A9Y(Exception exc);\n}", "public interface d {\n void a();\n}", "public interface InterfaceA {\n\n\tpublic void methodFromInterfaceA();\n\n\t// Before Java 8, the interface only contains method signatures. \n\t// With Java 8 new feature Default Methods or Defender Methods, \n\t// you can include method body within the interface.\n\tdefault void defaultMethod() {\n System.out.println(\"from InterfaceA, default method...\");\n }\n\t\n\tstatic void someStaticMethod() {\n System.out.println(\"from InterfaceA static method...\");\n }\n\t\n\t/*\n\t * Why do we need to implement a method within the interface?\n\t * \n * Let's say you have an interface which has multiple methods, \n * and multiple classes are implementing this interface. One \n * of the method implementations can be common across the classes, \n * we can make that method as a default method, so that the \n * implementation is common for all classes.\n *\n * How to work with existing interfaces?\n * \n\t * Second scenario where you have already existing application, \n\t * for a new requirement we have to add a method to the existing \n\t * interface. If we add new method then we need to implement it \n\t * through out the implementation classes. By using the Java 8 \n\t * default method we can add a default implementation of that \n\t * method which resolves the problem.\n\t */\n}", "public interface FlyBehavior {\n public abstract void fly();\n// public abstract void\n}", "public interface C11922a {\n void bvR();\n }", "interface NewInterface extends Interface1,Interface2,Interface3{\n\n\tpublic void getD();\n\n}", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "interface HiPlus extends Hi {\n void Wow(String m);\n}", "public interface b {\n int a();\n }", "@Override\n public void defaultMethod() {\n I4.super.defaultMethod();\n }", "public interface IBaseInterface {\n public void onRefresh();\n public void onLoadMore();\n\n}", "public interface IBaseViewImpl {\n}" ]
[ "0.6748622", "0.66037184", "0.65837413", "0.6578818", "0.653563", "0.6480741", "0.6462306", "0.6460706", "0.6439402", "0.642615", "0.6413985", "0.638827", "0.63864493", "0.6371665", "0.63593537", "0.63278836", "0.6319783", "0.6291099", "0.62832165", "0.62621033", "0.62597847", "0.6254095", "0.62454146", "0.62308407", "0.622496", "0.62212276", "0.61980855", "0.6176807", "0.6163189", "0.61607486", "0.6154374", "0.6154211", "0.6150637", "0.61472666", "0.61472666", "0.6115631", "0.60745245", "0.6071034", "0.6070936", "0.60537255", "0.60504115", "0.6030425", "0.6030384", "0.6027773", "0.6022189", "0.6020964", "0.6010758", "0.598363", "0.5975175", "0.5971508", "0.5962462", "0.5955854", "0.5946992", "0.5946992", "0.59466684", "0.594219", "0.59396344", "0.59302694", "0.59252095", "0.5920429", "0.590535", "0.5901951", "0.58876985", "0.58758765", "0.5873065", "0.5870898", "0.5862095", "0.58616203", "0.5858711", "0.5851273", "0.5850579", "0.5849875", "0.584743", "0.5844189", "0.58405966", "0.5839514", "0.58385855", "0.58326644", "0.58309406", "0.5826389", "0.58131135", "0.580473", "0.5803679", "0.5803276", "0.5802884", "0.5800281", "0.57849044", "0.5784507", "0.578036", "0.57746553", "0.57735807", "0.5766862", "0.57592267", "0.57566094", "0.57557875", "0.57456315", "0.5740521", "0.5724397", "0.57226723", "0.5719514", "0.5715903" ]
0.0
-1
getting page & login
@Test(priority = 1) public void editTest() throws IOException, InterruptedException { driver.get(baseURL); loginPage lp = new loginPage(driver); SearchCustomerPage scp = new SearchCustomerPage(driver); EditDeleteCustomerPage edcp = new EditDeleteCustomerPage(driver); lp.setUserName(username); lp.setPassword(password); lp.clickLogin(); logger.info("login passed"); //getting cutsomers page scp.clickCustomers(); scp.clickCustomers1(); logger.info("customers page "); //choosing a customer to edit and editing them edcp.editCustomer(edcp.btnEdit2); logger.info("edit customer clicked"); //editing company edcp.editCompany("busy QA"); logger.info("edited company info"); //saving edcp.saveCutomer(); logger.info("customer saved"); String s = edcp.alertMsgSaved.getText(); //checking if true if(s.contains("The customer has been updated successfully.")) { Assert.assertTrue(true); logger.info("passed"); } else { captureScreen(driver, "editTest"); Assert.assertTrue(false); logger.info("failed"); } Thread.sleep(2000); lp.clickLogout(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String getLoginPage() {\r\n return loginPage;\r\n }", "private String getLoginPage() {\n\t\tif (loginPage == null) {\n\t\t\tloginPage = Application.getLoginPage(context);\n\t\t}\n\n\t\treturn loginPage;\n\t}", "private static void postLoginPage() {\n post(\"/login\", \"application/json\", (req, res) -> {\n HomerAccount loggedInAccount = homerAuth.login(req.body());\n if(loggedInAccount != null) {\n req.session().attribute(\"account\", loggedInAccount);\n res.redirect(\"/team\");\n } else {\n res.redirect(\"/login\");\n }\n return null;\n });\n }", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "private HttpUriRequest handleLoginPage(String loginPage, URI currentURI) {\n if (idpAlias != null) {\n org.jsoup.nodes.Document theLoginPage = Jsoup.parse(loginPage);\n Element socialLink = theLoginPage.getElementById(\"social-\" + this.idpAlias);\n assertThat(\"Unknown idp: \" + this.idpAlias, socialLink, Matchers.notNullValue());\n final String link = socialLink.attr(\"href\");\n assertThat(\"Invalid idp link: \" + this.idpAlias, link, Matchers.notNullValue());\n return new HttpGet(currentURI.resolve(link));\n }\n\n return handleLoginPage(user, loginPage);\n }", "public loginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}", "public LoginPage goToLoginPage() {\n loginButton.click();\n return new LoginPage();\n }", "protected void login() {\n\t\t\r\n\t}", "@Override\n String execute(HttpServletRequest request, HttpServletResponse response) throws LegohusException {\n String email = request.getParameter(\"email\");\n String password = request.getParameter(\"password\");\n User user = LogicFacade.login(email, password);\n HttpSession session = request.getSession();\n session.setAttribute(\"user\", user);\n \n return \"WEB-INF/\" + user.getRole() + \"page\";\n }", "public static void main(String[] args) throws IOException {\n\t\tSystem.out.println(getUrlByKey(\"登录页面\"));\n\t\t\n\t}", "@Given(\"Login Functionality\")\n public void Login_Functionality() {\n String url = ConfigurationReader.get(\"url\");\n Driver.get().get(url);\n //login with valid credentials\n loginPage.login();\n }", "private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public Page_Home doDefaultLogin() {\n\t\tLogStatus.info(\"Logging in with username :: \\'\" + TestUtils.getValue(\"username\") + \"\\' and password :: \\'\"\n\t\t\t\t+ TestUtils.getValue(\"password\") + \"\\'\");\n\t\tDriverManager.getDriver().findElement(By.name(\"username\")).sendKeys(TestUtils.getValue(\"username\"));\n\t\tDriverManager.getDriver().findElement(By.name(\"password\")).sendKeys(TestUtils.getValue(\"password\"));\n\t\tDriverManager.getDriver().findElement(By.id(\"Registration Desk\")).click();\n\t\tDriverManager.getDriver().findElement(By.id(\"loginButton\")).click();\n\n\t\treturn new Page_Home();\n\n\t}", "public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "Login.Req getLoginReq();", "private static void getLoginPage() throws IOException {\n get(\"/login\", (request, response) -> {\n Map<String, Object> attributes = new HashMap<>();\n attributes.put(\"title\", \"Login\");\n\n return SessionModelAndView.create(request.session(), attributes, \"index.jade\");\n }, new JadeEngine());\n }", "private void loadLogin(){\n }", "@And(\"is on login page\")\n\tpublic void is_on_login_page() {\n\t\tSystem.out.println(\"user on 1\");\n\t\tdriver.navigate().to(\"https://example.testproject.io/web/\");\n\n\t}", "public static void navigateAdminLoginPage() {\n Browser.driver.get(\"http://shop.pragmatic.bg/admin\");\n }", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "public LoginPageActions Navigate_LoginPage()\n\t{\n\t\t\n\t\tUIActions.fn_click(HomePageObjects.customerAccount);\n\t\treturn new LoginPageActions();\n\t}", "public void clciklogin() {\n\t driver.findElement(loginBtn).click();\r\n\t \r\n\t //Print the web page heading\r\n\t System.out.println(\"The page title is : \" +driver.findElement(By.xpath(\"//*[@id=\\\"app\\\"]//div[@class=\\\"main-header\\\"]\")).getText());\r\n\t \r\n\t //Click on Logout button\r\n\t// driver.findElement(By.id(\"submit\")).click();\r\n\t }", "public LoginPage openLoginPage() {\n\t\twebDriver.get(authorUrl);\n\t\tbobcatWait.withTimeout(Timeouts.MEDIUM).until(ExpectedConditions.visibilityOfElementLocated(By.id(\"login-box\")));\n\t\treturn this;\n\t}", "public String retourPageAuthentification() {\r\n\t\tdefaultVue.setPassword(null);\r\n\t\t// Retour à la page d'authentification\r\n\t\treturn \"LoginPassword\";\r\n\t}", "public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t}", "void redirectToLogin();", "public abstract void navigateToLogin();", "String getLoginapiavgrtt();", "public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}", "@Test\r\n\tpublic void login() throws Exception{\r\n\t\t\r\n\t\tSignInPage objSignInPage=new SignInPage(driver);\r\n\t\t\r\n\t\t//insert username and password\r\n\t\tobjSignInPage.signIn(Util_VU.LOGIN_ID,Util_VU.PASSWORD);\r\n\t\t\r\n\t\t//get\r\n\t\tString step2=driver.getTitle();\r\n\t\tSystem.out.println(step2);\r\n\t\t\r\n\t}", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "public void gotoAdminLogin(){ application.gotoAdminLogin(); }", "public LoginPageLiveGuruObject openLoginPageLiveGuru(WebDriver driver) {\r\n\t\tscrollToElement(driver, BasePageLiveGuruUIs.MY_ACCOUNT_FOOTER);\r\n\t\twaitForElementClickable(driver, BasePageLiveGuruUIs.MY_ACCOUNT_FOOTER);\r\n\t\tclick(driver, BasePageLiveGuruUIs.MY_ACCOUNT_FOOTER);\r\n\t\treturn PageObjectLiveGuruGeneratorManager.getLoginPage(driver);\r\n\t}", "public PageBase click_on_login_submit_form_button () {\r\n HomePageClass homePage = new HomePageClass(driver);\r\n\r\n LGN_Login_submitBTN.click();\r\n\r\n WebDriverWait wait = getWait();\r\n wait.until(ExpectedConditions.visibilityOf(homePage.logout));\r\n\r\n return homePage;\r\n\r\n }", "public String quickLogin(String token, String email, String password, HttpServletRequest req, HttpServletResponse resp) {\r\n //1. user info\r\n List<String> data = new ArrayList<String>();\r\n log.info (\"[quickLogin] verify user: \" + token);\r\n String userInfo = \"\";\r\n if (token != null) {\r\n userInfo = this.userTokenVerify(token, req, resp);\r\n } else if (email != null || password != null) { \r\n userInfo = this.login(email, password, req, resp); \r\n } else {\r\n userInfo = this.guestRegister(req, resp);\r\n }\r\n if (this.getStatus(userInfo) != NnStatusCode.SUCCESS) {\r\n return userInfo;\r\n } \r\n String sphere = \"en\";\r\n Pattern pattern = Pattern.compile(\".*sphere\\t((en|zh)).*\", Pattern.DOTALL);\r\n Matcher matcher = pattern.matcher(userInfo);\r\n if (matcher.matches()) {\r\n sphere = matcher.group(1);\r\n } \r\n data.add(userInfo);\r\n //2. channel lineup\r\n log.info (\"[quickLogin] channel lineup: \" + token);\r\n String lineup = this.channelLineup(token, null, null, false, null, true, false, false, false, null, req);\r\n data.add(lineup);\r\n if (this.getStatus(lineup) != NnStatusCode.SUCCESS) {\r\n return this.assembleSections(data);\r\n }\r\n //3. featured curators\r\n log.info (\"[quickLogin] featured curators\");\r\n String curatorInfo = this.curator(null, null, \"featured\", req);\r\n data.add(curatorInfo);\r\n //4. trending\r\n log.info (\"[quickLogin] trending channels\");\r\n String trending = this.channelStack(Tag.TRENDING, sphere, token, null, false);\r\n data.add(trending);\r\n if (this.getStatus(trending) != NnStatusCode.SUCCESS) {\r\n return this.assembleSections(data);\r\n }\r\n //5. recommended\r\n log.info (\"[quickLogin] recommended channels\");\r\n String recommended = this.channelStack(Tag.RECOMMEND, sphere, token, null, false); \r\n data.add(recommended);\r\n if (this.getStatus(recommended) != NnStatusCode.SUCCESS) {\r\n return this.assembleSections(data);\r\n }\r\n //6. featured\r\n log.info (\"[quickLogin] featured channels\");\r\n String featured = this.channelStack(Tag.FEATURED, sphere, token, null, false);\r\n data.add(featured);\r\n if (this.getStatus(featured) != NnStatusCode.SUCCESS) {\r\n return this.assembleSections(data);\r\n }\r\n //7. hottest\r\n log.info (\"[quickLogin] hot channels\");\r\n String hot = this.channelStack(Tag.HOT, sphere, token, null, false);\r\n data.add(hot);\r\n if (this.getStatus(hot) != NnStatusCode.SUCCESS) {\r\n return this.assembleSections(data);\r\n }\r\n //8. category top level\r\n // log.info (\"[quickLogin] top level categories: \" + ((sphere == null) ? \"default\" : sphere));\r\n // hardcoding to English for now, and keeping translations on the player side\r\n log.info (\"[quickLogin] top level categories: en\");\r\n String categoryTop = this.category (null, \"en\", false);\r\n data.add(categoryTop);\r\n return this.assembleSections(data);\r\n }", "protected Response login() {\n return login(\"\");\n }", "@Test\n\tpublic void login(){\n\t\tloginPage.login(data.readData(\"email\"), data.readData(\"password\"));\n\t\tAssert.assertEquals(isPresent(locateElement(By.id(home.homeLogo))),true,\"user not got logged in successfully\");\n\t}", "public LoginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public LoginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public abstract boolean isLoggedIn(String url);", "@Test(priority = 2)\r\n\tpublic void testLoginPage() {\r\n\r\n\t\tdriver.navigate().to(Login.URL);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tLogin.typeEmail(driver, \"[email protected]\");\r\n\t\tLogin.typePassword(driver, \"lozinka\");\r\n\t\t\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t\tLogin.clickLoginButton(driver);\r\n\t\t\t\t\r\n\t\tString currentUrl = driver.getCurrentUrl();\r\n\t\tString expectedUrl = \"https://www.humanity.com/app/\";\r\n\t\tSoftAssert sa = new SoftAssert();\r\n\t\tsa.assertEquals(currentUrl, expectedUrl);\r\n\t\tsa.assertAll();\r\n\t}", "public void SwichLogingPageAndSignIn()\r\n {\r\n WaitTime(2000);\r\n driver.navigate().to(\"https://www.n11.com/giris-yap\");\r\n \r\n driver.findElement(By.cssSelector(\"#email\")).sendKeys(\"[email protected]\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#password\")).sendKeys(\"nacre123456\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#loginButton\")).click();\r\n \r\n }", "private String navigateAfterLoginAttemp()\r\n {\r\n Identity identity = this.getIdentity();\r\n\r\n if (identity == null) {\r\n return \"/\";\r\n }\r\n if (identity instanceof Pilot) {\r\n return \"/pilot/index.xhtml\";\r\n }\r\n if (identity instanceof General) {\r\n return \"/general/index.xhtml\";\r\n }\r\n if (identity instanceof SystemAdministrator) {\r\n return \"/admin/index.xhtml\";\r\n }\r\n throw new IllegalStateException(\"Identita \" + identity\r\n + \" nie je ziadneho z typov, pre ktory dokazem 'navigovat'!\");\r\n }", "public String login() {\r\n String ruta = \"\";\r\n UsuarioDAO usuDAO = new UsuarioDAO();\r\n if (usuDAO.Login(this) != null) {\r\n ruta = FN.ruta(\"menu\");\r\n Empresa em = new Empresa();\r\n em.setEmpresa(\"2101895685\");\r\n em.setRazonSocial(\"Tibox SRL\");\r\n em.setDireccion(\"MiCasa\");\r\n SSU.sEmpresa(em);\r\n SSU.sUsuario(this);\r\n }\r\n return ruta;\r\n }", "@Test\n public void check_Login_Success() {\n lPage = new LoginPage(webDriver);\n lPage.login(\"admin\",\"admin\");\n hPage = new HomePage(webDriver);\n String loginText = hPage.getHomePageText();\n assertEquals(\"Congratulations!\",loginText);\n }", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic String loginPage(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tif (isCurrentAuthenticationAnonymous()) {\r\n\t\t\treturn \"login\";\r\n\t\t} else {\r\n\t\t\treturn \"redirect:/list\";\r\n\t\t}\r\n\t}", "public Loginpage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "public LoginResult login() {\n\t\tif (!auth.isLoggedIn())\n\t\t\treturn LoginResult.MAIN_LOGOUT;\n\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_INDEX);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tArrayList<Cookie> tmpCookies = Cookie.getCookies(conn);\n\t\t\taws = Cookie.getCookie(tmpCookies, \"AWSELB\");\n\t\t\tphp = Cookie.getCookie(tmpCookies, \"PHPSESSID\");\n\t\t\t\n\t\t\tconn = Utility.getGetConn(FUND_LOGIN);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tString location = Utility.getLocation(conn);\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t// TODO: future speed optimization\n\t\t\t//if (auth.getPHPCookie() == null) {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie()));\n\t\t\t\tCookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), \"PHPSESSID\");\n\t\t\t\t// saves time for Blackboard and retrieveProfileImage().\n\t\t\t\tauth.setPHPCookie(phpCookie);\n\t\t\t\t\n\t\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\t\n\t\t\t\tlocation = Utility.getLocation(conn);\n\t\t\t\tif (location.startsWith(\"signin.aspx\"))\n\t\t\t\t\tlocation = \"https://eraider.ttu.edu/\" + location;\n\t\t\t\tconn = Utility.getGetConn(location);\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\t// might need to set ESI and ELC here. If other areas are bugged, this is why.\n\t\t\t/*} else {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie()));\n\t\t\t\t/// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!!\n\t\t\t\tthrow new NullPointerException(\"Needs implementation!\");\n\t\t\t}*/\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/login.php?ticket=ST-...\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/funds_home.php\n\t\t\tlocation = Utility.getLocation(conn);\n\t\t\tif (location.startsWith(\"index.\")) {\n\t\t\t\tlocation = \"https://get.cbord.com/raidercard/full/\" + location;\n\t\t\t}\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tUtility.readByte(conn);\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundlogin\", ErrorType.Fatal);\n\t\t\treturn LoginResult.OTHER;\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundlogingeneral\", ErrorType.APIChange);\n\t\t\treturn LoginResult.OTHER;\n\t\t}\n\n\t\tloggedIn = true;\n\n\t\treturn LoginResult.SUCCESS;\n\t}", "@Given(\"user is on login page\")\n\tpublic void user_is_on_login_page() {\n\t\tSystem.out.println(\"user is on login page\");\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"https://opensource-demo.orangehrmlive.com/index.php/auth/validateCredentials\");\n\t \n\t}", "protected void doPostLogin(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tout.println(\"Look where we are, it's the login page\");\n\t\t\n\t\t//get parameter Names\n\t\tsetParameters(request);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tKeyspace keyspace = Connection.getKeyspace();\n\t\tStringSerializer se = StringSerializer.get();\n\t\t\n\t\ttry\n\t\t{\n\t\t\t// given Keyspace keyspace and StringSerializer se\n\t\t\tSliceQuery<String, String, String> q = HFactory.createSliceQuery(keyspace, se, se, se);\n\t\t\tq.setColumnFamily(\"Users\") .setKey(displayName).setColumnNames(\"fullname\", \"email\", \"password\");\n\t\t\tQueryResult<ColumnSlice<String, String>> r = q.execute();\n\n\t\t\tfullname = r.get().getColumnByName(\"fullname\").getValue();\n\t\t\temail = r.get().getColumnByName(\"email\").getValue();\n\n\t\t\tif(password.equals(r.get().getColumnByName(\"password\").getValue()))\n\t\t\t{\n\t\t\t\t//LOGGED IN CORRECTLY\n\t\t\t\t\n\t\t\t\tmySexySession.setAttribute(\"displayName\", displayName);\n\t\t\t\tmySexySession.setAttribute(\"fullname\", fullname);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmySexySession.setAttribute(\"message\", \"Incorrect Password.\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\t//catches happen when the key is not found (i.e. user doesn't exist)\n\t\t\tmySexySession.setAttribute(\"message\", \"User does not exist.\");\n\t\t}\n\t\tresponse.sendRedirect(\"/quotes/home\");\n\t}", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "@Test(description = \"Login con credenciales correctas\", enabled = false)\n\tpublic void login() {\n\t\tPageLogin pageLogin = new PageLogin(driver);\n\t\tPageReservation pageReservation = new PageReservation(driver);\n\t\tpageLogin.login(\"mercury\", \"imercury\");\n\t\tpageReservation.assertPage();\n\t\t//****Este código se cambió por A****\n\t\t/*driver.findElement(By.name(\"userName\")).sendKeys(\"mercury\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"mercury\");\n\t\tdriver.findElement(By.name(\"login\")).click();*/\n\t\t//******todo este código que se repite se cambió por B****\n\t\t/*try {\n\t\t\tThread.sleep(5);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t//****código B****\n\t\t/*Helpers helper = new Helpers();\n\t\thelper.sleepSeconds(4);*/\n\t\t//este codigo pasa a la Page Object(page reservation)\n\t\t//Assert.assertTrue(driver.findElement(By.xpath(\"/html/body/div/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[3]/td/font\")).getText().contains(\"Flight Finder to search\"));\n\t}", "public String applicationLogin(){\n\t\treturn \"/dblogin.jsp\";\n\t}", "public SigninPage getHomepage() throws Exception {\n \t WebElement homePage = getDriver().findElement(By.xpath(\"//span[text()='Welcome, anusha kariveda!']\")); //Home page validation by using menu tab\n \t //After Magento 2.3.upgrade fix on welcome message\n \t\tAssert.assertEquals(true, homePage.isDisplayed());\n \t\tSystem.out.println(\"User Successfully loggedin and placed under homepage\");\n \t\tThread.sleep(4000);\n \treturn new SigninPage();\n }", "public LoginPage() {\r\n\t\t\t\r\n\t\t\t//Initialize webElements.\r\n\t\t\tPageFactory.initElements(driver, this);\r\n\t\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public WebDriver login() {\r\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\sa841\\\\Documents\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n //System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\sa841\\\\Documents\\\\chromedriver_win32\\\\phantomjs.exe\");\r\n String URL = \"http://Admin:[email protected]:8080/phenotips123/bin/loginsubmit/XWiki/XWikiLogin/\";\r\n ChromeOptions options = new ChromeOptions();\r\n options.addArguments(\"window-size=1024,768\");\r\n DesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n capabilities.setCapability(ChromeOptions.CAPABILITY, options);\r\n WebDriver driver = new ChromeDriver(capabilities);\r\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n //WebDriver driver = new PhantomJS();\r\n driver.get(URL);\r\n driver.findElement(By.id(\"j_username\")).sendKeys(\"Admin\");\r\n driver.findElement(By.id(\"j_password\")).sendKeys(\"admin\");\r\n driver.findElement(By.className(\"button\")).click();\r\n return driver;\r\n }", "public static String login(HttpServletRequest request) {\n\t\tif (request.getMethod().equals(FinalUtil.HTTP_GET)) {\n\t\t\treturn \"loginpage.html\";\n\t\t}\n\n\t\t// POST logic\n\t\tEmployee loggedEmployee = EmployeeService.getEmployeeService().login(\n\t\t\t\tnew Employee(\n\t\t\t\t\t\trequest.getParameter(\"email\"), \n\t\t\t\t\t\trequest.getParameter(\"password\")\n\t\t\t\t));\n\t\tSystem.out.println(\"LOGIN CONTROLLER: \" + loggedEmployee);\n\t\t\n\t\trequest.setAttribute(\"loggedEmployee\", loggedEmployee);\n\t\t\n\t\t// Wrong Credentials\n\t\tif (loggedEmployee.getEmailAddress().equals(\"\")) {\n\t\t\treturn \"loginpage.html\";\n\t\t} else {\n\t\t\n\t\t\trequest.getSession().setAttribute(\"loggedEmployee\", loggedEmployee);\n\n\t\t\t\n\t\t\tEmployee logged = (Employee) request.getSession().getAttribute(\"loggedEmployee\");\n\t\t\t\n\t\t\tSystem.out.println(\"Parameters(email and password from form): \" + request.getParameter(\"email\") +\":\" + request.getParameter(\"password\"));\n\t\t\tboolean loggedEmployee1 = EmployeeService.getEmployeeService().isManager(logged);\n\n\t\t\tif (loggedEmployee1 == true) {\n\t\t\t\treturn \"managerHome.jsp\";\n\t\t\t} else\n\t\t\t\treturn \"employeeHome.jsp\";\n\t\t}\n\t\t}", "@Given(\"landing to the loginpage and signin\")\n\tpublic void user_on_login_page_andSignin() {\n\t\t\n\t\t\n\t\tdriver.findElement(By.className(\"login\")).click();\n\t\t\n\t}", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "public void VerifyHomepage(){\r\n\t\t//String username = getValue(Email);\r\n\t//\tString password = getValue(Password);\r\n\r\n\t//\tclass Local {};\r\n\t\t/*Reporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account should be clicked and user should get logged in\");*/\r\n\t\ttry{\r\n\t\t\tsleep(3000);\r\n\t\t\t//driver.findElement(locator_split(\"btn_privacyok\")).click();\r\n\t\tclick(locator_split(\"btn_privacyok\"));\r\n\t\t\t\r\n\t\t\t/*Reporter.log(\"PASS_MESSAGE:- My Account is clicked and user is logged in\");*/\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- User is not logged in\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public DashboardPage clickLogin() {\n driver.findElement(By.id(\"login-button\")).click();\n return new DashboardPage(driver);\n }", "public String login() throws Exception {\n System.out.println(user);\n return \"toIndex\" ;\n }", "@Given(\"User is on the login page\")\n\tpublic void user_is_on_the_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src\\\\test\\\\resources\\\\chromedriver.exe\");\n\t\tdriver=new ChromeDriver();\n\t\tdriver.get(\"https://10.232.237.143/TestMeApp/fetchcat.htm\");\n\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t driver.findElement(By.id(\"details-button\")).click();\n\t\tdriver.findElement(By.id(\"proceed-link\")).click();\n\t}", "Login() { \n }", "RequestResult loginRequest() throws Exception;", "public String toLogin() {\r\n\t\treturn \"/login.xhtml\";\r\n\t}", "@Test(priority=1)\r\n\tpublic void loginApp()\r\n\t{\r\n\t\t\r\n\t\tlogger=report.createTest(\"Login To Pymidol\");\r\n\t\r\n\t\tLoginPage loginPage=PageFactory.initElements(driver, LoginPage.class); //it will goto login page check all the locators initialise then it will return object of same class\r\n\t\t\r\n\t\tlogger.info(\"Starting Application\"); //it will provide information about test or test step\r\n\t\t\r\n\t\tloginPage.loginToPymidol(excel.getStringData(\"Login\", 0, 0), excel.getStringData(\"Login\", 0, 1));\r\n\t\t\r\n\t\tlogger.pass(\"Login done Success\");\r\n\t\r\n\t}", "com.bingo.server.msg.REQ.LoginRequest getLogin();", "NewAccountPage openNewAccountPage();", "public LoginPage()\r\n\t{\r\n\t\tPageFactory.initElements(driver,this);\r\n\t}", "@Test\n\tpublic void TC02_Login() {\n\t\tSystem.out.println(\"TC02 : 1. Click to Login Page\");\n\t\tclickToElemnet(loginLinkX);\n\n\t\t// Verify Navigate to Login Page\n\t\tSystem.out.println(\"TC02 : 2. Login Page Display Status :\" + checkElementDisplayed(loginPageX));\n\n\t\t// Login to Page\n\t\tsendkeysToElement(emailTxtX, regEmail);\n\t\tsendkeysToElement(passwordTxtX, regPassword);\n\t\tclickToElemnet(loginBtnX);\n\n\t\t// Verify Login Successfully\n\t\tSystem.out.println(\"TC02 : 3. Login Successfully Status : \" + checkElementDisplayed(myAccountLinkX));\n\t}", "private void action_login_utente(HttpServletRequest request, HttpServletResponse response) throws IOException{\n //recupero credenziali di login\n String email = SecurityLayer.addSlashes(request.getParameter(\"email\").toLowerCase());\n email = SecurityLayer.sanitizeHTMLOutput(email);\n String password = SecurityLayer.addSlashes(request.getParameter(\"password\"));\n password = SecurityLayer.sanitizeHTMLOutput(password);\n if(!email.isEmpty() && !password.isEmpty()){\n try {\n //recupero utente dal db\n Utente u = ((PollwebDataLayer)request.getAttribute(\"datalayer\")).getUtenteDAO().getUtenteByEmail(email);\n //controllo che l'utente esista\n if(u != null){\n //controllo i parametri\n if(u.getEmail().equalsIgnoreCase(email) && new BasicPasswordEncryptor().checkPassword(password, u.getPassword())){\n //se l'utente esiste ed è lui\n\n request.setAttribute(\"userName\", u.getNome());\n request.setAttribute(\"user_id\", u.getId());\n System.out.println(u.getId());\n\n SecurityLayer.createSession(request, u.getId());\n\n if (request.getParameter(\"referrer\") != null) {\n response.sendRedirect(request.getParameter(\"referrer\"));\n } else {\n response.sendRedirect(\"/home\");\n }\n }else{\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n request.setAttribute(\"error\", \"Credenziali errate\");\n response.sendRedirect(\"/login?error=100\");\n }\n }\n\n }else{\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login&error=102\");\n }\n }\n }catch (DataException ex) {\n //TODO Handle Exception\n\n }\n } else {\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login?error=101\");\n }\n }\n }", "@BeforeMethod\n public void beforeMethod() {\n loginPage = new LoginPage(driver);\n loginPage.open(); //open poker URL\n }", "@Test\n public void stage04_searchAndPage() {\n String keyWord = \"bilgisayar\";\n Integer pageNumber = 2;\n //Searching with parameters\n SearchKey searchKey = new SearchKey(driver);\n HomePage homePage = searchKey.search(keyWord, pageNumber);\n //Getting current url\n String currentUrl = homePage.getCurrentURL();\n //Testing if this is desired page\n assertEquals(currentUrl, \"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\");\n //logging\n if (currentUrl.equals(\"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\")) {\n logger.info(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n } else {\n logger.error(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n }\n }", "public LandingPage loginToAccount(){\n\t\taction.WaitForWebElement(linkLogin)\n\t\t\t .Click(linkLogin);\n\t\treturn this;\n\t}", "@Test\n\tpublic void checkPageLoginFlow() {\n\t driver.findElement(By.cssSelector(\"a.login\")).click();\n\n\t // Click login again on Login Page\n\t driver.findElement(By.cssSelector(\"button.login-page-dialog-button\")).click();\n\t\t \n\t // Enter Username & PW\n\t String username = \"username\";\n\t String password = \"password\";\n\n\t // Select and enter text for username and password\n\t driver.findElement(By.id(\"1-email\")).click();\n\t driver.findElement(By.id(\"1-email\")).sendKeys(username);\n\t driver.findElement(By.name(\"password\")).click();\n\t driver.findElement(By.name(\"password\")).sendKeys(password);\n\n\t // Verify Username box displayed\n\t boolean usernameElement = driver.findElement(By.id(\"1-email\")).isDisplayed();\n\t \tAssert.assertTrue(usernameElement, \"Is Not Present, this is not expected\");\n\t \n\t // Verify Password box displayed\n\t boolean passwordElement = driver.findElement(By.name(\"password\")).isDisplayed();\n\t \tAssert.assertTrue(passwordElement, \"Is Not Present, this is not expected\");\n\t}", "@Test\n\tpublic void _02_loginWithValidCredentials() throws InterruptedException {\n\t\t\n\t\tlp = new LoginPage();\n\t\tThread.sleep(1000);\n\t\tlp.userName.clear();\n\t\tsendText(lp.userName, ConfigsReader.getProperty(\"username\"));\n\t\tlp.loginBtn.click();\n\t\tlp.password.clear();\n\t\tsendText(lp.password, ConfigsReader.getProperty(\"password\"));\n\t\tlp.loginBtn.click();\n\n\t\tThread.sleep(3000);//for demo purposes only\n\t\tpp = new ProfilePage();\n\t\tAssertJUnit.assertEquals(ConfigsReader.getProperty(\"username\"), pp.userName.getText());\n\t}", "public String accionLogin(){\n\t\t\r\n\t\tlog.info(\"Ingreso hacer login del usuario!!! \");\r\n\t\tString retorno = null;\r\n\t\ttry {\r\n\t\t\tString pass = new CriptPassword().getHashSH1(loginBaking.getUserBean().getPass());\r\n\t\t\tUser u = ejbMangerUser.login(loginBaking.getUserBean().getNick(), pass);\r\n\t\t\tloginBaking.setUserBean(u);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<Network> listNetwork = ejbNetwork.listNetwork();\r\n\t\t\tHttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t\t\tsession.setAttribute(\"listaNetwork\", listNetwork);\r\n\t\t\t\r\n\t\t\tretorno = \"site/home\";\r\n\t\t} catch (InSideException ex) {\r\n\t\t\tlog.error(ex.getKeyMSGError());\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage (FacesMessage.SEVERITY_ERROR, \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError()), \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError())));\r\n\t\t}\r\n\t\tlog.debug(\"Pagina de redireccion --->> \" + retorno);\r\n\t\tlog.info(\"fin de Login!!!\");\r\n\t\treturn retorno;\r\n\t}", "@Override\r\n\tpublic void login() {\n\r\n\t}", "@Override\r\n\tpublic String execute(HttpServletRequest request) {\t\t\r\n\t\tString page = ConfigurationManager.getProperty(\"path.page.login\");\r\n\t\tString language = request.getParameter(PARAM_NAME_LANGUAGE);\r\n\t\tswitch (language) {\r\n\t\tcase \"en\":\r\n\t\t\trequest.getSession().setAttribute(\"lang\", \"en\");\r\n\t\t\tbreak;\r\n\t\tcase \"ru\":\r\n\t\t\trequest.getSession().setAttribute(\"lang\", \"ru\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn page;\r\n\t}", "private void initPages() {\n\t\tloginPage = new LoginPage(driver);\n\t\tflipkart = new FlipkartPage(driver);\n\t\t\n\t}", "@Override\n public void doInit(Page page, Map<String, Object> args) throws Exception {\n Selectors.wireVariables(page, this, Selectors.newVariableResolvers(getClass(), null));\n\n UserCredential cre = authService.getUserCredential();\n if (cre == null || cre.isAnonymous()) {\n Executions.sendRedirect(\"/login/\");\n }\n }", "public HomePage loginAs(String username, String password) {\n // The PageObject methods that enter username, password & submit login have\n // already defined and should not be repeated here.\n typeUserName(username);\n typePassword(password);\n return clickOnSignInButton();\n }", "@Test(dataProvider = \"getData\")\r\n\tpublic void basePageNavigation(String username, String password) throws IOException {\n\t\tdriver.get(props.getProperty(\"url\"));\r\n\r\n\t\tLandingPage lp = new LandingPage(driver);\r\n\t\t// Assert heading message is loaded\r\n\t\tSystem.out.println(\"Verifying if the heading message is loaded\");\r\n\t\tString logoText = lp.GetHeadingText().getText();\r\n\t\tAssert.assertEquals(logoText, \"By Players, For Players\");\r\n\r\n\t\t// clear values from username and password fields is any;\r\n\t\tif (!lp.GetEmailInputField().getAttribute(\"value\").isEmpty()\r\n\t\t\t\t|| !lp.GetPasswordInputField().getAttribute(\"value\").isEmpty()) {\r\n\t\t\tlp.GetEmailInputField().clear();\r\n\t\t\tlp.GetEmailInputField().clear();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"inserting username\");\r\n\t\tSystem.out.println(String.format(\r\n\t\t\t\t\"Inserting respective values for the fields \\\"Username\\\": \\\"%s\\\" and for \\\"Password\\\": \\\"%s\\\"\",\r\n\t\t\t\tusername, password));\r\n\t\tlp.GetEmailInputField().sendKeys(username);\r\n\t\tlp.GetPasswordInputField().sendKeys(password);\r\n\t\t// click on login button\r\n\t\tSystem.out.println(\"Clicking on login submit button\");\r\n\t\tlp.GetLoginSubmitButton().click();\r\n\t\t// Assert user is logged in successfully\r\n\t\tSystem.out.println(\"Verifying if the user is successfully logged in\");\r\n\t\tLoginPage lnPage = new LoginPage(driver);\r\n\t\tlnPage.GetVerifyButton().click();\r\n\t\tlnPage.GetAccountButton().click();\r\n\t\tString accountName = lnPage.GetAccountName().getText();\r\n\t\tAssert.assertEquals(accountName, \"john doe\");\r\n\t\t// logout from the site\r\n\t\tlnPage.GetLogoutButton().click();\r\n\t}", "@GetMapping(\"/clients/clientLogin\")\n\tpublic String pageLoginClientGet() {\n\t\tClientController.LOGGER.info(\"La page login client est demandée\");\n\t\treturn \"/clients/clientLogin\";\n\t}", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "@org.junit.Test\r\n\tpublic void login() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"LoginServlet?action=login\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"info\", \"jitl\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"info2\", \"admin\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"info3\", \"admin\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t\tSystem.out.println(string);\r\n\t}", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "@Test(priority=0)\n \n public void test_Login(){\n \tobjLogin = new PilrLogin(driver);\n \n \t//Verify login page title\n \tString loginPageTitle = objLogin.getPageSource();\n \tAssert.assertTrue(loginPageTitle.toLowerCase().contains(\"sign in\"));\n\n \n \t//login to application\n \tobjLogin.loginToPilr(objtestvars.getUserName(), \n \t\t\tobjtestvars.getPassWrd());\n \n \t// go the next page\n \tobjHomePage = new PilrHomePage(driver);\n \n \t//Verify home page\n \tAssert.assertTrue(objHomePage.getHomePageWelcome().toLowerCase().contains(\n \t\t\t\"welcome back, bikerjohn!\"));\n \tSystem.out.println(\"[Test Case]Home Page Verified\");\n }", "public boolean doLogin(String userName, String password) throws IOException {\n// String userName = \"AdamLaurencik\";\n// String password = \"970520/4960\";\n\n WebClient client = new WebClient();\n page = client.getPage(\"https://gymdb.edupage.org/login/?msg=3\");\n\n HtmlElement button = (HtmlElement) page.createElement(\"button\");\n button.setAttribute(\"type\", \"submit\");\n\n HtmlElement form = (HtmlElement) page.createElement(\"form\");\n form.setAttribute(\"action\", \"https://gymdb.edupage.org/login/edubarLogin.php\");\n form.setAttribute(\"enctype\", \"multipart/form-data\");\n form.setAttribute(\"method\", \"post\");\n\n HtmlElement username = (HtmlElement) page.createElement(\"input\");\n username.setAttribute(\"type\", \"text\");\n username.setAttribute(\"name\", \"username\");\n username.setAttribute(\"value\", userName);\n\n HtmlElement pass = (HtmlElement) page.createElement(\"input\");\n pass.setAttribute(\"type\", \"password\");\n pass.setAttribute(\"value\", password);\n pass.setAttribute(\"name\", \"password\");\n\n form.appendChild(username);\n form.appendChild(pass);\n form.appendChild(button);\n\n page = button.click();\n\n String htmlCode = page.asText();\n\n if (htmlCode.contains(\"Ste prihlásený ako \")) {\n return true;\n } else {\n return true;\n }\n }", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }", "private void redirectToLandingPage(){\n\t\tappInjector.getAppService().getLoggedInUser(new SimpleAsyncCallback<UserDo>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(UserDo loggedInUser) {\n\t\t\t\tAppClientFactory.setLoggedInUser(loggedInUser);\n\t\t\t\tUcCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tHomeCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tAppClientFactory.getInjector().getWrapPresenter().get().setLoginData(loggedInUser);\n\t\t\t\tif (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.STUDENT)){\n\t\t\t\t\t\n\t\t\t\t}else if(AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.SHELF)){\n\t\t\t\t\tAppClientFactory.fireEvent(new DisplayNoCollectionEvent());\n\t\t\t\t}else{\n\t\t\t\t\tMap<String, String> params = new HashMap<String,String>();\n\t\t\t\t\tparams.put(\"loginEvent\", \"true\");\n\t\t\t\t\tappInjector.getPlaceManager().revealPlace(PlaceTokens.HOME, params);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@RequestMapping(value = \"/autorization\", method = RequestMethod.GET)\n public String getLoginForm() {\n System.out.println(\"Fetching the Authorization URL...\");\n final String authorizationUrl = service.getAuthorizationUrl();\n return \"redirect:\" + authorizationUrl;\n }", "@Given(\"^user is already login page$\")\n\tpublic void user_is_already_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Jamshed Khan\\\\Downloads\\\\chromedriver_win32 (2)\\\\chromedriver.exe\");\n\t\t driver= new ChromeDriver();\n\t\t driver.get(\"http://demo.guru99.com/v4\");\n\t}", "public void process(String uid, String pass) throws IOException\n {\n System.out.println(\"Attempting to login with uid : \" + uid + \", pass : \" + pass + \" at : \" + BASE_URL);\n\n // Get the login HTML document and Cookies\n HttpURLConnection loginHttp = getLoginHttp();\n Document loginDocument = getLoginPage(loginHttp);\n CookieUtils cookieUtils = getLoginCookies(loginHttp);\n\n // Prepare form data\n LoginData loginData = new LoginData(loginDocument, uid, pass);\n String formData = loginData.constructFormBody();\n\n // Submit the login request\n HttpURLConnection signInHttp = getSignInHttp();\n signInHttp.setDoOutput(true);\n signInHttp.setInstanceFollowRedirects(false);\n cookieUtils.saveCookies(signInHttp);\n writeFormBody(signInHttp, formData);\n cookieUtils.loadCookies(signInHttp);\n\n // Assign authentication and get workspace HTML\n HttpURLConnection workspaceUrl = getLoginHttp();\n cookieUtils.saveCookies(workspaceUrl);\n String workspaceHtml = HtmlUtils.downloadPage(workspaceUrl);\n\n System.out.println(workspaceHtml);\n }", "public void gotoCoachLogin(){ application.gotoCoachLogin(); }", "public abstract boolean showLogin();", "@FXML\n\tprivate void handleLogin() {\n\t \n\t\t\t\ttry {\n\t\t\t\t\tmain.showHomePageOverview(username.getText(),password.getText());\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\n\t}" ]
[ "0.730368", "0.68912953", "0.6796928", "0.67174655", "0.66568553", "0.6630687", "0.65122163", "0.6497952", "0.64791316", "0.64612603", "0.64537346", "0.64489067", "0.64316493", "0.64164656", "0.63903964", "0.6383396", "0.63476294", "0.63469183", "0.62912357", "0.6259492", "0.625913", "0.6258483", "0.6249235", "0.6248007", "0.6222308", "0.62211317", "0.6213583", "0.62068576", "0.62052727", "0.61891145", "0.61739486", "0.6124779", "0.6111379", "0.60998833", "0.6094705", "0.60930383", "0.60851425", "0.6072663", "0.60687715", "0.60687715", "0.60646695", "0.6060007", "0.6056889", "0.6052607", "0.6044567", "0.6026579", "0.60220593", "0.6018502", "0.60158974", "0.60143876", "0.600846", "0.60075796", "0.60031706", "0.59921986", "0.5991896", "0.59896344", "0.5962201", "0.5939586", "0.59365803", "0.59355974", "0.5929204", "0.59206665", "0.58898497", "0.5884656", "0.58805084", "0.58804727", "0.5879871", "0.58763224", "0.58748716", "0.58659893", "0.5865532", "0.5857859", "0.58548975", "0.58538824", "0.58520055", "0.58508694", "0.585", "0.584203", "0.5841208", "0.58386743", "0.5838061", "0.58378154", "0.5837772", "0.58351225", "0.58334494", "0.58315706", "0.5823172", "0.5819897", "0.58191377", "0.5812293", "0.58088994", "0.5808836", "0.5807525", "0.5806346", "0.58016557", "0.5800452", "0.5798446", "0.5791632", "0.57913715", "0.57823265", "0.57689464" ]
0.0
-1
getting page & login
@Test(priority = 2) public void deleteTest() throws IOException, InterruptedException { driver.get(baseURL); loginPage lp = new loginPage(driver); SearchCustomerPage scp = new SearchCustomerPage(driver); EditDeleteCustomerPage edcp = new EditDeleteCustomerPage(driver); lp.setUserName(username); lp.setPassword(password); lp.clickLogin(); logger.info("login passed"); //getting cutsomers page scp.clickCustomers(); scp.clickCustomers1(); logger.info("customers page "); //choosing a customer to edit and editing them edcp.editCustomer(edcp.btnEdit2); logger.info("edit customer clicked"); edcp.deleteCutomer(); logger.info("deleting"); edcp.deleteCutomer1(); logger.info("confirm delete"); String s = edcp.alertMsgDeleted.getText(); //checking if true if(s.contains("The customer has been deleted successfully.")) { Assert.assertTrue(true); logger.info("passed"); } else { captureScreen(driver, "deleteTest"); Assert.assertTrue(false); logger.info("failed"); } Thread.sleep(2000); lp.clickLogout(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String getLoginPage() {\r\n return loginPage;\r\n }", "private String getLoginPage() {\n\t\tif (loginPage == null) {\n\t\t\tloginPage = Application.getLoginPage(context);\n\t\t}\n\n\t\treturn loginPage;\n\t}", "private static void postLoginPage() {\n post(\"/login\", \"application/json\", (req, res) -> {\n HomerAccount loggedInAccount = homerAuth.login(req.body());\n if(loggedInAccount != null) {\n req.session().attribute(\"account\", loggedInAccount);\n res.redirect(\"/team\");\n } else {\n res.redirect(\"/login\");\n }\n return null;\n });\n }", "public void doLogin() {\n\t\tSystem.out.println(\"loginpage ----dologin\");\n\t\t\n\t}", "private HttpUriRequest handleLoginPage(String loginPage, URI currentURI) {\n if (idpAlias != null) {\n org.jsoup.nodes.Document theLoginPage = Jsoup.parse(loginPage);\n Element socialLink = theLoginPage.getElementById(\"social-\" + this.idpAlias);\n assertThat(\"Unknown idp: \" + this.idpAlias, socialLink, Matchers.notNullValue());\n final String link = socialLink.attr(\"href\");\n assertThat(\"Invalid idp link: \" + this.idpAlias, link, Matchers.notNullValue());\n return new HttpGet(currentURI.resolve(link));\n }\n\n return handleLoginPage(user, loginPage);\n }", "public loginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}", "public LoginPage goToLoginPage() {\n loginButton.click();\n return new LoginPage();\n }", "protected void login() {\n\t\t\r\n\t}", "@Override\n String execute(HttpServletRequest request, HttpServletResponse response) throws LegohusException {\n String email = request.getParameter(\"email\");\n String password = request.getParameter(\"password\");\n User user = LogicFacade.login(email, password);\n HttpSession session = request.getSession();\n session.setAttribute(\"user\", user);\n \n return \"WEB-INF/\" + user.getRole() + \"page\";\n }", "public static void main(String[] args) throws IOException {\n\t\tSystem.out.println(getUrlByKey(\"登录页面\"));\n\t\t\n\t}", "@Given(\"Login Functionality\")\n public void Login_Functionality() {\n String url = ConfigurationReader.get(\"url\");\n Driver.get().get(url);\n //login with valid credentials\n loginPage.login();\n }", "private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public Page_Home doDefaultLogin() {\n\t\tLogStatus.info(\"Logging in with username :: \\'\" + TestUtils.getValue(\"username\") + \"\\' and password :: \\'\"\n\t\t\t\t+ TestUtils.getValue(\"password\") + \"\\'\");\n\t\tDriverManager.getDriver().findElement(By.name(\"username\")).sendKeys(TestUtils.getValue(\"username\"));\n\t\tDriverManager.getDriver().findElement(By.name(\"password\")).sendKeys(TestUtils.getValue(\"password\"));\n\t\tDriverManager.getDriver().findElement(By.id(\"Registration Desk\")).click();\n\t\tDriverManager.getDriver().findElement(By.id(\"loginButton\")).click();\n\n\t\treturn new Page_Home();\n\n\t}", "public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}", "Login.Req getLoginReq();", "private static void getLoginPage() throws IOException {\n get(\"/login\", (request, response) -> {\n Map<String, Object> attributes = new HashMap<>();\n attributes.put(\"title\", \"Login\");\n\n return SessionModelAndView.create(request.session(), attributes, \"index.jade\");\n }, new JadeEngine());\n }", "private void loadLogin(){\n }", "@And(\"is on login page\")\n\tpublic void is_on_login_page() {\n\t\tSystem.out.println(\"user on 1\");\n\t\tdriver.navigate().to(\"https://example.testproject.io/web/\");\n\n\t}", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "public static void navigateAdminLoginPage() {\n Browser.driver.get(\"http://shop.pragmatic.bg/admin\");\n }", "public LoginPageActions Navigate_LoginPage()\n\t{\n\t\t\n\t\tUIActions.fn_click(HomePageObjects.customerAccount);\n\t\treturn new LoginPageActions();\n\t}", "public void clciklogin() {\n\t driver.findElement(loginBtn).click();\r\n\t \r\n\t //Print the web page heading\r\n\t System.out.println(\"The page title is : \" +driver.findElement(By.xpath(\"//*[@id=\\\"app\\\"]//div[@class=\\\"main-header\\\"]\")).getText());\r\n\t \r\n\t //Click on Logout button\r\n\t// driver.findElement(By.id(\"submit\")).click();\r\n\t }", "public LoginPage openLoginPage() {\n\t\twebDriver.get(authorUrl);\n\t\tbobcatWait.withTimeout(Timeouts.MEDIUM).until(ExpectedConditions.visibilityOfElementLocated(By.id(\"login-box\")));\n\t\treturn this;\n\t}", "public String retourPageAuthentification() {\r\n\t\tdefaultVue.setPassword(null);\r\n\t\t// Retour à la page d'authentification\r\n\t\treturn \"LoginPassword\";\r\n\t}", "public LoginPage(){\n\t\tPageFactory.initElements(driver, this);\n\t}", "void redirectToLogin();", "public abstract void navigateToLogin();", "String getLoginapiavgrtt();", "public void navigateToLoginPage() {\r\n\t\tBrowser.open(PhpTravelsGlobal.PHP_TRAVELS_LOGIN_URL);\r\n\t}", "@Test\r\n\tpublic void login() throws Exception{\r\n\t\t\r\n\t\tSignInPage objSignInPage=new SignInPage(driver);\r\n\t\t\r\n\t\t//insert username and password\r\n\t\tobjSignInPage.signIn(Util_VU.LOGIN_ID,Util_VU.PASSWORD);\r\n\t\t\r\n\t\t//get\r\n\t\tString step2=driver.getTitle();\r\n\t\tSystem.out.println(step2);\r\n\t\t\r\n\t}", "public static void Login() \r\n\t{\n\t\t\r\n\t}", "public void gotoAdminLogin(){ application.gotoAdminLogin(); }", "public LoginPageLiveGuruObject openLoginPageLiveGuru(WebDriver driver) {\r\n\t\tscrollToElement(driver, BasePageLiveGuruUIs.MY_ACCOUNT_FOOTER);\r\n\t\twaitForElementClickable(driver, BasePageLiveGuruUIs.MY_ACCOUNT_FOOTER);\r\n\t\tclick(driver, BasePageLiveGuruUIs.MY_ACCOUNT_FOOTER);\r\n\t\treturn PageObjectLiveGuruGeneratorManager.getLoginPage(driver);\r\n\t}", "public PageBase click_on_login_submit_form_button () {\r\n HomePageClass homePage = new HomePageClass(driver);\r\n\r\n LGN_Login_submitBTN.click();\r\n\r\n WebDriverWait wait = getWait();\r\n wait.until(ExpectedConditions.visibilityOf(homePage.logout));\r\n\r\n return homePage;\r\n\r\n }", "public String quickLogin(String token, String email, String password, HttpServletRequest req, HttpServletResponse resp) {\r\n //1. user info\r\n List<String> data = new ArrayList<String>();\r\n log.info (\"[quickLogin] verify user: \" + token);\r\n String userInfo = \"\";\r\n if (token != null) {\r\n userInfo = this.userTokenVerify(token, req, resp);\r\n } else if (email != null || password != null) { \r\n userInfo = this.login(email, password, req, resp); \r\n } else {\r\n userInfo = this.guestRegister(req, resp);\r\n }\r\n if (this.getStatus(userInfo) != NnStatusCode.SUCCESS) {\r\n return userInfo;\r\n } \r\n String sphere = \"en\";\r\n Pattern pattern = Pattern.compile(\".*sphere\\t((en|zh)).*\", Pattern.DOTALL);\r\n Matcher matcher = pattern.matcher(userInfo);\r\n if (matcher.matches()) {\r\n sphere = matcher.group(1);\r\n } \r\n data.add(userInfo);\r\n //2. channel lineup\r\n log.info (\"[quickLogin] channel lineup: \" + token);\r\n String lineup = this.channelLineup(token, null, null, false, null, true, false, false, false, null, req);\r\n data.add(lineup);\r\n if (this.getStatus(lineup) != NnStatusCode.SUCCESS) {\r\n return this.assembleSections(data);\r\n }\r\n //3. featured curators\r\n log.info (\"[quickLogin] featured curators\");\r\n String curatorInfo = this.curator(null, null, \"featured\", req);\r\n data.add(curatorInfo);\r\n //4. trending\r\n log.info (\"[quickLogin] trending channels\");\r\n String trending = this.channelStack(Tag.TRENDING, sphere, token, null, false);\r\n data.add(trending);\r\n if (this.getStatus(trending) != NnStatusCode.SUCCESS) {\r\n return this.assembleSections(data);\r\n }\r\n //5. recommended\r\n log.info (\"[quickLogin] recommended channels\");\r\n String recommended = this.channelStack(Tag.RECOMMEND, sphere, token, null, false); \r\n data.add(recommended);\r\n if (this.getStatus(recommended) != NnStatusCode.SUCCESS) {\r\n return this.assembleSections(data);\r\n }\r\n //6. featured\r\n log.info (\"[quickLogin] featured channels\");\r\n String featured = this.channelStack(Tag.FEATURED, sphere, token, null, false);\r\n data.add(featured);\r\n if (this.getStatus(featured) != NnStatusCode.SUCCESS) {\r\n return this.assembleSections(data);\r\n }\r\n //7. hottest\r\n log.info (\"[quickLogin] hot channels\");\r\n String hot = this.channelStack(Tag.HOT, sphere, token, null, false);\r\n data.add(hot);\r\n if (this.getStatus(hot) != NnStatusCode.SUCCESS) {\r\n return this.assembleSections(data);\r\n }\r\n //8. category top level\r\n // log.info (\"[quickLogin] top level categories: \" + ((sphere == null) ? \"default\" : sphere));\r\n // hardcoding to English for now, and keeping translations on the player side\r\n log.info (\"[quickLogin] top level categories: en\");\r\n String categoryTop = this.category (null, \"en\", false);\r\n data.add(categoryTop);\r\n return this.assembleSections(data);\r\n }", "protected Response login() {\n return login(\"\");\n }", "@Test\n\tpublic void login(){\n\t\tloginPage.login(data.readData(\"email\"), data.readData(\"password\"));\n\t\tAssert.assertEquals(isPresent(locateElement(By.id(home.homeLogo))),true,\"user not got logged in successfully\");\n\t}", "public LoginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public LoginPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public abstract boolean isLoggedIn(String url);", "@Test(priority = 2)\r\n\tpublic void testLoginPage() {\r\n\r\n\t\tdriver.navigate().to(Login.URL);\r\n\t\tdriver.manage().window().maximize();\r\n\t\tLogin.typeEmail(driver, \"[email protected]\");\r\n\t\tLogin.typePassword(driver, \"lozinka\");\r\n\t\t\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t\tLogin.clickLoginButton(driver);\r\n\t\t\t\t\r\n\t\tString currentUrl = driver.getCurrentUrl();\r\n\t\tString expectedUrl = \"https://www.humanity.com/app/\";\r\n\t\tSoftAssert sa = new SoftAssert();\r\n\t\tsa.assertEquals(currentUrl, expectedUrl);\r\n\t\tsa.assertAll();\r\n\t}", "public void SwichLogingPageAndSignIn()\r\n {\r\n WaitTime(2000);\r\n driver.navigate().to(\"https://www.n11.com/giris-yap\");\r\n \r\n driver.findElement(By.cssSelector(\"#email\")).sendKeys(\"[email protected]\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#password\")).sendKeys(\"nacre123456\");\r\n WaitTime(2000);\r\n driver.findElement(By.cssSelector(\"#loginButton\")).click();\r\n \r\n }", "private String navigateAfterLoginAttemp()\r\n {\r\n Identity identity = this.getIdentity();\r\n\r\n if (identity == null) {\r\n return \"/\";\r\n }\r\n if (identity instanceof Pilot) {\r\n return \"/pilot/index.xhtml\";\r\n }\r\n if (identity instanceof General) {\r\n return \"/general/index.xhtml\";\r\n }\r\n if (identity instanceof SystemAdministrator) {\r\n return \"/admin/index.xhtml\";\r\n }\r\n throw new IllegalStateException(\"Identita \" + identity\r\n + \" nie je ziadneho z typov, pre ktory dokazem 'navigovat'!\");\r\n }", "public String login() {\r\n String ruta = \"\";\r\n UsuarioDAO usuDAO = new UsuarioDAO();\r\n if (usuDAO.Login(this) != null) {\r\n ruta = FN.ruta(\"menu\");\r\n Empresa em = new Empresa();\r\n em.setEmpresa(\"2101895685\");\r\n em.setRazonSocial(\"Tibox SRL\");\r\n em.setDireccion(\"MiCasa\");\r\n SSU.sEmpresa(em);\r\n SSU.sUsuario(this);\r\n }\r\n return ruta;\r\n }", "@Test\n public void check_Login_Success() {\n lPage = new LoginPage(webDriver);\n lPage.login(\"admin\",\"admin\");\n hPage = new HomePage(webDriver);\n String loginText = hPage.getHomePageText();\n assertEquals(\"Congratulations!\",loginText);\n }", "@RequestMapping(value = \"/login\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic String loginPage(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tif (isCurrentAuthenticationAnonymous()) {\r\n\t\t\treturn \"login\";\r\n\t\t} else {\r\n\t\t\treturn \"redirect:/list\";\r\n\t\t}\r\n\t}", "public Loginpage()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}", "public LoginResult login() {\n\t\tif (!auth.isLoggedIn())\n\t\t\treturn LoginResult.MAIN_LOGOUT;\n\n\t\ttry {\n\t\t\tHttpURLConnection conn = Utility.getGetConn(FUND_INDEX);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tArrayList<Cookie> tmpCookies = Cookie.getCookies(conn);\n\t\t\taws = Cookie.getCookie(tmpCookies, \"AWSELB\");\n\t\t\tphp = Cookie.getCookie(tmpCookies, \"PHPSESSID\");\n\t\t\t\n\t\t\tconn = Utility.getGetConn(FUND_LOGIN);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tString location = Utility.getLocation(conn);\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t// TODO: future speed optimization\n\t\t\t//if (auth.getPHPCookie() == null) {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie()));\n\t\t\t\tCookie phpCookie = Cookie.getCookie(Cookie.getCookies(conn), \"PHPSESSID\");\n\t\t\t\t// saves time for Blackboard and retrieveProfileImage().\n\t\t\t\tauth.setPHPCookie(phpCookie);\n\t\t\t\t\n\t\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\t\n\t\t\t\tlocation = Utility.getLocation(conn);\n\t\t\t\tif (location.startsWith(\"signin.aspx\"))\n\t\t\t\t\tlocation = \"https://eraider.ttu.edu/\" + location;\n\t\t\t\tconn = Utility.getGetConn(location);\n\t\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getERaiderCookies()));\n\t\t\t\t// might need to set ESI and ELC here. If other areas are bugged, this is why.\n\t\t\t/*} else {\n\t\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getELCCookie(), auth.getPHPCookie()));\n\t\t\t\t/// TODO This is in retirevProfileImage, maybe Mobile Login, and Blackboard!!!\n\t\t\t\tthrow new NullPointerException(\"Needs implementation!\");\n\t\t\t}*/\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php?elu=XXXXXXXXXX&elk=XXXXXXXXXXXXXXXX\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://webapps.itsd.ttu.edu/shim/getfunds/index.php/login?service=https%3A%2F%2Fget.cbord.com%2Fraidercard%2Ffull%2Flogin.php\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(auth.getPHPCookie(), auth.getELCCookie()));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/login.php?ticket=ST-...\n\t\t\tconn = Utility.getGetConn(Utility.getLocation(conn));\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\t\n\t\t\t// https://get.cbord.com/raidercard/full/funds_home.php\n\t\t\tlocation = Utility.getLocation(conn);\n\t\t\tif (location.startsWith(\"index.\")) {\n\t\t\t\tlocation = \"https://get.cbord.com/raidercard/full/\" + location;\n\t\t\t}\n\t\t\tconn = Utility.getGetConn(location);\n\t\t\tconn.setInstanceFollowRedirects(false);\n\t\t\tconn.setRequestProperty(\"Cookie\", Cookie.chain(aws, php));\n\t\t\tUtility.readByte(conn);\n\t\t} catch (IOException e) {\n\t\t\tTTUAuth.logError(e, \"raiderfundlogin\", ErrorType.Fatal);\n\t\t\treturn LoginResult.OTHER;\n\t\t} catch (Throwable t) {\n\t\t\tTTUAuth.logError(t, \"raiderfundlogingeneral\", ErrorType.APIChange);\n\t\t\treturn LoginResult.OTHER;\n\t\t}\n\n\t\tloggedIn = true;\n\n\t\treturn LoginResult.SUCCESS;\n\t}", "@Given(\"user is on login page\")\n\tpublic void user_is_on_login_page() {\n\t\tSystem.out.println(\"user is on login page\");\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver=new ChromeDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"https://opensource-demo.orangehrmlive.com/index.php/auth/validateCredentials\");\n\t \n\t}", "protected void doPostLogin(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tout.println(\"Look where we are, it's the login page\");\n\t\t\n\t\t//get parameter Names\n\t\tsetParameters(request);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tKeyspace keyspace = Connection.getKeyspace();\n\t\tStringSerializer se = StringSerializer.get();\n\t\t\n\t\ttry\n\t\t{\n\t\t\t// given Keyspace keyspace and StringSerializer se\n\t\t\tSliceQuery<String, String, String> q = HFactory.createSliceQuery(keyspace, se, se, se);\n\t\t\tq.setColumnFamily(\"Users\") .setKey(displayName).setColumnNames(\"fullname\", \"email\", \"password\");\n\t\t\tQueryResult<ColumnSlice<String, String>> r = q.execute();\n\n\t\t\tfullname = r.get().getColumnByName(\"fullname\").getValue();\n\t\t\temail = r.get().getColumnByName(\"email\").getValue();\n\n\t\t\tif(password.equals(r.get().getColumnByName(\"password\").getValue()))\n\t\t\t{\n\t\t\t\t//LOGGED IN CORRECTLY\n\t\t\t\t\n\t\t\t\tmySexySession.setAttribute(\"displayName\", displayName);\n\t\t\t\tmySexySession.setAttribute(\"fullname\", fullname);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmySexySession.setAttribute(\"message\", \"Incorrect Password.\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\t//catches happen when the key is not found (i.e. user doesn't exist)\n\t\t\tmySexySession.setAttribute(\"message\", \"User does not exist.\");\n\t\t}\n\t\tresponse.sendRedirect(\"/quotes/home\");\n\t}", "@Test\n\t\tpublic void login() {\n\n\t\t\tlaunchApp(\"chrome\", \"http://demo1.opentaps.org/opentaps/control/main\");\n\t\t\t//Enter username\n\t\t\tenterTextById(\"username\", \"DemoSalesManager\");\n\t\t\t//Enter Password\n\t\t\tenterTextById(\"password\", \"crmsfa\");\n\t\t\t//Click Login\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t//Check Browser Title\n\t\t\tverifyBrowserTitle(\"Opentaps Open Source ERP + CRM\");\n\t\t\t//Click Logout\n\t\t\tclickByClassName(\"decorativeSubmit\");\n\t\t\t\n\n\t\t}", "@Test(description = \"Login con credenciales correctas\", enabled = false)\n\tpublic void login() {\n\t\tPageLogin pageLogin = new PageLogin(driver);\n\t\tPageReservation pageReservation = new PageReservation(driver);\n\t\tpageLogin.login(\"mercury\", \"imercury\");\n\t\tpageReservation.assertPage();\n\t\t//****Este código se cambió por A****\n\t\t/*driver.findElement(By.name(\"userName\")).sendKeys(\"mercury\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"mercury\");\n\t\tdriver.findElement(By.name(\"login\")).click();*/\n\t\t//******todo este código que se repite se cambió por B****\n\t\t/*try {\n\t\t\tThread.sleep(5);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t//****código B****\n\t\t/*Helpers helper = new Helpers();\n\t\thelper.sleepSeconds(4);*/\n\t\t//este codigo pasa a la Page Object(page reservation)\n\t\t//Assert.assertTrue(driver.findElement(By.xpath(\"/html/body/div/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[3]/td/font\")).getText().contains(\"Flight Finder to search\"));\n\t}", "public String applicationLogin(){\n\t\treturn \"/dblogin.jsp\";\n\t}", "public SigninPage getHomepage() throws Exception {\n \t WebElement homePage = getDriver().findElement(By.xpath(\"//span[text()='Welcome, anusha kariveda!']\")); //Home page validation by using menu tab\n \t //After Magento 2.3.upgrade fix on welcome message\n \t\tAssert.assertEquals(true, homePage.isDisplayed());\n \t\tSystem.out.println(\"User Successfully loggedin and placed under homepage\");\n \t\tThread.sleep(4000);\n \treturn new SigninPage();\n }", "public LoginPage() {\r\n\t\t\t\r\n\t\t\t//Initialize webElements.\r\n\t\t\tPageFactory.initElements(driver, this);\r\n\t\t}", "@Override\r\n\tpublic void login() {\n\t\t\r\n\t}", "public WebDriver login() {\r\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\sa841\\\\Documents\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n //System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\sa841\\\\Documents\\\\chromedriver_win32\\\\phantomjs.exe\");\r\n String URL = \"http://Admin:[email protected]:8080/phenotips123/bin/loginsubmit/XWiki/XWikiLogin/\";\r\n ChromeOptions options = new ChromeOptions();\r\n options.addArguments(\"window-size=1024,768\");\r\n DesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n capabilities.setCapability(ChromeOptions.CAPABILITY, options);\r\n WebDriver driver = new ChromeDriver(capabilities);\r\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n //WebDriver driver = new PhantomJS();\r\n driver.get(URL);\r\n driver.findElement(By.id(\"j_username\")).sendKeys(\"Admin\");\r\n driver.findElement(By.id(\"j_password\")).sendKeys(\"admin\");\r\n driver.findElement(By.className(\"button\")).click();\r\n return driver;\r\n }", "public static String login(HttpServletRequest request) {\n\t\tif (request.getMethod().equals(FinalUtil.HTTP_GET)) {\n\t\t\treturn \"loginpage.html\";\n\t\t}\n\n\t\t// POST logic\n\t\tEmployee loggedEmployee = EmployeeService.getEmployeeService().login(\n\t\t\t\tnew Employee(\n\t\t\t\t\t\trequest.getParameter(\"email\"), \n\t\t\t\t\t\trequest.getParameter(\"password\")\n\t\t\t\t));\n\t\tSystem.out.println(\"LOGIN CONTROLLER: \" + loggedEmployee);\n\t\t\n\t\trequest.setAttribute(\"loggedEmployee\", loggedEmployee);\n\t\t\n\t\t// Wrong Credentials\n\t\tif (loggedEmployee.getEmailAddress().equals(\"\")) {\n\t\t\treturn \"loginpage.html\";\n\t\t} else {\n\t\t\n\t\t\trequest.getSession().setAttribute(\"loggedEmployee\", loggedEmployee);\n\n\t\t\t\n\t\t\tEmployee logged = (Employee) request.getSession().getAttribute(\"loggedEmployee\");\n\t\t\t\n\t\t\tSystem.out.println(\"Parameters(email and password from form): \" + request.getParameter(\"email\") +\":\" + request.getParameter(\"password\"));\n\t\t\tboolean loggedEmployee1 = EmployeeService.getEmployeeService().isManager(logged);\n\n\t\t\tif (loggedEmployee1 == true) {\n\t\t\t\treturn \"managerHome.jsp\";\n\t\t\t} else\n\t\t\t\treturn \"employeeHome.jsp\";\n\t\t}\n\t\t}", "@Given(\"landing to the loginpage and signin\")\n\tpublic void user_on_login_page_andSignin() {\n\t\t\n\t\t\n\t\tdriver.findElement(By.className(\"login\")).click();\n\t\t\n\t}", "public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }", "protected void login() {\n\t\tdriver.get(getProperty(\"baseUrl\"));\n\n\t\t// 2. Enter valid credentials in the Username and Password fields.\n\t\tLoginPageObjects.usernameTextField(driver).sendKeys(getProperty(\"validUsername\"));\n\t\tLoginPageObjects.passwordTextField(driver).sendKeys(getProperty(\"validPassword\"));\n\n\t\t// 3. Click on the Login button\n\t\tLoginPageObjects.loginButton(driver).click();\n\t\t// waiting.waitForLoad(driver);\n\t}", "public void VerifyHomepage(){\r\n\t\t//String username = getValue(Email);\r\n\t//\tString password = getValue(Password);\r\n\r\n\t//\tclass Local {};\r\n\t\t/*Reporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account should be clicked and user should get logged in\");*/\r\n\t\ttry{\r\n\t\t\tsleep(3000);\r\n\t\t\t//driver.findElement(locator_split(\"btn_privacyok\")).click();\r\n\t\tclick(locator_split(\"btn_privacyok\"));\r\n\t\t\t\r\n\t\t\t/*Reporter.log(\"PASS_MESSAGE:- My Account is clicked and user is logged in\");*/\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- User is not logged in\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "public DashboardPage clickLogin() {\n driver.findElement(By.id(\"login-button\")).click();\n return new DashboardPage(driver);\n }", "@Given(\"User is on the login page\")\n\tpublic void user_is_on_the_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src\\\\test\\\\resources\\\\chromedriver.exe\");\n\t\tdriver=new ChromeDriver();\n\t\tdriver.get(\"https://10.232.237.143/TestMeApp/fetchcat.htm\");\n\t\tdriver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t driver.findElement(By.id(\"details-button\")).click();\n\t\tdriver.findElement(By.id(\"proceed-link\")).click();\n\t}", "public String login() throws Exception {\n System.out.println(user);\n return \"toIndex\" ;\n }", "Login() { \n }", "RequestResult loginRequest() throws Exception;", "public String toLogin() {\r\n\t\treturn \"/login.xhtml\";\r\n\t}", "@Test(priority=1)\r\n\tpublic void loginApp()\r\n\t{\r\n\t\t\r\n\t\tlogger=report.createTest(\"Login To Pymidol\");\r\n\t\r\n\t\tLoginPage loginPage=PageFactory.initElements(driver, LoginPage.class); //it will goto login page check all the locators initialise then it will return object of same class\r\n\t\t\r\n\t\tlogger.info(\"Starting Application\"); //it will provide information about test or test step\r\n\t\t\r\n\t\tloginPage.loginToPymidol(excel.getStringData(\"Login\", 0, 0), excel.getStringData(\"Login\", 0, 1));\r\n\t\t\r\n\t\tlogger.pass(\"Login done Success\");\r\n\t\r\n\t}", "com.bingo.server.msg.REQ.LoginRequest getLogin();", "NewAccountPage openNewAccountPage();", "public LoginPage()\r\n\t{\r\n\t\tPageFactory.initElements(driver,this);\r\n\t}", "@Test\n\tpublic void TC02_Login() {\n\t\tSystem.out.println(\"TC02 : 1. Click to Login Page\");\n\t\tclickToElemnet(loginLinkX);\n\n\t\t// Verify Navigate to Login Page\n\t\tSystem.out.println(\"TC02 : 2. Login Page Display Status :\" + checkElementDisplayed(loginPageX));\n\n\t\t// Login to Page\n\t\tsendkeysToElement(emailTxtX, regEmail);\n\t\tsendkeysToElement(passwordTxtX, regPassword);\n\t\tclickToElemnet(loginBtnX);\n\n\t\t// Verify Login Successfully\n\t\tSystem.out.println(\"TC02 : 3. Login Successfully Status : \" + checkElementDisplayed(myAccountLinkX));\n\t}", "private void action_login_utente(HttpServletRequest request, HttpServletResponse response) throws IOException{\n //recupero credenziali di login\n String email = SecurityLayer.addSlashes(request.getParameter(\"email\").toLowerCase());\n email = SecurityLayer.sanitizeHTMLOutput(email);\n String password = SecurityLayer.addSlashes(request.getParameter(\"password\"));\n password = SecurityLayer.sanitizeHTMLOutput(password);\n if(!email.isEmpty() && !password.isEmpty()){\n try {\n //recupero utente dal db\n Utente u = ((PollwebDataLayer)request.getAttribute(\"datalayer\")).getUtenteDAO().getUtenteByEmail(email);\n //controllo che l'utente esista\n if(u != null){\n //controllo i parametri\n if(u.getEmail().equalsIgnoreCase(email) && new BasicPasswordEncryptor().checkPassword(password, u.getPassword())){\n //se l'utente esiste ed è lui\n\n request.setAttribute(\"userName\", u.getNome());\n request.setAttribute(\"user_id\", u.getId());\n System.out.println(u.getId());\n\n SecurityLayer.createSession(request, u.getId());\n\n if (request.getParameter(\"referrer\") != null) {\n response.sendRedirect(request.getParameter(\"referrer\"));\n } else {\n response.sendRedirect(\"/home\");\n }\n }else{\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n request.setAttribute(\"error\", \"Credenziali errate\");\n response.sendRedirect(\"/login?error=100\");\n }\n }\n\n }else{\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login&error=102\");\n }\n }\n }catch (DataException ex) {\n //TODO Handle Exception\n\n }\n } else {\n\n if(request.getAttribute(\"referrer\") != null){\n response.sendRedirect(\"/login?referrer=\" + URLEncoder.encode(((String)request.getAttribute(\"referrer\")), \"UTF-8\"));\n }else{\n response.sendRedirect(\"/login?error=101\");\n }\n }\n }", "@BeforeMethod\n public void beforeMethod() {\n loginPage = new LoginPage(driver);\n loginPage.open(); //open poker URL\n }", "@Test\n public void stage04_searchAndPage() {\n String keyWord = \"bilgisayar\";\n Integer pageNumber = 2;\n //Searching with parameters\n SearchKey searchKey = new SearchKey(driver);\n HomePage homePage = searchKey.search(keyWord, pageNumber);\n //Getting current url\n String currentUrl = homePage.getCurrentURL();\n //Testing if this is desired page\n assertEquals(currentUrl, \"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\");\n //logging\n if (currentUrl.equals(\"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\")) {\n logger.info(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n } else {\n logger.error(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n }\n }", "public LandingPage loginToAccount(){\n\t\taction.WaitForWebElement(linkLogin)\n\t\t\t .Click(linkLogin);\n\t\treturn this;\n\t}", "@Test\n\tpublic void checkPageLoginFlow() {\n\t driver.findElement(By.cssSelector(\"a.login\")).click();\n\n\t // Click login again on Login Page\n\t driver.findElement(By.cssSelector(\"button.login-page-dialog-button\")).click();\n\t\t \n\t // Enter Username & PW\n\t String username = \"username\";\n\t String password = \"password\";\n\n\t // Select and enter text for username and password\n\t driver.findElement(By.id(\"1-email\")).click();\n\t driver.findElement(By.id(\"1-email\")).sendKeys(username);\n\t driver.findElement(By.name(\"password\")).click();\n\t driver.findElement(By.name(\"password\")).sendKeys(password);\n\n\t // Verify Username box displayed\n\t boolean usernameElement = driver.findElement(By.id(\"1-email\")).isDisplayed();\n\t \tAssert.assertTrue(usernameElement, \"Is Not Present, this is not expected\");\n\t \n\t // Verify Password box displayed\n\t boolean passwordElement = driver.findElement(By.name(\"password\")).isDisplayed();\n\t \tAssert.assertTrue(passwordElement, \"Is Not Present, this is not expected\");\n\t}", "@Override\r\n\tpublic void login() {\n\r\n\t}", "@Test\n\tpublic void _02_loginWithValidCredentials() throws InterruptedException {\n\t\t\n\t\tlp = new LoginPage();\n\t\tThread.sleep(1000);\n\t\tlp.userName.clear();\n\t\tsendText(lp.userName, ConfigsReader.getProperty(\"username\"));\n\t\tlp.loginBtn.click();\n\t\tlp.password.clear();\n\t\tsendText(lp.password, ConfigsReader.getProperty(\"password\"));\n\t\tlp.loginBtn.click();\n\n\t\tThread.sleep(3000);//for demo purposes only\n\t\tpp = new ProfilePage();\n\t\tAssertJUnit.assertEquals(ConfigsReader.getProperty(\"username\"), pp.userName.getText());\n\t}", "public String accionLogin(){\n\t\t\r\n\t\tlog.info(\"Ingreso hacer login del usuario!!! \");\r\n\t\tString retorno = null;\r\n\t\ttry {\r\n\t\t\tString pass = new CriptPassword().getHashSH1(loginBaking.getUserBean().getPass());\r\n\t\t\tUser u = ejbMangerUser.login(loginBaking.getUserBean().getNick(), pass);\r\n\t\t\tloginBaking.setUserBean(u);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tList<Network> listNetwork = ejbNetwork.listNetwork();\r\n\t\t\tHttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t\t\tsession.setAttribute(\"listaNetwork\", listNetwork);\r\n\t\t\t\r\n\t\t\tretorno = \"site/home\";\r\n\t\t} catch (InSideException ex) {\r\n\t\t\tlog.error(ex.getKeyMSGError());\r\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage (FacesMessage.SEVERITY_ERROR, \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError()), \r\n\t\t\t\t\t\tBundleUtil.getMessageResource(ex.getKeyMSGError())));\r\n\t\t}\r\n\t\tlog.debug(\"Pagina de redireccion --->> \" + retorno);\r\n\t\tlog.info(\"fin de Login!!!\");\r\n\t\treturn retorno;\r\n\t}", "@Override\r\n\tpublic String execute(HttpServletRequest request) {\t\t\r\n\t\tString page = ConfigurationManager.getProperty(\"path.page.login\");\r\n\t\tString language = request.getParameter(PARAM_NAME_LANGUAGE);\r\n\t\tswitch (language) {\r\n\t\tcase \"en\":\r\n\t\t\trequest.getSession().setAttribute(\"lang\", \"en\");\r\n\t\t\tbreak;\r\n\t\tcase \"ru\":\r\n\t\t\trequest.getSession().setAttribute(\"lang\", \"ru\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn page;\r\n\t}", "private void initPages() {\n\t\tloginPage = new LoginPage(driver);\n\t\tflipkart = new FlipkartPage(driver);\n\t\t\n\t}", "@Override\n public void doInit(Page page, Map<String, Object> args) throws Exception {\n Selectors.wireVariables(page, this, Selectors.newVariableResolvers(getClass(), null));\n\n UserCredential cre = authService.getUserCredential();\n if (cre == null || cre.isAnonymous()) {\n Executions.sendRedirect(\"/login/\");\n }\n }", "public HomePage loginAs(String username, String password) {\n // The PageObject methods that enter username, password & submit login have\n // already defined and should not be repeated here.\n typeUserName(username);\n typePassword(password);\n return clickOnSignInButton();\n }", "@Test(dataProvider = \"getData\")\r\n\tpublic void basePageNavigation(String username, String password) throws IOException {\n\t\tdriver.get(props.getProperty(\"url\"));\r\n\r\n\t\tLandingPage lp = new LandingPage(driver);\r\n\t\t// Assert heading message is loaded\r\n\t\tSystem.out.println(\"Verifying if the heading message is loaded\");\r\n\t\tString logoText = lp.GetHeadingText().getText();\r\n\t\tAssert.assertEquals(logoText, \"By Players, For Players\");\r\n\r\n\t\t// clear values from username and password fields is any;\r\n\t\tif (!lp.GetEmailInputField().getAttribute(\"value\").isEmpty()\r\n\t\t\t\t|| !lp.GetPasswordInputField().getAttribute(\"value\").isEmpty()) {\r\n\t\t\tlp.GetEmailInputField().clear();\r\n\t\t\tlp.GetEmailInputField().clear();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"inserting username\");\r\n\t\tSystem.out.println(String.format(\r\n\t\t\t\t\"Inserting respective values for the fields \\\"Username\\\": \\\"%s\\\" and for \\\"Password\\\": \\\"%s\\\"\",\r\n\t\t\t\tusername, password));\r\n\t\tlp.GetEmailInputField().sendKeys(username);\r\n\t\tlp.GetPasswordInputField().sendKeys(password);\r\n\t\t// click on login button\r\n\t\tSystem.out.println(\"Clicking on login submit button\");\r\n\t\tlp.GetLoginSubmitButton().click();\r\n\t\t// Assert user is logged in successfully\r\n\t\tSystem.out.println(\"Verifying if the user is successfully logged in\");\r\n\t\tLoginPage lnPage = new LoginPage(driver);\r\n\t\tlnPage.GetVerifyButton().click();\r\n\t\tlnPage.GetAccountButton().click();\r\n\t\tString accountName = lnPage.GetAccountName().getText();\r\n\t\tAssert.assertEquals(accountName, \"john doe\");\r\n\t\t// logout from the site\r\n\t\tlnPage.GetLogoutButton().click();\r\n\t}", "@GetMapping(\"/clients/clientLogin\")\n\tpublic String pageLoginClientGet() {\n\t\tClientController.LOGGER.info(\"La page login client est demandée\");\n\t\treturn \"/clients/clientLogin\";\n\t}", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "@org.junit.Test\r\n\tpublic void login() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"LoginServlet?action=login\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"info\", \"jitl\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"info2\", \"admin\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"info3\", \"admin\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t\tSystem.out.println(string);\r\n\t}", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "@Test(priority=0)\n \n public void test_Login(){\n \tobjLogin = new PilrLogin(driver);\n \n \t//Verify login page title\n \tString loginPageTitle = objLogin.getPageSource();\n \tAssert.assertTrue(loginPageTitle.toLowerCase().contains(\"sign in\"));\n\n \n \t//login to application\n \tobjLogin.loginToPilr(objtestvars.getUserName(), \n \t\t\tobjtestvars.getPassWrd());\n \n \t// go the next page\n \tobjHomePage = new PilrHomePage(driver);\n \n \t//Verify home page\n \tAssert.assertTrue(objHomePage.getHomePageWelcome().toLowerCase().contains(\n \t\t\t\"welcome back, bikerjohn!\"));\n \tSystem.out.println(\"[Test Case]Home Page Verified\");\n }", "public boolean doLogin(String userName, String password) throws IOException {\n// String userName = \"AdamLaurencik\";\n// String password = \"970520/4960\";\n\n WebClient client = new WebClient();\n page = client.getPage(\"https://gymdb.edupage.org/login/?msg=3\");\n\n HtmlElement button = (HtmlElement) page.createElement(\"button\");\n button.setAttribute(\"type\", \"submit\");\n\n HtmlElement form = (HtmlElement) page.createElement(\"form\");\n form.setAttribute(\"action\", \"https://gymdb.edupage.org/login/edubarLogin.php\");\n form.setAttribute(\"enctype\", \"multipart/form-data\");\n form.setAttribute(\"method\", \"post\");\n\n HtmlElement username = (HtmlElement) page.createElement(\"input\");\n username.setAttribute(\"type\", \"text\");\n username.setAttribute(\"name\", \"username\");\n username.setAttribute(\"value\", userName);\n\n HtmlElement pass = (HtmlElement) page.createElement(\"input\");\n pass.setAttribute(\"type\", \"password\");\n pass.setAttribute(\"value\", password);\n pass.setAttribute(\"name\", \"password\");\n\n form.appendChild(username);\n form.appendChild(pass);\n form.appendChild(button);\n\n page = button.click();\n\n String htmlCode = page.asText();\n\n if (htmlCode.contains(\"Ste prihlásený ako \")) {\n return true;\n } else {\n return true;\n }\n }", "@Override\n public Auth call() throws IOException {\n OkHttpClient client = new OkHttpClient();\n client.setFollowRedirects(false);\n client.setFollowSslRedirects(false);\n\n Request initRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .build();\n\n Response initResponse = client.newCall(initRequest).execute();\n String initCookie = initResponse.header(\"Set-Cookie\").split(\";\")[0];\n String initBody = initResponse.body().string();\n String authenticity_token = Jsoup.parse(initBody).body().select(\"[name=authenticity_token]\").val();\n\n // Phase 2 is to authenticate given the cookie and authentication token\n RequestBody loginBody = new FormEncodingBuilder()\n .add(\"utf8\", \"\\u2713\")\n .add(\"authenticity_token\", authenticity_token)\n .add(\"email\", login)\n .add(\"password\", password)\n .add(\"commit\", \"Login\")\n .add(\"referer\", \"https://lobste.rs/\")\n .build();\n Request loginRequest = new Request.Builder()\n .url(\"https://lobste.rs/login\")\n .header(\"Cookie\", initCookie) // We must use #header instead of #addHeader\n .post(loginBody)\n .build();\n\n Response loginResponse = client.newCall(loginRequest).execute();\n String loginCookie = loginResponse.header(\"Set-Cookie\").split(\";\")[0];\n\n // Phase 3 is to grab the actual username/email from the settings page\n Request detailsRequest = new Request.Builder()\n .url(\"https://lobste.rs/settings\")\n .header(\"Cookie\", loginCookie)\n .build();\n Response detailsResponse = client.newCall(detailsRequest).execute();\n String detailsHtml = detailsResponse.body().string();\n\n Document dom = Jsoup.parse(detailsHtml);\n String username = dom.select(\"#user_username\").val();\n String email = dom.select(\"#user_email\").val();\n\n // And then we return the result of all three phases\n return new Auth(email, username, loginCookie);\n }", "private void redirectToLandingPage(){\n\t\tappInjector.getAppService().getLoggedInUser(new SimpleAsyncCallback<UserDo>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(UserDo loggedInUser) {\n\t\t\t\tAppClientFactory.setLoggedInUser(loggedInUser);\n\t\t\t\tUcCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tHomeCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tAppClientFactory.getInjector().getWrapPresenter().get().setLoginData(loggedInUser);\n\t\t\t\tif (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.STUDENT)){\n\t\t\t\t\t\n\t\t\t\t}else if(AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.SHELF)){\n\t\t\t\t\tAppClientFactory.fireEvent(new DisplayNoCollectionEvent());\n\t\t\t\t}else{\n\t\t\t\t\tMap<String, String> params = new HashMap<String,String>();\n\t\t\t\t\tparams.put(\"loginEvent\", \"true\");\n\t\t\t\t\tappInjector.getPlaceManager().revealPlace(PlaceTokens.HOME, params);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@RequestMapping(value = \"/autorization\", method = RequestMethod.GET)\n public String getLoginForm() {\n System.out.println(\"Fetching the Authorization URL...\");\n final String authorizationUrl = service.getAuthorizationUrl();\n return \"redirect:\" + authorizationUrl;\n }", "@Given(\"^user is already login page$\")\n\tpublic void user_is_already_login_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Jamshed Khan\\\\Downloads\\\\chromedriver_win32 (2)\\\\chromedriver.exe\");\n\t\t driver= new ChromeDriver();\n\t\t driver.get(\"http://demo.guru99.com/v4\");\n\t}", "public void process(String uid, String pass) throws IOException\n {\n System.out.println(\"Attempting to login with uid : \" + uid + \", pass : \" + pass + \" at : \" + BASE_URL);\n\n // Get the login HTML document and Cookies\n HttpURLConnection loginHttp = getLoginHttp();\n Document loginDocument = getLoginPage(loginHttp);\n CookieUtils cookieUtils = getLoginCookies(loginHttp);\n\n // Prepare form data\n LoginData loginData = new LoginData(loginDocument, uid, pass);\n String formData = loginData.constructFormBody();\n\n // Submit the login request\n HttpURLConnection signInHttp = getSignInHttp();\n signInHttp.setDoOutput(true);\n signInHttp.setInstanceFollowRedirects(false);\n cookieUtils.saveCookies(signInHttp);\n writeFormBody(signInHttp, formData);\n cookieUtils.loadCookies(signInHttp);\n\n // Assign authentication and get workspace HTML\n HttpURLConnection workspaceUrl = getLoginHttp();\n cookieUtils.saveCookies(workspaceUrl);\n String workspaceHtml = HtmlUtils.downloadPage(workspaceUrl);\n\n System.out.println(workspaceHtml);\n }", "public void gotoCoachLogin(){ application.gotoCoachLogin(); }", "public abstract boolean showLogin();", "@FXML\n\tprivate void handleLogin() {\n\t \n\t\t\t\ttry {\n\t\t\t\t\tmain.showHomePageOverview(username.getText(),password.getText());\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\n\t}" ]
[ "0.7303507", "0.68907994", "0.6797428", "0.6718167", "0.66575694", "0.66306657", "0.6512711", "0.64979714", "0.6480427", "0.646125", "0.64547884", "0.6449662", "0.6432441", "0.6416774", "0.63905907", "0.63841707", "0.63489515", "0.6347389", "0.6291107", "0.62595725", "0.6259336", "0.62583965", "0.62498385", "0.6248461", "0.62217087", "0.6221293", "0.6213932", "0.6206962", "0.6206031", "0.61894166", "0.6174307", "0.61256975", "0.6111182", "0.6100129", "0.6094192", "0.6093281", "0.60861224", "0.6073437", "0.6068861", "0.6068861", "0.6065033", "0.60596126", "0.60571134", "0.60517377", "0.6045011", "0.6025794", "0.6022982", "0.60185575", "0.60166717", "0.60145706", "0.60089767", "0.600841", "0.6003714", "0.5992709", "0.5990988", "0.5989763", "0.5963241", "0.59396666", "0.5937638", "0.5936267", "0.5929519", "0.5921026", "0.58891356", "0.58848315", "0.5880786", "0.58806443", "0.58804184", "0.5877194", "0.58753645", "0.58663404", "0.5865887", "0.5857495", "0.5855108", "0.58540225", "0.58525914", "0.58509535", "0.58497", "0.584224", "0.58412546", "0.58388424", "0.5838465", "0.58379126", "0.5837388", "0.5835332", "0.5834326", "0.58321965", "0.5823257", "0.5820617", "0.58188313", "0.58130336", "0.5809093", "0.58087826", "0.58079094", "0.5806953", "0.58016896", "0.5801237", "0.57983685", "0.57930636", "0.57913804", "0.5782067", "0.5769123" ]
0.0
-1
select all los which contribute to one knowledge
List<TModuleLo> selectModuleLoSkill(Long skillId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<RepStuLearning> selectByExample(RepStuLearningExample example);", "List<TModuleLo> selectSkillToLo();", "public static void demo_LCS(RoWordNet RoWN) throws Exception {\n Timer timer = new Timer();\n String lcs;\n\n boolean allowAllRelations = true;\n\n Literal l1 = new Literal(\"viață\");\n Literal l2 = new Literal(\"vietate\");\n String s1 = RoWN.getSynsetsFromLiteral(l1).get(5).getId();\n String s2 = RoWN.getSynsetsFromLiteral(l2).get(0).getId();\n\n Literal l3 = new Literal(\"fenomen\");\n Literal l4 = new Literal(\"proces\");\n String s3 = RoWN.getSynsetsFromLiteral(l3).get(1).getId();\n String s4 = RoWN.getSynsetsFromLiteral(l4).get(1).getId();\n\n IO.outln(\"\\n*** Searching for the LCS with all relations as the allowed relation ...\");\n timer.start();\n IO.outln(\"Source synset: \" + s1 + \" \" + ((Synset) RoWN\n .getSynsetById(s1)).toString());\n IO.outln(\"Target synset: \" + s2 + \" \" + ((Synset) RoWN\n .getSynsetById(s2)).toString());\n lcs = SimilarityMetrics\n .lowestCommonSubsumer(RoWN, s1, s2, allowAllRelations);\n IO.outln(\"LCS found: \" + lcs + \" \" + ((Synset) RoWN.getSynsetById(lcs))\n .toString());\n IO.outln();\n IO.outln(\"Done: \" + timer.mark());\n\n allowAllRelations = false;\n IO.outln(\"\\n*** Searching the LCS with only hypernymy as allowed edge ...\");\n timer.start();\n IO.outln(\"Source synset: \" + s3 + \" \" + ((Synset) RoWN\n .getSynsetById(s3)).toString());\n IO.outln(\"Target synset: \" + s4 + \" \" + ((Synset) RoWN\n .getSynsetById(s4)).toString());\n lcs = SimilarityMetrics\n .lowestCommonSubsumer(RoWN, s3, s4, allowAllRelations);\n IO.outln(\"LCS found: \" + lcs + \" \" + ((Synset) RoWN.getSynsetById(lcs))\n .toString());\n IO.outln();\n IO.outln(\"Done: \" + timer.mark());\n }", "List<Online> selectByExample(OnlineExample example);", "RepStuLearning selectByPrimaryKey(RepStuLearningKey key);", "public void filterDoc(LeanDocument goldSt)\n{\n HashMap<Integer, Integer> newNPchains = new HashMap<Integer, Integer>();\n clusters = new HashMap<Integer, TreeMap<Integer, Integer>>();\n Iterator<Integer> keyIterator = goldSt.NPchains.keySet().iterator();\n while (keyIterator.hasNext()) {\n Integer current = keyIterator.next();\n Integer corefID = NPchains.get(current);\n if (!NPchains.containsKey(current))\n throw new RuntimeException(\"Gold Standard np \" + current + \" not found in doc \" + id);\n newNPchains.put(current, corefID);\n TreeMap<Integer, Integer> cluster;\n if (clusters.containsKey(corefID)) {\n cluster = clusters.get(corefID);\n }\n else {\n cluster = new TreeMap<Integer, Integer>();\n clusters.put(corefID, cluster);\n }\n cluster.put(current, current);\n }\n NPchains = newNPchains;\n}", "List<Mallscroerule> selectAll();", "List<ToolsOutIn> selectAll();", "List<WordSchool> selectByExample(WordSchoolExample example);", "public LinkedList <AbsAttraction> filter(ISelect s){\r\n return new LinkedList <AbsAttraction>(); \r\n }", "public static List<Synset> getAllMeronymSynset(IndexWord word) throws JWNLException {\n List<Synset> result=new ArrayList<>();\n\n for(Synset wordSynset:word.getSenses()){\n PointerTargetTree hyponyms = PointerUtils.getInstance().getInheritedMeronyms(wordSynset,4,4);\n PointerTargetTreeNode rootnode = hyponyms.getRootNode();\n LinkedList<PointerTargetTreeNode> stack = new LinkedList<>();\n if(rootnode==null){\n return result;\n }\n stack.add(rootnode);\n while(!stack.isEmpty()){\n PointerTargetTreeNode node = stack.pollLast();\n result.add(node.getSynset());\n PointerTargetTreeNodeList childList = node.getChildTreeList();\n if(childList!=null){\n for(int i=0;i<childList.size();i++){\n stack.add((PointerTargetTreeNode)childList.get(i));\n }\n }\n\n }\n\n }\n\n return result;\n }", "List<NjProductTaticsRelation> selectByExample(NjProductTaticsRelationExample example);", "public static List<Synset> getAllHyponymSynset(IndexWord word) throws JWNLException {\n List<Synset> result=new ArrayList<>();\n\n for(Synset wordSynset:word.getSenses()){\n PointerTargetTree hyponyms = PointerUtils.getInstance().getHyponymTree(wordSynset,4);\n PointerTargetTreeNode rootnode = hyponyms.getRootNode();\n LinkedList<PointerTargetTreeNode> stack = new LinkedList<>();\n if(rootnode==null){\n return result;\n }\n stack.add(rootnode);\n while(!stack.isEmpty()){\n PointerTargetTreeNode node = stack.pollLast();\n result.add(node.getSynset());\n PointerTargetTreeNodeList childList = node.getChildTreeList();\n if(childList!=null){\n for(int i=0;i<childList.size();i++){\n stack.add((PointerTargetTreeNode)childList.get(i));\n }\n }\n\n }\n\n }\n\n return result;\n }", "List<ReEducation> selectByExample(ReEducationExample example);", "List<Kaiwa> selectByExample(KaiwaExample example);", "public Set<String> hyponyms(String word) {\n Set<String> toReturn = new HashSet<String>();\n Set<Integer> wordIndexes = new HashSet<Integer>();\n wordIndexes = wnetsi.get(word);\n Set<Integer> toReturnInt = GraphHelper.descendants(g, wordIndexes);\n Object[] returnArray = toReturnInt.toArray();\n for (int i = 0; i < returnArray.length; i += 1) {\n Set<String> stringReturn = wnetis.get(returnArray[i]);\n Iterator<String> strIter = stringReturn.iterator();\n while (strIter.hasNext()) {\n toReturn.add(strIter.next());\n }\n }\n return toReturn;\n }", "List<CommunityInform> selectAll();", "private List<moneda> filter(List<moneda> p1, String query)\n {\n query = query.toLowerCase();\n final List<moneda> filteredModeList = new ArrayList<>();\n for (moneda model:p1)\n {\n final String text = model.getNombre().toLowerCase();\n if(text.startsWith(query))\n {\n filteredModeList.add(model);\n }\n }\n return filteredModeList;\n }", "List<EvaluationRecent> selectAll();", "List<SupplyNeed> selectByExample(SupplyNeedExample example);", "List<CaseLinkman> selectAll();", "List<KnowledgeComment> selectAll();", "public List<Kateggorija> getSviGlumci() {\n List<Kateggorija> glumci=null;\n try {\n glumci= getDaoKateggorija().queryForAll();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return glumci;\n }", "List<HuoDong> selectByExample(HuoDongExample example);", "List selectByExample(XdSpxxExample example);", "List<ActivityHongbaoPrize> selectByExample(ActivityHongbaoPrizeExample example);", "List<Ltsprojectpo> selectByExample(LtsprojectpoExample example);", "List<Dormitory> selectAll();", "List selectByExample(DisproductExample example);", "List<SPerms> selectByExample(SPermsExample example);", "private Set<LCMessage> getOutOfContextLC(int type, int regency) {\n\n HashSet<LCMessage> result = new HashSet<>();\n\n for (LCMessage m : outOfContextLC) {\n\n if (m.getType() == type && m.getReg() == regency) {\n result.add(m);\n }\n\n }\n\n outOfContextLC.removeAll(result); // avoid memory leaks\n\n return result;\n }", "List<TCpySpouse> selectByExample(TCpySpouseExample example);", "List selectByExample(TResearchTeachExample example);", "public Collection<LernStatus> getLernStadi() {\r\n Collection<LernStatus> result;\r\n \r\n String sql = \"select object(ls) from LernStatus ls \"\r\n + \"where THEMA_THEMENID = :TID\";\r\n \r\n Query q = EMH.getEntityManager().createQuery(sql);\r\n \r\n q.setParameter(\"TID\", this.themenID);\r\n \r\n result = q.getResultList();\r\n \r\n return result;\r\n }", "List selectByExample(Mi004Example example);", "public List<LocoUncleansedDataElectric> getLocoPendingHypershed( LocoUncleansedDataElectric objelecmodel) {\n\t\t\t\tSystem.out.println(\"getpendingUnapprovedLocos\");\n\t\t\t\tString shedid=objelecmodel.getElec_locoOwningShed();\n\t\t\t\tobj_elec.getLocoPendingHypershed(shedid);\n\t\t\t\tList<LocoUncleansedDataElectric> uncleaseLoco= new ArrayList<>();\n\t\t\t\tobj_elec.getLocoPendingHypershed(shedid)\n\t\t\t\t.forEach(uncleaseLoco::add);\n\t\t\t\tSystem.out.println(\" End getuncleansedunapprovedocos\");\n\t\t\t\treturn obj_elec.getLocoPendingHypershed(shedid);\n//\t\t\t\treturn uncleaseLoco;\n\t\t\t}", "List<String> getTargetClassifications(Observation obs);", "@ActionTrigger(action=\"QUERY_RECS\")\n\t\tpublic void spriden_QueryRecs()\n\t\t{\n\t\t\t\n\n\t\t\t\tSpridenAdapter spridenElement = (SpridenAdapter)this.getFormModel().getSpriden().getRowAdapter(true);\n\t\t\t\tSgbstdnAdapter sgbstdnElement = (SgbstdnAdapter)this.getFormModel().getSgbstdn().getRowAdapter(true);\n\t\t\t\tSovlcurAdapter sovlcurElement = (SovlcurAdapter)this.getFormModel().getSovlcur().getRowAdapter(true);\n\n\t\t\t\tif(spridenElement!=null && sgbstdnElement!=null && sovlcurElement!=null){\n\n\t\t\t\ttry { \n\t\t\t\t\tMessageServices.setMessageLevel(OracleMessagesLevel.decodeMessageLevel(5));\n\t\t\t\t// \n\t\t\t\tnextBlock();\n\t\t\t\t// soundex\n\t\t\t\tnextBlock();\n\t\t\t\t// spraddr \n\t\t\t\texecuteQuery();\n\t\t\t\tnextBlock();\n\t\t\t\t// sgbstdn \n\t\t\t\texecuteQuery();\n\t\t\t\tnextBlock();\n\t\t\t\t// sfbetrm \n\t\t\t\texecuteQuery();\n\t\t\t\t// execute the query on sovlcur and sovlfos \n\t\t\t\tgetFormModel().getSCurriculaSummary().setSummaryPidm(spridenElement.getSpridenPidm());\n\t\t\t\tgetFormModel().getSCurriculaSummary().setSummaryCode(SbCurriculumStr.fLearner());\n\t\t\t\tgetFormModel().getSCurriculaSummary().setSummaryKeySeqno(toNumber(99));\n\t\t\t\tgetFormModel().getSCurriculaSummary().setSummaryTermCode(sgbstdnElement.getSgbstdnTermCodeEff());\n\t\t\t\tgetFormModel().getSCurriculaSummary().setSummaryEndTerm(SbLearner.fQueryEnd(spridenElement.getSpridenPidm(), sgbstdnElement.getSgbstdnTermCodeEff()));\n\t\t\t\tif ( !sgbstdnElement.getSgbstdnTermCodeEff().isNull() )\n\t\t\t\t{\n\t\t\t\t\t// Create SOTVCUR since this is a learner curriculum \n\t\t\t\t\tSoklcur.pCreateSotvcur(/*pPidm=>*/getFormModel().getSCurriculaSummary().getSummaryPidm(), /*pTermCode=>*/getFormModel().getSCurriculaSummary().getSummaryTermCode(), /*pLmodCode=>*/getFormModel().getSCurriculaSummary().getSummaryCode());\n\t\t\t\t\t// Now execute the query on summary blocks \n\t\t\t\t\tgoBlock(\"SOVLCUR\");\n\t\t\t\t\texecuteQuery();\n\t\t\t\t\tif ( !sovlcurElement.getSummaryRowid().isNull() )\n\t\t\t\t\t{\n\t\t\t\t\t\tgoBlock(\"SOVLFOS\");\n\t\t\t\t\t\texecuteQuery();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tgoBlock(\"SOVLFOS\");\n\t\t\t\t\t\tclearBlock();\n\t\t\t\t\t}\n\t\t\t\t\tgoBlock(\"SFBETRM\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tgoBlock(\"SOVLFOS\");\n\t\t\t\t\tclearBlock();\n\t\t\t\t\tgoBlock(\"SOVLCUR\");\n\t\t\t\t\tclearBlock();\n\t\t\t\t}\n\t\t\t\t// - sgbstdn term is not null \n\t\t\t\tgoBlock(\"SFBETRM\");\n\t\t\t\tpreviousBlock();\n\t\t\t\t// sgbstdn\n\t\t\t\tpreviousBlock();\n\t\t\t\t// spraddr\n\t\t\t\tpreviousBlock();\n\t\t\t\t// soundex \n\t\t\t\tpreviousBlock();\n\t\t\t\t// spriden \n\t\t\t\t// \n\t\t\t\t\n\t\t\t\t} finally {\n\t\t\t\t\t\t\t\n\t\t\t\t\tMessageServices.setMessageLevel(OracleMessagesLevel.decodeMessageLevel(0));\n\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t}\n\t\t}", "List<ProSchoolWare> selectByExample(ProSchoolWareExample example);", "private void llenarListado1() {\r\n\t\tString sql1 = Sentencia1()\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tdet.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor det.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\t\tString sql2 = Sentencia2()\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarLista(sql1, sql2);\r\n\t}", "@Override\r\n\tpublic List<LabelArticle> selectByWhere(String strWhere) {\n\t\treturn null;\r\n\t}", "List<ScoreProduct> selectByExample(ScoreProductExample example);", "List<LawPerson> selectByExample(LawPersonExample example);", "public Set<String> hyponyms(String word) {\n HashSet<String> set = new HashSet<String>();\n for (Integer id: synsets.keySet()) {\n TreeSet<String> hs = synsets.get(id);\n if (hs.contains(word)) {\n for (String s: hs) {\n set.add(s);\n }\n TreeSet<Integer> ids = new TreeSet<Integer>();\n ids.add(id);\n Set<Integer> desc = GraphHelper.descendants(dg, ids);\n for (Integer i: desc) {\n for (String s: synsets.get(i)) {\n set.add(s);\n }\n }\n }\n }\n return set;\n }", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "List<CommonQuestionStrategyType> selectByExample(CommonQuestionStrategyTypeExample example);", "List<Disease> selectByExample(DiseaseExample example);", "List<BehaveLog> selectByExample(BehaveLogExample example);", "public Set<OWLLogicalAxiom> canWeDoBetter(){\n\t\tSet<Set<OWLClass>> largeSCCs =\n\t\t\t\ttarj.getStronglyConnectComponents().\n\t\t\t\t\t\tstream().\n\t\t\t\t\t\tfilter(x -> x.size() > 1).\n\t\t\t\t\t\tcollect(Collectors.toSet());\n\n\t\t//Add all those axioms which use their own definition on the RHS\n\t\tSet<OWLLogicalAxiom> cycleCausing = new HashSet<>();\n\t\tcycleCausing.addAll(builder.getSelfDefinedAxioms());\n\n\t\tfor(OWLLogicalAxiom axiom : axioms){\n\t\t\tOWLClass name = (OWLClass) AxiomSplitter.getNameofAxiom(axiom);\n\t\t\t\tfor(Set<OWLClass> component : largeSCCs){\n\t\t\t\t\tif(component.contains(name)){\n\t\t\t\t\t\tOWLClassExpression def = AxiomSplitter.getDefinitionofAxiom(axiom);\n\t\t\t\t\t\tSet<OWLClass> defCls = ModuleUtils.getNamedClassesInSignature(def);\n\t\t\t\t\t\tSet<OWLClass> inter = Sets.intersection(component, defCls);\n\t\t\t\t\t\tif(!inter.isEmpty()){\n\t\t\t\t\t\t\tcycleCausing.add(axiom);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\treturn cycleCausing;\n\t}", "public static void caso21(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso2.owl\",\"file:resources/caso2.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "@Override\r\npublic List<Possalesdetail> selectByExample(PossalesdetailExample example) {\n\treturn possalesdetail.selectByExample(example);\r\n}", "List<Question14> selectByExample(Question14Example example);", "public Set<String> hyponyms(String word) {\n Set<Integer> synIDs = new TreeSet<Integer>();\n Set<Integer> synKeys = synsetMap.keySet();\n for (Integer id : synKeys) {\n if (synsetMap.get(id).contains(word)) {\n synIDs.add(id);\n }\n }\n Set<Integer> hypIDs = GraphHelper.descendants(g, synIDs);\n Set<String> result = new TreeSet<String>();\n\n for (Integer i : hypIDs) {\n ArrayList<String> al = synsetMap.get(i);\n result.addAll(al);\n }\n return result;\n }", "List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);", "default Stream<Triple> witnesses(Triple... elements) {\n Set<Triple> toBeMatched = new HashSet<>(Arrays.asList(elements));\n return apex().carrier().elements().filter(witnes -> {\n return toBeMatched.stream().allMatch(target -> {\n return projections().anyMatch(morphism -> morphism.apply(witnes).map(target::equals).orElse(false));\n });\n });\n }", "default List<Source> typicalityQuery(int topK, double h, Set<Source> resultSet, Set<String> relevant){\n return typicalityQuery(topK, resultSet, new SegmentsTypicalityProcessor(h, relevant));\n }", "List<OpeningRequirement> selectAll();", "@Override\n\tpublic List<CustomerReprieve> selectCustomerReprieveById(Integer lossId) {\n\t\treturn customerDao.selectCustomerReprieveById(lossId);\n\t}", "List<ClinicalData> selectAll();", "List<Crawl> selectByExample(CrawlExample example);", "Collection<? extends PM_Learning_Material> getHasRecommendation();", "List<SpecialCircumstance> selectByExample(SpecialCircumstanceExample example);", "public Set<String> hyponyms(String word) {\n hypernymSet = new TreeSet<String>();\n firstsIDset = new HashSet<Integer>();\n for (String[] synStrings : sFile.values()) {\n for (String synset : synStrings) {\n if (synset.equals(word)) {\n for (String synset2 : synStrings) {\n hypernymSet.add(synset2);\n }\n for (Integer key : sFile.keySet()) {\n if (sFile.get(key).equals(synStrings)) {\n firstsIDset.add(key);\n }\n }\n }\n }\n }\n\n sIDset = GraphHelper.descendants(theDigraph, firstsIDset);\n for (Integer id : sIDset) {\n synsetWordStrings = sFile.get(id);\n for (String word2 : synsetWordStrings) {\n hypernymSet.add(word2);\n }\n }\n return hypernymSet;\n }", "private void llenarListadoPromocionSalarial() {\n\t\tString sql1 = \"select det.* from seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"join planificacion.estado_cab cab on cab.id_estado_cab = det.id_estado_cab \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab\"\r\n\t\t\t\t+ \" left join seleccion.promocion_concurso_agr agr \"\r\n\t\t\t\t+ \"on agr.id_promocion_salarial = det.id_promocion_salarial\"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tagr.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor agr.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n//\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\t\t\r\n\t\tString sql2 = \"select puesto_det.* \"\r\n\t\t\t\t+ \"from seleccion.promocion_concurso_agr puesto_det \"\r\n\t\t\t\t+ \"join planificacion.estado_det estado_det \"\r\n\t\t\t\t+ \"on estado_det.id_estado_det = puesto_det.id_estado_det \"\r\n\t\t\t\t+ \"join seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"on det.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab \"\r\n\t\t\t//\t+ \"join seleccion.concurso concurso \"\r\n\t\t\t//\t+ \"on concurso.id_concurso = puesto_det.id_concurso \"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t//\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarListaPromocionSalarial(sql1, sql2);\r\n\t}", "public Vector<Rule> learn(Vector<Rule> knowledgebase, Commitment selectedCommitment)\n {\n Situation situation3movementsAgo;\n Commitment firstCommitment;\n Commitment secondCommitment;\n Commitment lastCommitment;\n Commitment newCommitment;\n Condition newCondition;\n String predicate;\n Vector<Condition> conditions;\n Vector<Commitment> commitments;\n StringTokenizer tokenizer;\n String predicateHead;\n int i,j;\n int x, y;\n int x1,x2,x3;\n int y1,y2, y3;\n String direction1, direction2, direction3;\n Rule newRule;\n boolean found;\n boolean ruleAlreadyExists;\n String milestoneID;\n //-------------------------------\n\n if(Blackboard.history.size()>3)\n {\n situation3movementsAgo = Blackboard.history.get(Blackboard.history.size()-4);\n milestoneID = getMilestoneId();\n if(!milestoneID.equals(\"ninguna\"))\n {\n firstCommitment = Blackboard.history.get(Blackboard.history.size()-3).cause;\n secondCommitment = Blackboard.history.get(Blackboard.history.size()-2).cause;\n lastCommitment = selectedCommitment;\n conditions = new Vector<Condition>();\n\n // checa si hay que poner un predicado primero\n // referente a una milestone\n predicate = newRuleFirstCondition(situation3movementsAgo);\n\n if(!predicate.equals(\"ninguno\"))\n {\n // condicion de una milestone\n newCondition = new Condition(predicate);\n conditions.add(newCondition);\n }//end if\n\n if(predicate.equals(\"ninguno\"))\n {\n i= 0;\n while(i < 5)\n {\n x=getXOfAToken(situation3movementsAgo, i);\n y=getYOfAToken(situation3movementsAgo, i);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + i + \")\");\n conditions.add(newCondition);\n i = i + 1;\n }//end while\n }//end if\n else\n {\n if(predicate.equals(\"primeraLineaLista\"))\n {\n x=getXOfAToken(situation3movementsAgo, 0);\n y=getYOfAToken(situation3movementsAgo, 0);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 0 + \")\");\n conditions.add(newCondition);\n i= 5;\n while(i < 9)\n {\n x=getXOfAToken(situation3movementsAgo, i);\n y=getYOfAToken(situation3movementsAgo, i);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + i + \")\");\n conditions.add(newCondition);\n i = i + 1;\n }//end while\n }//end if\n else\n {\n if(predicate.equals(\"dosLineasListas\"))\n {\n x=getXOfAToken(situation3movementsAgo, 0);\n y=getYOfAToken(situation3movementsAgo, 0);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 0 + \")\");\n conditions.add(newCondition);\n\n x=getXOfAToken(situation3movementsAgo, 9);\n y=getYOfAToken(situation3movementsAgo, 9);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 9 + \")\");\n conditions.add(newCondition);\n\n x=getXOfAToken(situation3movementsAgo, 13);\n y=getYOfAToken(situation3movementsAgo, 13);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 13 + \")\");\n conditions.add(newCondition);\n\n }//end if\n else\n {\n if(predicate.equals(\"dosLineasYColumna\"))\n {\n x=getXOfAToken(situation3movementsAgo, 0);\n y=getYOfAToken(situation3movementsAgo, 0);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 0 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 10);\n y=getYOfAToken(situation3movementsAgo, 10);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 10 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 11);\n y=getYOfAToken(situation3movementsAgo, 11);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 11 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 12);\n y=getYOfAToken(situation3movementsAgo, 12);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 12 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 14);\n y=getYOfAToken(situation3movementsAgo, 14);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 14 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 15);\n y=getYOfAToken(situation3movementsAgo, 15);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 15 + \")\");\n conditions.add(newCondition);\n\n\n }//end if\n }//end else\n }//end else\n }//end else\n\n\n // now constructs the rule conclusion\n // as a sequence of moves\n predicate = firstCommitment.predicate;\n tokenizer = new StringTokenizer(predicate,\"(, )\");\n predicateHead = tokenizer.nextToken();\n x1 = Integer.valueOf(tokenizer.nextToken());\n y1 = Integer.valueOf(tokenizer.nextToken());\n direction1 = tokenizer.nextToken();\n\n predicate = secondCommitment.predicate;\n tokenizer = new StringTokenizer(predicate,\"(, )\");\n predicateHead = tokenizer.nextToken();\n x2 = Integer.valueOf(tokenizer.nextToken());\n y2 = Integer.valueOf(tokenizer.nextToken());\n direction2 = tokenizer.nextToken();\n\n predicate = lastCommitment.predicate;\n tokenizer = new StringTokenizer(predicate,\"(, )\");\n predicateHead = tokenizer.nextToken();\n x3 = Integer.valueOf(tokenizer.nextToken());\n y3 = Integer.valueOf(tokenizer.nextToken());\n direction3 = tokenizer.nextToken();\n\n predicate = \"secuencia(\"+\n x1 + \",\" + y1 + \",\" + direction1 + \",\"+\n x2 + \",\" + y2 + \",\" + direction2 + \",\"+\n x3 + \",\" + y3 + \",\" + direction3 + \")\";\n newCommitment = new Commitment(predicate);\n commitments = new Vector<Commitment>();\n commitments.add(newCommitment);\n\n // includes the new rule into the knowledge base\n newRule = new Rule(knowledgeBase.size(), conditions, commitments);\n ruleAlreadyExists = false;\n i = 0;\n while(i < knowledgeBase.size())\n {\n if(knowledgeBase.get(i).equals(newRule))\n {\n ruleAlreadyExists = true;\n break;\n }//end if\n i = i + 1;\n }//end while\n if(!ruleAlreadyExists)\n {\n knowledgeBase.add(newRule);\n }//end if\n }//end if\n }//end if\n return knowledgeBase;\n }", "List<Drug_OutWarehouse> selectByExample(Drug_OutWarehouseExample example);", "private void computeSets(DLProgram datalogGlobal){\n\t\t\n\t\tDLVInvocation invocation = DLVWrapper.getInstance().createInvocation(dlvPath);\n\t\tDLVInputProgram inputProgram = new DLVInputProgramImpl();\n\n\t\ttry {\t\t\t\n\t\t\tDLProgramStorer storer = new DLProgramStorerImpl();\n\t\t\tStringBuilder target = new StringBuilder();\n\t\t\tstorer.store(datalogGlobal, target);\n \n\t\t\t//Add to DLV input program the contents of global program. \n\t\t\tString datalogGlobalText = target.toString();\n\t\t\tinputProgram.addText(datalogGlobalText);\n\t\t\t\n\t\t\t//inputProgram.addText(\"triple(c1,\\\"hasModule\\\",m1,\\\"g\\\").\" + \n\t\t\t// \" inst(c1,\\\"Context\\\",\\\"g\\\").\"+ \n\t\t\t// \"triple(c1,\\\"hasModule\\\",m2,\\\"g\\\").\" + \n\t\t\t// \"triple(X, \\\"hasModule\\\", m3, \\\"g\\\") :- inst(X,\\\"Context\\\",\\\"g\\\").\");\n\t\t\t\n\t\t\t//Set input program for current invocation.\n\t\t\tinvocation.setInputProgram(inputProgram);\n\t\t\t\n\t\t\t//Filter for \\triple and \\inst predicates. \n\t\t\t//System.out.println(inputProgram.getCompleteText());\n\t\t\tList<String> filters = new LinkedList<String>();\n\t\t\tfilters.add(\"tripled\");\n\t\t\tfilters.add(\"instd\");\n\t\t\tinvocation.setFilter(filters, true);\n\t\t\t\n\t\t\t//List of computed models, used to check at least a model is computed.\n\t\t\tfinal List<Model> models = new ArrayList<Model>();\n\t\t\t\n\t\t\t//Model handler: retrieves contexts and associations in the computed model(s).\n\t\t\tinvocation.subscribe(new ModelHandler() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void handleResult(DLVInvocation paramDLVInvocation,\n\t\t\t\t\t\tModelResult modelResult) {\n\t\t\t\t\t\n\t\t\t\t\t//System.out.print(\"{ \");\n\t\t\t\t\tModel model = (Model) modelResult;\n\t\t\t\t\tmodels.add(model);\n\n\t\t\t\t\t//model.beforeFirst();\n\t\t\t\t\t//while (model.hasMorePredicates()) {}\n\n\t\t\t\t\t//Predicate predicate = model.nextPredicate();\n\t\t\t\t\tPredicate predicate = model.getPredicate(\"instd\");\n\t\t\t\t\tif (predicate != null){\n\t\t\t\t\t\t//System.out.println(predicate.name() + \": \");\n\t\t\t\t\t\twhile (predicate.hasMoreLiterals()) {\n\n\t\t\t\t\t\t\tLiteral literal = predicate.nextLiteral();\n\t\t\t\t\t\t\tif (literal.getAttributeAt(1).toString().equals(\"\\\"Context\\\"\")) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//Add context to list of inferred contexts.\n\t\t\t\t\t\t\t\tcontextsSet.add(literal.getAttributeAt(0).toString());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//System.out.print(literal);\n\t\t\t\t\t\t\t\t//System.out.println(\", \");\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\t\n\t\t\t\t\tpredicate = model.getPredicate(\"tripled\");\n\t\t\t\t\tif (predicate != null){\n\t\t\t\t\t\t//System.out.println(predicate.name() + \": \");\n\t\t\t\t\t\twhile (predicate.hasMoreLiterals()) {\n\n\t\t\t\t\t\t\t//Add module association for each context.\n\t\t\t\t\t\t\tLiteral literal = predicate.nextLiteral();\n\t\t\t\t\t\t\tif (literal.getAttributeAt(1).toString().equals(\"\\\"hasModule\\\"\")) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString[] association = new String[2];\n\t\t\t\t\t\t\t\tassociation[0] = literal.getAttributeAt(0).toString();\n\t\t\t\t\t\t\t\tassociation[1] = literal.getAttributeAt(2).toString();\n\t\t\t\t\t\t\t\thasModuleAssociations.add(association);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//System.out.print(literal);\n\t\t\t\t\t\t\t\t//System.out.println(\", \");\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\t\n\t\t\t\t\t//System.out.println(\"}\");\n\t\t\t\t\t//System.out.println();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\t\n\t\t\tinvocation.run();\n\t\t\tinvocation.waitUntilExecutionFinishes();\n\t\t\t\n\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\tglobalModelComputationTime = endTime - startTime;\n\t\t\t\n\t\t\t//System.out.println(\"Global computation time: \" + globalModelComputationTime + \" ms.\");\n\t\t\t\n\t\t\tList<DLVError> k = invocation.getErrors();\n\t\t\tif (k.size() > 0)\n\t\t\t\tSystem.err.println(k);\n\t\t\t\n\t\t\t//System.out.println(\"Number of computed models: \" + models.size());\n\t\t\tif(models.size() == 0) \n\t\t\t\tSystem.err.println(\"[!] No models for global context program.\");\n\t\t\t\n\t\t\t//for (String[] a : hasModuleAssociations) {\n\t\t\t//\tSystem.out.println(a[0] + \" -> \" + a[1]);\n\t\t\t//}\n\t\t\t\n\t\t\t//System.out.println(\"Contexts: \");\n\t\t\t//for (String s : contextsSet) {\n\t\t\t//\tSystem.out.println(s);\n\t\t\t//\tfor(String[] a : hasModuleAssociations){\n\t\t\t//\t\tif(a[0].equals(s))\n\t\t\t//\t\tSystem.out.println(\" -> \" + a[1]);\t\n\t\t\t//\t}\n\t\t\t//}\n\t\t} catch (DLVInvocationException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private List<Card> chooseMulligan() {\n return this.b.getPlayer(this.b.getLocalteam()).getHand().stream()\n .filter(c -> c.finalStats.get(Stat.COST) > 3 && c.finalStats.get(Stat.SPELLBOOSTABLE) == 0)\n .collect(Collectors.toList());\n }", "@Override\r\n\tpublic List getAllOtherList() {\n\t\tString HQL = \"\";\r\n\t\tHQL += \" from XzfyOtherSuggest x\";\r\n\t\tHQL += \" where 1 = 1 \";\t\r\n\t\treturn super.find(HQL);\r\n\t}", "public void extractKnowledge()\n {\n }", "List<TrainingCourse> selectByExample(TrainingCourseExample example);", "@Override public Set<Skill> bannedSkills() {\n Set<Skill> banned = new HashSet<>(first.bannedSkills());\n banned.addAll(next.bannedSkills());\n return banned;\n }", "List<WdWordDict> selectByExample(WdWordDictExample example);", "List<Lbm83ChohyokanriPkey> selectByExample(Lbm83ChohyokanriPkeyExample example);", "private void selectAll() {\n //To change body of generated methods, choose Tools | Templates.\n \n tabelpulsa.setModel(model);\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n \n \n try {\n Connection c=koneksidb.getkoneksi();\n Statement s=c.createStatement();\n ResultSet r=s.executeQuery(\"select* from pulsa\");\n while(r.next()){\n Object[] pulsa = new Object[5]; \n pulsa[0]=r.getString(\"operator\");\n pulsa[1]=r.getString(\"id_pulsa\");\n pulsa[2]=r.getString(\"harga_default\");\n pulsa[3]=r.getString(\"harga_jual\");\n pulsa[4]=r.getString(\"harga_member\");\n model.addRow(pulsa);\n }\n }catch (SQLException e){\n System.out.println(\"terjadi error :\" +e);\n }\n }", "List<ExamRoom> selectAll();", "List<Yqbd> selectByExample(YqbdExample example);", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "private List<Individual<T>> selectIndividuals(Deme<T> deme) {\n return IntStream.range(0, tournamentSize).mapToObj(i -> selRandomOp.select(deme.getIndividuals()))\n .collect(Collectors.toList());\n }", "List<BusinessRepayment> selectAll();", "List<TLinkman> selectByExample(TLinkmanExample example);", "List<Salaries> selectAll();", "List<Question11> selectByExample(Question11Example example);", "List<Article> selectAll();", "@Override\r\n\tpublic List<Produit> getProduitsSelect(List<Produit> lp) {\n\t\treturn null;\r\n\t}", "public OWLModel getKnowledgeBase();", "public List<LocoDataFois> getUncleansedLocoHyperShed( LocoDataFois objelecmodel) {\n\t\t\t\tSystem.out.println(\"getpendingUnapprovedLocos\");\n\t\t\t\tString shedid=objelecmodel.getLoco_Owningshed();\n\t\t\t\tobj_uncleansedrepo.getUncleansedLocoHyperShed(shedid);\n\t\t\t\tList<LocoDataFois> uncleaseLoco= new ArrayList<>();\n\t\t\t\tobj_uncleansedrepo.getUncleansedLocoHyperShed(shedid)\n\t\t\t\t.forEach(uncleaseLoco::add);\n\t\t\t\tSystem.out.println(\" End getuncleansedunapprovedocos\");\n\t\t\t\treturn obj_uncleansedrepo.getUncleansedLocoHyperShed(shedid);\n//\t\t\t\treturn uncleaseLoco;\n\t\t\t}", "public void loadModel() throws SQLException {\n\t\tObject rs = MysqlConnection.getDbConnection().getQueryData(query);\n\t\tclassifier = (FilteredClassifier)rs;\n\t}", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "List<DangerMerchant> selectAll();", "List<AgentLevel> selectByExample(AgentLevelExample example);", "List<HotspotLog> selectByExample(HotspotLogExample example);", "@Override\r\n\tpublic List<Node> findMb(String targetName) {\r\n Node target = getVariableForName(targetName);\r\n List<Node> blanket = new LinkedList<Node>();\r\n\r\n boolean changed = true;\r\n\r\n while (changed) {\r\n changed = false;\r\n\r\n List<Node> remaining = new LinkedList<Node>(variables);\r\n remaining.removeAll(blanket);\r\n remaining.remove(target);\r\n\r\n for (Node node : remaining) {\r\n if (!independenceTest.isIndependent(node, target, blanket)) {\r\n blanket.add(node);\r\n changed = true;\r\n }\r\n }\r\n }\r\n\r\n changed = true;\r\n\r\n while (changed) {\r\n changed = false;\r\n\r\n for (Node node : new LinkedList<Node>(blanket)) {\r\n blanket.remove(node);\r\n\r\n if (independenceTest.isIndependent(node, target, blanket)) {\r\n changed = true;\r\n continue;\r\n }\r\n\r\n blanket.add(node);\r\n }\r\n }\r\n\r\n return blanket;\r\n }", "public HashSet<String> getHypernymsLexical(String linkedConcept, Language language) {\n String key = linkedConcept + \"_\" + language.toSparqlChar2();\n HashSet<String> result = new HashSet<>();\n if (linkedConcept.startsWith(WikidataLinker.MULTI_CONCEPT_PREFIX)) {\n Set<String> individualLinks = this.linker.getUris(linkedConcept);\n for (String individualLink : individualLinks) {\n result.addAll(getHypernymsLexical(individualLink, language));\n }\n } else {\n String queryString = \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\\n\" +\n \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\\n\" +\n \"PREFIX wdt: <http://www.wikidata.org/prop/direct/>\\n\" +\n \"SELECT DISTINCT ?l WHERE { \\n\" +\n \" { <\" + linkedConcept + \"> wdt:P31 ?c . \\n\" +\n \" ?c rdfs:label ?l .\\n\" +\n \" }\\n\" +\n \" UNION\\n\" +\n \" { <\" + linkedConcept + \"> wdt:P31 ?c . \\n\" +\n \" ?c skos:altLabel ?l .\\n\" +\n \" }\\n\" +\n \" UNION\\n\" +\n \" { <\" + linkedConcept + \"> wdt:P279 ?c . \\n\" +\n \" ?c rdfs:label ?l .\\n\" +\n \" }\\n\" +\n \" UNION\\n\" +\n \" { <\" + linkedConcept + \"> wdt:P279 ?c . \\n\" +\n \" ?c skos:altLabel ?l .\\n\" +\n \" }\\n\" +\n \" FILTER(LANG(?l) = '\" + language.toSparqlChar2() + \"')\\n\" +\n \"}\";\n //System.out.println(queryString);\n Query query = QueryFactory.create(queryString);\n QueryExecution queryExecution = QueryExecutionFactory.sparqlService(ENDPOINT_URL, query);\n ResultSet resultSet = queryExecution.execSelect();\n while (resultSet.hasNext()) {\n QuerySolution solution = resultSet.next();\n String uri = solution.getLiteral(\"l\").getLexicalForm();\n result.add(uri);\n }\n queryExecution.close();\n }\n hypernymyBuffer.put(key, result);\n commitAll(WIKIDATA_HYPERNYMY_BUFFER);\n return result;\n }", "public void test_ck_03() {\n // part A - surprising reification\n OntModel model1 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM, null);\n OntModel model2 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM_RULE_INF, null);\n \n Individual sub = model1.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n OntProperty pred = model1.createOntProperty(\"http://mytest#\");\n Individual obj = model1.createIndividual(\"http://mytest#i2\", model1.getProfile().CLASS());\n OntProperty probabilityP = model1.createOntProperty(\"http://mytest#prob\");\n \n Statement st = model1.createStatement(sub, pred, obj);\n model1.add(st);\n st.createReifiedStatement().addProperty(probabilityP, 0.9);\n assertTrue(\"st should be reified\", st.isReified());\n \n Statement st2 = model2.createStatement(sub, pred, obj);\n model2.add(st2);\n st2.createReifiedStatement().addProperty(probabilityP, 0.3);\n assertTrue(\"st2 should be reified\", st2.isReified());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP).addProperty(probabilityP, 0.3); //!!!\n // exception\n \n // Part B - exception in remove All\n Individual sub2 = model2.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP); //!!! exception\n \n sub2.addProperty(probabilityP, 0.3);\n sub2.removeAll(probabilityP); //!!! exception\n \n }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "private static void demonstrateListOperation(IndexWord word) throws JWNLException {\n PointerTargetNodeList hypernyms = PointerUtils.getInstance().getDirectHypernyms(word.getSense(1));\n System.out.println(\"Direct hypernyms of \\\"\" + word.getLemma() + \"\\\":\");\n for(int idx = 0; idx < hypernyms.size(); idx++){\n PointerTargetNode nn = (PointerTargetNode)hypernyms.get(idx);\n for(int wrdIdx = 0; wrdIdx < nn.getSynset().getWordsSize(); wrdIdx++){\n System.out.println(\"Syn\" + idx + \" of direct hypernyms of\\\"\" + word.getLemma() + \"\\\" : \" +\n nn.getSynset().getWord(wrdIdx).getLemma());\n }\n }\n hypernyms.print();\n }", "public Set<String> hyponyms(String word) {\n Set<Integer> wordIds = revrseSynsetMapper.get(word);\n Set<String> superSet = new HashSet<String>();\n Set<Integer> descendant = GraphHelper.descendants(hypGraph, wordIds);\n Iterator<Integer> iter = descendant.iterator();\n while (iter.hasNext()) {\n Set<String> string_word = synsetMapper.get(iter.next());\n Iterator<String> A = string_word.iterator();\n while (A.hasNext()) {\n superSet.add(A.next());\n }\n }\n return superSet;\n }", "List<Question27> selectByExample(Question27Example example);", "private void getSensorConditions(List<RuleInstance> rules,Set<Condition> conds)\n{\n for (int i = 0; i < rules.size(); ++i) {\n RuleInstance ri1 = rules.get(i);\n for (int j = i+1; j < rules.size(); ++j) {\n\t RuleInstance ri2 = rules.get(j);\n\t if (ri1.getStateId() == ri2.getStateId()) continue;\n\t addSensorConditions(ri1,ri2,conds);\n }\n }\n}" ]
[ "0.59691995", "0.5946124", "0.53633493", "0.5312922", "0.5307309", "0.52460635", "0.5238084", "0.5192674", "0.5139006", "0.50948143", "0.50866914", "0.50112957", "0.5007891", "0.4996636", "0.49636948", "0.4956354", "0.49507973", "0.49479237", "0.48977947", "0.4894809", "0.48911065", "0.48847988", "0.4880135", "0.48673707", "0.4855253", "0.4855241", "0.48535046", "0.480195", "0.47994772", "0.47991043", "0.4798417", "0.47813725", "0.47717804", "0.4768906", "0.47678742", "0.47635004", "0.47548336", "0.47546268", "0.47464973", "0.47444698", "0.47117203", "0.4690482", "0.46783024", "0.46587136", "0.46550602", "0.46435827", "0.46349108", "0.46337643", "0.4631748", "0.4629458", "0.46282014", "0.46164775", "0.46055147", "0.46037558", "0.4598122", "0.45905945", "0.45895112", "0.45808697", "0.45785415", "0.4572338", "0.45686072", "0.456449", "0.45642546", "0.4563944", "0.45615014", "0.45547345", "0.45529193", "0.45459706", "0.45424095", "0.45423043", "0.45389313", "0.45365608", "0.45276436", "0.45085162", "0.45071298", "0.45060387", "0.4502857", "0.450277", "0.44992143", "0.44991246", "0.44952372", "0.44932744", "0.4491088", "0.44806948", "0.4477006", "0.4471999", "0.44679517", "0.44677833", "0.44667196", "0.4465013", "0.4464343", "0.44636938", "0.44627184", "0.44615594", "0.4460034", "0.44591886", "0.4453231", "0.44520327", "0.44517097", "0.44435757" ]
0.53337675
3
select all los which contribute to one knowledge
List<TModuleLo> selectSkillToLo();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<RepStuLearning> selectByExample(RepStuLearningExample example);", "public static void demo_LCS(RoWordNet RoWN) throws Exception {\n Timer timer = new Timer();\n String lcs;\n\n boolean allowAllRelations = true;\n\n Literal l1 = new Literal(\"viață\");\n Literal l2 = new Literal(\"vietate\");\n String s1 = RoWN.getSynsetsFromLiteral(l1).get(5).getId();\n String s2 = RoWN.getSynsetsFromLiteral(l2).get(0).getId();\n\n Literal l3 = new Literal(\"fenomen\");\n Literal l4 = new Literal(\"proces\");\n String s3 = RoWN.getSynsetsFromLiteral(l3).get(1).getId();\n String s4 = RoWN.getSynsetsFromLiteral(l4).get(1).getId();\n\n IO.outln(\"\\n*** Searching for the LCS with all relations as the allowed relation ...\");\n timer.start();\n IO.outln(\"Source synset: \" + s1 + \" \" + ((Synset) RoWN\n .getSynsetById(s1)).toString());\n IO.outln(\"Target synset: \" + s2 + \" \" + ((Synset) RoWN\n .getSynsetById(s2)).toString());\n lcs = SimilarityMetrics\n .lowestCommonSubsumer(RoWN, s1, s2, allowAllRelations);\n IO.outln(\"LCS found: \" + lcs + \" \" + ((Synset) RoWN.getSynsetById(lcs))\n .toString());\n IO.outln();\n IO.outln(\"Done: \" + timer.mark());\n\n allowAllRelations = false;\n IO.outln(\"\\n*** Searching the LCS with only hypernymy as allowed edge ...\");\n timer.start();\n IO.outln(\"Source synset: \" + s3 + \" \" + ((Synset) RoWN\n .getSynsetById(s3)).toString());\n IO.outln(\"Target synset: \" + s4 + \" \" + ((Synset) RoWN\n .getSynsetById(s4)).toString());\n lcs = SimilarityMetrics\n .lowestCommonSubsumer(RoWN, s3, s4, allowAllRelations);\n IO.outln(\"LCS found: \" + lcs + \" \" + ((Synset) RoWN.getSynsetById(lcs))\n .toString());\n IO.outln();\n IO.outln(\"Done: \" + timer.mark());\n }", "List<TModuleLo> selectModuleLoSkill(Long skillId);", "List<Online> selectByExample(OnlineExample example);", "RepStuLearning selectByPrimaryKey(RepStuLearningKey key);", "public void filterDoc(LeanDocument goldSt)\n{\n HashMap<Integer, Integer> newNPchains = new HashMap<Integer, Integer>();\n clusters = new HashMap<Integer, TreeMap<Integer, Integer>>();\n Iterator<Integer> keyIterator = goldSt.NPchains.keySet().iterator();\n while (keyIterator.hasNext()) {\n Integer current = keyIterator.next();\n Integer corefID = NPchains.get(current);\n if (!NPchains.containsKey(current))\n throw new RuntimeException(\"Gold Standard np \" + current + \" not found in doc \" + id);\n newNPchains.put(current, corefID);\n TreeMap<Integer, Integer> cluster;\n if (clusters.containsKey(corefID)) {\n cluster = clusters.get(corefID);\n }\n else {\n cluster = new TreeMap<Integer, Integer>();\n clusters.put(corefID, cluster);\n }\n cluster.put(current, current);\n }\n NPchains = newNPchains;\n}", "List<Mallscroerule> selectAll();", "List<ToolsOutIn> selectAll();", "List<WordSchool> selectByExample(WordSchoolExample example);", "public LinkedList <AbsAttraction> filter(ISelect s){\r\n return new LinkedList <AbsAttraction>(); \r\n }", "public static List<Synset> getAllMeronymSynset(IndexWord word) throws JWNLException {\n List<Synset> result=new ArrayList<>();\n\n for(Synset wordSynset:word.getSenses()){\n PointerTargetTree hyponyms = PointerUtils.getInstance().getInheritedMeronyms(wordSynset,4,4);\n PointerTargetTreeNode rootnode = hyponyms.getRootNode();\n LinkedList<PointerTargetTreeNode> stack = new LinkedList<>();\n if(rootnode==null){\n return result;\n }\n stack.add(rootnode);\n while(!stack.isEmpty()){\n PointerTargetTreeNode node = stack.pollLast();\n result.add(node.getSynset());\n PointerTargetTreeNodeList childList = node.getChildTreeList();\n if(childList!=null){\n for(int i=0;i<childList.size();i++){\n stack.add((PointerTargetTreeNode)childList.get(i));\n }\n }\n\n }\n\n }\n\n return result;\n }", "public static List<Synset> getAllHyponymSynset(IndexWord word) throws JWNLException {\n List<Synset> result=new ArrayList<>();\n\n for(Synset wordSynset:word.getSenses()){\n PointerTargetTree hyponyms = PointerUtils.getInstance().getHyponymTree(wordSynset,4);\n PointerTargetTreeNode rootnode = hyponyms.getRootNode();\n LinkedList<PointerTargetTreeNode> stack = new LinkedList<>();\n if(rootnode==null){\n return result;\n }\n stack.add(rootnode);\n while(!stack.isEmpty()){\n PointerTargetTreeNode node = stack.pollLast();\n result.add(node.getSynset());\n PointerTargetTreeNodeList childList = node.getChildTreeList();\n if(childList!=null){\n for(int i=0;i<childList.size();i++){\n stack.add((PointerTargetTreeNode)childList.get(i));\n }\n }\n\n }\n\n }\n\n return result;\n }", "List<NjProductTaticsRelation> selectByExample(NjProductTaticsRelationExample example);", "List<ReEducation> selectByExample(ReEducationExample example);", "List<Kaiwa> selectByExample(KaiwaExample example);", "public Set<String> hyponyms(String word) {\n Set<String> toReturn = new HashSet<String>();\n Set<Integer> wordIndexes = new HashSet<Integer>();\n wordIndexes = wnetsi.get(word);\n Set<Integer> toReturnInt = GraphHelper.descendants(g, wordIndexes);\n Object[] returnArray = toReturnInt.toArray();\n for (int i = 0; i < returnArray.length; i += 1) {\n Set<String> stringReturn = wnetis.get(returnArray[i]);\n Iterator<String> strIter = stringReturn.iterator();\n while (strIter.hasNext()) {\n toReturn.add(strIter.next());\n }\n }\n return toReturn;\n }", "List<CommunityInform> selectAll();", "private List<moneda> filter(List<moneda> p1, String query)\n {\n query = query.toLowerCase();\n final List<moneda> filteredModeList = new ArrayList<>();\n for (moneda model:p1)\n {\n final String text = model.getNombre().toLowerCase();\n if(text.startsWith(query))\n {\n filteredModeList.add(model);\n }\n }\n return filteredModeList;\n }", "List<EvaluationRecent> selectAll();", "List<SupplyNeed> selectByExample(SupplyNeedExample example);", "List<CaseLinkman> selectAll();", "List<KnowledgeComment> selectAll();", "public List<Kateggorija> getSviGlumci() {\n List<Kateggorija> glumci=null;\n try {\n glumci= getDaoKateggorija().queryForAll();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return glumci;\n }", "List<HuoDong> selectByExample(HuoDongExample example);", "List<ActivityHongbaoPrize> selectByExample(ActivityHongbaoPrizeExample example);", "List selectByExample(XdSpxxExample example);", "List<Ltsprojectpo> selectByExample(LtsprojectpoExample example);", "List<Dormitory> selectAll();", "private Set<LCMessage> getOutOfContextLC(int type, int regency) {\n\n HashSet<LCMessage> result = new HashSet<>();\n\n for (LCMessage m : outOfContextLC) {\n\n if (m.getType() == type && m.getReg() == regency) {\n result.add(m);\n }\n\n }\n\n outOfContextLC.removeAll(result); // avoid memory leaks\n\n return result;\n }", "List<SPerms> selectByExample(SPermsExample example);", "List selectByExample(DisproductExample example);", "List<TCpySpouse> selectByExample(TCpySpouseExample example);", "List selectByExample(TResearchTeachExample example);", "public Collection<LernStatus> getLernStadi() {\r\n Collection<LernStatus> result;\r\n \r\n String sql = \"select object(ls) from LernStatus ls \"\r\n + \"where THEMA_THEMENID = :TID\";\r\n \r\n Query q = EMH.getEntityManager().createQuery(sql);\r\n \r\n q.setParameter(\"TID\", this.themenID);\r\n \r\n result = q.getResultList();\r\n \r\n return result;\r\n }", "List selectByExample(Mi004Example example);", "public List<LocoUncleansedDataElectric> getLocoPendingHypershed( LocoUncleansedDataElectric objelecmodel) {\n\t\t\t\tSystem.out.println(\"getpendingUnapprovedLocos\");\n\t\t\t\tString shedid=objelecmodel.getElec_locoOwningShed();\n\t\t\t\tobj_elec.getLocoPendingHypershed(shedid);\n\t\t\t\tList<LocoUncleansedDataElectric> uncleaseLoco= new ArrayList<>();\n\t\t\t\tobj_elec.getLocoPendingHypershed(shedid)\n\t\t\t\t.forEach(uncleaseLoco::add);\n\t\t\t\tSystem.out.println(\" End getuncleansedunapprovedocos\");\n\t\t\t\treturn obj_elec.getLocoPendingHypershed(shedid);\n//\t\t\t\treturn uncleaseLoco;\n\t\t\t}", "List<String> getTargetClassifications(Observation obs);", "@ActionTrigger(action=\"QUERY_RECS\")\n\t\tpublic void spriden_QueryRecs()\n\t\t{\n\t\t\t\n\n\t\t\t\tSpridenAdapter spridenElement = (SpridenAdapter)this.getFormModel().getSpriden().getRowAdapter(true);\n\t\t\t\tSgbstdnAdapter sgbstdnElement = (SgbstdnAdapter)this.getFormModel().getSgbstdn().getRowAdapter(true);\n\t\t\t\tSovlcurAdapter sovlcurElement = (SovlcurAdapter)this.getFormModel().getSovlcur().getRowAdapter(true);\n\n\t\t\t\tif(spridenElement!=null && sgbstdnElement!=null && sovlcurElement!=null){\n\n\t\t\t\ttry { \n\t\t\t\t\tMessageServices.setMessageLevel(OracleMessagesLevel.decodeMessageLevel(5));\n\t\t\t\t// \n\t\t\t\tnextBlock();\n\t\t\t\t// soundex\n\t\t\t\tnextBlock();\n\t\t\t\t// spraddr \n\t\t\t\texecuteQuery();\n\t\t\t\tnextBlock();\n\t\t\t\t// sgbstdn \n\t\t\t\texecuteQuery();\n\t\t\t\tnextBlock();\n\t\t\t\t// sfbetrm \n\t\t\t\texecuteQuery();\n\t\t\t\t// execute the query on sovlcur and sovlfos \n\t\t\t\tgetFormModel().getSCurriculaSummary().setSummaryPidm(spridenElement.getSpridenPidm());\n\t\t\t\tgetFormModel().getSCurriculaSummary().setSummaryCode(SbCurriculumStr.fLearner());\n\t\t\t\tgetFormModel().getSCurriculaSummary().setSummaryKeySeqno(toNumber(99));\n\t\t\t\tgetFormModel().getSCurriculaSummary().setSummaryTermCode(sgbstdnElement.getSgbstdnTermCodeEff());\n\t\t\t\tgetFormModel().getSCurriculaSummary().setSummaryEndTerm(SbLearner.fQueryEnd(spridenElement.getSpridenPidm(), sgbstdnElement.getSgbstdnTermCodeEff()));\n\t\t\t\tif ( !sgbstdnElement.getSgbstdnTermCodeEff().isNull() )\n\t\t\t\t{\n\t\t\t\t\t// Create SOTVCUR since this is a learner curriculum \n\t\t\t\t\tSoklcur.pCreateSotvcur(/*pPidm=>*/getFormModel().getSCurriculaSummary().getSummaryPidm(), /*pTermCode=>*/getFormModel().getSCurriculaSummary().getSummaryTermCode(), /*pLmodCode=>*/getFormModel().getSCurriculaSummary().getSummaryCode());\n\t\t\t\t\t// Now execute the query on summary blocks \n\t\t\t\t\tgoBlock(\"SOVLCUR\");\n\t\t\t\t\texecuteQuery();\n\t\t\t\t\tif ( !sovlcurElement.getSummaryRowid().isNull() )\n\t\t\t\t\t{\n\t\t\t\t\t\tgoBlock(\"SOVLFOS\");\n\t\t\t\t\t\texecuteQuery();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tgoBlock(\"SOVLFOS\");\n\t\t\t\t\t\tclearBlock();\n\t\t\t\t\t}\n\t\t\t\t\tgoBlock(\"SFBETRM\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tgoBlock(\"SOVLFOS\");\n\t\t\t\t\tclearBlock();\n\t\t\t\t\tgoBlock(\"SOVLCUR\");\n\t\t\t\t\tclearBlock();\n\t\t\t\t}\n\t\t\t\t// - sgbstdn term is not null \n\t\t\t\tgoBlock(\"SFBETRM\");\n\t\t\t\tpreviousBlock();\n\t\t\t\t// sgbstdn\n\t\t\t\tpreviousBlock();\n\t\t\t\t// spraddr\n\t\t\t\tpreviousBlock();\n\t\t\t\t// soundex \n\t\t\t\tpreviousBlock();\n\t\t\t\t// spriden \n\t\t\t\t// \n\t\t\t\t\n\t\t\t\t} finally {\n\t\t\t\t\t\t\t\n\t\t\t\t\tMessageServices.setMessageLevel(OracleMessagesLevel.decodeMessageLevel(0));\n\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t}\n\t\t}", "List<ProSchoolWare> selectByExample(ProSchoolWareExample example);", "private void llenarListado1() {\r\n\t\tString sql1 = Sentencia1()\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tdet.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor det.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\t\tString sql2 = Sentencia2()\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarLista(sql1, sql2);\r\n\t}", "@Override\r\n\tpublic List<LabelArticle> selectByWhere(String strWhere) {\n\t\treturn null;\r\n\t}", "List<ScoreProduct> selectByExample(ScoreProductExample example);", "List<LawPerson> selectByExample(LawPersonExample example);", "public Set<String> hyponyms(String word) {\n HashSet<String> set = new HashSet<String>();\n for (Integer id: synsets.keySet()) {\n TreeSet<String> hs = synsets.get(id);\n if (hs.contains(word)) {\n for (String s: hs) {\n set.add(s);\n }\n TreeSet<Integer> ids = new TreeSet<Integer>();\n ids.add(id);\n Set<Integer> desc = GraphHelper.descendants(dg, ids);\n for (Integer i: desc) {\n for (String s: synsets.get(i)) {\n set.add(s);\n }\n }\n }\n }\n return set;\n }", "public static void caso31(){\n\t FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso3.owl\",\"file:resources/caso3.repository\",fm);\n\t\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response1\");\n\t\t\tif(map==null){\n\t\t\t\tSystem.out.println(\"El map es null\");\n\t\t\t}else{\n\t\t\t\tMapUtils.imprimirMap(map);\n\t\t\t}\n\t}", "List<CommonQuestionStrategyType> selectByExample(CommonQuestionStrategyTypeExample example);", "List<Disease> selectByExample(DiseaseExample example);", "List<BehaveLog> selectByExample(BehaveLogExample example);", "public Set<OWLLogicalAxiom> canWeDoBetter(){\n\t\tSet<Set<OWLClass>> largeSCCs =\n\t\t\t\ttarj.getStronglyConnectComponents().\n\t\t\t\t\t\tstream().\n\t\t\t\t\t\tfilter(x -> x.size() > 1).\n\t\t\t\t\t\tcollect(Collectors.toSet());\n\n\t\t//Add all those axioms which use their own definition on the RHS\n\t\tSet<OWLLogicalAxiom> cycleCausing = new HashSet<>();\n\t\tcycleCausing.addAll(builder.getSelfDefinedAxioms());\n\n\t\tfor(OWLLogicalAxiom axiom : axioms){\n\t\t\tOWLClass name = (OWLClass) AxiomSplitter.getNameofAxiom(axiom);\n\t\t\t\tfor(Set<OWLClass> component : largeSCCs){\n\t\t\t\t\tif(component.contains(name)){\n\t\t\t\t\t\tOWLClassExpression def = AxiomSplitter.getDefinitionofAxiom(axiom);\n\t\t\t\t\t\tSet<OWLClass> defCls = ModuleUtils.getNamedClassesInSignature(def);\n\t\t\t\t\t\tSet<OWLClass> inter = Sets.intersection(component, defCls);\n\t\t\t\t\t\tif(!inter.isEmpty()){\n\t\t\t\t\t\t\tcycleCausing.add(axiom);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\treturn cycleCausing;\n\t}", "public static void caso21(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso2.owl\",\"file:resources/caso2.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response2\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}else{\n\t\t\tMapUtils.imprimirMap(map);\n\t\t}\n\t}", "@Override\r\npublic List<Possalesdetail> selectByExample(PossalesdetailExample example) {\n\treturn possalesdetail.selectByExample(example);\r\n}", "List<Question14> selectByExample(Question14Example example);", "public Set<String> hyponyms(String word) {\n Set<Integer> synIDs = new TreeSet<Integer>();\n Set<Integer> synKeys = synsetMap.keySet();\n for (Integer id : synKeys) {\n if (synsetMap.get(id).contains(word)) {\n synIDs.add(id);\n }\n }\n Set<Integer> hypIDs = GraphHelper.descendants(g, synIDs);\n Set<String> result = new TreeSet<String>();\n\n for (Integer i : hypIDs) {\n ArrayList<String> al = synsetMap.get(i);\n result.addAll(al);\n }\n return result;\n }", "List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);", "default Stream<Triple> witnesses(Triple... elements) {\n Set<Triple> toBeMatched = new HashSet<>(Arrays.asList(elements));\n return apex().carrier().elements().filter(witnes -> {\n return toBeMatched.stream().allMatch(target -> {\n return projections().anyMatch(morphism -> morphism.apply(witnes).map(target::equals).orElse(false));\n });\n });\n }", "default List<Source> typicalityQuery(int topK, double h, Set<Source> resultSet, Set<String> relevant){\n return typicalityQuery(topK, resultSet, new SegmentsTypicalityProcessor(h, relevant));\n }", "List<OpeningRequirement> selectAll();", "@Override\n\tpublic List<CustomerReprieve> selectCustomerReprieveById(Integer lossId) {\n\t\treturn customerDao.selectCustomerReprieveById(lossId);\n\t}", "List<ClinicalData> selectAll();", "List<Crawl> selectByExample(CrawlExample example);", "Collection<? extends PM_Learning_Material> getHasRecommendation();", "public Set<String> hyponyms(String word) {\n hypernymSet = new TreeSet<String>();\n firstsIDset = new HashSet<Integer>();\n for (String[] synStrings : sFile.values()) {\n for (String synset : synStrings) {\n if (synset.equals(word)) {\n for (String synset2 : synStrings) {\n hypernymSet.add(synset2);\n }\n for (Integer key : sFile.keySet()) {\n if (sFile.get(key).equals(synStrings)) {\n firstsIDset.add(key);\n }\n }\n }\n }\n }\n\n sIDset = GraphHelper.descendants(theDigraph, firstsIDset);\n for (Integer id : sIDset) {\n synsetWordStrings = sFile.get(id);\n for (String word2 : synsetWordStrings) {\n hypernymSet.add(word2);\n }\n }\n return hypernymSet;\n }", "List<SpecialCircumstance> selectByExample(SpecialCircumstanceExample example);", "private void llenarListadoPromocionSalarial() {\n\t\tString sql1 = \"select det.* from seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"join planificacion.estado_cab cab on cab.id_estado_cab = det.id_estado_cab \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab\"\r\n\t\t\t\t+ \" left join seleccion.promocion_concurso_agr agr \"\r\n\t\t\t\t+ \"on agr.id_promocion_salarial = det.id_promocion_salarial\"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tagr.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor agr.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n//\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\t\t\r\n\t\tString sql2 = \"select puesto_det.* \"\r\n\t\t\t\t+ \"from seleccion.promocion_concurso_agr puesto_det \"\r\n\t\t\t\t+ \"join planificacion.estado_det estado_det \"\r\n\t\t\t\t+ \"on estado_det.id_estado_det = puesto_det.id_estado_det \"\r\n\t\t\t\t+ \"join seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"on det.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab \"\r\n\t\t\t//\t+ \"join seleccion.concurso concurso \"\r\n\t\t\t//\t+ \"on concurso.id_concurso = puesto_det.id_concurso \"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t//\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarListaPromocionSalarial(sql1, sql2);\r\n\t}", "public Vector<Rule> learn(Vector<Rule> knowledgebase, Commitment selectedCommitment)\n {\n Situation situation3movementsAgo;\n Commitment firstCommitment;\n Commitment secondCommitment;\n Commitment lastCommitment;\n Commitment newCommitment;\n Condition newCondition;\n String predicate;\n Vector<Condition> conditions;\n Vector<Commitment> commitments;\n StringTokenizer tokenizer;\n String predicateHead;\n int i,j;\n int x, y;\n int x1,x2,x3;\n int y1,y2, y3;\n String direction1, direction2, direction3;\n Rule newRule;\n boolean found;\n boolean ruleAlreadyExists;\n String milestoneID;\n //-------------------------------\n\n if(Blackboard.history.size()>3)\n {\n situation3movementsAgo = Blackboard.history.get(Blackboard.history.size()-4);\n milestoneID = getMilestoneId();\n if(!milestoneID.equals(\"ninguna\"))\n {\n firstCommitment = Blackboard.history.get(Blackboard.history.size()-3).cause;\n secondCommitment = Blackboard.history.get(Blackboard.history.size()-2).cause;\n lastCommitment = selectedCommitment;\n conditions = new Vector<Condition>();\n\n // checa si hay que poner un predicado primero\n // referente a una milestone\n predicate = newRuleFirstCondition(situation3movementsAgo);\n\n if(!predicate.equals(\"ninguno\"))\n {\n // condicion de una milestone\n newCondition = new Condition(predicate);\n conditions.add(newCondition);\n }//end if\n\n if(predicate.equals(\"ninguno\"))\n {\n i= 0;\n while(i < 5)\n {\n x=getXOfAToken(situation3movementsAgo, i);\n y=getYOfAToken(situation3movementsAgo, i);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + i + \")\");\n conditions.add(newCondition);\n i = i + 1;\n }//end while\n }//end if\n else\n {\n if(predicate.equals(\"primeraLineaLista\"))\n {\n x=getXOfAToken(situation3movementsAgo, 0);\n y=getYOfAToken(situation3movementsAgo, 0);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 0 + \")\");\n conditions.add(newCondition);\n i= 5;\n while(i < 9)\n {\n x=getXOfAToken(situation3movementsAgo, i);\n y=getYOfAToken(situation3movementsAgo, i);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + i + \")\");\n conditions.add(newCondition);\n i = i + 1;\n }//end while\n }//end if\n else\n {\n if(predicate.equals(\"dosLineasListas\"))\n {\n x=getXOfAToken(situation3movementsAgo, 0);\n y=getYOfAToken(situation3movementsAgo, 0);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 0 + \")\");\n conditions.add(newCondition);\n\n x=getXOfAToken(situation3movementsAgo, 9);\n y=getYOfAToken(situation3movementsAgo, 9);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 9 + \")\");\n conditions.add(newCondition);\n\n x=getXOfAToken(situation3movementsAgo, 13);\n y=getYOfAToken(situation3movementsAgo, 13);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 13 + \")\");\n conditions.add(newCondition);\n\n }//end if\n else\n {\n if(predicate.equals(\"dosLineasYColumna\"))\n {\n x=getXOfAToken(situation3movementsAgo, 0);\n y=getYOfAToken(situation3movementsAgo, 0);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 0 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 10);\n y=getYOfAToken(situation3movementsAgo, 10);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 10 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 11);\n y=getYOfAToken(situation3movementsAgo, 11);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 11 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 12);\n y=getYOfAToken(situation3movementsAgo, 12);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 12 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 14);\n y=getYOfAToken(situation3movementsAgo, 14);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 14 + \")\");\n conditions.add(newCondition);\n x=getXOfAToken(situation3movementsAgo, 15);\n y=getYOfAToken(situation3movementsAgo, 15);\n newCondition = new Condition(\"posicion(\"+ x + \",\"+ y +\",\" + 15 + \")\");\n conditions.add(newCondition);\n\n\n }//end if\n }//end else\n }//end else\n }//end else\n\n\n // now constructs the rule conclusion\n // as a sequence of moves\n predicate = firstCommitment.predicate;\n tokenizer = new StringTokenizer(predicate,\"(, )\");\n predicateHead = tokenizer.nextToken();\n x1 = Integer.valueOf(tokenizer.nextToken());\n y1 = Integer.valueOf(tokenizer.nextToken());\n direction1 = tokenizer.nextToken();\n\n predicate = secondCommitment.predicate;\n tokenizer = new StringTokenizer(predicate,\"(, )\");\n predicateHead = tokenizer.nextToken();\n x2 = Integer.valueOf(tokenizer.nextToken());\n y2 = Integer.valueOf(tokenizer.nextToken());\n direction2 = tokenizer.nextToken();\n\n predicate = lastCommitment.predicate;\n tokenizer = new StringTokenizer(predicate,\"(, )\");\n predicateHead = tokenizer.nextToken();\n x3 = Integer.valueOf(tokenizer.nextToken());\n y3 = Integer.valueOf(tokenizer.nextToken());\n direction3 = tokenizer.nextToken();\n\n predicate = \"secuencia(\"+\n x1 + \",\" + y1 + \",\" + direction1 + \",\"+\n x2 + \",\" + y2 + \",\" + direction2 + \",\"+\n x3 + \",\" + y3 + \",\" + direction3 + \")\";\n newCommitment = new Commitment(predicate);\n commitments = new Vector<Commitment>();\n commitments.add(newCommitment);\n\n // includes the new rule into the knowledge base\n newRule = new Rule(knowledgeBase.size(), conditions, commitments);\n ruleAlreadyExists = false;\n i = 0;\n while(i < knowledgeBase.size())\n {\n if(knowledgeBase.get(i).equals(newRule))\n {\n ruleAlreadyExists = true;\n break;\n }//end if\n i = i + 1;\n }//end while\n if(!ruleAlreadyExists)\n {\n knowledgeBase.add(newRule);\n }//end if\n }//end if\n }//end if\n return knowledgeBase;\n }", "List<Drug_OutWarehouse> selectByExample(Drug_OutWarehouseExample example);", "private void computeSets(DLProgram datalogGlobal){\n\t\t\n\t\tDLVInvocation invocation = DLVWrapper.getInstance().createInvocation(dlvPath);\n\t\tDLVInputProgram inputProgram = new DLVInputProgramImpl();\n\n\t\ttry {\t\t\t\n\t\t\tDLProgramStorer storer = new DLProgramStorerImpl();\n\t\t\tStringBuilder target = new StringBuilder();\n\t\t\tstorer.store(datalogGlobal, target);\n \n\t\t\t//Add to DLV input program the contents of global program. \n\t\t\tString datalogGlobalText = target.toString();\n\t\t\tinputProgram.addText(datalogGlobalText);\n\t\t\t\n\t\t\t//inputProgram.addText(\"triple(c1,\\\"hasModule\\\",m1,\\\"g\\\").\" + \n\t\t\t// \" inst(c1,\\\"Context\\\",\\\"g\\\").\"+ \n\t\t\t// \"triple(c1,\\\"hasModule\\\",m2,\\\"g\\\").\" + \n\t\t\t// \"triple(X, \\\"hasModule\\\", m3, \\\"g\\\") :- inst(X,\\\"Context\\\",\\\"g\\\").\");\n\t\t\t\n\t\t\t//Set input program for current invocation.\n\t\t\tinvocation.setInputProgram(inputProgram);\n\t\t\t\n\t\t\t//Filter for \\triple and \\inst predicates. \n\t\t\t//System.out.println(inputProgram.getCompleteText());\n\t\t\tList<String> filters = new LinkedList<String>();\n\t\t\tfilters.add(\"tripled\");\n\t\t\tfilters.add(\"instd\");\n\t\t\tinvocation.setFilter(filters, true);\n\t\t\t\n\t\t\t//List of computed models, used to check at least a model is computed.\n\t\t\tfinal List<Model> models = new ArrayList<Model>();\n\t\t\t\n\t\t\t//Model handler: retrieves contexts and associations in the computed model(s).\n\t\t\tinvocation.subscribe(new ModelHandler() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void handleResult(DLVInvocation paramDLVInvocation,\n\t\t\t\t\t\tModelResult modelResult) {\n\t\t\t\t\t\n\t\t\t\t\t//System.out.print(\"{ \");\n\t\t\t\t\tModel model = (Model) modelResult;\n\t\t\t\t\tmodels.add(model);\n\n\t\t\t\t\t//model.beforeFirst();\n\t\t\t\t\t//while (model.hasMorePredicates()) {}\n\n\t\t\t\t\t//Predicate predicate = model.nextPredicate();\n\t\t\t\t\tPredicate predicate = model.getPredicate(\"instd\");\n\t\t\t\t\tif (predicate != null){\n\t\t\t\t\t\t//System.out.println(predicate.name() + \": \");\n\t\t\t\t\t\twhile (predicate.hasMoreLiterals()) {\n\n\t\t\t\t\t\t\tLiteral literal = predicate.nextLiteral();\n\t\t\t\t\t\t\tif (literal.getAttributeAt(1).toString().equals(\"\\\"Context\\\"\")) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//Add context to list of inferred contexts.\n\t\t\t\t\t\t\t\tcontextsSet.add(literal.getAttributeAt(0).toString());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//System.out.print(literal);\n\t\t\t\t\t\t\t\t//System.out.println(\", \");\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\t\n\t\t\t\t\tpredicate = model.getPredicate(\"tripled\");\n\t\t\t\t\tif (predicate != null){\n\t\t\t\t\t\t//System.out.println(predicate.name() + \": \");\n\t\t\t\t\t\twhile (predicate.hasMoreLiterals()) {\n\n\t\t\t\t\t\t\t//Add module association for each context.\n\t\t\t\t\t\t\tLiteral literal = predicate.nextLiteral();\n\t\t\t\t\t\t\tif (literal.getAttributeAt(1).toString().equals(\"\\\"hasModule\\\"\")) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString[] association = new String[2];\n\t\t\t\t\t\t\t\tassociation[0] = literal.getAttributeAt(0).toString();\n\t\t\t\t\t\t\t\tassociation[1] = literal.getAttributeAt(2).toString();\n\t\t\t\t\t\t\t\thasModuleAssociations.add(association);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//System.out.print(literal);\n\t\t\t\t\t\t\t\t//System.out.println(\", \");\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\t\n\t\t\t\t\t//System.out.println(\"}\");\n\t\t\t\t\t//System.out.println();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\t\n\t\t\tinvocation.run();\n\t\t\tinvocation.waitUntilExecutionFinishes();\n\t\t\t\n\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\tglobalModelComputationTime = endTime - startTime;\n\t\t\t\n\t\t\t//System.out.println(\"Global computation time: \" + globalModelComputationTime + \" ms.\");\n\t\t\t\n\t\t\tList<DLVError> k = invocation.getErrors();\n\t\t\tif (k.size() > 0)\n\t\t\t\tSystem.err.println(k);\n\t\t\t\n\t\t\t//System.out.println(\"Number of computed models: \" + models.size());\n\t\t\tif(models.size() == 0) \n\t\t\t\tSystem.err.println(\"[!] No models for global context program.\");\n\t\t\t\n\t\t\t//for (String[] a : hasModuleAssociations) {\n\t\t\t//\tSystem.out.println(a[0] + \" -> \" + a[1]);\n\t\t\t//}\n\t\t\t\n\t\t\t//System.out.println(\"Contexts: \");\n\t\t\t//for (String s : contextsSet) {\n\t\t\t//\tSystem.out.println(s);\n\t\t\t//\tfor(String[] a : hasModuleAssociations){\n\t\t\t//\t\tif(a[0].equals(s))\n\t\t\t//\t\tSystem.out.println(\" -> \" + a[1]);\t\n\t\t\t//\t}\n\t\t\t//}\n\t\t} catch (DLVInvocationException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private List<Card> chooseMulligan() {\n return this.b.getPlayer(this.b.getLocalteam()).getHand().stream()\n .filter(c -> c.finalStats.get(Stat.COST) > 3 && c.finalStats.get(Stat.SPELLBOOSTABLE) == 0)\n .collect(Collectors.toList());\n }", "public void extractKnowledge()\n {\n }", "@Override\r\n\tpublic List getAllOtherList() {\n\t\tString HQL = \"\";\r\n\t\tHQL += \" from XzfyOtherSuggest x\";\r\n\t\tHQL += \" where 1 = 1 \";\t\r\n\t\treturn super.find(HQL);\r\n\t}", "List<TrainingCourse> selectByExample(TrainingCourseExample example);", "@Override public Set<Skill> bannedSkills() {\n Set<Skill> banned = new HashSet<>(first.bannedSkills());\n banned.addAll(next.bannedSkills());\n return banned;\n }", "List<WdWordDict> selectByExample(WdWordDictExample example);", "List<Lbm83ChohyokanriPkey> selectByExample(Lbm83ChohyokanriPkeyExample example);", "private void selectAll() {\n //To change body of generated methods, choose Tools | Templates.\n \n tabelpulsa.setModel(model);\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n \n \n try {\n Connection c=koneksidb.getkoneksi();\n Statement s=c.createStatement();\n ResultSet r=s.executeQuery(\"select* from pulsa\");\n while(r.next()){\n Object[] pulsa = new Object[5]; \n pulsa[0]=r.getString(\"operator\");\n pulsa[1]=r.getString(\"id_pulsa\");\n pulsa[2]=r.getString(\"harga_default\");\n pulsa[3]=r.getString(\"harga_jual\");\n pulsa[4]=r.getString(\"harga_member\");\n model.addRow(pulsa);\n }\n }catch (SQLException e){\n System.out.println(\"terjadi error :\" +e);\n }\n }", "List<ExamRoom> selectAll();", "public static void caso11(){\n\t\t\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"response\");\n\t\tMapUtils.imprimirMap(map);\n\t}", "List<Yqbd> selectByExample(YqbdExample example);", "private List<Individual<T>> selectIndividuals(Deme<T> deme) {\n return IntStream.range(0, tournamentSize).mapToObj(i -> selRandomOp.select(deme.getIndividuals()))\n .collect(Collectors.toList());\n }", "List<BusinessRepayment> selectAll();", "List<TLinkman> selectByExample(TLinkmanExample example);", "List<Salaries> selectAll();", "List<Question11> selectByExample(Question11Example example);", "List<Article> selectAll();", "@Override\r\n\tpublic List<Produit> getProduitsSelect(List<Produit> lp) {\n\t\treturn null;\r\n\t}", "public OWLModel getKnowledgeBase();", "public List<LocoDataFois> getUncleansedLocoHyperShed( LocoDataFois objelecmodel) {\n\t\t\t\tSystem.out.println(\"getpendingUnapprovedLocos\");\n\t\t\t\tString shedid=objelecmodel.getLoco_Owningshed();\n\t\t\t\tobj_uncleansedrepo.getUncleansedLocoHyperShed(shedid);\n\t\t\t\tList<LocoDataFois> uncleaseLoco= new ArrayList<>();\n\t\t\t\tobj_uncleansedrepo.getUncleansedLocoHyperShed(shedid)\n\t\t\t\t.forEach(uncleaseLoco::add);\n\t\t\t\tSystem.out.println(\" End getuncleansedunapprovedocos\");\n\t\t\t\treturn obj_uncleansedrepo.getUncleansedLocoHyperShed(shedid);\n//\t\t\t\treturn uncleaseLoco;\n\t\t\t}", "public void loadModel() throws SQLException {\n\t\tObject rs = MysqlConnection.getDbConnection().getQueryData(query);\n\t\tclassifier = (FilteredClassifier)rs;\n\t}", "public static void caso12(){\n\n FilterManager fm= new FilterManager(\"resources/stopWordsList.txt\",\"resources/useCaseWeight.properties\");\n\t\tQualityAttributeBelongable qualityAttributeBelongable = new OntologyManager(\"file:resources/caso1.owl\",\"file:resources/caso1.repository\",fm);\n\t\tMap<QualityAttributeInterface,Double> map = qualityAttributeBelongable.getWordPertenence(\"pan\");\n\t\tif(map==null){\n\t\t\tSystem.out.println(\"El map es null\");\n\t\t}\n\t}", "List<DangerMerchant> selectAll();", "@Override\r\n\tpublic List<Node> findMb(String targetName) {\r\n Node target = getVariableForName(targetName);\r\n List<Node> blanket = new LinkedList<Node>();\r\n\r\n boolean changed = true;\r\n\r\n while (changed) {\r\n changed = false;\r\n\r\n List<Node> remaining = new LinkedList<Node>(variables);\r\n remaining.removeAll(blanket);\r\n remaining.remove(target);\r\n\r\n for (Node node : remaining) {\r\n if (!independenceTest.isIndependent(node, target, blanket)) {\r\n blanket.add(node);\r\n changed = true;\r\n }\r\n }\r\n }\r\n\r\n changed = true;\r\n\r\n while (changed) {\r\n changed = false;\r\n\r\n for (Node node : new LinkedList<Node>(blanket)) {\r\n blanket.remove(node);\r\n\r\n if (independenceTest.isIndependent(node, target, blanket)) {\r\n changed = true;\r\n continue;\r\n }\r\n\r\n blanket.add(node);\r\n }\r\n }\r\n\r\n return blanket;\r\n }", "List<HotspotLog> selectByExample(HotspotLogExample example);", "List<AgentLevel> selectByExample(AgentLevelExample example);", "public HashSet<String> getHypernymsLexical(String linkedConcept, Language language) {\n String key = linkedConcept + \"_\" + language.toSparqlChar2();\n HashSet<String> result = new HashSet<>();\n if (linkedConcept.startsWith(WikidataLinker.MULTI_CONCEPT_PREFIX)) {\n Set<String> individualLinks = this.linker.getUris(linkedConcept);\n for (String individualLink : individualLinks) {\n result.addAll(getHypernymsLexical(individualLink, language));\n }\n } else {\n String queryString = \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\\n\" +\n \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\\n\" +\n \"PREFIX wdt: <http://www.wikidata.org/prop/direct/>\\n\" +\n \"SELECT DISTINCT ?l WHERE { \\n\" +\n \" { <\" + linkedConcept + \"> wdt:P31 ?c . \\n\" +\n \" ?c rdfs:label ?l .\\n\" +\n \" }\\n\" +\n \" UNION\\n\" +\n \" { <\" + linkedConcept + \"> wdt:P31 ?c . \\n\" +\n \" ?c skos:altLabel ?l .\\n\" +\n \" }\\n\" +\n \" UNION\\n\" +\n \" { <\" + linkedConcept + \"> wdt:P279 ?c . \\n\" +\n \" ?c rdfs:label ?l .\\n\" +\n \" }\\n\" +\n \" UNION\\n\" +\n \" { <\" + linkedConcept + \"> wdt:P279 ?c . \\n\" +\n \" ?c skos:altLabel ?l .\\n\" +\n \" }\\n\" +\n \" FILTER(LANG(?l) = '\" + language.toSparqlChar2() + \"')\\n\" +\n \"}\";\n //System.out.println(queryString);\n Query query = QueryFactory.create(queryString);\n QueryExecution queryExecution = QueryExecutionFactory.sparqlService(ENDPOINT_URL, query);\n ResultSet resultSet = queryExecution.execSelect();\n while (resultSet.hasNext()) {\n QuerySolution solution = resultSet.next();\n String uri = solution.getLiteral(\"l\").getLexicalForm();\n result.add(uri);\n }\n queryExecution.close();\n }\n hypernymyBuffer.put(key, result);\n commitAll(WIKIDATA_HYPERNYMY_BUFFER);\n return result;\n }", "public void test_ck_03() {\n // part A - surprising reification\n OntModel model1 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM, null);\n OntModel model2 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM_RULE_INF, null);\n \n Individual sub = model1.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n OntProperty pred = model1.createOntProperty(\"http://mytest#\");\n Individual obj = model1.createIndividual(\"http://mytest#i2\", model1.getProfile().CLASS());\n OntProperty probabilityP = model1.createOntProperty(\"http://mytest#prob\");\n \n Statement st = model1.createStatement(sub, pred, obj);\n model1.add(st);\n st.createReifiedStatement().addProperty(probabilityP, 0.9);\n assertTrue(\"st should be reified\", st.isReified());\n \n Statement st2 = model2.createStatement(sub, pred, obj);\n model2.add(st2);\n st2.createReifiedStatement().addProperty(probabilityP, 0.3);\n assertTrue(\"st2 should be reified\", st2.isReified());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP).addProperty(probabilityP, 0.3); //!!!\n // exception\n \n // Part B - exception in remove All\n Individual sub2 = model2.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP); //!!! exception\n \n sub2.addProperty(probabilityP, 0.3);\n sub2.removeAll(probabilityP); //!!! exception\n \n }", "public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }", "private static void demonstrateListOperation(IndexWord word) throws JWNLException {\n PointerTargetNodeList hypernyms = PointerUtils.getInstance().getDirectHypernyms(word.getSense(1));\n System.out.println(\"Direct hypernyms of \\\"\" + word.getLemma() + \"\\\":\");\n for(int idx = 0; idx < hypernyms.size(); idx++){\n PointerTargetNode nn = (PointerTargetNode)hypernyms.get(idx);\n for(int wrdIdx = 0; wrdIdx < nn.getSynset().getWordsSize(); wrdIdx++){\n System.out.println(\"Syn\" + idx + \" of direct hypernyms of\\\"\" + word.getLemma() + \"\\\" : \" +\n nn.getSynset().getWord(wrdIdx).getLemma());\n }\n }\n hypernyms.print();\n }", "public Set<String> hyponyms(String word) {\n Set<Integer> wordIds = revrseSynsetMapper.get(word);\n Set<String> superSet = new HashSet<String>();\n Set<Integer> descendant = GraphHelper.descendants(hypGraph, wordIds);\n Iterator<Integer> iter = descendant.iterator();\n while (iter.hasNext()) {\n Set<String> string_word = synsetMapper.get(iter.next());\n Iterator<String> A = string_word.iterator();\n while (A.hasNext()) {\n superSet.add(A.next());\n }\n }\n return superSet;\n }", "List<Question27> selectByExample(Question27Example example);", "private void getSensorConditions(List<RuleInstance> rules,Set<Condition> conds)\n{\n for (int i = 0; i < rules.size(); ++i) {\n RuleInstance ri1 = rules.get(i);\n for (int j = i+1; j < rules.size(); ++j) {\n\t RuleInstance ri2 = rules.get(j);\n\t if (ri1.getStateId() == ri2.getStateId()) continue;\n\t addSensorConditions(ri1,ri2,conds);\n }\n }\n}" ]
[ "0.59679645", "0.53636384", "0.53330976", "0.5311155", "0.5306286", "0.5245698", "0.52365965", "0.5191673", "0.5137865", "0.50939065", "0.5086897", "0.5008852", "0.50077", "0.49940154", "0.4961873", "0.49569005", "0.4948777", "0.4946967", "0.48961124", "0.48933005", "0.4889464", "0.48831832", "0.48785698", "0.48661155", "0.48539847", "0.48537424", "0.48521027", "0.48004186", "0.47982454", "0.4797355", "0.4796724", "0.47806075", "0.47696167", "0.4769255", "0.47655803", "0.47643292", "0.4753977", "0.47535738", "0.47455052", "0.4742658", "0.47105333", "0.46882704", "0.4676362", "0.46592885", "0.46533504", "0.4641279", "0.46336764", "0.4632781", "0.4631763", "0.46274814", "0.46257967", "0.4613479", "0.46060544", "0.46015057", "0.45984557", "0.4590056", "0.45882615", "0.45802042", "0.4576489", "0.45711783", "0.4566073", "0.45651466", "0.45632333", "0.4562107", "0.45605743", "0.45528445", "0.45522642", "0.45455468", "0.45402372", "0.45399487", "0.4537218", "0.45359427", "0.45262784", "0.45070323", "0.45048884", "0.45033708", "0.4500811", "0.4500568", "0.44985312", "0.4497394", "0.44927734", "0.44922206", "0.44882166", "0.44785893", "0.44750643", "0.4471367", "0.44689572", "0.44656903", "0.44645455", "0.44636163", "0.44626746", "0.4462663", "0.44624755", "0.44612837", "0.44584686", "0.44570622", "0.44530293", "0.44525406", "0.44492832", "0.44444907" ]
0.5945233
1
Called once when the command is scheduled.
@Override public void initialize() { arm.setPosition(degrees); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "@Override\r\n public void robotPeriodic() {\r\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\r\n // commands, running already-scheduled commands, removing finished or interrupted commands,\r\n // and running subsystem periodic() methods. This must be called from the robot's periodic\r\n // block in order for anything in the Command-based framework to work.\r\n CommandScheduler.getInstance().run();\r\n }", "private void scheduleJob() {\n\n }", "@Override\n public void run() {\n schedule();\n }", "@Override\n public void robotPeriodic() {\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\n // commands, running already-scheduled commands, removing finished or interrupted commands,\n // and running subsystem periodic() methods. This must be called from the robot's periodic\n // block in order for anything in the Command-based framework to work.\n CommandScheduler.getInstance().run();\n }", "private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }", "@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "public void onScheduled(long scheduledTime);", "public void autonomousPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }", "public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}", "public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "public void autonomousPeriodic() {\n // RobotMap.helmsman.trackPosition();\n Scheduler.getInstance().run();\n }", "private void runPeriodic() {\n boolean ok = ScheduledFutureTask.super.runAndReset();\n boolean down = isShutdown();\n // Reschedule if not cancelled and not shutdown or policy allows\n if (ok && !down) {\n updateNextExecutionTime();\n MeasurableScheduler.super.getQueue().add(this);\n }\n // This might have been the final executed delayed\n // task. Wake up threads to check.\n else if (down)\n interruptIdleWorkers();\n }", "@Override\n public void run() {\n // 获取最近一次执行时间并将其格式化。\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n System.out.println(\"Scheduled exec time is: \" + simpleDateFormat.format(scheduledExecutionTime()));\n System.out.println(\"Dancing...\");\n }", "public void autonomousPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "public void run() {\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void teleopPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t\tlog();\n\t}", "@Override\n public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n log();\n }", "@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }", "private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}", "@Override\n public void execute() {\n Time.sleep(3000);\n Starting.execute();\n }", "@Override\n public void autonomousPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "@Override\n public void teleopPeriodic() {\n\tupdateDiagnostics();\n\tScheduler.getInstance().run();\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n log();\n }", "@Override\n public void autonomousPeriodic() {\n\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "public void run() {\n\t\texecuteCommand( client, false );\n\t}", "@Override\n public void autonomousPeriodic() {\n teleopPeriodic();\n //Scheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n \n }", "protected void execute() {\n \tRobot.chassisSubsystem.shootHighM.set(0.75);\n \tif(timeSinceInitialized() >= 1.25){\n \t\tRobot.chassisSubsystem.liftM.set(1.0);\n \t}\n }", "@Override\n public void teleopPeriodic() {\n CommandScheduler.getInstance().run();\n OI.getInstance().getPilot().run();\n SmartDashboard.putNumber(\"gyro\", getRobotContainer().getTecbotSensors().getYaw());\n SmartDashboard.putBoolean(\"isSpeed\", getRobotContainer().getDriveTrain().getTransmissionMode() == DriveTrain.TransmissionMode.speed);\n SmartDashboard.putString(\"DT_MODE\", getRobotContainer().getDriveTrain().getCurrentDrivingMode().toString());\n SmartDashboard.putNumber(\"x_count\", getRobotContainer().getClimber().getxWhenPressedCount());\n\n }", "@Scheduled(fixedDelay=5000) //indicamos que esta tarea se repetira cada 5 segundos \n\tpublic void doTask() {\n\t\tLOGGER.info(\"Time is: \"+ new Date());\n\t}", "@Override\n public void teleopPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "@Override\n public void execute() {\n if (System.currentTimeMillis() - currentMs >= timeMs) {\n // Delay has passed so initialize object11\n super.initialize();\n }\n }", "public void teleopPeriodic() \r\n {\r\n Watchdog.getInstance().feed();\r\n Scheduler.getInstance().run();\r\n \r\n //Polls the buttons to see if they are active, if they are, it adds the\r\n //command to the Scheduler.\r\n if (mecanumDriveTrigger.get()) \r\n Scheduler.getInstance().add(new MechanumDrive());\r\n \r\n else if (tankDriveTrigger.get())\r\n Scheduler.getInstance().add(new TankDrive());\r\n \r\n else if (OI.rightJoystick.getRawButton(2))\r\n Scheduler.getInstance().add(new PolarMechanumDrive());\r\n \r\n resetGyro.get();\r\n \r\n //Puts the current command being run by DriveTrain into the SmartDashboard\r\n SmartDashboard.putData(DriveTrain.getInstance().getCurrentCommand());\r\n \r\n SmartDashboard.putString(ERRORS_TO_DRIVERSTATION_PROP, \"Test String\");\r\n \r\n \r\n }", "public void schedule() {\n\t\tnew Timer().schedule(getTask(), TIME);\n\t}", "public void scheduledUpdate() {\n\n if (isUpdating.compareAndSet(false, true)) {\n\n if (getCurrentChannel() != null) {\n\n updateData();\n }\n }\n\n timer.cancel();\n timer.purge();\n\n timer = new Timer();\n timer.scheduleAtFixedRate(new UpdateTask(), 3600000,\n 3600000);\n\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n rumbleInYourPants();\n turnSpindleIfNeeded();\n turnWinchIfNeeded();\n if (arcadeDrive != null) \n arcadeDrive.start();\n }", "public InstantCommand() {\n\t\t//let's all laugh really hard at the style checker...\n\t\tm_toRun = () -> {};\n\t}", "private void scheduledTask() {\n connectToNewViews();\n removeDisconnectedViews();\n try {\n Thread.sleep(SCHEDULED_TASK_PERIOD);\n // Scheduling future execution\n\n synchronized (threadPool) {\n if (!threadPool.isShutdown()) {\n threadPool.execute(this::scheduledTask);\n }\n }\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n }\n }", "@Override\n\tpublic void teleopPeriodic() {\n\t\tSmartDashboard.putString(\"DT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTER Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTERPIVOT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"INTAKE Current Command\", \" \");\n\t\t\n\t\tScheduler.getInstance().run();\n//\t\t\n//\t\tRobot.drivetrain.leftLED.set(true);\n//\t\tRobot.drivetrain.rightLED.set(false);\n\n\t\tif(!autoAiming) {\n\t\t\tnew DriveForwardRotate(correctForDeadZone(oi.driver.getForward()), correctForDeadZone(oi.driver.getRotation())).start();\n\t\t}\n\t\t//new DriveForwardRotate(oi.driver.getForward(), oi.driver.getRotation()).start();\n\t\t\n\t\tif(oi.autoAim() && !prevStateAutoAim){\n\t\t\t//new SetPivotPosition(PivotPID.AUTO_CAMERA_AIM_POSITION).start(\n//\t\t\tnew AutoAim().start();\n\t\t\tnew AutoAim(TurnConstants.AIM_VELOCITY).start(); //this is a press and hold button 3 on joystick\n\t\t\t\n\t\t}\n\t\t\n\t\tif (readyToShoot && oi.operator.shootBallFlywheels() && oi.operator.shoot()){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- ready to shoot\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\t//INTAKE ------2 button\n\t\tif (oi.operator.intakeUp() && !prevStateIntakeUp){\n\t\t\tnew SetIntakePosition(IntakeSubsystem.UP).start();\n\t\t}\n\t\tif (oi.operator.intakeDeploy() && !prevStateIntakeDeployed){\n\t\t\tnew SetIntakePosition(!IntakeSubsystem.UP).start();\n\t\t}\n\t\t\n\t\t//CAMERA PISTON\n\t\t\n\t\t//move up\n\t\tif (oi.driver.isCameraUpPressed()){\n\t\t\tnew SetCameraPiston(CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\telse{\n\t\t\tnew SetCameraPiston(!CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\t\n//\t\tif (oi.driver.isCameraUpPressed() && !prevStateCameraUp){\n//\t\t\tnew SetCameraPiston(cameraUp ? !CameraSubsystem.CAM_UP : CameraSubsystem.CAM_UP).start();\n//\t\t\tcameraUp = !cameraUp;\n//\t\t}\n//\t\telse{\n//\t\t\tnew SetCameraPiston(cameraUp ? CameraSubsystem.CAM_UP : !CameraSubsystem.CAM_UP).start();\n//\t\t}\n\t\t\n\t\t\n\t\tif (oi.operator.isSemiAutonomousIntakePressed() && !prevStateSemiAutoIntake){\n\t\t\tnew SemiAutoLoadBall().start();\n\t\t}\n//\t\t\n\t\t\n\t\t//pivot state\n//\t\tif (oi.operator.pivotShootState() && !prevStatePivotUp){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n//\t\t}\n//\t\telse if(oi.operator.resetPivot() && !prevStateResetButton) {\n//\t\t\t new ResetPivot().start();\n//\t\t}\n//\t\telse if (oi.operator.pivotStoreState() && !prevStatePivotMiddle){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n//\t\t}\n\t\t\n\t\t//PIVOT\n\t\t\n\t\t//if going up\n\t\tif (oi.operator.pivotCloseShot() && !prevStatePivotCloseShot){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.CLOSE_SHOOT_STATE).start();\t\t\n\t\t}\n\t\t//if going down\n\t\telse if(oi.operator.pivotFarShot() && !prevStatePivotFarShot) {\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotStoreState()&& !prevStateStore){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotReset() && !prevStateResetSafety){\n\t\t\tnew ResetPivot().start();\n\t\t}\n\t\telse if (oi.driver.isDefenseShot() && prevStateDefenseShot){\n\t\t\tnew SetPivotPosition(ShooterPivotSubsystem.PivotPID.ANTI_DEFENSE_POSITION).start();\n\t\t}\n\t\n\t\t\n\t\tif (!semiAutoIsRunning){\n//\t\t\n\t\t\t//intake purging/running\n\t\t\tif(oi.operator.purgeIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_PURGE_SPEED, IntakeSubsystem.CENTERING_MODULE_PURGE_SPEED).start(); \n\t\t\t\tnew RunAllRollers(ShooterSubsystem.OUT, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else if (oi.operator.runIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_INTAKE_SPEED, IntakeSubsystem.CENTERING_MODULE_INTAKE_SPEED).start();\n\t\t\t\tnew RunAllRollers(ShooterSubsystem.IN, ShooterSubsystem.UNTIL_IR).start();\n//\t\t\t\tnew SemiAutoLoadBall().start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else {\n\t\t\t\t//just the intakes off here to avoid conflicts\n\t\t\t\tnew SetIntakeSpeed(IntakeSubsystem.INTAKE_OFF_SPEED, IntakeSubsystem.INTAKE_OFF_SPEED).start();\n\t\t\t\t//new EndSemiAuto(true).start();\n\t\t\t\t//new RunAllRollers(ShooterSubsystem.OFF, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = false;\n\t\t\t}\n\t\t\t\n\t\t\t//flywheel control\n\t\t\tif (!allIntakeRunning){\n//\t\t\t\tif(oi.operator.loadBallFlywheels()){\n//\t\t\t\t\tnew SetFlywheels(ShooterSubsystem.FLYWHEEL_INTAKE_POWER, -ShooterSubsystem.FLYWHEEL_INTAKE_POWER).start();;\n//\t\t\t\t\tflywheelShootRunning = true;\n//\t\t\t\t} else \n\t\t\t\tif(oi.operator.shootBallFlywheels()) {\n\t\t\t\t\t//new SetFlywheels(0.7, -0.7).start();\n\t\t\t\t\tnew BangBangFlywheels(true).start();\n\t\t\t\t\tflywheelShootRunning = true;\n\t\t\t\t} else {\n\t\t\t\t\t//new SetFlywheels(0, 0).start();//BangBangFlywheels(false).start();\n\t\t\t\t\tflywheelShootRunning = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tif(oi.operator.shoot()){\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kForward).start();\n//\t\t\t} else {\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kReverse).start();\n//\t\t\t}\n//\t\t\t\n\t\t\tif (!allIntakeRunning && !flywheelShootRunning){\n\t\t\t\tnew SetFlywheels(0, 0).start();\n\t\t\t}\n\t\t\t\n\t\t\t//DEFENSE STATE\n\t\t\tif (oi.operator.isDefenseState() && !prevStateDefenseMode){\n\t\t\t\tnew SetDefenseMode().start();\n\t\t\t}\n\t\t}\n\t\t//tells us if bang bang works\n\t\treadyToShoot = ((Math.abs(shooter.getRightFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance)\n\t\t\t\t&& (Math.abs(shooter.getLeftFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance));\n\t\t\n\t\t\n\t\tif (oi.operator.isManualFirePiston() && !prevStateManualFirePiston){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- manual\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\tif(oi.driver.isDrivetrainHighGearButtonPressed()){\n\t\t\tdrivetrain.shift(DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = DrivetrainSubsystem.HIGH_GEAR;\n\t\t} else {\n\t\t\tdrivetrain.shift(!DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = !DrivetrainSubsystem.HIGH_GEAR;\n\t\t}\n\t\t\n\t\tisManualPressed = oi.operator.isManualOverrideOperator();\n\t\t\n\t\tif (!shooterPIDIsRunning){\n\t\t\tif(isManualPressed) {\n\t\t\t\tdouble pivotPower = oi.operator.getManualPower()/2.0;\n\t\t\t\t//shooterPivot.engageBrake(false);\n\t\t\t\tif (pivotPower > 0 && shooterPivot.pastMax() || pivotPower < 0 && shooterPivot.lowerLimitsTriggered()){\n\t\t\t\t\tpivotPower = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tnew SetPivotPower(pivotPower).start();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnew SetPivotPower(0).start();\n\t\t\t}\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"Left: \" + Robot.drivetrain.motors[2].get() + \", Right: \" + (-Robot.drivetrain.motors[0].get()));\n//\t\tSystem.out.println(\"Left V: \" + Robot.drivetrain.leftEncoder.getRate() + \", Right V: \" + Robot.drivetrain.rightEncoder.getRate());\n//\t\tSystem.out.println(\"Accel z: \" + Robot.drivetrain.accel.getZ());\n\t\t\n\t\t\n\t\t//PREV STATES\n\t\tprevStateIntakeUp = oi.operator.intakeUp();\n\t\tprevStateIntakeDeployed = oi.operator.intakeDeploy();\n\t\tprevStateDriveShifter = oi.driver.isDrivetrainHighGearButtonPressed();\n\t\tprevStateShootButton = oi.operator.shoot();\n\t\t\n\t\tprevStatePivotCloseShot = oi.operator.pivotCloseShot();\n\t\tprevStatePivotFarShot = oi.operator.pivotFarShot();\n\t\tprevStateStore = oi.operator.pivotStoreState();\n\t\tprevStateResetSafety = oi.operator.pivotReset();\n\t\t\n\t\tprevStateSemiAutoIntake = oi.operator.isSemiAutonomousIntakePressed();\n\t\tprevStateDefenseMode = oi.operator.isDefenseState();\n\t\t\n\t\tprevStateManualFirePiston = oi.operator.isManualFirePiston();\n\t\tprevStateCameraUp = oi.driver.isCameraUpPressed();\n\t\tprevStateAutoAim = oi.autoAim();\n\t\tprevStateDefenseShot = oi.driver.isDefenseShot();\n\n\t\t\n\t\t//********updating subsystem*******//\n\t\t\n\t\t//shooter hal effect counter\n\t\t//shooterPivot.updateHalEffect();\n\t\t\n\t\t//update the flywheel speed constants\n\t\tshooter.updateShooterConstants();\n\t\t\n\t\t\n\t\t//brake\n\t\tif (!isManualPressed){ //if manual override isn't running\n\t\t\tif (!shooterPIDIsRunning && shooterPivot.motorLeft.get() < DEAD_ZONE_TOLERANCE && shooterPivot.motorRight.get() < DEAD_ZONE_TOLERANCE){\n\t\t\t\t\n\t\t\t\tif (pivotTimer.get() > MIN_STOPPED_TIME){\n\t\t\t\t\tnew EngageBrakes().start();\n\t\t\t\t}\n\t\t\t\t//if motor is 0 for the first time, start the timer\n\t\t\t\tif (!prevStateMotorPowerIs0){\n\t\t\t\t\tpivotTimer.reset();\n\t\t\t\t\tpivotTimer.start();\n\t\t\t\t}\n\t\t\t\t//keep this at the end\n\t\t\t\tprevStateMotorPowerIs0 = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshooterPivot.engageBrake(false);\n\t\t\t\t//keep this at the end\n\t\t\t\tpivotTimer.reset();\n\t\t\t\tprevStateMotorPowerIs0 = false;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tshooterPivot.engageBrake(false);\n\t\t\tpivotTimer.reset();\n\t\t}\n\t\t//System.out.println(shooterPivot.motorLeft.get());\n\t\t\n\t\t//LOGGING AND DASHBOARD\n\t\tlogAndDashboard();\n\t}", "@Override\n public void periodic() {\n UpdateDashboard();\n }", "@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\n\t\t// TBD Needs rewrite for multi tenant\n\t\ttry {\t\n\t\t\tif (async == null || !async)\n\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\telse {\n\t\t\t\tfinal Long id = random.nextLong();\n\t\t\t\tfinal ApiCommand theCommand = this;\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run(){\n\t\t\t\t \ttry {\n\t\t\t\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\terror = true;\n\t\t\t\t\t\t\tmessage = e.toString();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tthread.start();\n\t\t\t\tasyncid = \"\" + id;\n\t\t\t}\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}", "private void scheduleJob() {\n Log.d(TAG, \"Long lived task is done.\");\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n if(switchesSubsystem.readyToFire()) {\n \t\tSmartDashboard.putString(\"DB/String \"+0, \"ready to fire\");\n \t} else {\n \t\tSmartDashboard.putString(\"DB/String \"+0, \"reloading\");\n \t}\n \n SmartDashboard.putString(\"DB/String \"+1, \"Wound switch: \" + switchesSubsystem.isBarDown());\n \tSmartDashboard.putString(\"DB/String \"+2, \"Taut switch: \" + switchesSubsystem.isTaut());\n \tSmartDashboard.putString(\"DB/String \"+3, \"Fired switch: \" + switchesSubsystem.isLauncherFired());\n }", "@Override\n public void robotPeriodic() {\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\n // commands, running already-scheduled commands, removing finished or interrupted commands,\n // and running subsystem periodic() methods. This must be called from the robot's periodic\n // block in order for anything in the Command-based framework to work.\n CommandScheduler.getInstance().run();\n getRobotContainer().getTecbotSensors().sensorsPeriodic();\n }", "protected void waitUntilCommandFinished() {\n }", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "public void teleopPeriodic() {\r\n Scheduler.getInstance().run();\r\n OI.poll();\r\n }", "@Override\n public void taskStarting() {\n\n }", "public abstract void schedule();", "public void schedule() {\n cancel();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n runnable.run();\n }\n }, delay);\n }", "protected void onQueued() {}", "public void autonomousPeriodic() {\r\n }", "public void autonomousPeriodic() {\r\n }", "public void schedule(CancellableCommand command) {\n if (isScheduled) {\n // the bucket is still waiting for more tokens (hence scheduled)\n addCommandToQueue(command);\n } else {\n // work out the number of tokens should be available\n updateTokenCount();\n // clip it at the maximum stored amount.\n numTokens = Math.min(numTokens, maxStoredTokens);\n\n // if there is a token available, fire event immediately with the token.\n if (numTokens > 0) {\n numTokens--;\n // Queue must be empty (because non-empty queue implies isScheduled), so we can\n // run the command directly, rather than task.execute(), because there is no need\n // to reschedule afterwards.\n command.execute();\n } else {\n // Not enough tokens - schedule to run later.\n addCommandToQueue(command);\n schedule();\n }\n }\n }", "@Override\n\tpublic void teleopPeriodic() //runs the teleOp part of the code, repeats every 20 ms\n\t{\n\t\tScheduler.getInstance().run(); //has to be here, I think that this is looping the method\n\t\tSmartDashboard.putNumber(\"Encoder Left: \", RobotMap.encoderLeft.getRaw()); //putting the value of the left encoder to the SmartDashboard\n\t\tSmartDashboard.putNumber(\"Encoder Right: \", RobotMap.encoderRight.getRaw()); //putting the value of the right encoder to the smartDashboard\n\t\tSmartDashboard.putNumber(\"Ultrasonic sensor\", ultrasonic.getDistanceIn()); //putting the value of the ultrasonic sensor to the smartDashboard\n//\t\tSmartDashboard.putBoolean(\"allOK\", Robot.driveFar.ultrasonicOK);\n\t\tdriveExecutor.execute(); //running the execute method in driveExecutor\n\t\tgrab.execute(); //running the execute() method in GearGrab_Command (should run without this but this is ensuring us that it is on)\n\t}", "protected void runEachMinute() {\n \n }", "protected void execute() {\n \t\n \tcurrent_time = System.currentTimeMillis();\n \t\n \tlift.liftDown(LIFT_SPEED);\n }", "protected void execute() {\n \tclimber.setCLimberSpeed(0);\n }", "public void autonomousPeriodic() {\n }", "public void autonomousPeriodic() {\n }", "public void autonomousPeriodic() {\n \n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n protected void execute() {\n m_currentTime = Timer.getFPGATimestamp();\n// used for more precise calculations\n m_currentError = m_desiredDistance - Robot.m_drive.Position();\n// ^^ tells how much further the Robot goes\n m_derivative = (m_currentError - m_oldError) / (m_currentTime - m_oldTime);\n// ^^ PID formula stuff. The change of error / change of time to be more precise\n m_output = m_currentError * constants.kP + constants.kD * m_derivative;\n// tells how much power the motor will change\n Robot.m_drive.SetPower(m_output);\n// changes motor power\n\n m_oldError = m_currentError;\n// how error distance updates so it won't repeat old mistake\n m_oldTime = m_currentTime;\n// same as line above\n }", "@Scheduled(fixedRate = 2000, initialDelay = 5000)\n\tpublic void scheduleTaskWithInitialDelay() {\n\t\tlog.info(\"Fixed Rate Task With Initial Delay :: Execution Time - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}" ]
[ "0.6899614", "0.68903536", "0.688049", "0.68777", "0.686147", "0.68428355", "0.68224716", "0.6805904", "0.6702509", "0.6669921", "0.66512036", "0.6632523", "0.66042197", "0.66042197", "0.66042197", "0.66042197", "0.66042197", "0.66042197", "0.6598175", "0.659161", "0.6588193", "0.657523", "0.657523", "0.657523", "0.657523", "0.656735", "0.6545272", "0.6532784", "0.6532784", "0.6532784", "0.6530908", "0.6497591", "0.64765054", "0.64693207", "0.6448854", "0.644462", "0.6429101", "0.6408535", "0.6408535", "0.6408535", "0.6408535", "0.6397207", "0.6388429", "0.63879466", "0.63825", "0.6353515", "0.63380224", "0.6324909", "0.6300481", "0.6291327", "0.6285507", "0.6274351", "0.6266904", "0.6266904", "0.6266904", "0.62618095", "0.6260374", "0.6259019", "0.6249295", "0.62378675", "0.62235737", "0.62157124", "0.62047136", "0.6185231", "0.61840457", "0.61707324", "0.61682886", "0.6167574", "0.61632574", "0.61566746", "0.61554873", "0.6141696", "0.6135197", "0.6133377", "0.6114981", "0.60853595", "0.6079251", "0.6066952", "0.6060325", "0.6060233", "0.60493743", "0.6048481", "0.60417044", "0.6035892", "0.6035892", "0.6030452", "0.6018049", "0.6016221", "0.60082304", "0.59963626", "0.59935087", "0.59935087", "0.5992972", "0.59907365", "0.59907365", "0.59907365", "0.59907365", "0.59907365", "0.59907365", "0.59816444", "0.59748185" ]
0.0
-1
Returns true when the command should end.
@Override public boolean isFinished() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean shouldEnd();", "private Boolean quitCommand() {\n output.println(\"QUIT COMMAND\");\n return false;\n }", "protected boolean isFinished() {\r\n\t \treturn (timeSinceInitialized() > .25) && (Math.abs(RobotMap.armarm_talon.getClosedLoopError()) < ARM_END_COMMAND_DIFFERENCE_VALUE); //TODO:\r\n\t }", "public void endCommand();", "private boolean isComplete() {\n return redisCommand != null && redisCommand.getAction() != null && !\"\".equals(redisCommand.getAction().trim()) && redisCommand.getArgList().size() == argSize - 1;\n }", "@Override\n public boolean isFinished() {\n return System.currentTimeMillis() >= endtime;\n }", "@Override\n\tprotected boolean isFinished() {\n\t\treturn (System.currentTimeMillis() > Endtime);\n\t}", "@Override\n public boolean isEnding() {\n return false;\n }", "@Override\n\tpublic boolean isFinished() {\n\t\treturn (this.timeRemaining == 0);\n\t}", "private boolean quit(Command command) \n {\n if(command.hasSecondWord()) {\n Logger.Log(\"Quit what?\");\n return false;\n }\n else {\n return true; // signal that we want to quit\n }\n }", "@Override\r\n\tpublic boolean isFinished() {\n\t\treturn finish;\r\n\t}", "private boolean quit(Command command) \n {\n if(command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n return false;\n }\n else {\n return true; // these shows that we want to quit\n }\n }", "protected boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n \t//ends \n \treturn isTimedOut();\n }", "protected boolean isFinished() {\n\t\treturn pid.onTarget();\n\t}", "private boolean quit(Command command) \n {\n if(command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n return false;\n }\n else {\n return true; // signal that we want to quit\n }\n }", "private boolean quit(Command command) \n {\n if(command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n return false;\n }\n else {\n return true; // signal that we want to quit\n }\n }", "protected boolean isFinished()\n\t{\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isFinished() {\n\t\treturn true;\n\t}", "public boolean isFinished() {\n\t\tif (getRemaining() <= 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n return Math.abs(pid.getError()) < 0.25;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "public boolean isFinished() {\n return true;\n }", "public Guard isFinishedExecution() {\n if (depth == PSymGlobal.getConfiguration().getMaxStepBound()) {\n return Guard.constTrue();\n } else {\n return allMachinesHalted;\n }\n }", "@Override\n\tpublic boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "public boolean quit(Command command) \n {\n if(command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n return false;\n }\n else {\n return true; // signal that we want to quit\n }\n }", "protected boolean isFinished() {\n logger.info(\"Ending left drive\");\n \treturn timer.get()>howLongWeWantToMove;\n }", "static private boolean quit(Command command) {\n if (command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n return false;\n } else {\n return true;\n }\n }", "public boolean isFinished(){\n return true;\n }", "protected boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t\t//return timeOnTarget >= finishTime;\n }", "protected boolean isFinished(){\r\n return true;\r\n }", "public Boolean isEnd() {\n\t\t// keep running\n\t\tif (currentNo == -1) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// car production for this production line is done\n\t\telse if (currentNo >= expectedNo) {\n//\t\t\tSystem.out.println(\"isEnd of car Production line is \");\n//\t\t\tSystem.out.print(currentNo >= expectedNo);\n\n\t\t\treturn true;\n\t\t} else {\n//\t\t\tSystem.out.println(\"isEnd of car Production line is \");\n//\t\t\tSystem.out.print(currentNo >= expectedNo);\n\t\t\treturn false;\n\t\t}\n\n\t}", "public boolean end() {\n\t\ttry {\n\t\t\tbyte[] buffer = \"END\".getBytes();\n\t\t\toos.writeObject(buffer);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean isExit() {\n return true;\n }", "protected boolean isFinished() {\n\t\treturn Robot.elevator.isInPosition(newPosition, direction);\n\t}", "protected boolean isFinished() {\n //return !RobotMap.TOTE_SWITCH.get();\n \treturn false;\n }", "public static boolean isDone(String command) {\r\n\t\tassert command != null;\r\n\t\tcommandType = Logic.determineCommandType(command);\r\n\t\tswitch (commandType) {\r\n\t\tcase DONE:\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n\t\tpublic boolean isFinished() {\n\t\t\treturn false;\n\t\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\r\n if (state == STATE_SUCCESS) {\r\n // Success\r\n return true;\r\n }\r\n if (state == STATE_FAILURE) {\r\n // Failure\r\n return true;\r\n }\r\n return false;\r\n }", "protected boolean isFinished() {\n\t\treturn false;\r\n\t}", "protected boolean isFinished() {\n\t\treturn isFinished;\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "protected boolean isFinished() {\n \t// wait for a time out\n return false;\n }", "@Override\n\tpublic boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn done; \n\t}", "public boolean isFinished();", "@Override\r\n protected boolean isFinished() {\n if (super.isFinished()) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "protected boolean isFinished()\n\t{\n\t\treturn !Robot.oi.respoolWinch.get();\n\t}", "protected boolean isFinished() {\n \treturn (Robot.sonar.getDistance() <= distance);\n }", "@Override\n\tprotected boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "protected abstract boolean end();", "protected boolean isFinished() {\n return finished;\n }", "protected boolean isFinished() {\n return Robot.claw.isRetracted();\n }", "protected boolean isFinished() {\n return isFinished;\n }", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\r\n\treturn false;\r\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }" ]
[ "0.75273657", "0.73602504", "0.73465896", "0.71294767", "0.7033159", "0.7012778", "0.700753", "0.6994238", "0.6931957", "0.6927545", "0.6915831", "0.68845886", "0.68594575", "0.68594575", "0.68594575", "0.6853999", "0.68532574", "0.6851464", "0.6851464", "0.6837983", "0.68260324", "0.67944705", "0.6790352", "0.6787929", "0.6787929", "0.6787929", "0.6787929", "0.6787929", "0.6787929", "0.67818975", "0.67786217", "0.6778202", "0.6770069", "0.6765901", "0.6757644", "0.67570454", "0.675351", "0.6746853", "0.67448765", "0.673654", "0.67348415", "0.6729635", "0.67287415", "0.67188156", "0.6715925", "0.6713165", "0.6708804", "0.6708804", "0.6708804", "0.6708804", "0.6708804", "0.6708804", "0.6702017", "0.66926044", "0.66913027", "0.668989", "0.668989", "0.6679259", "0.6670593", "0.6662767", "0.6659927", "0.66539127", "0.665286", "0.6633671", "0.6629671", "0.6624843", "0.66048396", "0.6600003", "0.65889597", "0.65866053", "0.65866053", "0.65866053", "0.65866053", "0.65866053", "0.65866053", "0.65866053", "0.65866053", "0.65866053", "0.65853024", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485", "0.65815485" ]
0.0
-1
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { lblLoggedIn.setText(LoginController.employeeName + " " + LoginController.employeeSurname + " ID: " + LoginController.employeeID + ""); try { requisitionForm = FXMLLoader.load(getClass().getResource("MaterialRequisition.fxml")); requisitionForm2 = FXMLLoader.load(getClass().getResource("MaterialRequisition2.fxml")); cartForm = FXMLLoader.load(getClass().getResource("Cart.fxml")); equipmentForm = FXMLLoader.load(getClass().getResource("PPE.fxml")); mainForm = FXMLLoader.load(getClass().getResource("Widgets.fxml")); employeeForm = FXMLLoader.load(getClass().getResource("Employee.fxml")); requisitionEquipment = FXMLLoader.load(getClass().getResource("Requisition.fxml")); setNode(mainForm); } catch (IOException ex) { Logger.getLogger(MainFormController.class.getName()).log(Level.SEVERE, null, ex); } }
{ "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 Controller() {\n\t\tenabled = false;\n\t\tloop = new Notifier(new ControllerTask(this));\n\t\tloop.startPeriodic(DEFAULT_PERIOD);\n\t}", "public MapController() {\r\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 }", "public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}", "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 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 }", "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 () {\r\n puzzle = null;\r\n words = new ArrayList <String> ();\r\n fileManager = new FileIO ();\r\n }", "public void init() {\n \n }", "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.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.6912564", "0.688884", "0.6881247", "0.68776786", "0.68723065", "0.6868163", "0.68672407", "0.6851157", "0.6846883", "0.6840198", "0.68382674", "0.68338853", "0.6795918", "0.67823315", "0.6766882", "0.67650586", "0.6750353", "0.6749068", "0.6745654", "0.6743223", "0.67401046", "0.6727867", "0.6723379", "0.6695514", "0.6689967", "0.66892517", "0.66791916", "0.6677345", "0.66644365", "0.6664202", "0.66616154", "0.66532296", "0.66481894", "0.6644939", "0.6639398", "0.6633576", "0.66312426", "0.662608", "0.66258574", "0.66105217", "0.6606984", "0.66024727", "0.6597095", "0.6580141", "0.65786153", "0.65752715", "0.6574144", "0.6551536", "0.655142", "0.6547574", "0.6545647", "0.6541474", "0.6529243", "0.65284246", "0.6525593", "0.6523344", "0.6519832", "0.65134746", "0.65079254", "0.6497635", "0.64952356", "0.6493943", "0.6492926", "0.6483847", "0.6483173", "0.648183", "0.6479119", "0.64789915", "0.6476928", "0.64734083", "0.6465272", "0.64616114", "0.6444024", "0.64379543", "0.6431962", "0.64292705", "0.6425357", "0.6417148", "0.6416786", "0.64161026", "0.64161026" ]
0.0
-1
FormClose.closeForm(mainForm); OpenForm vehForm = new OpenForm(); String title = "Dashboard"; String screen = "Widgets.fxml"; vehForm.openServiceListScreen(screen, title);
@FXML private void switchHome(ActionEvent event) { setNode(mainForm); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tOpenscreen.open(\"/admin_main/first_main.fxml\");\r\n\t\t\t}", "public void gotoMyFlights(){\n try {\n FXMLMyFlightsController verMyFlights = (FXMLMyFlightsController) replaceSceneContent(\"FXMLMyFlights.fxml\");\n verMyFlights.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void generateScreen(String form,String text) throws IOException {\r\n \r\n MainScreenController.formName = text;\r\n Stage stage = new Stage();\r\n Parent root = FXMLLoader.load(getClass().getResource(form));\r\n stage.setScene(new Scene(root));\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.initOwner(partAddBtn.getScene().getWindow());\r\n stage.showAndWait();\r\n \r\n }", "public void ajouter(){\n Main.showPages(\"pageAjoutMateriel.fxml\");\n\n }", "@FXML\n public void New_List(ActionEvent actionEvent) {\n\n //Here we are going to open a window to create a list.\n //Working!!\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"NewTodolist.fxml\"));\n Parent root1 = (Parent) fxmlLoader.load();\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.UNDECORATED);\n stage.setTitle(\"New List\");\n stage.setScene(new Scene(root1));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void onShowMain(ActionEvent event) {\n try {\n Stage stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n Parent scene = FXMLLoader.load(getClass().getResource(\"/App/View/MainScreenView.fxml\"));\n stage.setTitle(\"Customer Schedule\");\n stage.setScene(new Scene(scene));\n stage.show();\n }\n catch (Exception e){\n System.out.println(e.getMessage());\n }\n }", "@FXML\n void goToInventoryBrowser(ActionEvent event) {\n\n try {\n // Create a FXML loader for loading the inventory browser FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"InventoryBrowser.fxml\"));\n\n BorderPane inventoryBrowser = (BorderPane) fxmlLoader.load();\n Scene inventoryBrowserScene = new Scene(inventoryBrowser, Main.INVENTORY_BROWSER_WINDOW_WIDTH,\n Main.INVENTORY_BROWSER_WINDOW_HEIGHT);\n Stage inventoryBrowserStage = new Stage();\n\n inventoryBrowserStage.setScene(inventoryBrowserScene);\n inventoryBrowserStage.setTitle(Main.INVENTORY_BROWSER_WINDOW_TITLE);\n inventoryBrowserStage.initModality(Modality.APPLICATION_MODAL);\n // Show the inventory browser scene and wait for it to be closed\n inventoryBrowserStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n }", "public void confirmerButtonHandler(ActionEvent actionEvent) throws Exception {\n if(tableOffres.getSelectionModel().getSelectedItem()!=null){\n Offre selectedOffre=new Offre();\n selectedOffre=(Offre)tableOffres.getSelectionModel().getSelectedItem();\n System.out.println(selectedOffre);\n if(selectedOffre.getDisponible().equals(\"non\")){\n showAlert(\"L'offre doit etre disponible !\");\n }else {\n //Now we navigate to the form page\n\n //Getting a reference to the primary stage\n\n Stage primaryStage = (Stage) ((Node) actionEvent.getSource()).getScene().getWindow();\n System.out.println(primaryStage);\n //Navigating by switching the scene\n //Loading the scene\n FXMLLoader loader = new FXMLLoader(\n getClass().getResource(\n \"FormScene.fxml\"\n ));\n //Hiding the stage temporarily to configurate the scene\n primaryStage.hide();\n primaryStage.setScene(new Scene(loader.load(), 800, 600));\n FormController formController = loader.<FormController>getController();\n System.out.println(formController);\n formController.initData(selectedOffre);\n // Here where the scene changes and the form screen shows\n primaryStage.show();\n }\n }else{\n showAlert(\"Offre non sélectionnée\");\n }\n }", "public static void openSettingsForm(){\n\n }", "public void factoryMainScreen()\n\t{\n\t\t\n\t}", "@FXML\r\n\tvoid open_btn_clicked(MouseEvent event) {\r\n\t\tsale_selected = sales_table.getSelectionModel().getSelectedItem();\r\n\t\tif (sale_selected != null) {\r\n\t\t\tswitchScenes(\"/client/boundry/MarketingAgentSaleShowForm.fxml\",\r\n\t\t\t\t\t\"/client/boundry/MarketingAgentMainCustomer.css\");\r\n\t\t} else {\r\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\talert.setTitle(\"No sale pattern selected\");\r\n\t\t\talert.setHeaderText(null);\r\n\t\t\talert.setContentText(\"Please select sale pattern\");\r\n\t\t\talert.show();\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"MainForm.fxml\"));\n primaryStage.setTitle(\"Inventory Management System\");\n primaryStage.setMinHeight(500);\n primaryStage.setMinWidth(800);\n primaryStage.setScene(new Scene(root, 1280, 720));\n primaryStage.show();\n\n\n }", "@FXML\r\n\tvoid refresh_btn_clicked(MouseEvent event) {\r\n\t\tswitchScenes(\"/client/boundry/MarketingAgentSalesMainForm.fxml\",\r\n\t\t\t\t\"/client/boundry/MarketingAgentMainCustomer.css\");\r\n\t}", "@FXML\n void openAddEventWindow() {\n\n// replaces Element list with Add Timeline window\n menuPane.setContent(addEventScene.getRoot());\n\n// adds Timelines to timeline ChoiceBox\n timelineChoice.getItems().clear();\n for (Timeline timeline : app.timelines)\n timelineChoice.getItems().add(timeline.name);\n\n// removes unnecessary buttons, shows cancel button\n toggleMenuButtonVisibility(false);\n cancelEventButton.setVisible(true);\n\n window.setTitle(\"Timelines: Add Event\");\n }", "@FXML\n public final void openPlanetScreen() {\n ScreenNavigator.loadScreen(ScreenNavigator.PLANET);\n }", "@FXML\r\n\tvoid statistics_btn_clicked(MouseEvent event) {\r\n\t\tswitchScenes(\"/client/boundry/SaleStatisticsInformationForm.fxml\", \"/client/boundry/MarketingAgentMainCustomer.css\");\r\n\t}", "public void gotoVerReserva() {\n try {\n FXMLDatosReservaController verReserva = (FXMLDatosReservaController) replaceSceneContent(\"FXMLDatosReserva.fxml\");\n verReserva.setApp(this);\n //setTipoReserva(verReserva); //Setea el tipo de reserva\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n\n try {\n Parent root = FXMLLoader.load(getClass().getResource(\"/view/mainForm.fxml\"));\n Scene sceneOne = new Scene(root);\n primaryStage.setScene(sceneOne);\n primaryStage.show();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "private void btn_ReturnActionPerformed(java.awt.event.ActionEvent evt) {\n \n Filight_Details FD = new Filight_Details();\n FD.setVisible(true);\n this.close();\n \n }", "@FXML\r\n public void handleOnHomeButtonClick ()\r\n {\r\n mainApp.showMainScreen();\r\n }", "public void showVendorsScreen(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/VendorsScreen.fxml\"));\n mainScreenController.getSecondaryScreen().getChildren().clear();\n mainScreenController.getSecondaryScreen().getChildren().add((AnchorPane) loader.load());\n \n VendorsScreenController controller = loader.getController();\n controller.setGame(this);\n }catch(IOException e){\n }\n }", "@FXML\n void goToReservedItems(ActionEvent event) {\n\n try {\n // Create a FXML loader for loading the reserved items FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"ReservedItems.fxml\"));\n\n BorderPane reservedItems = (BorderPane) fxmlLoader.load();\n Scene reservedItemsScene = new Scene(reservedItems, Main.SMALL_WINDOW_WIDTH, Main.SMALL_WINDOW_HEIGHT);\n Stage reservedItemsStage = new Stage();\n\n reservedItemsStage.setScene(reservedItemsScene);\n reservedItemsStage.setTitle(Main.RESERVED_ITEMS_WINDOW_TITLE);\n reservedItemsStage.initModality(Modality.APPLICATION_MODAL);\n // Show the reserved items scene and wait for it to be closed\n reservedItemsStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n\n }", "@FXML\r\n\tvoid add_btn_clicked(MouseEvent event) {\r\n\t\tswitchScenes(\"/client/boundry/MarketingAgentSalesAddForm.fxml\",\r\n\t\t\t\t\"/client/boundry/MarketingAgentMainCustomer.css\");\r\n\r\n\t}", "@FXML\n void OnActionShowAddCustomerScreen(ActionEvent event) throws IOException {\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/View/AddCustomer.fxml\"));\n stage.setTitle(\"Add Customer\");\n stage.setScene(new Scene(scene));\n stage.show();\n }", "@FXML\r\n public void onActionAddPartScreen(ActionEvent actionEvent) throws IOException {\r\n Parent root = FXMLLoader.load(getClass().getResource(\"/View_Controller/addPartInhouse.fxml\"));\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Scene scene = new Scene(root, 800, 470);\r\n stage.setTitle(\"Add In-house Part\");\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "@FXML\n private void loadMainScreen(ActionEvent event) {\n\t\tSystem.out.println(\"loading MainScreen \" + getClass().getResource(RESOURCE_PATH + \"MainScreen.fxml\"));\n\t\ttry {\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(RESOURCE_PATH + \"MainScreen.fxml\"));\n\t\t\tScene scene = new Scene(root);\n\t\t\tscene.getStylesheets().add(getClass().getResource(RESOURCE_PATH + \"application.css\").toExternalForm());\n\t\t\tStage window = (Stage)((Node)event.getSource()).getScene().getWindow();\n\t \n\t window.setScene(scene);\n\t window.show();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@FXML\n void openAddTimelineWindow() {\n\n// replaces Element list with Add Timeline window\n menuPane.setContent(addTimelineScene.getRoot());\n\n// removes unnecessary buttons, shows cancel button\n toggleMenuButtonVisibility(false);\n cancelTimelineButton.setVisible(true);\n\n window.setTitle(\"Timelines: Add Timeline\");\n }", "@FXML\r\n\tpublic void viewAllSystemData(ActionEvent event) {\r\n\t\tParent root = null;\r\n\t\ttry {\r\n\t\t\troot = FXMLLoader.load(getClass().getResource(\"3.3-AllSystemDataScreen.fxml\"));\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"problem\");\r\n\t\t}\r\n\t\tScene allSystemData = new Scene(root);\r\n\t\tStage window = (Stage) ((Node) event.getSource()).getScene().getWindow();\r\n\t\twindow.setScene(allSystemData);\r\n\t\twindow.setResizable(false);\r\n\t\twindow.show();\r\n\r\n\t}", "@FXML\r\n public void cliente(ActionEvent e) throws IOException {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/Clientes/FormClientes.fxml\"));\r\n Parent root1 = (Parent) fxmlLoader.load();\r\n Stage stage = new Stage();\r\n stage.setScene(new Scene(root1));\r\n stage.setTitle(\"MEVECOM <>\");\r\n stage.setResizable(false);\r\n stage.show();\r\n //Cerrar ventana actual\r\n Stage actual = (Stage) btnSalir.getScene().getWindow();\r\n actual.close();\r\n }", "@FXML\r\n\tvoid menu_btn_clicked(MouseEvent event) {\r\n\t\tswitchScenes(\"/client/boundry/MarketingAgentMenuWelcomeForm.fxml\",\r\n\t\t\t\t\"/client/boundry/MarketingAgentMainCustomer.css\");\r\n\t}", "public void OpenLoginScreen(ActionEvent event) throws IOException {\n Parent tripViewParent = FXMLLoader.load(getClass().getResource(\"login.fxml\")); // Carregando o arquivo fxml\n\n Stage window = new Stage();\n window.setResizable(false);\n window.setScene(new Scene(tripViewParent));\n window.show();\n\n ((Stage)(((Button)event.getSource()).getScene().getWindow())).close();\n }", "@FXML\r\n public void ventas(ActionEvent e) throws IOException {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/Ventas/FormVentas.fxml\"));\r\n Parent root1 = (Parent) fxmlLoader.load();\r\n Stage stage = new Stage();\r\n stage.setScene(new Scene(root1));\r\n stage.setTitle(\"MEVECOM <>\");\r\n stage.setResizable(false);\r\n stage.show();\r\n //Cerrar ventana actual\r\n Stage actual = (Stage) btnSalir.getScene().getWindow();\r\n actual.close();\r\n }", "@FXML\r\n\tvoid openEditUser(ActionEvent event) {\r\n\t\tParent root = null;\r\n\t\tnewWindow = new Stage();\r\n\t\ttry {\r\n\t\t\troot = FXMLLoader.load(getClass().getResource(\"3.1-AddISUsersScreen.fxml\"));\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tISUsers = new Scene(root);\r\n\t\tISUsersScreenController._ins.enableFindBtn();\r\n\t\tnewWindow.setTitle(\"Edit IS User\");\r\n\t\tnewWindow.setScene(ISUsers);\r\n\t\tnewWindow.initOwner((Stage) ((Node) event.getSource()).getScene().getWindow());\r\n\t\tnewWindow.initModality(Modality.WINDOW_MODAL);\r\n\t\tnewWindow.setResizable(false);\r\n\t\tnewWindow.show();\r\n\t}", "@FXML protected void editPatient(ActionEvent event) throws Exception{\n Parent root = FXMLLoader.load(getClass().getResource(\"EditPatientInformation.fxml\"));\n Stage stage = new Stage();\n Scene scene = new Scene(root);\n \n stage.setScene(scene);\n stage.show();\n }", "@FXML\n\tprivate void loadDashboard(ActionEvent ev) {\n menuBar.getScene().getWindow().hide();\n \n\t\tStage dashboard = new Stage();\n\t\ttry {\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"/FXML/Dashboard.fxml\"));\n\t\t\tScene scene = new Scene(root);\n\t\t\tdashboard.setScene(scene);\n\t\t\tdashboard.show();\n\t\t\tdashboard.setResizable(false);\n\t\t\tdashboard.centerOnScreen();\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\t\n\t}", "public void displayMainScreen(ActionEvent event) throws IOException {\n Parent parent = FXMLLoader.load(getClass().getResource(\"/View_Controller/MainScreen.fxml\"));\n Scene targetScene = new Scene(parent);\n\n Stage window = (Stage) ((Button) event.getSource()).getScene().getWindow();\n window.setScene(targetScene);\n window.show();\n }", "public void gotoCreateUser(){\n try {\n FXMLCreateUserController verCreateUser = (FXMLCreateUserController) replaceSceneContent(\"FXMLCreateUser.fxml\");\n verCreateUser.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@FXML\n\tprivate void loadFacts(ActionEvent ev) {\n menuBar.getScene().getWindow().hide();\n \n\t\tStage facts = new Stage();\n\t\ttry {\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"/FXML/Facts.fxml\"));\n\t\t\tScene scene = new Scene(root);\n\t\t\tfacts.setScene(scene);\n\t\t\tfacts.show();\n\t\t\tfacts.setResizable(false);\n\t\t\tfacts.centerOnScreen();\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\t\n\t}", "@FXML\n\tprivate void loadFacts(ActionEvent ev) {\n menuBar.getScene().getWindow().hide();\n \n\t\tStage facts = new Stage();\n\t\ttry {\n\t\t\tParent root = FXMLLoader.load(getClass().getResource(\"/FXML/Facts.fxml\"));\n\t\t\tScene scene = new Scene(root);\n\t\t\tfacts.setScene(scene);\n\t\t\tfacts.show();\n\t\t\tfacts.setResizable(false);\n\t\t\tfacts.centerOnScreen();\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\t\n\t}", "public ManageClientScreen(BorderPane root, int width, int height, boolean fromApp){\r\n super(root,width,height);\r\n // Tells us if we entered this screen from landing page or appt screen\r\n this.fromAppt = fromApp;\r\n Button selectClientFromList = new Button(\"Select Client From List\");\r\n selectClientFromList.setMinWidth(Control.USE_PREF_SIZE);\r\n selectClientFromList.setOnAction(e->getClientList(e));\r\n HBox top = new HBox(150);\r\n top.getChildren().addAll(selectClientFromList);\r\n root.setTop(top);\r\n /* \r\n Set up Center of BorderPane\r\n */\r\n // Create and set up inner grid pane\r\n innerGrid.setHgap(10);\r\n innerGrid.setVgap(10);\r\n innerGrid.setPadding(new Insets(25,25,25,25));\r\n // Set labels up\r\n ID.setMinWidth(Control.USE_PREF_SIZE);\r\n NAME.setMinWidth(Control.USE_PREF_SIZE);\r\n ADDRESS_1.setMinWidth(Control.USE_PREF_SIZE);\r\n ADDRESS_2.setMinWidth(Control.USE_PREF_SIZE);\r\n CITY.setMinWidth(Control.USE_PREF_SIZE);\r\n ZIP.setMinWidth(Control.USE_PREF_SIZE);\r\n COUNTRY.setMinWidth(Control.USE_PREF_SIZE);\r\n PHONE.setMinWidth(Control.USE_PREF_SIZE); \r\n // Set TextFields up\r\n ID_FIELD.setDisable(true);\r\n ADDRESS_1_FIELD.setPromptText(\"Address Line 1\");\r\n ADDRESS_2_FIELD.setPromptText(\"Address Line 2\");\r\n CITY_FIELD.setPromptText(\"City\");\r\n ZIP_FIELD.setPromptText(\"Zip\");\r\n COUNTRY_FIELD.setPromptText(\"Country\");\r\n PHONE_FIELD.setPromptText(\"Phone\");\r\n // Add fields and labels to grid\r\n innerGrid.add(ID,0,0);\r\n innerGrid.add(ID_FIELD,1,0);\r\n innerGrid.add(NAME,0,1);\r\n innerGrid.add(NAME_FIELD,1,1);\r\n innerGrid.add(ADDRESS_1,0,2);\r\n innerGrid.add(ADDRESS_1_FIELD,1,2);\r\n innerGrid.add(ADDRESS_2,0,3);\r\n innerGrid.add(ADDRESS_2_FIELD,1,3);\r\n innerGrid.add(CITY,0,4);\r\n innerGrid.add(CITY_FIELD,1,4);\r\n innerGrid.add(ZIP,0,5);\r\n innerGrid.add(ZIP_FIELD,1,5);\r\n innerGrid.add(COUNTRY,0,6);\r\n innerGrid.add(COUNTRY_FIELD,1,6);\r\n innerGrid.add(PHONE, 0, 7);\r\n innerGrid.add(PHONE_FIELD, 1, 7);\r\n root.setCenter(innerGrid);\r\n // Create HBox for Save and Cancel\r\n HBox buttons = new HBox(5);\r\n SAVE.setOnAction(e -> save(e));\r\n CANCEL.setOnAction(e -> cancel(e));\r\n buttons.getChildren().addAll(SAVE,CANCEL);\r\n root.setBottom(buttons);\r\n buttons.setAlignment(Pos.BOTTOM_RIGHT);\r\n root.setPadding(new Insets(25,25,25,25));\r\n // Change Save button to Save & Return if coming from Appt Mgmt Screen\r\n if (fromAppt) SAVE.setText(\"Save & Return\");\r\n }", "@Override\r\n public void initialize(URL location, ResourceBundle resources) {\n adminLogOutButton.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent event) {\r\n Stage logoutStage = (Stage) adminLogOutButton.getScene().getWindow();\r\n logoutStage.close();\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/sample/view/login.fxml\"));\r\n try {\r\n loader.load();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n Stage dashboardStage = new Stage();\r\n Parent root = loader.getRoot();\r\n dashboardStage.setTitle(\"Admin\");\r\n dashboardStage.setScene(new Scene(root));\r\n dashboardStage.show();\r\n //dashboardStage.setResizable(false);\r\n }\r\n });\r\n\r\n\r\n // clickable image view to More Info Window\r\n adminListImage.setOnMouseClicked(new EventHandler<MouseEvent>() {\r\n @Override\r\n public void handle(MouseEvent event) {\r\n moreInfo();\r\n }\r\n\r\n private void moreInfo() {\r\n adminListView.getScene().getWindow().hide();\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/sample/view/studentInfo.fxml\"));\r\n try {\r\n loader.load();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n Stage studentInfo = new Stage();\r\n Parent root = loader.getRoot();\r\n studentInfo.setTitle(\"More Information\");\r\n studentInfo.setScene(new Scene(root));\r\n studentInfo.show();\r\n //studentInfo.setResizable(false);\r\n }\r\n });\r\n\r\n\r\n\r\n // button to open history window\r\n adminHistoryButton.setOnMouseClicked(new EventHandler<MouseEvent>() {\r\n @Override\r\n public void handle(MouseEvent event) {\r\n fullHistory();\r\n }\r\n\r\n private void fullHistory() {\r\n adminListView.getScene().getWindow().hide();\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/sample/view/history.fxml\"));\r\n try {\r\n loader.load();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n Stage historyStage = new Stage();\r\n Parent root = loader.getRoot();\r\n historyStage.setTitle(\"History\");\r\n historyStage.setScene(new Scene(root));\r\n historyStage.show();\r\n //historyStage.setResizable(false);\r\n }\r\n });\r\n\r\n }", "public void createNewButtonClicked(){\n loadNewScene(apptStackPane, \"Create_New_Appointment.fxml\");\n }", "public void showQuestsToPickScreen(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/QuestsToPickScreen.fxml\"));\n mainScreenController.getSecondaryScreen().getChildren().clear();\n mainScreenController.getSecondaryScreen().getChildren().add((AnchorPane) loader.load());\n \n QuestsToPickScreenController controller = loader.getController();\n controller.setGame(this);\n }catch(IOException e){\n }\n }", "@FXML\r\n\tvoid openCreateUser(ActionEvent event) {\r\n\t\tParent root = null;\r\n\t\tnewWindow = new Stage();\r\n\t\ttry {\r\n\t\t\troot = FXMLLoader.load(getClass().getResource(\"3.1-AddISUsersScreen.fxml\"));\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tISUsers = new Scene(root);\r\n\t\tnewWindow.setTitle(\"Create IS User\");\r\n\t\tnewWindow.setScene(ISUsers);\r\n\t\tnewWindow.setResizable(false);\r\n\t\tnewWindow.initOwner((Stage) ((Node) event.getSource()).getScene().getWindow());\r\n\t\tnewWindow.initModality(Modality.WINDOW_MODAL);\r\n\t\tnewWindow.show();\r\n\t}", "@FXML\n void OnActionShowUpdateCustomerScreen(ActionEvent event) throws IOException {\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/View/ModifyCustomer.fxml\"));\n stage.setTitle(\"Modify Customer\");\n stage.setScene(new Scene(scene));\n stage.show();\n }", "FrmViewContacts() {\n startupForm();\n }", "public void start(Stage stage){\n //set the class fields for the stage and app controller\n this.stage = stage;\n this.appController = AppController.getInstance();\n appController.setStage(stage);\n //load FXML\n //each screen requires the following\n //a \"Parent screenNameRoot\" object to hold the controller for each screen\n //a \"ScreenName screenName\" object of the ScreenName class for each screen that exists\n //a \"FXMLLoader screenNameLoader = new FXMLLoader(this.getClass().getResource(\"fxml/fxmlFileName.fxml\"));\" object to load the controller from FXML\n //an entry in the try/catch block that does the following (should catch IOException)\n //sets the screenNameRoot object to screenNameLoader.load()\n //sets the screenName object to screenNameLoader.getController()\n Parent whoAmIScreenRoot = null;\n FXMLLoader whoAmIScreenLoader = new FXMLLoader(this.getClass().getResource(\"fxml/whoAreYouScene.fxml\"));\n WhoAmIScreen whoAmIScreen = null;\n\n try{ \n whoAmIScreenRoot = whoAmIScreenLoader.load();\n whoAmIScreen = whoAmIScreenLoader.getController();\n }\n catch(IOException e){\n System.out.println(e.getMessage());\n System.out.println(\"Failed to load FXML\");\n System.exit(1);\n }\n\n //set the title for the window (not super important since this application would be embedded in a web page where this wouldn't be visible, but done anyway for posterity)\n stage.setTitle(\"Potluck Main Menu\");\n\n //create scenes for each screen\n Scene whoAmIScreenScene = new Scene(whoAmIScreenRoot);\n\n\n //give AppController references to scenes and objects\n appController.setWhoAmIScreen(whoAmIScreen);\n appController.setWhoAmIScreenScene(whoAmIScreenScene);\n\n //set stage's current scene to the WhoAmIScreenScene cause that's the default\n stage.setScene(whoAmIScreenScene);\n\n //must be final call in the function, tells JavaFX to start the app\n stage.show();\n }", "@FXML\n private void handleManageClients(ActionEvent event) {\n try {\n LOGGER.log(Level.INFO, \"Redirecting to ClientManagement window.\");\n FXMLLoader loader = new FXMLLoader(getClass()\n .getResource(\"/reto2desktopclient/view/ClientManagement.fxml\"));\n Parent root = (Parent) loader.load();\n //Getting window controller.\n ClientManagementController controller = (loader.getController());\n controller.setStage(stage);\n //Initializing stage.\n controller.initStage(root);\n } catch (IOException ex) {\n LOGGER.log(Level.SEVERE, \"Could not switch to ClientManagement window: {0}\", ex.getMessage());\n showErroAlert(\"Could not switch to Client Management window due to an\"\n + \" unexpected error, please try later.\");\n }\n }", "public void showPersonOverview() {\n try {\n // Load person overview.\n FXMLLoader loader = new FXMLLoader();\n //URL url=getClass().getResource(\"/fxml/Focustab.fxml\");\n loader.setLocation(MainApp.class.getResource(\"/fxml/Focustab.fxml\"));\n // Pane focusPane = (Pane)FXMLLoader.load(getClass().getResource(\"/fxml/Focustab.fxml\"));\n Pane focusPane=(Pane)loader.load();\n FocusPaneController controller = loader.getController();\n controller.setMainApp(this);\n Scene myScene = new Scene(focusPane);\n primaryStage.setScene(myScene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void openSaveSelection() {\n\t\ttry {\n\t\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/SaveSelectionView.fxml\"));\n\t\t\tfxmlLoader.setResources(bundle);\n\t\t\tParent root1 = (Parent) fxmlLoader.load();\n\t\t\tStage stage = new Stage();\n\t\t\tSaveSelectionController ssc = fxmlLoader.getController();\n\t\t\tssc.setMainController(this);\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\t\t// stage.initStyle(StageStyle.UNDECORATED);\n\t\t\tstage.setTitle(bundle.getString(\"sSHeaderLabel\"));\n\t\t\tstage.setScene(new Scene(root1));\n\t\t\tstage.show();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void gotoMyInfo(){\n try {\n FXMLMyInfoController verMyInfo = (FXMLMyInfoController) replaceSceneContent(\"FXMLMyInfo.fxml\");\n verMyInfo.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@FXML\n private void weeklyTab(){\n openReservation(false);\n openEventInfo(false, null);\n }", "@FXML\r\n\tvoid notification_btn_clicked(MouseEvent event) {\r\n\t\tswitchScenes(\"/client/boundry/MarketingAgentNotificationMainForm.fxml\",\r\n\t\t\t\t\"/client/boundry/MarketingAgentMainCustomer.css\");\r\n\t}", "public FundsTransferScreen() {\n initComponents();\n setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n setClosable(true);\n }", "@FXML\n private void openCompanyController(ActionEvent event) {\n CompanyController companyController = new CompanyController();\n companyController.openCompanyController(event);\n companyAddToggle.setSelected(false);\n\n }", "@Override\n public void start(Stage stage) throws IOException {\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(MainScreen.class.getResource(\"MainScreen.fxml\"));\n\n\n Parent root = fxmlLoader.load();\n MainScreen mainScreen = fxmlLoader.getController();\n Scene scene = new Scene(root);\n\n stage.setTitle(\"Inventory Management System\");\n stage.setScene(scene);\n stage.show();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\r\n\tvoid customers_btn_clicked(MouseEvent event) {\r\n\t\tswitchScenes(\"/client/boundry/MarketingAgentMainCustomerForm.fxml\",\r\n\t\t\t\t\"/client/boundry/MarketingAgentMainCustomer.css\");\r\n\r\n\t}", "@FXML\n void OnActionShowReportsMenu(ActionEvent event) throws IOException {\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n scene = FXMLLoader.load(getClass().getResource(\"/View/Reports.fxml\"));\n stage.setTitle(\"Reports\");\n stage.setScene(new Scene(scene));\n stage.show();\n }", "public void bankraadgiver(Stage primaryStage) {\n try {\n // Indlaeser BankraadgiverScreen_System_2.fxml fil\n Parent root = FXMLLoader.load(getClass().getResource(\"GUI/BankraadgiverScreen_System_2.fxml\"));\n\n // Laver en scene med FXML filen\n Scene scene = new Scene(root);\n\n // Saetter vinduet titel til Kontoejer\n primaryStage.setTitle(\"Bank raadgiver\");\n // Saetter scenen\n primaryStage.setScene(scene);\n // Viser den\n primaryStage.show();\n\n\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "public void init(Stage primaryStage, Controller controller) {\n ObservableList<Screen> screensList = Screen.getScreens();\n\n if(screensList.size() == 1) {\n Label errorMsg = new Label(ResourceBundle.getBundle(\"resource.Resource\")\n .getString(\"ERROR_no_enough_screens\"));\n errorMsg.getStyleClass().add(\"error_msg\");\n this.vboxScreens.getChildren().add(errorMsg);\n } else {\n // Selection message\n ResourceBundle bundle = ResourceBundle.getBundle(\"resource.Resource\");\n Label selectionMsg = new Label(bundle.getString(\"MSG_screen_selection\"));\n selectionMsg.getStyleClass().add(\"msg_screen_selection\");\n selectionMsg.setAlignment(Pos.TOP_CENTER);\n this.vboxScreens.getChildren().add(selectionMsg);\n\n // List of screens\n HBox screens = new HBox(5);\n DisplayScreen selectedScreen = new DisplayScreen();\n screens.getStyleClass().add(\"screens\");\n screens.setAlignment(Pos.CENTER);\n ConfigSelectionHandler selectionHandler = new ConfigSelectionHandler(screens, selectedScreen);\n Screen primary = Screen.getPrimary();\n\n for (int i = 0; i < screensList.size(); ++i){\n Screen s = screensList.get(i);\n if(!s.equals(primary)){\n Hyperlink display = new Hyperlink((int) s.getBounds().getWidth() + \"x\" + (int) s.getBounds().getHeight());\n display.setId(Integer.toString(i));\n display.getStyleClass().add(\"display\");\n display.setOnMouseClicked(selectionHandler);\n screens.getChildren().add(display);\n }\n }\n this.vboxScreens.getChildren().add(screens);\n\n // Set the handler of the control buttons\n ConfigOkHandler screenOkHandler = new ConfigOkHandler(selectedScreen, primaryStage, controller);\n ScreenExitHandler exitHandler = new ScreenExitHandler();\n this.ok.setOnMouseClicked(screenOkHandler);\n this.exit.setOnMouseClicked(exitHandler);\n }\n }", "@FXML \r\n public void cancelButtonAction() throws IOException{\r\n Parent loader = FXMLLoader.load(getClass().getResource(\"mainScreen.fxml\"));\r\n Scene scene = new Scene(loader);\r\n Stage window = (Stage) modPartCancel.getScene().getWindow();\r\n window.setScene(scene);\r\n window.show();\r\n }", "@FXML\n void openEditTimelineWindow(Timeline timeline) {\n\n// shows the window for adding a Timeline\n openAddTimelineWindow();\n\n// fills the TextField with appropriate data\n timeline_nameField.setText(timeline.name);\n\n// switches add and edit Buttons and Labels\n timeline_addButton.setVisible(false);\n timeline_addLabel.setVisible(false);\n timeline_editButton.setVisible(true);\n timeline_editLabel.setVisible(true);\n\n// changes functions called when Buttons are clicked\n timeline_editButton.setOnAction(addEvent -> editTimeline(timeline));\n cancelTimelineButton.setOnAction(cancelEvent -> cancelTimelineEdit());\n\n// generates feedback for the user\n window.setTitle(\"Timelines: Edit Timelines\");\n setMessage(\"Entered Timeline Edit mode.\", false);\n }", "@FXML\r\n void visitationReport(ActionEvent event) {\r\n \tParent root ;\r\n try {\r\n \t root = FXMLLoader.load(getClass().getResource(ClientConstants.Screens.DEPARTMENT_VISITATION_REPORT.toString()));\r\n Stage stage = new Stage();\r\n stage.setTitle(\"department manager visitation report\");\r\n stage.setScene(new Scene(root,707, 893));\r\n stage.show();\r\n\t} catch(Exception e) {\r\n\t\te.printStackTrace();\r\n\t}\r\n }", "public void showArmorVendorScreen(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/VendorSelectedScreen.fxml\"));\n mainScreenController.getSecondaryScreen().getChildren().clear();\n mainScreenController.getSecondaryScreen().getChildren().add((AnchorPane) loader.load());\n \n VendorSelectedScreenController controller = loader.getController();\n controller.setGame(this, gameData.getArmorVendor());\n }catch(IOException e){\n }\n }", "@FXML\n private void onAddStaff(ActionEvent event){\n\n }", "public void handleAddParts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/parts.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n PartController partController = fxmlLoader.getController();\n partController.setModifyParts(false);\n partController.setInventory(inventory);\n partController.setHomeController(this);\n\n // Spin up part form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Add Parts\");\n stage.setScene(new Scene(root));\n stage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void showConsumableVendorScreen(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/VendorSelectedScreen.fxml\"));\n mainScreenController.getSecondaryScreen().getChildren().clear();\n mainScreenController.getSecondaryScreen().getChildren().add((AnchorPane) loader.load());\n \n VendorSelectedScreenController controller = loader.getController();\n controller.setGame(this, gameData.getConsumableVendor());\n }catch(IOException e){\n }\n }", "private SPSSDialog(FormDef form)\n\t{\n\t\tthis.form = form;\n\t\tsetup();\n\t}", "private void appointmentsButtonAction(ActionEvent event) {\r\n\t\t\ttry {\r\n\t\t\t\tParent root;\r\n\t\t\t\tStage stage = (Stage) appointmentsButton.getScene().getWindow();\r\n\t\t\t\troot = FXMLLoader.load(getClass().getResource(\"/views/AppointmentScreen.fxml\"));\r\n\t\t\t\tScene scene = new Scene(root);\r\n\t\t\t\tstage.setScene(scene);\r\n\t\t\t\tstage.setResizable(false);\r\n\t\t\t\tstage.show();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "@FXML\n void setMenuItemAdOnAction() {\n System.out.println(\"Click!\");\n Stage stage = (Stage) pnExecut.getScene().getWindow();\n try {\n Pane root = FXMLLoader.load(getClass().getResource(\"frmAds.fxml\"));\n Scene scene = new Scene(root);\n stage.setScene(scene);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML void onActionSavePart(ActionEvent event) throws IOException{\n if(partIsValid()){\r\n int id = Inventory.incrementPartID();\r\n String name = partName.getText();\r\n int inventory = Integer.parseInt(partInv.getText());\r\n Double price = Double.parseDouble(partPrice.getText());\r\n int max = Integer.parseInt(partMax.getText());\r\n int min = Integer.parseInt(partMin.getText());\r\n String companyName = companyNameField.getText();\r\n \r\n \r\n if(this.partToggleGroup.getSelectedToggle().equals(this.inHouseRadioButton)){\r\n int machineID = Integer.parseInt(companyNameField.getText());\r\n Inventory.addPart(new InHouse(id, name, price, inventory, min, max, machineID)); \r\n } else {\r\n Inventory.addPart(new Outsourced(id, name, price, inventory, min, max, companyName));\r\n }\r\n \r\n // Clearing the partIDCount variable\r\n Inventory.clearAmountOfParts();\r\n \r\n // Now we want to be able to go back to the main menu\r\n Parent AddPartViewParent = FXMLLoader.load(getClass().getResource(\"FXMLDocument.fxml\"));\r\n Scene AddPartScene = new Scene(AddPartViewParent);\r\n\r\n // Now we need to get the Stage information\r\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n window.setScene(AddPartScene);\r\n window.show();\r\n }\r\n }", "public SalesSystemUI(SalesDomainController domainController) {\n this.domainController = domainController;\n this.model = new SalesSystemModel(domainController);\n \n // Create singleton instances of the tab classes\n historyTab = new HistoryTab(model);\n stockTab = new StockTab(model);\n purchaseTab = new PurchaseTab(domainController, model);\n \n setTitle(\"Sales system\");\n \n // set L&F to the nice Windows style\n try {\n UIManager.setLookAndFeel(new WindowsLookAndFeel());\n \n } catch (UnsupportedLookAndFeelException e1) {\n log.warn(e1.getMessage());\n }\n \n drawWidgets();\n \n // size & location\n int width = 600;\n int height = 400;\n setSize(width, height);\n Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();\n setLocation((screen.width - width) / 2, (screen.height - height) / 2);\n \n addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n }\n });\n }", "public void updateDeleteButtonClicked(){\n loadNewScene(apptStackPane, \"Update_Delete_Appointment.fxml\");\n }", "@FXML\n private void onNewTransfer() {\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getClassLoader().getResource\n (\"main/resources/view/edit-stock-transfer.fxml\"));\n Stage stage = new Stage();\n stage.setScene(new Scene(loader.load()));\n stage.setResizable(false);\n stage.initModality(Modality.WINDOW_MODAL);\n stage.initOwner(container.getScene().getWindow());\n\n EditStockTransferController controller = loader.getController();\n controller.setStage(stage);\n\n stage.showAndWait();\n getData();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "@FXML\n protected void handleMenuButtonAction(ActionEvent event) {\n SceneLoader.loadScene(\"/mainScreen.fxml\");\n }", "@FXML\n void goToRequestedItems(ActionEvent event) {\n\n try {\n // Create a FXML loader for loading the requested items FXML file.\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"RequestedItems.fxml\"));\n\n BorderPane requestedItems = (BorderPane) fxmlLoader.load();\n Scene requestedItemsScene = new Scene(requestedItems, Main.SMALL_WINDOW_WIDTH, Main.SMALL_WINDOW_HEIGHT);\n Stage requestedItemsStage = new Stage();\n\n requestedItemsStage.setScene(requestedItemsScene);\n requestedItemsStage.setTitle(Main.REQUESTED_ITEMS_WINDOW_TITLE);\n requestedItemsStage.initModality(Modality.APPLICATION_MODAL);\n // Show the requested items scene and wait for it to be closed\n requestedItemsStage.showAndWait();\n } catch (IOException e) {\n e.printStackTrace();\n // Quit the program (with an error code)\n System.exit(-1);\n }\n }", "public void linktomyordersButtonPressed(javafx.event.ActionEvent event) throws IOException {\r\n Parent myordersParent = FXMLLoader.load(getClass().getResource(\"myOrdersHome.fxml\"));\r\n Scene myordersScene = new Scene(myordersParent);\r\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n window.setScene(myordersScene);\r\n window.show();\r\n }", "@FXML\r\n void onActionCustomerReport(ActionEvent event) throws IOException {\r\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/view/CustomerReport.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }", "@FXML\r\n private void goHomeScreen(ActionEvent event) {\n Stage stage = (Stage) mainGridPane.getScene().getWindow();\r\n\r\n //load up WelcomeScene FXML document\r\n Parent root = null;\r\n try {\r\n root = FXMLLoader.load(getClass().getResource(\"WelcomeChipScene.fxml\"));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n Scene scene = new Scene(root, 1024, 720);\r\n stage.setTitle(\"Restaurant Reservation System\");\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "@FXML\n \n private void A(ActionEvent event) throws IOException {\n Parent p=FXMLLoader.load(getClass().getResource(\"Page8.fxml\"));\n Scene sc=new Scene(p);\n Stage w=(Stage)((Node)event.getSource()).getScene().getWindow();\n w.setScene(sc);\n w.show();\n }", "DialogTicketController(GameLogic gl, JavaFXGUI gui, boolean taxi, boolean bus, boolean underground, boolean black, int taxiTicketNumber, int busTicketNumber, int undergroundTicketNumber, int blackTicketNumber) {\n\n this.gl = gl;\n thisStage = new Stage();\n\n // Load the FXML file\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/gui/DialogTicket.fxml\"));\n loader.setController(this);\n thisStage.setScene(new Scene(loader.load()));\n thisStage.setTitle(\"Ticket für die nächste Station wählen\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // Checks What Button/Label to show and what to hide (depending on current Ticket Numbers)\n if (bus) {\n this.busLabel.setText(String.valueOf(busTicketNumber) + \"x\");\n } else {\n this.busLabel.setVisible(false);\n this.busButton.setVisible(false);\n }\n\n if (taxi) {\n this.taxiLabel.setText(String.valueOf(taxiTicketNumber) + \"x\");\n } else {\n this.taxiLabel.setVisible(false);\n this.taxiButton.setVisible(false);\n }\n\n if (underground) {\n this.undergroundLabel.setText(String.valueOf(undergroundTicketNumber) + \"x\");\n } else {\n this.undergroundLabel.setVisible(false);\n this.undergroundButton.setVisible(false);\n }\n\n if (black) {\n this.blackLabel.setText(String.valueOf(blackTicketNumber) + \"x\");\n } else {\n this.blackLabel.setVisible(false);\n this.blackButton.setVisible(false);\n }\n\n thisStage.show();\n }", "@FXML\n void onLogin(ActionEvent event) throws IOException {\n System.out.println(\"inloggen\");\n Parent parent1 = FXMLLoader.load(getClass().getResource(\"/schermen/navigatie.fxml\"));\n Scene scene = new Scene(parent1);\n Stage app_stage = (Stage)((Node) event.getSource()).getScene().getWindow();\n app_stage.setScene(scene);\n app_stage.show();\n \n }", "private void callForm(boolean isIncome) {\n\t\t\n\t\t/* we load the form fxml*/\n\t\tFXMLLoader loader = new FXMLLoader(\n\t\t\t\tgetClass().getResource(\"/gui/view/formTransaction.fxml\"));\n\t\t\n\t\t/*Create a instance of the controller of bank account form*/\n\t\tController_formTransaction controller = new Controller_formTransaction(\n\t\t\t\tthis, isIncome, null);\n\t\t\n\t\t/*Sets the controller associated with the root object*/\n\t\tloader.setController(controller);\n\t\t\n\t\tpaneForm.setVisible(true);\n\t\tpaneForm.setMouseTransparent(false);\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tAnchorPane pane = loader.load();\n\t\t\tpaneForm.getChildren().add(pane);\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@FXML\r\n void onActionContactReport(ActionEvent event) throws IOException {\r\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/view/Reports.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }", "public void showSearchCustomerDialog() {\n\t\ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(MainApplication.class.getResource(\"view/SearchCustomerDialog.fxml\"));\n\t\t\tAnchorPane page = (AnchorPane) loader.load();\n\t\t\tStage searchCustomerDialogStage = new Stage();\n\t\t\tthis.searchCustomerDialogStage = searchCustomerDialogStage;\n\t\t\tsearchCustomerDialogStage.setTitle(\"Search Customer\");\n\t\t\tsearchCustomerDialogStage.initModality(Modality.WINDOW_MODAL);\n\t\t\tsearchCustomerDialogStage.initOwner(primaryStage);\n\t\t\tScene scene = new Scene(page);\n\t\t\tsearchCustomerDialogStage.setScene(scene);\n\t\t\tSearchCustomerDialogController searchCustomerDialogController = loader.getController();\n\t\t\tsearchCustomerDialogController.setDialogStage(searchCustomerDialogStage);\n\t\t\tsearchCustomerDialogController.setMainApp(this);\n\t\t\tsetSearchCustomerController(searchCustomerDialogController);\n\t\t\tsearchCustomerDialogStage.showAndWait();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t }\n\t}", "@FXML\r\n void onActionAddAppointment(ActionEvent event) throws IOException {\r\n\r\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/view/AddAppointment.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n\r\n }", "@FXML\r\n public void proveedores(ActionEvent e) throws IOException {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/Proveedores/FormProveedores.fxml\"));\r\n Parent root1 = (Parent) fxmlLoader.load();\r\n Stage stage = new Stage();\r\n stage.setScene(new Scene(root1));\r\n stage.setTitle(\"MEVECOM <>\");\r\n stage.setResizable(false);\r\n stage.show();\r\n //Cerrar ventana actual\r\n Stage actual = (Stage) btnSalir.getScene().getWindow();\r\n actual.close();\r\n }", "@Override\n protected void showOtherForm(Resources res) {\n }", "@FXML void expandc1p2(MouseEvent event) { \n\ttry {\n\t\tFXMLLoader loader = new FXMLLoader (getClass().getResource(\"/resources/Fxml/ShowCandidate.fxml\"));\n Parent root = (Parent) loader.load();\n ShowCandidateController SCController=loader.getController();\n SCController.mailFunction(mailc1p2.getText());\n SCController.TitleFunction(TitleLabel1.getText());\n SCController.ExpFunction(ExpLabel1.getText());\n SCController.SectorFunction(SectorLabel1.getText());\n SCController.RegionFunction(RegionLabel1.getText()); \n Stage stage = new Stage();\n stage.setScene(new Scene(root));\n stage.setResizable(false);\n stage.show(); \n\t} catch (IOException e) {\n\t\te.printStackTrace(); }\t\n}", "private void returnToMainScreen(ActionEvent event) throws IOException {\r\n\r\n Parent parent = FXMLLoader.load(getClass().getResource(\"../view/MainScreen.fxml\"));\r\n Scene scene = new Scene(parent);\r\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\r\n stage.setScene(scene);\r\n stage.show();\r\n }", "public static void Display(AnalysisController pController, String pstrTitle) {\n \n Stage stgAboutMeerkatDialog = new Stage();\n stgAboutMeerkatDialog.initModality(Modality.APPLICATION_MODAL);\n \n //Label lblAboutMeerkat = new Label(strAboutMeerkat);\n \n String aboutMeerkat = \"Meerkat is a social network analysis tool developed at AMII, Department of Computing Science, University of Alberta, \"\n + \"under the leadership of Dr. Osmar Zaïane.\";\n \n String meerkatURL = \"https://www.amii.ca/meerkat\";\n \n Hyperlink link = new Hyperlink(meerkatURL);\n link.setBorder(Border.EMPTY);\n link.setPadding(new Insets(0, 0, 0, 0));\n link.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n try{\n if( Desktop.isDesktopSupported() )\n {\n new Thread(() -> {\n try {\n Desktop.getDesktop().browse( new URI( meerkatURL ) );\n } catch (Exception et) {\n System.out.println(\"Exception in hyperlink click in AboutMeerkat:Disply()\");\n }\n }).start();\n }\n stgAboutMeerkatDialog.close();\n }catch(Exception exp){\n System.out.println(\"Exception in hyperlink click in AboutMeerkat:Disply()\");\n }\n }\n });\n \n \n \n String meerkatEmail = \"[email protected] \";\n\n String details = \"For more details please visit us online at: \";\n String emailDetails = \" or email us at: [email protected]\";\n \n String meerkatVersion = \"Meerkat Version: \"+MeerkatSoftwareValidator.getMeerkatVersion();\n String meerkatReleaseDate = \"Version Release Date: 2018 February 02\";\n\n String meerkatcurrentDevs = \"Current Developers : Sankalp Prabhakar, Talat Iqbal Syed\";\n \n String meerkatPastDevs = \"Past and Present Team Members (alphabetically): Abhimanyu Panwar, Ali Yadollahi, Afra Abnar, Amin Travelsi, Eric Verbeek, Farzad Sangi, Justin Fagnan, \\n\" +\n \"Jiyang Chen, Matt Gallivan, Mansoureh Takaffoli, Reihaneh Rabbany, Sankalp Prabhakar, Shiva Zamani Gharaghooshi, \"\n + \"Talat Iqbal Syed, Xiaoxiao Li.\";\n\n \n VBox labels = new VBox();\n Label label1 = new Label(aboutMeerkat);\n Label label2 = new Label(details);\n Label label3 = new Label(emailDetails);\n \n HBox hbox = new HBox();\n hbox.getChildren().addAll(label2, link, label3);\n \n Label version = new Label(meerkatVersion);\n Label releaseDate = new Label(meerkatReleaseDate);\n Label currDevs = new Label(meerkatcurrentDevs);\n Label pastDevs = new Label(meerkatPastDevs);\n \n labels.getChildren().addAll(label1,hbox,version,releaseDate,currDevs,pastDevs);\n labels.setPadding(new Insets(5, 10, 5, 10));\n labels.setSpacing(10);\n \n // Build a VBox\n Button btnOK = new Button(LangConfig.GENERAL_OK);\n VBox vboxRows = new VBox(5);\n vboxRows.setPadding(new Insets(5,10,5,10)); \n vboxRows.getChildren().addAll(labels, btnOK);\n vboxRows.setAlignment(Pos.CENTER);\n \n Scene scnAboutMeerkatDialog = new Scene(vboxRows);\n scnAboutMeerkatDialog.addEventFilter(KeyEvent.KEY_PRESSED, (KeyEvent evt) -> {\n if (evt.getCode().equals(KeyCode.ESCAPE)) {\n stgAboutMeerkatDialog.close();\n pController.updateStatusBar(false, StatusMsgsConfig.WINDOW_CLOSED);\n }\n });\n \n //stgAboutMeerkatDialog.initModality(Modality.WINDOW_MODAL);\n stgAboutMeerkatDialog.setTitle(pstrTitle); \n stgAboutMeerkatDialog.setResizable(false);\n \n \n // Events \n btnOK.setOnAction((ActionEvent e) -> {\n // Close the dialog box\n stgAboutMeerkatDialog.close();\n \n // Update the Status bar\n pController.updateStatusBar(false, StatusMsgsConfig.ABOUT_CLOSED);\n });\n \n stgAboutMeerkatDialog.setScene(scnAboutMeerkatDialog);\n stgAboutMeerkatDialog.show();\n \n // Update the status bar\n pController.updateStatusBar(true, StatusMsgsConfig.ABOUT_SHOW);\n }", "public void showWeaponVendorScreen(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/VendorSelectedScreen.fxml\"));\n mainScreenController.getSecondaryScreen().getChildren().clear();\n mainScreenController.getSecondaryScreen().getChildren().add((AnchorPane) loader.load());\n \n VendorSelectedScreenController controller = loader.getController();\n controller.setGame(this, gameData.getWeaponVendor());\n }catch(IOException e){\n }\n }", "@FXML\r\n void onActionSchedule(ActionEvent event) throws IOException {\r\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/view/Appointments.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }", "@FXML\r\n public void inventario(ActionEvent e) throws IOException {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/Inventario/Inventario.fxml\"));\r\n Parent root1 = (Parent) fxmlLoader.load();\r\n Stage stage = new Stage();\r\n stage.setScene(new Scene(root1));\r\n stage.setTitle(\"MEVECOM <>\");\r\n stage.setResizable(false);\r\n stage.show();\r\n //Cerrar ventana actual\r\n Stage actual = (Stage) btnSalir.getScene().getWindow();\r\n actual.close();\r\n }", "@FXML\n void launcherButtonOnAction() {\n openParamDialog();\n }", "public void openStore() throws IOException {\n Store selectedStore = storeList.getSelectionModel().getSelectedItem();\n\n if(selectedStore != null) {\n Stage primaryStage = Main.primaryStage;\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"./GUI/categoryScreen.fxml\"));\n Parent root = loader.load();\n categoryScreenController csc = loader.getController();\n csc.setValues(selectedStore, eu);\n primaryStage.setTitle(\"Category Screen\");\n primaryStage.resizableProperty().setValue(Boolean.FALSE);\n primaryStage.setScene(new Scene(root, 800, 600));\n primaryStage.show();\n }\n\n }", "@FXML void ShowOffer(ActionEvent event4) throws IOException, BusinessException {\n\n\tPane annunci[] = { Annuncio1, Annuncio2, Annuncio3};\n\tTextArea embio[] = {EditWorkInfoArea,EditWorkInfoArea1,EditWorkInfoArea11};\n\tLabel Titoli[] = { TitleLabel,TitleLabel1,TitleLabel11};\n\tLabel Posizioni[] = {PositionLabel,PositionLabel1,PositionLabel11};\n\tLabel TipoContratto[] = {ContractTypeLabel,ContractTypeLabel1,ContractTypeLabel11}; \n\tLabel TempoContratto[] = {ContractTimeLabel,ContractTimeLabel1,ContractTimeLabel11};\n\tLabel Retribuzioni[] = {RetributionLabel,RetributionLabel1,RetributionLabel11};\n\tLabel Settori[] = {SectorLabel,SectorLabel1,SectorLabel11};\n\tLabel Regioni[] = {RegionLabel,RegionLabel1,RegionLabel11};\n\tLabel RetxTempo[] = {RetxTLabel,RetxTLabel1,RetxTLabel11};\n\tLabel Bonus [] = {BonusLabel,BonusLabel1,BonusLabel11};\n\tLabel Studi[] = {DegreeLabel,DegreeLabel1,DegreeLabel11};\n\tLabel Esperienze[] = {ExpLabel,ExpLabel1,ExpLabel11};\n\n try {\n\tint i = 0;\n\tList<Offer> offerList = offerService.findMyOffers(eoEmail.getText().toString());\n\t\t if ( offerList.size() < 3 ) {\n\t\t for ( i = offerList.size(); i < 3; i++ ) {\n\t\t annunci[i].setVisible(false); }\n\t\t }\n\t\t i = 0;\n\t\t for (Offer o: offerList) {\n\t\t annunci[i].setVisible(true);\n\t\t Titoli[i].setText(o.getTitle());\n\t\t Posizioni[i].setText(o.getPosition());\n\t\t Settori[i].setText(o.getSector());\n\t\t Regioni[i].setText(o.getRegion());\n\t\t TipoContratto[i].setText(o.getContractType()); \n\t\t TempoContratto[i].setText(o.getContractTime());\n\t\t Retribuzioni[i].setText(o.getWage());\n\t\t RetxTempo[i].setText(o.getWageTime());\n\t\t Studi[i].setText(o.getEducation());\n\t\t Bonus[i].setText(o.getBonus());\n\t\t embio[i].setText(o.getInfo());\n\t\t Esperienze[i].setText(o.getExperience());\n\t\t i++;\n\t\t }\n } catch (BusinessException e) {\n e.printStackTrace();\n throw new BusinessException(e);\n }\n}", "public FlowPane setupViewSupplier()\n {\n Tooltip toggleTip = new Tooltip(\"Click to toggle Edit/ View\");\n Tooltip.install(btnEdit, toggleTip);\n Tooltip backTip = new Tooltip(\"Click to close this component and go back to list\");\n Tooltip.install(btnClose, backTip);\n Tooltip saveTip = new Tooltip(\"Click to Save this Supplier to the database\");\n Tooltip.install(btnSave, saveTip);\n Tooltip delTip = new Tooltip(\"Click to Delete this Supplier from the database\");\n Tooltip.install(btnDelete, delTip);\n Tooltip clearTip = new Tooltip(\"Click to Clear all fields and start again\");\n Tooltip.install(btnClear, clearTip);\n// supplierView.setId(\"root\");\n //These buttons are not visible at first\n btnClear.setVisible(false);\n btnSave.setVisible(false);\n txtError.setId(\"error\");\n SetTextFieldsEditable(false);\n// txtSupNum.setEditable(false); //User may not edit the pk\n \n //Set the values from Selected supplier\n// SetTextFieldValues();\n\n //Add Labels and TextFields to layout\n AddAllToLayout();\n \n \n //OnClick Handlers for Buttons\n btnClose.setOnAction((event)->{\n Stage stage = (Stage)((Node)event.getSource()).getScene().getWindow();\n stage.close();\n });\n \n btnClear.setOnAction((event)->{\n //Clears all the text fields\n// txtSuplId ;\n txtSuplCode.clear();\n txtSuplContact.clear();\n txtSuplTel.clear();\n txtSuplCell.clear();\n txtSuplFax.clear();\n txtSuplEmail.clear();\n txtSuplBank.clear();\n txtSuplBranchCode.clear();\n txtSuplAccNum.clear();\n txtSuplAccType.clear();\n txtSuplComments.clear();\n });\n \n btnDelete.setOnAction((event)->{\n Supplier supl = getEditedTextFieldValues();\n int result = 0;\n Boolean check = Alerts.displayVerifyAlert(\"Delete Supplier\", \"Are You sure you want to delete supplier: \"+supl.getSuplId()+\"?\");\n if (check) \n { \n result = DatabaseMethods.DeleteSupplierInfo(supl);\n if(result>0)\n {\n Alerts.displayAlert(\"Success\", \"Supplier Deleted Successfully\");\n Stage stage = (Stage)((Node)event.getSource()).getScene().getWindow();\n MainApp.refresh = true;\n stage.close();\n }\n else{\n Alerts.displayAlert(\"Failed\", \"Supplier Failed to Delete, please try again\");\n }\n }\n });\n \n btnEdit.setOnAction((event)->{\n if(!checkEdit)\n {\n btnEdit.setText(\"View Supplier\");\n btnSave.setVisible(true);\n checkEdit = true;\n save_edit = true;\n MainApp.refresh = true;\n SetTextFieldValues();\n SetTextFieldsEditable(Boolean.TRUE); // Allow user to edit\n System.out.println(\"\\n Save/Edit == \"+save_edit);\n }\n else if(checkEdit)\n {\n btnEdit.setText(\"Edit Supplier\");\n btnSave.setVisible(false);\n checkEdit = false;\n save_edit = false;\n SetTextFieldsEditable(Boolean.FALSE); // User can only view\n System.out.println(\"\\n Save/Edit == \"+save_edit);\n\n }\n });\n \n btnSave.setOnAction((event)->{\n int valid = ValidateAndGetSupplierFields();\n int result = 0;\n boolean check = false;\n if(valid == 0) \n {\n check = Alerts.displayVerifyAlert(\"Save Supplier\", \"Are You sure you want to Save : \"+saveSupl.getSuplCode()+\"?\");\n }\n if(check) \n {\n if(!save_edit) result = DatabaseMethods.SaveNewSupplierInfo(saveSupl);\n else result = DatabaseMethods.EditSupplierInfo(saveSupl);\n \n if(result>0)\n {\n Alerts.displayAlert(\"Success\", \"Supplier Saved Successfully\");\n Stage stage = (Stage)((Node)event.getSource()).getScene().getWindow();\n MainApp.refresh = true;\n stage.close();\n }\n else{\n Alerts.displayAlert(\"Failed\", \"Supplier Failed to Update, please try again\");\n }\n }\n });\n \n return supplierView; \n }", "public void displayAddFriendSearch() throws Exception{\r\n System.out.println(\"Username And Login Match\");\r\n currentStage.hide();\r\n Stage primaryStage = new Stage();\r\n System.out.println(\"Step 1\");\r\n Parent root = FXMLLoader.load(getClass().getResource(\"view/AddFriend.fxml\"));\r\n System.out.println(\"step 2\");\r\n primaryStage.setTitle(\"Add Friend Search\");\r\n System.out.println(\"Step 3\");\r\n primaryStage.setScene(new Scene(root, 600, 400));\r\n primaryStage.show();\r\n }", "@FXML void handleExitForm()\n {\n Stage stage = (Stage) exitForm.getScene().getWindow();\n stage.close();\n }" ]
[ "0.65806246", "0.65099585", "0.6385032", "0.63598883", "0.6304965", "0.6276319", "0.6240512", "0.6230207", "0.62104577", "0.61915386", "0.6150208", "0.6110456", "0.6083276", "0.6063847", "0.60419756", "0.60295016", "0.60182256", "0.6012153", "0.6000429", "0.5990472", "0.59785104", "0.5974457", "0.59552705", "0.5954212", "0.59521", "0.5951088", "0.5948087", "0.5947705", "0.59340006", "0.5929643", "0.59234905", "0.5920227", "0.59200585", "0.5917589", "0.5905971", "0.590394", "0.5901524", "0.5888248", "0.5888248", "0.58841705", "0.58778536", "0.58544856", "0.5849737", "0.5837687", "0.5828412", "0.5824888", "0.58105475", "0.58007807", "0.57958466", "0.57856184", "0.5779996", "0.5776719", "0.57732755", "0.5746307", "0.57410556", "0.57306635", "0.57266873", "0.5726146", "0.5715803", "0.57086533", "0.57068896", "0.57055545", "0.56965166", "0.56870466", "0.56791604", "0.5678753", "0.56761086", "0.5673812", "0.5672087", "0.5669094", "0.56673306", "0.56636304", "0.5654073", "0.5653789", "0.56247264", "0.56242514", "0.5615891", "0.56129855", "0.56129634", "0.5608453", "0.56057376", "0.5603097", "0.5601019", "0.55848616", "0.5583947", "0.5581531", "0.55808634", "0.55774045", "0.5575422", "0.5574727", "0.5569943", "0.55680317", "0.5565799", "0.5561178", "0.55575114", "0.5552263", "0.55517215", "0.55498266", "0.5548269", "0.5546478" ]
0.56878674
63
Encoded "" as Base64
@Test public void shouldGiveTwoElementEmptyStringArrayOnOnlyColon() { String decodeString = "Og=="; assertThat("Two elements is present", BasicAuth.decode(decodeString), is(arrayWithSize(2))); assertThat("First element is emptyString", BasicAuth.decode(decodeString)[0], isEmptyString()); assertThat("Second element is emptyString", BasicAuth.decode(decodeString)[1], isEmptyString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default String codificarBase64(String contenido) {\n\t\tbyte[] encoded = Base64.getEncoder().encode(contenido.getBytes(StandardCharsets.UTF_8));\n\t\treturn new String(encoded);\n\t}", "public String base64Encode(String str) throws StoreFactoryException;", "private static String encodeToBase64(byte[] data) {\n return Base64.encodeToString(data, BASE64_EFLAGS);\n }", "private static String encodeBase64(String stringToEncode){\r\n\t\treturn Base64.getEncoder().encodeToString(stringToEncode.getBytes());\t\r\n\t}", "private Base64(){}", "private String encodeBase64(String msg) {\n\t\tbyte[] bytesEncoded = Base64.encodeBase64(msg.getBytes());\n\t\t//System.out.println(\"encoded value is \" + new String(bytesEncoded));\n\n\t\treturn new String(bytesEncoded);\n\t}", "private static String descifrarBase64(String arg) {\n Base64.Decoder decoder = Base64.getDecoder();\n byte[] decodedByteArray = decoder.decode(arg);\n\n return new String(decodedByteArray);\n }", "public CodePointIterator base64Encode() {\n return base64Encode(Base64Alphabet.STANDARD, true);\n }", "java.lang.String getEncoded();", "public static String base64EncodeString(String input) throws Exception\n {\n return base64Encode(input.getBytes(\"UTF-8\"));\n }", "public static String base64Encode(byte[] input) {\n return DatatypeConverter.printBase64Binary(input);\n }", "public static String base64Encode(String str) {\n sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();\n byte[] bytes = str.getBytes();\n return encoder.encode(bytes);\n\n }", "public static String toBase64(byte[] data)\n {\n return Base64.encodeToString(data, Base64.NO_WRAP);\n }", "static String convertToBase64(byte[] image){\n return !Objects.isNull(image)\n ? Base64.getEncoder().encodeToString(image)\n : \"\";\n }", "public static String encodeBase64(String string) {\n\t\tif (string == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn Base64.getEncoder().encodeToString(string.getBytes(UTF_8));\n\t}", "public static String byteToBase64(byte[] data){\n BASE64Encoder endecoder = new BASE64Encoder();\n return endecoder.encode(data);\n }", "public static String encB64(byte[] data) {\n return Base64.encodeToString(data,Base64.DEFAULT);\n }", "private String encodeBase64(String ldapPwd){\n try {\n return CryptoUtils.object2String(ldapPwd);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "private String encode(String str) {\n verifyNotNull(str, ERROR_MESSAGE);\n byte[] bytes = str.getBytes();\n return Base64.getEncoder()\n .withoutPadding()\n .encodeToString(bytes);\n }", "public static String base64Encode(byte[] bytes)\n {\n return DatatypeConverter.printBase64Binary(bytes);\n }", "public static String base64Encode(final byte[] key) {\n return Base64.encode(key);\n }", "private Base64(){\n\t}", "private String byteToBase64(final byte[] bytes) {\n String str = DatatypeConverter.printBase64Binary(bytes);\n return str;\n }", "public static String encode(String arg) {\n String encoded = Base64.getEncoder().encodeToString(arg.getBytes());\n\n return encoded;\n }", "static String base64encode(byte[] bytes)\n {\n StringBuilder builder = new StringBuilder(((bytes.length + 2)/ 3) * 4);\n for (int i = 0; i < bytes.length; i += 3)\n {\n byte b0 = bytes[i];\n byte b1 = i < bytes.length - 1 ? bytes[i + 1] : 0;\n byte b2 = i < bytes.length - 2 ? bytes[i + 2] : 0;\n builder.append(BASE64_CHARS[(b0 & 0xFF) >> 2]);\n builder.append(BASE64_CHARS[((b0 & 0x03) << 4) | ((b1 & 0xF0) >> 4)]);\n builder.append(i < bytes.length - 1 ? BASE64_CHARS[((b1 & 0x0F) << 2) | ((b2 & 0xC0) >> 6)] : \"=\");\n builder.append(i < bytes.length - 2 ? BASE64_CHARS[b2 & 0x3F] : \"=\");\n }\n return builder.toString();\n }", "private String base64Encode(String xmlAsString, String xmlEncoding) throws UnsupportedEncodingException {\r\n String xmlencodingDeclaration = \"<?xml version=\\\"1.0\\\" encoding=\\\"\" + xmlEncoding + \"\\\"?>\";\r\n byte[] xmlAsBytes = (xmlencodingDeclaration + xmlAsString).getBytes(xmlEncoding);\r\n\r\n byte[] xmlAsBase64 = Base64.encodeBase64(xmlAsBytes);\r\n\r\n // base64 is pure ascii\r\n String xmlAsBase64String = new String(xmlAsBase64, \"ascii\");\r\n\r\n return xmlAsBase64String;\r\n }", "String encrypt(String input) {\n\t\treturn BaseEncoding.base64().encode(input.getBytes());\n\t}", "public static String encodeString(String str) throws IOException {\n BASE64Encoder encoder = new BASE64Encoder();\n String encodedStr = encoder.encodeBuffer(str.getBytes());\n \n return (encodedStr.trim());\n }", "public static String returnEncoded(String text) {\n if (text == null) {\n return null;\n }\n return Base64.encodeToString(text.getBytes(), Base64.NO_WRAP);\n }", "public static String stringToBase64String(String text) {\n if (text == null) return null;\n return new String(Base64.encodeBase64(text.getBytes()));\n }", "public static String create()\n\t{\n\t\tBASE64Encoder\tencoder = new BASE64Encoder();\n\n\t\treturn encoder.encode(createBytes());\n\t}", "private String convertUploadedFileToBase64(MultipartFile file) throws IOException {\n return Base64.getEncoder().encodeToString(file.getBytes());\n }", "public String encode() {\n return encodeToBase64(encKey.getEncoded()) + \":\" + encodeToBase64(macKey.getEncoded());\n }", "public String toUrlSafe() {\n// try {\n //todo: key encoder\n return Base64.getEncoder().encodeToString(new Gson().toJson(this).getBytes());\n// return URLEncoder.encode(\"\", UTF_8.name());\n// return URLEncoder.encode(TextFormat.printToString(toPb()), UTF_8.name());\n// } catch (UnsupportedEncodingException e) {\n// throw new IllegalStateException(\"Unexpected encoding exception\", e);\n// }\n }", "public String base64Decode(String str) throws StoreFactoryException;", "private Base64() {\r\n }", "public static String byte2Base64(byte[] bytes) {\n BASE64Encoder encoder = new BASE64Encoder();\n return encoder.encode(bytes);\n }", "public static String encodePassword( String object )\n\t{\n\t\tBASE64Encoder encoder = new BASE64Encoder();\n\t\tif ( object != null ) {\n\t\t\ttry {\n\t\t\t\tString encodedPassword = encoder.encode(object.getBytes(\"UTF-8\"));\n\t\t\t\tLOGGER.info(\"encode '\" + object + \"' password as base64 -> '\" + encodedPassword + \"'\");\n\t\t\t\treturn encodedPassword;\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\tLOGGER.severe(\"UTF-8 not supported\");\n\t\t\t}\n\t\t}\n\n\n\t\treturn \"\";\n\t}", "public static String create()\n\t{\n\t\treturn new String(B64Code.encode(createBytes()));\n\t}", "private static String encodeWritable(Writable obj) throws IOException {\n DataOutputBuffer buf = new DataOutputBuffer();\n obj.write(buf);\n Base64 encoder = new Base64(0, null, true);\n byte[] raw = new byte[buf.getLength()];\n System.arraycopy(buf.getData(), 0, raw, 0, buf.getLength());\n return encoder.encodeToString(raw);\n }", "public static String encode(byte[] in) {\n int fourB64Bytes = 0;\n StringBuffer sb = new StringBuffer();\n int posIn = 0;\n for (posIn = 0; posIn < in.length; posIn++) {\n int oneByte = in[posIn]; // in 0..255, not -128..127 \n if (oneByte < 0) {\n oneByte += 256;\n }\n fourB64Bytes = (fourB64Bytes << 8) + oneByte;\n if (posIn % 3 == 2) {\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 18) & 0x3F]);\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 12) & 0x3F]);\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 6) & 0x3F]);\n sb.append((char)ENCODE_TABLE[fourB64Bytes & 0x3F]);\n fourB64Bytes = 0;\n }\n }\n posIn--;\n switch (posIn % 3) {\n case 0:\n fourB64Bytes = fourB64Bytes << 4; //pad with 0000\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 6) & 0x3F]);\n sb.append((char)ENCODE_TABLE[fourB64Bytes & 0x3F]);\n sb.append((char)PAD);\n sb.append((char)PAD);\n fourB64Bytes = 0;\n break;\n\n case 1:\n fourB64Bytes = fourB64Bytes << 2; //pad with 00\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 12) & 0x3F]);\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 6) & 0x3F]);\n sb.append((char)ENCODE_TABLE[fourB64Bytes & 0x3F]);\n sb.append((char)PAD);\n fourB64Bytes = 0;\n break;\n\n }\n return sb.toString();\n }", "public static String encode(byte[] input)\r\n {\r\n return (input == null ? null : Base64.encode(input, 0, input.length));\r\n }", "@Test\n public void testEncodeDecodeBase64() {\n ///////////////////////////////\n // plaintext=\"Text to convert.\";\n plaintext=\"ABCDEFGHIJKLMNOPQRSTUPVWYZ123456789\";\n /////////////////////////////////\n System.out.println(\"Convert following text: \"+plaintext);\n \n System.out.println(\"::encodeBase64::\");\n \n byte[] plaindata = plaintext.getBytes();\n byte[] tmp = Base64Encoder.encodeBase64(plaindata);\n this.storeEncoding=new String(tmp);\n System.out.println(storeEncoding);\n System.out.println(\"::decodeBase64::\");\n byte[] base64Message = this.storeEncoding.getBytes();\n byte[] expResult = plaindata;\n byte[] result = Base64Encoder.decodeBase64(base64Message);\n String decodedText=new String(result);\n System.out.println(\"Decoded Text: \"+decodedText);\n assertArrayEquals(expResult, result);\n }", "public static String encodeToBase64String(MultipartFile file) throws IOException, SQLException {\n byte[] fileBytes = file.getBytes();\n String base64String = Base64Utils.encodeToString(fileBytes);\n\n return base64String;\n }", "Base64Binary getCarrierAIDC();", "public static String encodeTobase64(Bitmap image){\n if(image != null) {\n Bitmap image2 = image;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n image2.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n String imageEncoded = Base64.encodeToString(b, Base64.DEFAULT);\n\n Log.d(\"Image Log:\", imageEncoded);\n return imageEncoded;\n }\n else{\n return \"\";\n }\n }", "public static String toBase64(byte[] aValue) {\n \n final String m_strBase64Chars =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n \n int byte1;\n int byte2;\n int byte3;\n int iByteLen = aValue.length;\n StringBuffer tt = new StringBuffer();\n \n for (int i = 0; i < iByteLen; i += 3) {\n boolean bByte2 = (i + 1) < iByteLen;\n boolean bByte3 = (i + 2) < iByteLen;\n byte1 = aValue[i] & 0xFF;\n byte2 = (bByte2) ? (aValue[i + 1] & 0xFF) : 0;\n byte3 = (bByte3) ? (aValue[i + 2] & 0xFF) : 0;\n \n tt.append(m_strBase64Chars.charAt(byte1 / 4));\n tt.append(m_strBase64Chars.charAt((byte2 / 16) + ((byte1 & 0x3) * 16)));\n tt.append(((bByte2) ? m_strBase64Chars.charAt((byte3 / 64) + ((byte2 & 0xF) * 4)) : '='));\n tt.append(((bByte3) ? m_strBase64Chars.charAt(byte3 & 0x3F) : '='));\n }\n \n return tt.toString();\n }", "public String emitAsImageBase64() {\n BufferedImage img = emitAsBufferedImage();\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n ImageIO.write(img, \"png\", os);\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n Base64 b64 = new Base64();\n String result = b64.encode(os.toByteArray());\n try {\n os.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }", "public ValidationEntity encodeBase64(ValidationEntity validationEntity) {\n String encodedBytes =\n Base64.getEncoder().encodeToString(validationEntity.getInputMessage().getBytes(StandardCharsets.UTF_8));\n log.debug(\"encodeBase64 completed successfully: {}\", encodedBytes);\n validationEntity.setValid(true);\n validationEntity.setInputMessage(encodedBytes);\n validationEntity.setValidationMessage(\"Encode Successful!!!\");\n return validationEntity;\n }", "public static String bitmapEncodeTobase64(Bitmap image) {\n Bitmap immage = image;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n immage.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n String imageEncoded = Base64.encodeToString(b, Base64.DEFAULT);\n return imageEncoded;\n }", "private byte[] encode(byte[] msg) {\r\n\t\treturn Base64.encode(msg);\r\n\t}", "public static String base64StringToString(String base64Str) {\n if (base64Str == null) return null;\n return new String(Base64.decodeBase64(base64Str));\n }", "public static String encodeToBase64(Bitmap image) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n image.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n return Base64.encodeToString(b, Base64.DEFAULT);\n }", "public static String encode(byte[] input) {\r\n\tint i;\r\n\tint j;\r\n\tint m;\r\n\tint a;\r\n\tint b;\r\n\tint c;\r\n\tStringBuffer output;\r\n\r\n\tif (input.length == 0) {\r\n\t return \"\";\r\n\t}\r\n\r\n\t/*\r\n\t * Compute the length of the output buffer.\r\n\t */\r\n\ti = ((input.length + 2) / 3) << 2;\r\n\toutput = new StringBuffer(i);\r\n\ti = input.length / 3;\r\n\tj = 0;\r\n\r\n\twhile (i > 0) {\r\n\t a = input[j++];\r\n\t b = input[j++];\r\n\t c = input[j++];\r\n\r\n\t m = (a >>> 2) & 63;\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = ((a & 3) << 4) | ((b >>> 4) & 15);\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = ((b & 15) << 2) | ((c >>> 6) & 3);\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = c & 63;\r\n\t output.append(BASE64[m]);\r\n\t i--;\r\n\t}\r\n\t/*\r\n\t * Handle the padding and encoding of groups of less than three input\r\n\t * bytes length.\r\n\t */\r\n\ti = input.length % 3;\r\n\r\n\tswitch (i) {\r\n\tcase 1:\r\n\t a = input[j++];\r\n\t m = (a >>> 2) & 63;\r\n\t output.append(BASE64[m]);\r\n\t m = (a & 3) << 4;\r\n\t output.append(BASE64[m]);\r\n\t output.append(PAD_2);\r\n\t break;\r\n\r\n\tcase 2:\r\n\t a = input[j++];\r\n\t b = input[j++];\r\n\t m = (a >>> 2) & 63;\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = ((a & 3) << 4) | ((b >>> 4) & 15);\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = (b & 15) << 2;\r\n\t output.append(BASE64[m]);\r\n\t output.append(PAD_1);\r\n\t break;\r\n\t}\r\n\treturn output.toString();\r\n }", "private static String normalizeB64String(String s) {\n while(s.length() % 4 != 0)\n s += \"=\";\n return s;\n }", "protected String getEncodedFileContent() throws IOException\n {\n if (fullAttachmentFilename == null)\n {\n return null;\n }\n Path path = Paths.get(fullAttachmentFilename);\n byte[] byteArray = Files.readAllBytes(path);\n Base64 x = new Base64();\n String encodedFileContent = x.encodeAsString(byteArray);\n return encodedFileContent;\n }", "private static byte[] decodeBase64(String data) {\n return Base64.decode(data, BASE64_DFLAGS);\n }", "public static String toBase64( byte[] b ) {\n StringBuffer sb = new StringBuffer();\n for ( int ptr = 0; ptr < b.length; ptr += 3 ) {\n sb.append( base64[ ( b[ ptr ] >> 2 ) & 0x3F ] );\n if ( ptr + 1 < b.length ) {\n sb.append( base64[ ( ( b[ ptr ] << 4 ) & 0x30 ) | ( ( b[ ptr + 1 ] >> 4 ) & 0x0F ) ] );\n if ( ptr + 2 < b.length ) {\n sb.append( base64[ ( ( b[ ptr + 1 ] << 2 ) & 0x3C ) | ( ( b[ ptr + 2 ] >> 6 ) & 0x03 ) ] );\n sb.append( base64[ b[ ptr + 2 ] & 0x3F ] );\n } else {\n sb.append( base64[ ( b[ ptr + 1 ] << 2 ) & 0x3C ] );\n sb.append( pad );\n }\n } else {\n sb.append( base64[ ( ( b[ ptr ] << 4 ) & 0x30 ) ] );\n sb.append( pad );\n sb.append( pad );\n }\n }\n return sb.toString();\n }", "public static String encode(byte[] data) {\n\t\treturn Base64.getEncoder().encodeToString(data);\n\t}", "public javax.activation.DataHandler getBase64Binary() {\n return localBase64Binary;\n }", "default byte[] decodificarBase64(String archivoBase64) {\n\t\treturn Base64.getDecoder().decode(archivoBase64);\n\t}", "public String getEncodedForm()\n {\n return Base64.encodeToString(mForm.gotoRoot().toBytes(), Base64.DEFAULT); \n }", "public static String toBase64String(final byte[] bytes) {\n Objects.requireNonNull(bytes);\n return (DatatypeConverter.printBase64Binary(bytes));\n }", "public CodePointIterator base64Encode(final Base64Alphabet alphabet) {\n return base64Encode(alphabet, true);\n }", "public static String encrypt(String input) {\n\t\tBase64.Encoder encoder = Base64.getMimeEncoder();\n String message = input;\n String key = encoder.encodeToString(message.getBytes());\n return key;\n\t}", "public Base64JavaUtilCodec() {\n this(Base64.getEncoder(), Base64.getMimeDecoder());\n }", "public String getEncodedImage() {\n String base64String = Base64.getEncoder().encodeToString(profilePictureBytes);\n return base64String;\n }", "public final static String decodeBase64(String data) {\n\t\tString rc = null;\n\t\tbyte[] b64 = Base64.decodeBase64(data);\n\t\trc = new String(b64);\n\t\treturn rc;\n\t}", "public String encodeKey() {\n byte[] keyByte = secretKey.getEncoded();\n return Base64.getEncoder().encodeToString(keyByte);\n }", "public OutputStream base64Name() throws IOException {\n \t\treturn null;\n \t}", "public static byte[] fromBase64(String data)\n {\n return Base64.decode(data, Base64.NO_WRAP);\n }", "public static String encode(byte[] data) {\t\t\n\t\tif (data == null || data.length == 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tStringBuilder resultBuffer = new StringBuilder();\n\t\t//mod\n\t\tint m = data.length % 3;\n\t\t//amount of data group with 3 byte\n\t\tint g = (m == 0) ? (data.length / 3) : (data.length / 3 + 1);\n\t\tfinal byte[] _clear_buff = {0, 0, 0};\n\t\tbyte[] dataBuffer = new byte[3];\n\t\tchar[] codeBuffer = new char[4];\n\t\tint offset = 0;\n\t\tfor (int i = 0; i < g; ++i) {\n\t\t\t//clear buffer\n\t\t\tSystem.arraycopy(_clear_buff, 0, dataBuffer, 0, 3);\n\t\t\t//copy data for handling\n\t\t\tint copySize = (m != 0 && i == g - 1) ? m : 3;\n\t\t\tSystem.arraycopy(data, offset, dataBuffer, 0, copySize);\n\t\t\t//concatenate the byte data buffer as an integer\n\t\t\tint tmp = 0x00000000;\n\t\t\tfor (int j = 0, z = 2; j < 3; ++j, --z) {\n\t\t\t\tint tt = ((dataBuffer[j] & 0xff) << (z * 8));\n\t\t\t\ttmp ^= tt;\n\t\t\t}\n\t\t\t//encode current data buffer with base64\n\t\t\tfor (int k = 0; k < 4; ++k) {\n\t\t\t\tint p = (tmp >> (k * 6)) & 0x0000003F;\n\t\t\t\tcodeBuffer[3 - k] = _dict_[p];\n\t\t\t}\n\t\t\t\n\t\t\tif (copySize != 3) {\n\t\t\t\tfor (int e = 0; e < 3 - copySize; ++e) {\n\t\t\t\t\tcodeBuffer[3 - e] = '=';\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tresultBuffer.append(codeBuffer);\n\t\t\toffset += 3;\n\t\t}\n\t\t\n\t\tString encodeText = resultBuffer.toString();\n\t\tresultBuffer.delete(0, resultBuffer.length());\n\t\treturn encodeText;\n\t}", "static byte[] base64decode(String base64)\n {\n // Remove all whitespace.\n base64 = base64.replaceAll(\"\\\\s\", \"\");\n int endTrim = 0;\n if (base64.endsWith(\"==\")) {\n endTrim = 2;\n base64 = base64.substring(0, base64.length() - 2) + \"AA\";\n } else if (base64.endsWith(\"=\"))\n {\n endTrim = 1;\n base64 = base64.substring(0, base64.length() - 1) + \"A\";\n }\n if (base64.length() % 4 != 0) throw new IllegalArgumentException(\"Illegal base64 string, length \" + base64.length());\n int length = (base64.length() / 4) * 3 - endTrim;\n base64 = base64.replace('=', 'A');\n byte[] result = new byte[length];\n int stringLength = base64.length();\n int index = 0;\n for (int i = 0; i < stringLength; i += 4)\n {\n int i0 = BASE64_STRING.indexOf(base64.charAt(i));\n int i1 = BASE64_STRING.indexOf(base64.charAt(i + 1));\n int i2 = BASE64_STRING.indexOf(base64.charAt(i + 2));\n int i3 = BASE64_STRING.indexOf(base64.charAt(i + 3));\n byte b0 = (byte) ((i0 << 2) | (i1 >> 4));\n byte b1 = (byte) ((i1 << 4) | (i2 >> 2));\n byte b2 = (byte) ((i2 << 6) | i3);\n result[index++] = b0;\n if (index < length)\n {\n result[index++] = b1;\n if (index < length)\n {\n result[index++] = b2;\n }\n }\n }\n return result;\n }", "public String getBase64EncodedPNG()\n\t{\n\t\tString base64Png = null;\n\t\tByteArrayOutputStream output = new ByteArrayOutputStream();\n\t\ttry\n\t\t{\n\t\t\tif (getBlackWhiteBitmap().compress(Bitmap.CompressFormat.PNG, 100, output))\n\t\t\t{\n\t\t\t\tbyte[] imgData = output.toByteArray();\n\t\t\t\tbase64Png = Base64.encodeToString(imgData, Base64.DEFAULT);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn base64Png;\n\t}", "private byte[] toBytes(String obj){\n return Base64.getDecoder().decode(obj);\n }", "private String encodeTokenString(String tokenPortion) {\n log.info(\"Entering encodeTokenString\");\n String base64EncodedTokenString = Base64.getEncoder().encodeToString(tokenPortion.getBytes());\n String replacedEncodedTokenString = base64EncodedTokenString.replaceAll(\"={1,2}$\", \"\");\n return encodeURILikeJavascript(replacedEncodedTokenString);\n }", "public String serialize() throws IOException \r\n\t{\r\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n\t\tObjectOutputStream oos = new ObjectOutputStream(baos);\r\n\t\toos.writeObject(this);\r\n\t\toos.close();\r\n\t\treturn new String(Base64Coder.encode(baos.toByteArray()));\r\n\t}", "public abstract byte[] getEncoded();", "public byte[] doEncoding(byte[] bArr) {\r\n return bArr == null ? null : Base64.encodeBase64(bArr);\r\n }", "public String getImageBase64() {\n return this.imageBase64;\n }", "public static String toBase64(BloomFilter<?> source) {\n return toBase64(source.getBitSet().toByteArray());\n }", "public static String getSalt(String str) throws UnsupportedEncodingException{\n\t\treturn new String(Base64.encodeBase64(str.getBytes(\"UTF-8\"))).replaceAll(\"\\r\\n\", \"\").trim();\n\t}", "private String convertintobase64(Bitmap bitmap2) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tbitmap2.compress(Bitmap.CompressFormat.PNG, 100, baos);\n\t\tbyte[] b = baos.toByteArray();\n\t\tString temp = Base64.encodeToString(b, Base64.DEFAULT | Base64.NO_WRAP);\n\t\tSystem.out.println(\"encoded string is:\" + temp);\n\t\treturn temp;\n\t}", "public static boolean isBase64(String string){\n\t\treturn isBase64(string.getBytes());\n\t}", "@SuppressWarnings(\"unused\")\n private static String getKeyString(Key key)\n {\n return Base64.encode(key.getEncoded());\n }", "public static String base64Encode(int value)\n {\n StringBuffer buffer = new StringBuffer(6);\n\n // For now, let's just use the lower 3 bytes. This increases\n // the possibility of collisions, but it allows us to go\n // from a 6 char to 4 char id.\n\n for (int i = 0; i < 4; i++)\n buffer.append(_BASE_64_CHARS[((value >> (6 * i)) & 0x3f)]);\n\n return buffer.toString();\n }", "public boolean isBase64Binary() {\n return false;\n }", "public static String base64DecodeString(String value) throws Exception\n {\n return new String(DatatypeConverter.parseBase64Binary(value), \"UTF-8\");\n }", "public static byte[] encryptBase64(final byte[] input, final PublicKey key) throws DattackSecurityException {\n return Base64.getEncoder().encode(execEncryptionOperation(input, Cipher.ENCRYPT_MODE, key));\n }", "private static String convertToHex(byte[] data) throws IOException {\n //create new instance of string buffer\n StringBuffer stringBuffer = new StringBuffer();\n String hex = \"\";\n\n //encode byte data with base64\n hex = Base64.getEncoder().encodeToString(data);\n stringBuffer.append(hex);\n\n //return string\n return stringBuffer.toString();\n }", "private String base64Decode(String token) {\n\t\t \tBase64 base64 = new Base64();\n\t \tbyte[] decodedBytes = base64.decode(token.getBytes()); \t\n\t \tString decodeString = new String(decodedBytes, Charset.forName(\"UTF-8\"));\t\t\n\t \tint index1 = decodeString.indexOf(\"3du\");\n\t \tint index2 = decodeString.indexOf(\"l0g\");\n\t \tint lengthChar = decodeString.length();\n//\t \tif(lengthChar %4 != 0) {\n//\t \t\treturn \"\";\n//\t \t}\n\t \tif((index1 < 3) & (index2 >=3))\n\t \t{\n\t \t\tlengthChar = lengthChar - 3;\n\t \t}\n\t \tif(lengthChar > 0) {\n\t \t\tdecodeString = decodeString.substring(3, lengthChar);\n\t \t} \t\n\t \treturn decodeString;\n\t\t}", "private static String extractBase64EncodedKey(String pemKey) throws GeneralSecurityException\n {\n Matcher matcher = KEY_PATTERN.matcher(pemKey);\n if (matcher.find())\n {\n return matcher.group(1).replaceAll(\"\\\\s\", \"\");\n }\n else\n {\n throw new GeneralSecurityException(\"Invalid private key format\");\n }\n }", "@Override\r\n\tpublic String encode() {\n\t\treturn null;\r\n\t}", "public static String encode(byte[] input, int offset, int len)\r\n {\r\n return Base64.encode(input, offset, len);\r\n }", "public static String m136430b(String str) throws IOException {\n return new String(Base64.encodeBase64(m136428a(new File(str))));\n }", "public static String byteArrayToAltBase64(byte[] a) {\n return byteArrayToBase64(a, true);\n }", "public static boolean isBase64(String string, String enc) throws UnsupportedEncodingException {\n\t\treturn isBase64(string.getBytes(enc));\n\t}", "public static String uuencode (String str) {\n\tStringBuilder ret = new StringBuilder (str.length () * 4 / 3);\n\tchar ch, ch1, ch2, ch3;\n\tint i;\n\t\n\tfor (i = 0; i+2 < str.length (); i+=3) {\t \n\t ch1 = str.charAt (i);\n\t ch2 = str.charAt (i+1);\n\t ch3 = str.charAt (i+2);\n\t ch = uu_base64[((ch1 >> 2) & 077)];\n\t ret.append (ch);\n\t \n\t ch = uu_base64[(((ch1 << 4) & 060) | ((ch2 >> 4) & 017))];\n\t ret.append (ch);\n\t \n\t ch = uu_base64[(((ch2 << 2) & 074) | ((ch3 >> 6) & 03))];\n\t ret.append (ch);\n\t \n\t ch = uu_base64[(ch3 & 077)];\n\t ret.append (ch);\n\t}\n\t\n\t// are we done yet?\n\tif (i == str.length ()) \n\t return ret.toString ();\n\n\t// no so handle the trailing characters.\n\tch1 = str.charAt (i);\n\tch2 = str.length() > i + 1 ? str.charAt (i+1) : (char)0;\n\t\n\tch = uu_base64[((ch1 >> 2) & 077)];\n\tret.append (ch);\n\t\n\tch = uu_base64[(((ch1 << 4) & 060) | ((ch2 >> 4) & 017))];\n\tret.append (ch);\n\t\n\tif (str.length () > i + 1) {\n\t ch = uu_base64[((ch2 << 2) & 074)];\n\t ret.append (ch);\n\t} else {\n\t ret.append ('=');\n\t}\n\tret.append ('=');\n\treturn ret.toString ();\n }", "public static byte[] base64ToByte(String data) throws IOException {\n BASE64Decoder decoder = new BASE64Decoder();\n return decoder.decodeBuffer(data);\n }", "public boolean hasBase64() {\n return result.hasBase64();\n }", "public String encode( String password );" ]
[ "0.78643405", "0.7850783", "0.7728164", "0.7661992", "0.7646651", "0.7624421", "0.7520891", "0.74144375", "0.73926836", "0.73855656", "0.73309803", "0.72802025", "0.7242699", "0.71995825", "0.7161086", "0.7126461", "0.7119311", "0.70850486", "0.7001787", "0.69559556", "0.69443023", "0.69343776", "0.6852882", "0.6851052", "0.68507534", "0.68114656", "0.6769905", "0.6759671", "0.6729082", "0.67256546", "0.66736746", "0.6619245", "0.6575131", "0.6574276", "0.6567974", "0.6563165", "0.6546325", "0.65417427", "0.65295756", "0.6528064", "0.6510338", "0.6462632", "0.6457529", "0.64502805", "0.64443743", "0.64278394", "0.6415557", "0.6403616", "0.63883466", "0.636949", "0.636224", "0.63511014", "0.63448054", "0.6337535", "0.6330576", "0.6326392", "0.6305761", "0.62959594", "0.62945217", "0.62939674", "0.6293442", "0.62825906", "0.627924", "0.6279099", "0.6248207", "0.6245749", "0.6240386", "0.6239026", "0.6237133", "0.62179655", "0.62107915", "0.62017", "0.61720973", "0.61702836", "0.6135837", "0.6135387", "0.6129173", "0.6128698", "0.61248505", "0.61127394", "0.6105306", "0.60988194", "0.6094556", "0.608273", "0.6075029", "0.60731024", "0.6072545", "0.60677665", "0.603771", "0.6026944", "0.6024727", "0.6021018", "0.60058004", "0.59871215", "0.5987041", "0.5973426", "0.5964563", "0.59510213", "0.59442025", "0.59373903", "0.593308" ]
0.0
-1
Encoded "Burma!" as Base64
@Test public void shouldGiveSingleElementArrayOnNoColonString() { String decodeString = "QnVybWEh"; assertThat("Only one element is present", BasicAuth.decode(decodeString), is(arrayWithSize(1))); assertThat("Input string is contained", BasicAuth.decode(decodeString), is(hasItemInArray("Burma!"))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default String codificarBase64(String contenido) {\n\t\tbyte[] encoded = Base64.getEncoder().encode(contenido.getBytes(StandardCharsets.UTF_8));\n\t\treturn new String(encoded);\n\t}", "private static String descifrarBase64(String arg) {\n Base64.Decoder decoder = Base64.getDecoder();\n byte[] decodedByteArray = decoder.decode(arg);\n\n return new String(decodedByteArray);\n }", "public String base64Encode(String str) throws StoreFactoryException;", "private static String encodeToBase64(byte[] data) {\n return Base64.encodeToString(data, BASE64_EFLAGS);\n }", "private String encodeBase64(String msg) {\n\t\tbyte[] bytesEncoded = Base64.encodeBase64(msg.getBytes());\n\t\t//System.out.println(\"encoded value is \" + new String(bytesEncoded));\n\n\t\treturn new String(bytesEncoded);\n\t}", "private static String encodeBase64(String stringToEncode){\r\n\t\treturn Base64.getEncoder().encodeToString(stringToEncode.getBytes());\t\r\n\t}", "private Base64(){}", "static String convertToBase64(byte[] image){\n return !Objects.isNull(image)\n ? Base64.getEncoder().encodeToString(image)\n : \"\";\n }", "java.lang.String getEncoded();", "public static String byteToBase64(byte[] data){\n BASE64Encoder endecoder = new BASE64Encoder();\n return endecoder.encode(data);\n }", "public CodePointIterator base64Encode() {\n return base64Encode(Base64Alphabet.STANDARD, true);\n }", "public static String toBase64(byte[] data)\n {\n return Base64.encodeToString(data, Base64.NO_WRAP);\n }", "public static String base64Encode(byte[] input) {\n return DatatypeConverter.printBase64Binary(input);\n }", "public static String encB64(byte[] data) {\n return Base64.encodeToString(data,Base64.DEFAULT);\n }", "public static String base64EncodeString(String input) throws Exception\n {\n return base64Encode(input.getBytes(\"UTF-8\"));\n }", "public static String bitmapEncodeTobase64(Bitmap image) {\n Bitmap immage = image;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n immage.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n String imageEncoded = Base64.encodeToString(b, Base64.DEFAULT);\n return imageEncoded;\n }", "public static String encode(byte[] in) {\n int fourB64Bytes = 0;\n StringBuffer sb = new StringBuffer();\n int posIn = 0;\n for (posIn = 0; posIn < in.length; posIn++) {\n int oneByte = in[posIn]; // in 0..255, not -128..127 \n if (oneByte < 0) {\n oneByte += 256;\n }\n fourB64Bytes = (fourB64Bytes << 8) + oneByte;\n if (posIn % 3 == 2) {\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 18) & 0x3F]);\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 12) & 0x3F]);\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 6) & 0x3F]);\n sb.append((char)ENCODE_TABLE[fourB64Bytes & 0x3F]);\n fourB64Bytes = 0;\n }\n }\n posIn--;\n switch (posIn % 3) {\n case 0:\n fourB64Bytes = fourB64Bytes << 4; //pad with 0000\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 6) & 0x3F]);\n sb.append((char)ENCODE_TABLE[fourB64Bytes & 0x3F]);\n sb.append((char)PAD);\n sb.append((char)PAD);\n fourB64Bytes = 0;\n break;\n\n case 1:\n fourB64Bytes = fourB64Bytes << 2; //pad with 00\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 12) & 0x3F]);\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 6) & 0x3F]);\n sb.append((char)ENCODE_TABLE[fourB64Bytes & 0x3F]);\n sb.append((char)PAD);\n fourB64Bytes = 0;\n break;\n\n }\n return sb.toString();\n }", "private String byteToBase64(final byte[] bytes) {\n String str = DatatypeConverter.printBase64Binary(bytes);\n return str;\n }", "public static String encodeTobase64(Bitmap image){\n if(image != null) {\n Bitmap image2 = image;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n image2.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n String imageEncoded = Base64.encodeToString(b, Base64.DEFAULT);\n\n Log.d(\"Image Log:\", imageEncoded);\n return imageEncoded;\n }\n else{\n return \"\";\n }\n }", "public static String toBase64( byte[] b ) {\n StringBuffer sb = new StringBuffer();\n for ( int ptr = 0; ptr < b.length; ptr += 3 ) {\n sb.append( base64[ ( b[ ptr ] >> 2 ) & 0x3F ] );\n if ( ptr + 1 < b.length ) {\n sb.append( base64[ ( ( b[ ptr ] << 4 ) & 0x30 ) | ( ( b[ ptr + 1 ] >> 4 ) & 0x0F ) ] );\n if ( ptr + 2 < b.length ) {\n sb.append( base64[ ( ( b[ ptr + 1 ] << 2 ) & 0x3C ) | ( ( b[ ptr + 2 ] >> 6 ) & 0x03 ) ] );\n sb.append( base64[ b[ ptr + 2 ] & 0x3F ] );\n } else {\n sb.append( base64[ ( b[ ptr + 1 ] << 2 ) & 0x3C ] );\n sb.append( pad );\n }\n } else {\n sb.append( base64[ ( ( b[ ptr ] << 4 ) & 0x30 ) ] );\n sb.append( pad );\n sb.append( pad );\n }\n }\n return sb.toString();\n }", "Base64Binary getCarrierAIDC();", "public static String encodeToBase64(Bitmap image) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n image.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n return Base64.encodeToString(b, Base64.DEFAULT);\n }", "static String base64encode(byte[] bytes)\n {\n StringBuilder builder = new StringBuilder(((bytes.length + 2)/ 3) * 4);\n for (int i = 0; i < bytes.length; i += 3)\n {\n byte b0 = bytes[i];\n byte b1 = i < bytes.length - 1 ? bytes[i + 1] : 0;\n byte b2 = i < bytes.length - 2 ? bytes[i + 2] : 0;\n builder.append(BASE64_CHARS[(b0 & 0xFF) >> 2]);\n builder.append(BASE64_CHARS[((b0 & 0x03) << 4) | ((b1 & 0xF0) >> 4)]);\n builder.append(i < bytes.length - 1 ? BASE64_CHARS[((b1 & 0x0F) << 2) | ((b2 & 0xC0) >> 6)] : \"=\");\n builder.append(i < bytes.length - 2 ? BASE64_CHARS[b2 & 0x3F] : \"=\");\n }\n return builder.toString();\n }", "public static String base64Encode(final byte[] key) {\n return Base64.encode(key);\n }", "public static String encode(String arg) {\n String encoded = Base64.getEncoder().encodeToString(arg.getBytes());\n\n return encoded;\n }", "public static String toBase64(BloomFilter<?> source) {\n return toBase64(source.getBitSet().toByteArray());\n }", "public static String base64Encode(byte[] bytes)\n {\n return DatatypeConverter.printBase64Binary(bytes);\n }", "public static String base64Encode(String str) {\n sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();\n byte[] bytes = str.getBytes();\n return encoder.encode(bytes);\n\n }", "@Test\n public void testEncodeDecodeBase64() {\n ///////////////////////////////\n // plaintext=\"Text to convert.\";\n plaintext=\"ABCDEFGHIJKLMNOPQRSTUPVWYZ123456789\";\n /////////////////////////////////\n System.out.println(\"Convert following text: \"+plaintext);\n \n System.out.println(\"::encodeBase64::\");\n \n byte[] plaindata = plaintext.getBytes();\n byte[] tmp = Base64Encoder.encodeBase64(plaindata);\n this.storeEncoding=new String(tmp);\n System.out.println(storeEncoding);\n System.out.println(\"::decodeBase64::\");\n byte[] base64Message = this.storeEncoding.getBytes();\n byte[] expResult = plaindata;\n byte[] result = Base64Encoder.decodeBase64(base64Message);\n String decodedText=new String(result);\n System.out.println(\"Decoded Text: \"+decodedText);\n assertArrayEquals(expResult, result);\n }", "public String base64Decode(String str) throws StoreFactoryException;", "private Base64(){\n\t}", "public static String encode(byte[] input) {\r\n\tint i;\r\n\tint j;\r\n\tint m;\r\n\tint a;\r\n\tint b;\r\n\tint c;\r\n\tStringBuffer output;\r\n\r\n\tif (input.length == 0) {\r\n\t return \"\";\r\n\t}\r\n\r\n\t/*\r\n\t * Compute the length of the output buffer.\r\n\t */\r\n\ti = ((input.length + 2) / 3) << 2;\r\n\toutput = new StringBuffer(i);\r\n\ti = input.length / 3;\r\n\tj = 0;\r\n\r\n\twhile (i > 0) {\r\n\t a = input[j++];\r\n\t b = input[j++];\r\n\t c = input[j++];\r\n\r\n\t m = (a >>> 2) & 63;\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = ((a & 3) << 4) | ((b >>> 4) & 15);\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = ((b & 15) << 2) | ((c >>> 6) & 3);\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = c & 63;\r\n\t output.append(BASE64[m]);\r\n\t i--;\r\n\t}\r\n\t/*\r\n\t * Handle the padding and encoding of groups of less than three input\r\n\t * bytes length.\r\n\t */\r\n\ti = input.length % 3;\r\n\r\n\tswitch (i) {\r\n\tcase 1:\r\n\t a = input[j++];\r\n\t m = (a >>> 2) & 63;\r\n\t output.append(BASE64[m]);\r\n\t m = (a & 3) << 4;\r\n\t output.append(BASE64[m]);\r\n\t output.append(PAD_2);\r\n\t break;\r\n\r\n\tcase 2:\r\n\t a = input[j++];\r\n\t b = input[j++];\r\n\t m = (a >>> 2) & 63;\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = ((a & 3) << 4) | ((b >>> 4) & 15);\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = (b & 15) << 2;\r\n\t output.append(BASE64[m]);\r\n\t output.append(PAD_1);\r\n\t break;\r\n\t}\r\n\treturn output.toString();\r\n }", "private static String encodeWritable(Writable obj) throws IOException {\n DataOutputBuffer buf = new DataOutputBuffer();\n obj.write(buf);\n Base64 encoder = new Base64(0, null, true);\n byte[] raw = new byte[buf.getLength()];\n System.arraycopy(buf.getData(), 0, raw, 0, buf.getLength());\n return encoder.encodeToString(raw);\n }", "private byte[] toBytes(String obj){\n return Base64.getDecoder().decode(obj);\n }", "public static String toBase64(byte[] aValue) {\n \n final String m_strBase64Chars =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n \n int byte1;\n int byte2;\n int byte3;\n int iByteLen = aValue.length;\n StringBuffer tt = new StringBuffer();\n \n for (int i = 0; i < iByteLen; i += 3) {\n boolean bByte2 = (i + 1) < iByteLen;\n boolean bByte3 = (i + 2) < iByteLen;\n byte1 = aValue[i] & 0xFF;\n byte2 = (bByte2) ? (aValue[i + 1] & 0xFF) : 0;\n byte3 = (bByte3) ? (aValue[i + 2] & 0xFF) : 0;\n \n tt.append(m_strBase64Chars.charAt(byte1 / 4));\n tt.append(m_strBase64Chars.charAt((byte2 / 16) + ((byte1 & 0x3) * 16)));\n tt.append(((bByte2) ? m_strBase64Chars.charAt((byte3 / 64) + ((byte2 & 0xF) * 4)) : '='));\n tt.append(((bByte3) ? m_strBase64Chars.charAt(byte3 & 0x3F) : '='));\n }\n \n return tt.toString();\n }", "public String emitAsImageBase64() {\n BufferedImage img = emitAsBufferedImage();\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n ImageIO.write(img, \"png\", os);\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n Base64 b64 = new Base64();\n String result = b64.encode(os.toByteArray());\n try {\n os.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }", "default byte[] decodificarBase64(String archivoBase64) {\n\t\treturn Base64.getDecoder().decode(archivoBase64);\n\t}", "private String encode(String str) {\n verifyNotNull(str, ERROR_MESSAGE);\n byte[] bytes = str.getBytes();\n return Base64.getEncoder()\n .withoutPadding()\n .encodeToString(bytes);\n }", "public static String encodeBase64(String string) {\n\t\tif (string == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn Base64.getEncoder().encodeToString(string.getBytes(UTF_8));\n\t}", "private byte[] encode(byte[] msg) {\r\n\t\treturn Base64.encode(msg);\r\n\t}", "public static String encode(byte[] binaryData) {\n if (CommonUtil.isNull(binaryData)) {\n return null;\n }\n\n int lengthDataBits = binaryData.length * EIGHTBIT;\n if (lengthDataBits == 0) {\n return \"\";\n }\n\n int fewerThan24bits = lengthDataBits % TWENTYFOURBITGROUP;\n int numberTriplets = lengthDataBits / TWENTYFOURBITGROUP;\n int numberQuartet = fewerThan24bits != 0 ? numberTriplets + 1 : numberTriplets;\n char[] encodedData = new char[numberQuartet * 4];\n\n byte k1 = 0;\n byte l1 = 0;\n byte b1 = 0;\n byte b2 = 0;\n byte b3 = 0;\n\n int encodedIndex = 0;\n int dataIndex = 0;\n byte val1 = 0;\n byte val2 = 0;\n byte val3 = 0;\n for (int i = 0; i < numberTriplets; i++) {\n b1 = binaryData[dataIndex++];\n b2 = binaryData[dataIndex++];\n b3 = binaryData[dataIndex++];\n\n l1 = (byte) (b2 & 0x0f);\n k1 = (byte) (b1 & 0x03);\n\n val1 = ((b1 & SIGN) == 0) ? (byte) (b1 >> 2) : (byte) ((b1) >> 2 ^ 0xc0);\n val2 = ((b2 & SIGN) == 0) ? (byte) (b2 >> 4) : (byte) ((b2) >> 4 ^ 0xf0);\n val3 = ((b3 & SIGN) == 0) ? (byte) (b3 >> 6) : (byte) ((b3) >> 6 ^ 0xfc);\n\n encodedData[encodedIndex++] = LOOK_UP_BASE64_ALPHABET[val1];\n encodedData[encodedIndex++] = LOOK_UP_BASE64_ALPHABET[val2 | (k1 << 4)];\n encodedData[encodedIndex++] = LOOK_UP_BASE64_ALPHABET[(l1 << 2) | val3];\n encodedData[encodedIndex++] = LOOK_UP_BASE64_ALPHABET[b3 & 0x3f];\n }\n\n // form integral number of 6-bit groups\n assembleInteger(binaryData, fewerThan24bits, encodedData, encodedIndex, dataIndex);\n\n return new String(encodedData);\n }", "static byte[] base64decode(String base64)\n {\n // Remove all whitespace.\n base64 = base64.replaceAll(\"\\\\s\", \"\");\n int endTrim = 0;\n if (base64.endsWith(\"==\")) {\n endTrim = 2;\n base64 = base64.substring(0, base64.length() - 2) + \"AA\";\n } else if (base64.endsWith(\"=\"))\n {\n endTrim = 1;\n base64 = base64.substring(0, base64.length() - 1) + \"A\";\n }\n if (base64.length() % 4 != 0) throw new IllegalArgumentException(\"Illegal base64 string, length \" + base64.length());\n int length = (base64.length() / 4) * 3 - endTrim;\n base64 = base64.replace('=', 'A');\n byte[] result = new byte[length];\n int stringLength = base64.length();\n int index = 0;\n for (int i = 0; i < stringLength; i += 4)\n {\n int i0 = BASE64_STRING.indexOf(base64.charAt(i));\n int i1 = BASE64_STRING.indexOf(base64.charAt(i + 1));\n int i2 = BASE64_STRING.indexOf(base64.charAt(i + 2));\n int i3 = BASE64_STRING.indexOf(base64.charAt(i + 3));\n byte b0 = (byte) ((i0 << 2) | (i1 >> 4));\n byte b1 = (byte) ((i1 << 4) | (i2 >> 2));\n byte b2 = (byte) ((i2 << 6) | i3);\n result[index++] = b0;\n if (index < length)\n {\n result[index++] = b1;\n if (index < length)\n {\n result[index++] = b2;\n }\n }\n }\n return result;\n }", "public String getBase64EncodedPNG()\n\t{\n\t\tString base64Png = null;\n\t\tByteArrayOutputStream output = new ByteArrayOutputStream();\n\t\ttry\n\t\t{\n\t\t\tif (getBlackWhiteBitmap().compress(Bitmap.CompressFormat.PNG, 100, output))\n\t\t\t{\n\t\t\t\tbyte[] imgData = output.toByteArray();\n\t\t\t\tbase64Png = Base64.encodeToString(imgData, Base64.DEFAULT);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn base64Png;\n\t}", "public String toUrlSafe() {\n// try {\n //todo: key encoder\n return Base64.getEncoder().encodeToString(new Gson().toJson(this).getBytes());\n// return URLEncoder.encode(\"\", UTF_8.name());\n// return URLEncoder.encode(TextFormat.printToString(toPb()), UTF_8.name());\n// } catch (UnsupportedEncodingException e) {\n// throw new IllegalStateException(\"Unexpected encoding exception\", e);\n// }\n }", "private String encodeBase64(String ldapPwd){\n try {\n return CryptoUtils.object2String(ldapPwd);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "private static String normalizeB64String(String s) {\n while(s.length() % 4 != 0)\n s += \"=\";\n return s;\n }", "private String base64Encode(String xmlAsString, String xmlEncoding) throws UnsupportedEncodingException {\r\n String xmlencodingDeclaration = \"<?xml version=\\\"1.0\\\" encoding=\\\"\" + xmlEncoding + \"\\\"?>\";\r\n byte[] xmlAsBytes = (xmlencodingDeclaration + xmlAsString).getBytes(xmlEncoding);\r\n\r\n byte[] xmlAsBase64 = Base64.encodeBase64(xmlAsBytes);\r\n\r\n // base64 is pure ascii\r\n String xmlAsBase64String = new String(xmlAsBase64, \"ascii\");\r\n\r\n return xmlAsBase64String;\r\n }", "private static byte[] decodeBase64(String data) {\n return Base64.decode(data, BASE64_DFLAGS);\n }", "public static String encode(byte[] data) {\t\t\n\t\tif (data == null || data.length == 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tStringBuilder resultBuffer = new StringBuilder();\n\t\t//mod\n\t\tint m = data.length % 3;\n\t\t//amount of data group with 3 byte\n\t\tint g = (m == 0) ? (data.length / 3) : (data.length / 3 + 1);\n\t\tfinal byte[] _clear_buff = {0, 0, 0};\n\t\tbyte[] dataBuffer = new byte[3];\n\t\tchar[] codeBuffer = new char[4];\n\t\tint offset = 0;\n\t\tfor (int i = 0; i < g; ++i) {\n\t\t\t//clear buffer\n\t\t\tSystem.arraycopy(_clear_buff, 0, dataBuffer, 0, 3);\n\t\t\t//copy data for handling\n\t\t\tint copySize = (m != 0 && i == g - 1) ? m : 3;\n\t\t\tSystem.arraycopy(data, offset, dataBuffer, 0, copySize);\n\t\t\t//concatenate the byte data buffer as an integer\n\t\t\tint tmp = 0x00000000;\n\t\t\tfor (int j = 0, z = 2; j < 3; ++j, --z) {\n\t\t\t\tint tt = ((dataBuffer[j] & 0xff) << (z * 8));\n\t\t\t\ttmp ^= tt;\n\t\t\t}\n\t\t\t//encode current data buffer with base64\n\t\t\tfor (int k = 0; k < 4; ++k) {\n\t\t\t\tint p = (tmp >> (k * 6)) & 0x0000003F;\n\t\t\t\tcodeBuffer[3 - k] = _dict_[p];\n\t\t\t}\n\t\t\t\n\t\t\tif (copySize != 3) {\n\t\t\t\tfor (int e = 0; e < 3 - copySize; ++e) {\n\t\t\t\t\tcodeBuffer[3 - e] = '=';\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tresultBuffer.append(codeBuffer);\n\t\t\toffset += 3;\n\t\t}\n\t\t\n\t\tString encodeText = resultBuffer.toString();\n\t\tresultBuffer.delete(0, resultBuffer.length());\n\t\treturn encodeText;\n\t}", "public static String bitMapToBase64String(Bitmap bitmap){\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, byteStream);\n byte[] byteArray = byteStream.toByteArray();\n String baseString = Base64.encodeToString(byteArray,Base64.DEFAULT);\n return baseString;\n }", "public abstract byte[] getEncoded();", "public static String byte2Base64(byte[] bytes) {\n BASE64Encoder encoder = new BASE64Encoder();\n return encoder.encode(bytes);\n }", "public static byte[] base64ToByte(String data) throws IOException {\n BASE64Decoder decoder = new BASE64Decoder();\n return decoder.decodeBuffer(data);\n }", "public static String byteArrayToAltBase64(byte[] a) {\n return byteArrayToBase64(a, true);\n }", "public static String encodeToBase64(Bitmap image, Bitmap.CompressFormat compressFormat, int quality)\r\n {\r\n ByteArrayOutputStream byteArrayOS = new ByteArrayOutputStream();\r\n image.compress(compressFormat, quality, byteArrayOS);\r\n return Base64.encodeToString(byteArrayOS.toByteArray(), Base64.DEFAULT);\r\n }", "public static byte[] fromBase64(String data)\n {\n return Base64.decode(data, Base64.NO_WRAP);\n }", "public static String encodeToBase64(Bitmap image, Bitmap.CompressFormat compressFormat, int quality)\n {\n ByteArrayOutputStream byteArrayOS = new ByteArrayOutputStream();\n image.compress(compressFormat, quality, byteArrayOS);\n return Base64.encodeToString(byteArrayOS.toByteArray(), Base64.DEFAULT);\n }", "private String convertintobase64(Bitmap bitmap2) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tbitmap2.compress(Bitmap.CompressFormat.PNG, 100, baos);\n\t\tbyte[] b = baos.toByteArray();\n\t\tString temp = Base64.encodeToString(b, Base64.DEFAULT | Base64.NO_WRAP);\n\t\tSystem.out.println(\"encoded string is:\" + temp);\n\t\treturn temp;\n\t}", "String encrypt(String input) {\n\t\treturn BaseEncoding.base64().encode(input.getBytes());\n\t}", "public static String encodePassword( String object )\n\t{\n\t\tBASE64Encoder encoder = new BASE64Encoder();\n\t\tif ( object != null ) {\n\t\t\ttry {\n\t\t\t\tString encodedPassword = encoder.encode(object.getBytes(\"UTF-8\"));\n\t\t\t\tLOGGER.info(\"encode '\" + object + \"' password as base64 -> '\" + encodedPassword + \"'\");\n\t\t\t\treturn encodedPassword;\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\tLOGGER.severe(\"UTF-8 not supported\");\n\t\t\t}\n\t\t}\n\n\n\t\treturn \"\";\n\t}", "public static String returnEncoded(String text) {\n if (text == null) {\n return null;\n }\n return Base64.encodeToString(text.getBytes(), Base64.NO_WRAP);\n }", "private String convertUploadedFileToBase64(MultipartFile file) throws IOException {\n return Base64.getEncoder().encodeToString(file.getBytes());\n }", "private static String convertToHex(byte[] data) throws IOException {\n //create new instance of string buffer\n StringBuffer stringBuffer = new StringBuffer();\n String hex = \"\";\n\n //encode byte data with base64\n hex = Base64.getEncoder().encodeToString(data);\n stringBuffer.append(hex);\n\n //return string\n return stringBuffer.toString();\n }", "public static String encodeToBase64(Bitmap bitmap, Bitmap.CompressFormat compressFormat, int quality) {\r\n ByteArrayOutputStream byteArrayOS = new ByteArrayOutputStream();\r\n bitmap.compress(compressFormat, quality, byteArrayOS);\r\n return Base64.encodeToString(byteArrayOS.toByteArray(), Base64.NO_WRAP);\r\n }", "public static String uuencode (String str) {\n\tStringBuilder ret = new StringBuilder (str.length () * 4 / 3);\n\tchar ch, ch1, ch2, ch3;\n\tint i;\n\t\n\tfor (i = 0; i+2 < str.length (); i+=3) {\t \n\t ch1 = str.charAt (i);\n\t ch2 = str.charAt (i+1);\n\t ch3 = str.charAt (i+2);\n\t ch = uu_base64[((ch1 >> 2) & 077)];\n\t ret.append (ch);\n\t \n\t ch = uu_base64[(((ch1 << 4) & 060) | ((ch2 >> 4) & 017))];\n\t ret.append (ch);\n\t \n\t ch = uu_base64[(((ch2 << 2) & 074) | ((ch3 >> 6) & 03))];\n\t ret.append (ch);\n\t \n\t ch = uu_base64[(ch3 & 077)];\n\t ret.append (ch);\n\t}\n\t\n\t// are we done yet?\n\tif (i == str.length ()) \n\t return ret.toString ();\n\n\t// no so handle the trailing characters.\n\tch1 = str.charAt (i);\n\tch2 = str.length() > i + 1 ? str.charAt (i+1) : (char)0;\n\t\n\tch = uu_base64[((ch1 >> 2) & 077)];\n\tret.append (ch);\n\t\n\tch = uu_base64[(((ch1 << 4) & 060) | ((ch2 >> 4) & 017))];\n\tret.append (ch);\n\t\n\tif (str.length () > i + 1) {\n\t ch = uu_base64[((ch2 << 2) & 074)];\n\t ret.append (ch);\n\t} else {\n\t ret.append ('=');\n\t}\n\tret.append ('=');\n\treturn ret.toString ();\n }", "public static byte[] base642Byte(String base64Key) throws IOException {\n BASE64Decoder decoder = new BASE64Decoder();\n return decoder.decodeBuffer(base64Key);\n }", "public CodePointIterator base64Encode(final Base64Alphabet alphabet) {\n return base64Encode(alphabet, true);\n }", "public static String m136430b(String str) throws IOException {\n return new String(Base64.encodeBase64(m136428a(new File(str))));\n }", "public static String encodeString(String str) throws IOException {\n BASE64Encoder encoder = new BASE64Encoder();\n String encodedStr = encoder.encodeBuffer(str.getBytes());\n \n return (encodedStr.trim());\n }", "static byte[] base64ToByteArray(String s) {\r\n byte[] alphaToInt = base64ToInt;\r\n int sLen = s.length();\r\n int numGroups = sLen/4;\r\n if (4*numGroups != sLen)\r\n throw new IllegalArgumentException(\r\n \"String length must be a multiple of four.\");\r\n int missingBytesInLastGroup = 0;\r\n int numFullGroups = numGroups;\r\n if (sLen != 0) {\r\n if (s.charAt(sLen-1) == '=') {\r\n missingBytesInLastGroup++;\r\n numFullGroups--;\r\n }\r\n if (s.charAt(sLen-2) == '=')\r\n missingBytesInLastGroup++;\r\n }\r\n byte[] result = new byte[3*numGroups - missingBytesInLastGroup];\r\n\r\n // Translate all full groups from base64 to byte array elements\r\n int inCursor = 0, outCursor = 0;\r\n for (int i=0; i<numFullGroups; i++) {\r\n int ch0 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch1 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch2 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch3 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n result[outCursor++] = (byte) ((ch0 << 2) | (ch1 >> 4));\r\n result[outCursor++] = (byte) ((ch1 << 4) | (ch2 >> 2));\r\n result[outCursor++] = (byte) ((ch2 << 6) | ch3);\r\n }\r\n\r\n // Translate partial group, if present\r\n if (missingBytesInLastGroup != 0) {\r\n int ch0 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch1 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n result[outCursor++] = (byte) ((ch0 << 2) | (ch1 >> 4));\r\n\r\n if (missingBytesInLastGroup == 1) {\r\n int ch2 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n result[outCursor++] = (byte) ((ch1 << 4) | (ch2 >> 2));\r\n }\r\n }\r\n // assert inCursor == s.length()-missingBytesInLastGroup;\r\n // assert outCursor == result.length;\r\n return result;\r\n }", "public static String encode(byte[] data) {\n\t\treturn Base64.getEncoder().encodeToString(data);\n\t}", "public static String create()\n\t{\n\t\tBASE64Encoder\tencoder = new BASE64Encoder();\n\n\t\treturn encoder.encode(createBytes());\n\t}", "private String encodeTokenString(String tokenPortion) {\n log.info(\"Entering encodeTokenString\");\n String base64EncodedTokenString = Base64.getEncoder().encodeToString(tokenPortion.getBytes());\n String replacedEncodedTokenString = base64EncodedTokenString.replaceAll(\"={1,2}$\", \"\");\n return encodeURILikeJavascript(replacedEncodedTokenString);\n }", "public static String getStringBase64Bitmap(Bitmap bitmap){\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, bos);\n byte[] bitmapBytes = bos.toByteArray();\n String encodedImage = Base64.encodeToString(bitmapBytes, Base64.DEFAULT);\n Log.i(\"getStringBase64Bitmap\",encodedImage);\n return encodedImage;\n }", "private Base64() {\r\n }", "public String getEncodedForm()\n {\n return Base64.encodeToString(mForm.gotoRoot().toBytes(), Base64.DEFAULT); \n }", "public static String encodeToBase64String(MultipartFile file) throws IOException, SQLException {\n byte[] fileBytes = file.getBytes();\n String base64String = Base64Utils.encodeToString(fileBytes);\n\n return base64String;\n }", "public javax.activation.DataHandler getBase64Binary() {\n return localBase64Binary;\n }", "public static byte[] decode(String encoded) {\n \n if (encoded == null)\n return null;\n \n char[] base64Data = encoded.toCharArray();\n // remove white spaces\n int len = removeWhiteSpace(base64Data);\n \n if (len%FOURBYTE != 0) {\n return null;//should be divisible by four\n }\n \n int numberQuadruple = (len/FOURBYTE );\n \n if (numberQuadruple == 0)\n return new byte[0];\n \n byte decodedData[] = null;\n byte b1=0,b2=0,b3=0, b4=0, marker0=0, marker1=0;\n char d1=0,d2=0,d3=0,d4=0;\n \n int i = 0;\n int encodedIndex = 0;\n int dataIndex = 0;\n decodedData = new byte[ (numberQuadruple)*3];\n \n for (; i<numberQuadruple-1; i++) {\n \n if (!isData( (d1 = base64Data[dataIndex++]) )||\n !isData( (d2 = base64Data[dataIndex++]) )||\n !isData( (d3 = base64Data[dataIndex++]) )||\n !isData( (d4 = base64Data[dataIndex++]) ))\n return null;//if found \"no data\" just return null\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n b3 = base64Alphabet[d3];\n b4 = base64Alphabet[d4];\n \n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n }\n \n if (!isData( (d1 = base64Data[dataIndex++]) ) ||\n !isData( (d2 = base64Data[dataIndex++]) )) {\n return null;//if found \"no data\" just return null\n }\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n \n d3 = base64Data[dataIndex++];\n d4 = base64Data[dataIndex++];\n if (!isData( (d3 ) ) ||\n !isData( (d4 ) )) {//Check if they are PAD characters\n if (isPad( d3 ) && isPad( d4)) { //Two PAD e.g. 3c[Pad][Pad]\n if ((b2 & 0xf) != 0)//last 4 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 1 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex] = (byte)( b1 <<2 | b2>>4 ) ;\n return tmp;\n } else if (!isPad( d3) && isPad(d4)) { //One PAD e.g. 3cQ[Pad]\n b3 = base64Alphabet[ d3 ];\n if ((b3 & 0x3 ) != 0)//last 2 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 2 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex++] = (byte)( b1 <<2 | b2>>4 );\n tmp[encodedIndex] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n return tmp;\n } else {\n return null;//an error like \"3c[Pad]r\", \"3cdX\", \"3cXd\", \"3cXX\" where X is non data\n }\n } else { //No PAD e.g 3cQl\n b3 = base64Alphabet[ d3 ];\n b4 = base64Alphabet[ d4 ];\n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n \n }\n \n return decodedData;\n }", "private String base64Decode(String token) {\n\t\t \tBase64 base64 = new Base64();\n\t \tbyte[] decodedBytes = base64.decode(token.getBytes()); \t\n\t \tString decodeString = new String(decodedBytes, Charset.forName(\"UTF-8\"));\t\t\n\t \tint index1 = decodeString.indexOf(\"3du\");\n\t \tint index2 = decodeString.indexOf(\"l0g\");\n\t \tint lengthChar = decodeString.length();\n//\t \tif(lengthChar %4 != 0) {\n//\t \t\treturn \"\";\n//\t \t}\n\t \tif((index1 < 3) & (index2 >=3))\n\t \t{\n\t \t\tlengthChar = lengthChar - 3;\n\t \t}\n\t \tif(lengthChar > 0) {\n\t \t\tdecodeString = decodeString.substring(3, lengthChar);\n\t \t} \t\n\t \treturn decodeString;\n\t\t}", "public String getEncodedImage() {\n String base64String = Base64.getEncoder().encodeToString(profilePictureBytes);\n return base64String;\n }", "private String compressString(String input) throws IOException {\n\t\tByteArrayOutputStream output = new ByteArrayOutputStream();\n\t\tGZIPOutputStream gzip = new GZIPOutputStream(output);\n\n\t\tgzip.write(input.getBytes(\"UTF-8\"));\n\t\tgzip.close();\n\t\toutput.close();\n\n\t\treturn Base64.encodeBase64String(output.toByteArray());\n\t}", "public static String encode(byte[] input)\r\n {\r\n return (input == null ? null : Base64.encode(input, 0, input.length));\r\n }", "public String encodeKey() {\n byte[] keyByte = secretKey.getEncoded();\n return Base64.getEncoder().encodeToString(keyByte);\n }", "public static String convertHexToBase64(String hex){\n\t\tMap<String, String> map = new HashMap<>();\n\t\tString Base64CharSet1 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n\t\tfor(int i=0; i<Base64CharSet1.length(); i++){\n\t\t\tmap.put( Integer.toString(i), Base64CharSet1.charAt(i)+\"\");\n\t\t}\n\t\t\n\t\t// Converting Hex to Binary\n\t\tStringBuilder binary = new StringBuilder();\n\t\tfor (int i=0; i< hex.length(); i++){\n\t\t\tint dec = Integer.parseInt(hex.charAt(i) + \"\" , 16);\n\t\t\tStringBuilder bin = new StringBuilder(Integer.toBinaryString(dec));\n\t\t\twhile(bin.length() < 4){\n\t\t\t\tbin.insert(0, \"0\");\n\t\t\t}\n\t\t\tbinary.append(bin);\n\t\t}\n\n\t\t// Converting Binary to Base64 using the Lookup Table\n\t\tStringBuilder b64 = new StringBuilder();\n\t\tfor (int i=0; i<binary.length(); i=i+6){\n\t\t\tString temp = binary.substring(i, i+6);\n\t\t\tint dec = Integer.parseInt(temp, 2);\n\t\t\tb64.append((String) map.get(Integer.toString(dec)));\n\t\t}\n\t\t\n\t\treturn b64.toString();\n\t}", "public String encode() {\n return encodeToBase64(encKey.getEncoded()) + \":\" + encodeToBase64(macKey.getEncoded());\n }", "public abstract byte[] encode () throws IOException;", "public static String stringToBase64String(String text) {\n if (text == null) return null;\n return new String(Base64.encodeBase64(text.getBytes()));\n }", "public byte[] doEncoding(byte[] bArr) {\r\n return bArr == null ? null : Base64.encodeBase64(bArr);\r\n }", "public static String encrypt(String input) {\n\t\tBase64.Encoder encoder = Base64.getMimeEncoder();\n String message = input;\n String key = encoder.encodeToString(message.getBytes());\n return key;\n\t}", "private static byte[] m5293aA(String str) {\n try {\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(C1248f.getKey());\n return Arrays.copyOf(sb.toString().getBytes(AudienceNetworkActivity.WEBVIEW_ENCODING), 16);\n } catch (Throwable unused) {\n return null;\n }\n }", "public static byte[] altBase64ToByteArray(String s) {\n return base64ToByteArray(s, true);\n }", "public static void main(String[] args) throws UnsupportedEncodingException, IOException {\n BASE64Decoder baseDecoder = new BASE64Decoder();\n byte [] b = baseDecoder.decodeBuffer(\"MTTvvJoxOeadpeS4gOadoeivhOiuug==\");\n System.out.println(new String(b,\"UTF-8\"));\n }", "public static String base64Encode(int value)\n {\n StringBuffer buffer = new StringBuffer(6);\n\n // For now, let's just use the lower 3 bytes. This increases\n // the possibility of collisions, but it allows us to go\n // from a 6 char to 4 char id.\n\n for (int i = 0; i < 4; i++)\n buffer.append(_BASE_64_CHARS[((value >> (6 * i)) & 0x3f)]);\n\n return buffer.toString();\n }", "private String encodeBytesFromBuffer(int howMany) {\n String result;\n\n if (innerStreamHasMoreData) {\n howMany = howMany - howMany % 3;\n }\n\n if (howMany == 0) {\n return \"\";\n }\n\n byte[] encodeBuffer = new byte[howMany];\n System.arraycopy(buffer, 0, encodeBuffer, 0, howMany);\n result = Base64.encodeToString(encodeBuffer);\n\n bytesInBuffer -= howMany;\n if (bytesInBuffer != 0) {\n System.arraycopy(buffer, howMany, buffer, 0, bytesInBuffer);\n }\n\n return result;\n }", "public static String create()\n\t{\n\t\treturn new String(B64Code.encode(createBytes()));\n\t}", "public Base64JavaUtilCodec() {\n this(Base64.getEncoder(), Base64.getMimeDecoder());\n }", "public boolean isBase64Binary() {\n return false;\n }", "private byte[] randomByteArray() throws UnsupportedEncodingException {\n int len = sr.nextInt(maxlen);\n @StringBuilder@ sb = new @StringBuilder@(len);\n\n for (int i = 0; i < len; i++)\n sb.append((char) sr.nextInt(128));\n return sb.toString().getBytes(\"UTF-8\");\n }", "public ValidationEntity encodeBase64(ValidationEntity validationEntity) {\n String encodedBytes =\n Base64.getEncoder().encodeToString(validationEntity.getInputMessage().getBytes(StandardCharsets.UTF_8));\n log.debug(\"encodeBase64 completed successfully: {}\", encodedBytes);\n validationEntity.setValid(true);\n validationEntity.setInputMessage(encodedBytes);\n validationEntity.setValidationMessage(\"Encode Successful!!!\");\n return validationEntity;\n }", "public String getEncoded64ImageStringFromBitmap(Bitmap bitmap) {\n\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n byte[] byteFormat = stream.toByteArray();\n // get the base 64 string\n //String imgString = Base64.encodeToString(byteFormat, Base64.NO_WRAP);\n String imgString = Base64.encodeToString(byteFormat, Base64.DEFAULT);\n\n return imgString;\n }" ]
[ "0.74168557", "0.7335943", "0.7225376", "0.72189355", "0.7010474", "0.69912916", "0.6966422", "0.69430286", "0.6931796", "0.6823772", "0.6811116", "0.6773855", "0.6765772", "0.6720862", "0.66181946", "0.6590885", "0.6537275", "0.65308803", "0.6530212", "0.6526934", "0.6507788", "0.6497096", "0.6476108", "0.64565194", "0.64346445", "0.6402483", "0.638398", "0.63785565", "0.6359273", "0.63465", "0.6340593", "0.63328207", "0.63220114", "0.6302686", "0.6301831", "0.62998706", "0.62895685", "0.62794423", "0.627061", "0.62213457", "0.6207553", "0.6205998", "0.6186493", "0.6180806", "0.6165915", "0.61531144", "0.61457115", "0.61416405", "0.6131958", "0.6126023", "0.6109869", "0.6101202", "0.6100753", "0.608864", "0.6077881", "0.60724425", "0.606766", "0.60628164", "0.60580146", "0.6054868", "0.60541594", "0.6047586", "0.6039258", "0.60354275", "0.6027067", "0.6020656", "0.60146546", "0.60136914", "0.60052407", "0.60025615", "0.5991734", "0.5982204", "0.59793586", "0.59753925", "0.59716344", "0.5946742", "0.5938218", "0.59311664", "0.5925879", "0.5924433", "0.59219736", "0.59150416", "0.591335", "0.58848226", "0.58827883", "0.58684015", "0.5862771", "0.58609813", "0.5856491", "0.58291173", "0.58246917", "0.5822365", "0.5820013", "0.58192825", "0.5808122", "0.5797529", "0.57951874", "0.57900846", "0.5783379", "0.57639724", "0.57587636" ]
0.0
-1
Encoded "Crash Override:I love Acid Burn" as Base64
@Test public void shouldGiveTwoElementsWithOneColonString() { String decodeString = "Q3Jhc2ggT3ZlcnJpZGU6SSBsb3ZlIEFjaWQgQnVybg=="; assertThat("Two elements is present", BasicAuth.decode(decodeString), is(arrayWithSize(2))); assertThat("Username is contained", BasicAuth.decode(decodeString), is(hasItemInArray("Crash Override"))); assertThat("Password is contained", BasicAuth.decode(decodeString), is(hasItemInArray("I love Acid Burn"))); assertThat("Username is first", BasicAuth.decode(decodeString)[0], is("Crash Override")); assertThat("Password is last", BasicAuth.decode(decodeString)[1], is("I love Acid Burn")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String encodeToBase64(byte[] data) {\n return Base64.encodeToString(data, BASE64_EFLAGS);\n }", "private static String descifrarBase64(String arg) {\n Base64.Decoder decoder = Base64.getDecoder();\n byte[] decodedByteArray = decoder.decode(arg);\n\n return new String(decodedByteArray);\n }", "java.lang.String getEncoded();", "private String encodeBase64(String msg) {\n\t\tbyte[] bytesEncoded = Base64.encodeBase64(msg.getBytes());\n\t\t//System.out.println(\"encoded value is \" + new String(bytesEncoded));\n\n\t\treturn new String(bytesEncoded);\n\t}", "public String base64Encode(String str) throws StoreFactoryException;", "private static String encodeBase64(String stringToEncode){\r\n\t\treturn Base64.getEncoder().encodeToString(stringToEncode.getBytes());\t\r\n\t}", "default String codificarBase64(String contenido) {\n\t\tbyte[] encoded = Base64.getEncoder().encode(contenido.getBytes(StandardCharsets.UTF_8));\n\t\treturn new String(encoded);\n\t}", "public static String byteToBase64(byte[] data){\n BASE64Encoder endecoder = new BASE64Encoder();\n return endecoder.encode(data);\n }", "static String convertToBase64(byte[] image){\n return !Objects.isNull(image)\n ? Base64.getEncoder().encodeToString(image)\n : \"\";\n }", "public static String toBase64(byte[] data)\n {\n return Base64.encodeToString(data, Base64.NO_WRAP);\n }", "private String byteToBase64(final byte[] bytes) {\n String str = DatatypeConverter.printBase64Binary(bytes);\n return str;\n }", "public static String base64EncodeString(String input) throws Exception\n {\n return base64Encode(input.getBytes(\"UTF-8\"));\n }", "public static String base64Encode(byte[] input) {\n return DatatypeConverter.printBase64Binary(input);\n }", "public static String encode(byte[] in) {\n int fourB64Bytes = 0;\n StringBuffer sb = new StringBuffer();\n int posIn = 0;\n for (posIn = 0; posIn < in.length; posIn++) {\n int oneByte = in[posIn]; // in 0..255, not -128..127 \n if (oneByte < 0) {\n oneByte += 256;\n }\n fourB64Bytes = (fourB64Bytes << 8) + oneByte;\n if (posIn % 3 == 2) {\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 18) & 0x3F]);\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 12) & 0x3F]);\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 6) & 0x3F]);\n sb.append((char)ENCODE_TABLE[fourB64Bytes & 0x3F]);\n fourB64Bytes = 0;\n }\n }\n posIn--;\n switch (posIn % 3) {\n case 0:\n fourB64Bytes = fourB64Bytes << 4; //pad with 0000\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 6) & 0x3F]);\n sb.append((char)ENCODE_TABLE[fourB64Bytes & 0x3F]);\n sb.append((char)PAD);\n sb.append((char)PAD);\n fourB64Bytes = 0;\n break;\n\n case 1:\n fourB64Bytes = fourB64Bytes << 2; //pad with 00\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 12) & 0x3F]);\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 6) & 0x3F]);\n sb.append((char)ENCODE_TABLE[fourB64Bytes & 0x3F]);\n sb.append((char)PAD);\n fourB64Bytes = 0;\n break;\n\n }\n return sb.toString();\n }", "public static String encB64(byte[] data) {\n return Base64.encodeToString(data,Base64.DEFAULT);\n }", "@Test\n public void testEncodeDecodeBase64() {\n ///////////////////////////////\n // plaintext=\"Text to convert.\";\n plaintext=\"ABCDEFGHIJKLMNOPQRSTUPVWYZ123456789\";\n /////////////////////////////////\n System.out.println(\"Convert following text: \"+plaintext);\n \n System.out.println(\"::encodeBase64::\");\n \n byte[] plaindata = plaintext.getBytes();\n byte[] tmp = Base64Encoder.encodeBase64(plaindata);\n this.storeEncoding=new String(tmp);\n System.out.println(storeEncoding);\n System.out.println(\"::decodeBase64::\");\n byte[] base64Message = this.storeEncoding.getBytes();\n byte[] expResult = plaindata;\n byte[] result = Base64Encoder.decodeBase64(base64Message);\n String decodedText=new String(result);\n System.out.println(\"Decoded Text: \"+decodedText);\n assertArrayEquals(expResult, result);\n }", "public static String encode(String arg) {\n String encoded = Base64.getEncoder().encodeToString(arg.getBytes());\n\n return encoded;\n }", "private static byte[] decodeBase64(String data) {\n return Base64.decode(data, BASE64_DFLAGS);\n }", "public static String encodeTobase64(Bitmap image){\n if(image != null) {\n Bitmap image2 = image;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n image2.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n String imageEncoded = Base64.encodeToString(b, Base64.DEFAULT);\n\n Log.d(\"Image Log:\", imageEncoded);\n return imageEncoded;\n }\n else{\n return \"\";\n }\n }", "private static String convertToHex(byte[] data) throws IOException {\n //create new instance of string buffer\n StringBuffer stringBuffer = new StringBuffer();\n String hex = \"\";\n\n //encode byte data with base64\n hex = Base64.getEncoder().encodeToString(data);\n stringBuffer.append(hex);\n\n //return string\n return stringBuffer.toString();\n }", "public String base64Decode(String str) throws StoreFactoryException;", "public CodePointIterator base64Encode() {\n return base64Encode(Base64Alphabet.STANDARD, true);\n }", "private String encode(String str) {\n verifyNotNull(str, ERROR_MESSAGE);\n byte[] bytes = str.getBytes();\n return Base64.getEncoder()\n .withoutPadding()\n .encodeToString(bytes);\n }", "private byte[] encode(byte[] msg) {\r\n\t\treturn Base64.encode(msg);\r\n\t}", "public ValidationEntity encodeBase64(ValidationEntity validationEntity) {\n String encodedBytes =\n Base64.getEncoder().encodeToString(validationEntity.getInputMessage().getBytes(StandardCharsets.UTF_8));\n log.debug(\"encodeBase64 completed successfully: {}\", encodedBytes);\n validationEntity.setValid(true);\n validationEntity.setInputMessage(encodedBytes);\n validationEntity.setValidationMessage(\"Encode Successful!!!\");\n return validationEntity;\n }", "public static String encode(byte[] input) {\r\n\tint i;\r\n\tint j;\r\n\tint m;\r\n\tint a;\r\n\tint b;\r\n\tint c;\r\n\tStringBuffer output;\r\n\r\n\tif (input.length == 0) {\r\n\t return \"\";\r\n\t}\r\n\r\n\t/*\r\n\t * Compute the length of the output buffer.\r\n\t */\r\n\ti = ((input.length + 2) / 3) << 2;\r\n\toutput = new StringBuffer(i);\r\n\ti = input.length / 3;\r\n\tj = 0;\r\n\r\n\twhile (i > 0) {\r\n\t a = input[j++];\r\n\t b = input[j++];\r\n\t c = input[j++];\r\n\r\n\t m = (a >>> 2) & 63;\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = ((a & 3) << 4) | ((b >>> 4) & 15);\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = ((b & 15) << 2) | ((c >>> 6) & 3);\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = c & 63;\r\n\t output.append(BASE64[m]);\r\n\t i--;\r\n\t}\r\n\t/*\r\n\t * Handle the padding and encoding of groups of less than three input\r\n\t * bytes length.\r\n\t */\r\n\ti = input.length % 3;\r\n\r\n\tswitch (i) {\r\n\tcase 1:\r\n\t a = input[j++];\r\n\t m = (a >>> 2) & 63;\r\n\t output.append(BASE64[m]);\r\n\t m = (a & 3) << 4;\r\n\t output.append(BASE64[m]);\r\n\t output.append(PAD_2);\r\n\t break;\r\n\r\n\tcase 2:\r\n\t a = input[j++];\r\n\t b = input[j++];\r\n\t m = (a >>> 2) & 63;\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = ((a & 3) << 4) | ((b >>> 4) & 15);\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = (b & 15) << 2;\r\n\t output.append(BASE64[m]);\r\n\t output.append(PAD_1);\r\n\t break;\r\n\t}\r\n\treturn output.toString();\r\n }", "public static String encode(byte[] binaryData) {\n if (CommonUtil.isNull(binaryData)) {\n return null;\n }\n\n int lengthDataBits = binaryData.length * EIGHTBIT;\n if (lengthDataBits == 0) {\n return \"\";\n }\n\n int fewerThan24bits = lengthDataBits % TWENTYFOURBITGROUP;\n int numberTriplets = lengthDataBits / TWENTYFOURBITGROUP;\n int numberQuartet = fewerThan24bits != 0 ? numberTriplets + 1 : numberTriplets;\n char[] encodedData = new char[numberQuartet * 4];\n\n byte k1 = 0;\n byte l1 = 0;\n byte b1 = 0;\n byte b2 = 0;\n byte b3 = 0;\n\n int encodedIndex = 0;\n int dataIndex = 0;\n byte val1 = 0;\n byte val2 = 0;\n byte val3 = 0;\n for (int i = 0; i < numberTriplets; i++) {\n b1 = binaryData[dataIndex++];\n b2 = binaryData[dataIndex++];\n b3 = binaryData[dataIndex++];\n\n l1 = (byte) (b2 & 0x0f);\n k1 = (byte) (b1 & 0x03);\n\n val1 = ((b1 & SIGN) == 0) ? (byte) (b1 >> 2) : (byte) ((b1) >> 2 ^ 0xc0);\n val2 = ((b2 & SIGN) == 0) ? (byte) (b2 >> 4) : (byte) ((b2) >> 4 ^ 0xf0);\n val3 = ((b3 & SIGN) == 0) ? (byte) (b3 >> 6) : (byte) ((b3) >> 6 ^ 0xfc);\n\n encodedData[encodedIndex++] = LOOK_UP_BASE64_ALPHABET[val1];\n encodedData[encodedIndex++] = LOOK_UP_BASE64_ALPHABET[val2 | (k1 << 4)];\n encodedData[encodedIndex++] = LOOK_UP_BASE64_ALPHABET[(l1 << 2) | val3];\n encodedData[encodedIndex++] = LOOK_UP_BASE64_ALPHABET[b3 & 0x3f];\n }\n\n // form integral number of 6-bit groups\n assembleInteger(binaryData, fewerThan24bits, encodedData, encodedIndex, dataIndex);\n\n return new String(encodedData);\n }", "public static String encodeToBase64(Bitmap image) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n image.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n return Base64.encodeToString(b, Base64.DEFAULT);\n }", "public static String returnEncoded(String text) {\n if (text == null) {\n return null;\n }\n return Base64.encodeToString(text.getBytes(), Base64.NO_WRAP);\n }", "public String getEncodedImage() {\n String base64String = Base64.getEncoder().encodeToString(profilePictureBytes);\n return base64String;\n }", "private Base64(){}", "public static String bitmapEncodeTobase64(Bitmap image) {\n Bitmap immage = image;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n immage.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n String imageEncoded = Base64.encodeToString(b, Base64.DEFAULT);\n return imageEncoded;\n }", "public static String toBase64( byte[] b ) {\n StringBuffer sb = new StringBuffer();\n for ( int ptr = 0; ptr < b.length; ptr += 3 ) {\n sb.append( base64[ ( b[ ptr ] >> 2 ) & 0x3F ] );\n if ( ptr + 1 < b.length ) {\n sb.append( base64[ ( ( b[ ptr ] << 4 ) & 0x30 ) | ( ( b[ ptr + 1 ] >> 4 ) & 0x0F ) ] );\n if ( ptr + 2 < b.length ) {\n sb.append( base64[ ( ( b[ ptr + 1 ] << 2 ) & 0x3C ) | ( ( b[ ptr + 2 ] >> 6 ) & 0x03 ) ] );\n sb.append( base64[ b[ ptr + 2 ] & 0x3F ] );\n } else {\n sb.append( base64[ ( b[ ptr + 1 ] << 2 ) & 0x3C ] );\n sb.append( pad );\n }\n } else {\n sb.append( base64[ ( ( b[ ptr ] << 4 ) & 0x30 ) ] );\n sb.append( pad );\n sb.append( pad );\n }\n }\n return sb.toString();\n }", "private static byte[] m24635a(Context context, String str) {\n String f = C6014b.m23956f();\n String string = Secure.getString(context.getContentResolver(), \"android_id\");\n String substring = str.substring(0, Math.min(8, str.length() - 1));\n StringBuilder sb = new StringBuilder();\n sb.append(substring);\n sb.append(f.substring(0, Math.min(8, f.length() - 1)));\n String sb2 = sb.toString();\n StringBuilder sb3 = new StringBuilder();\n sb3.append(sb2);\n sb3.append(string.substring(0, Math.min(8, string.length() - 1)));\n String sb4 = sb3.toString();\n if (sb4.length() != 24) {\n StringBuilder sb5 = new StringBuilder();\n sb5.append(sb4);\n sb5.append(str.substring(8, 24 - sb4.length()));\n sb4 = sb5.toString();\n }\n return sb4.getBytes();\n }", "public static String encodeBase64(String string) {\n\t\tif (string == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn Base64.getEncoder().encodeToString(string.getBytes(UTF_8));\n\t}", "public static String base64Encode(byte[] bytes)\n {\n return DatatypeConverter.printBase64Binary(bytes);\n }", "public static String encode(byte[] data) {\t\t\n\t\tif (data == null || data.length == 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tStringBuilder resultBuffer = new StringBuilder();\n\t\t//mod\n\t\tint m = data.length % 3;\n\t\t//amount of data group with 3 byte\n\t\tint g = (m == 0) ? (data.length / 3) : (data.length / 3 + 1);\n\t\tfinal byte[] _clear_buff = {0, 0, 0};\n\t\tbyte[] dataBuffer = new byte[3];\n\t\tchar[] codeBuffer = new char[4];\n\t\tint offset = 0;\n\t\tfor (int i = 0; i < g; ++i) {\n\t\t\t//clear buffer\n\t\t\tSystem.arraycopy(_clear_buff, 0, dataBuffer, 0, 3);\n\t\t\t//copy data for handling\n\t\t\tint copySize = (m != 0 && i == g - 1) ? m : 3;\n\t\t\tSystem.arraycopy(data, offset, dataBuffer, 0, copySize);\n\t\t\t//concatenate the byte data buffer as an integer\n\t\t\tint tmp = 0x00000000;\n\t\t\tfor (int j = 0, z = 2; j < 3; ++j, --z) {\n\t\t\t\tint tt = ((dataBuffer[j] & 0xff) << (z * 8));\n\t\t\t\ttmp ^= tt;\n\t\t\t}\n\t\t\t//encode current data buffer with base64\n\t\t\tfor (int k = 0; k < 4; ++k) {\n\t\t\t\tint p = (tmp >> (k * 6)) & 0x0000003F;\n\t\t\t\tcodeBuffer[3 - k] = _dict_[p];\n\t\t\t}\n\t\t\t\n\t\t\tif (copySize != 3) {\n\t\t\t\tfor (int e = 0; e < 3 - copySize; ++e) {\n\t\t\t\t\tcodeBuffer[3 - e] = '=';\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tresultBuffer.append(codeBuffer);\n\t\t\toffset += 3;\n\t\t}\n\t\t\n\t\tString encodeText = resultBuffer.toString();\n\t\tresultBuffer.delete(0, resultBuffer.length());\n\t\treturn encodeText;\n\t}", "public String getBase64EncodedPNG()\n\t{\n\t\tString base64Png = null;\n\t\tByteArrayOutputStream output = new ByteArrayOutputStream();\n\t\ttry\n\t\t{\n\t\t\tif (getBlackWhiteBitmap().compress(Bitmap.CompressFormat.PNG, 100, output))\n\t\t\t{\n\t\t\t\tbyte[] imgData = output.toByteArray();\n\t\t\t\tbase64Png = Base64.encodeToString(imgData, Base64.DEFAULT);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn base64Png;\n\t}", "private String convertintobase64(Bitmap bitmap2) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tbitmap2.compress(Bitmap.CompressFormat.PNG, 100, baos);\n\t\tbyte[] b = baos.toByteArray();\n\t\tString temp = Base64.encodeToString(b, Base64.DEFAULT | Base64.NO_WRAP);\n\t\tSystem.out.println(\"encoded string is:\" + temp);\n\t\treturn temp;\n\t}", "public static String base64Encode(final byte[] key) {\n return Base64.encode(key);\n }", "public static String encode(byte[] input)\r\n {\r\n return (input == null ? null : Base64.encode(input, 0, input.length));\r\n }", "public static String base64Encode(String str) {\n sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();\n byte[] bytes = str.getBytes();\n return encoder.encode(bytes);\n\n }", "private static String extractBase64EncodedKey(String pemKey) throws GeneralSecurityException\n {\n Matcher matcher = KEY_PATTERN.matcher(pemKey);\n if (matcher.find())\n {\n return matcher.group(1).replaceAll(\"\\\\s\", \"\");\n }\n else\n {\n throw new GeneralSecurityException(\"Invalid private key format\");\n }\n }", "static String base64encode(byte[] bytes)\n {\n StringBuilder builder = new StringBuilder(((bytes.length + 2)/ 3) * 4);\n for (int i = 0; i < bytes.length; i += 3)\n {\n byte b0 = bytes[i];\n byte b1 = i < bytes.length - 1 ? bytes[i + 1] : 0;\n byte b2 = i < bytes.length - 2 ? bytes[i + 2] : 0;\n builder.append(BASE64_CHARS[(b0 & 0xFF) >> 2]);\n builder.append(BASE64_CHARS[((b0 & 0x03) << 4) | ((b1 & 0xF0) >> 4)]);\n builder.append(i < bytes.length - 1 ? BASE64_CHARS[((b1 & 0x0F) << 2) | ((b2 & 0xC0) >> 6)] : \"=\");\n builder.append(i < bytes.length - 2 ? BASE64_CHARS[b2 & 0x3F] : \"=\");\n }\n return builder.toString();\n }", "public static byte[] decode(String encoded) {\n \n if (encoded == null)\n return null;\n \n char[] base64Data = encoded.toCharArray();\n // remove white spaces\n int len = removeWhiteSpace(base64Data);\n \n if (len%FOURBYTE != 0) {\n return null;//should be divisible by four\n }\n \n int numberQuadruple = (len/FOURBYTE );\n \n if (numberQuadruple == 0)\n return new byte[0];\n \n byte decodedData[] = null;\n byte b1=0,b2=0,b3=0, b4=0, marker0=0, marker1=0;\n char d1=0,d2=0,d3=0,d4=0;\n \n int i = 0;\n int encodedIndex = 0;\n int dataIndex = 0;\n decodedData = new byte[ (numberQuadruple)*3];\n \n for (; i<numberQuadruple-1; i++) {\n \n if (!isData( (d1 = base64Data[dataIndex++]) )||\n !isData( (d2 = base64Data[dataIndex++]) )||\n !isData( (d3 = base64Data[dataIndex++]) )||\n !isData( (d4 = base64Data[dataIndex++]) ))\n return null;//if found \"no data\" just return null\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n b3 = base64Alphabet[d3];\n b4 = base64Alphabet[d4];\n \n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n }\n \n if (!isData( (d1 = base64Data[dataIndex++]) ) ||\n !isData( (d2 = base64Data[dataIndex++]) )) {\n return null;//if found \"no data\" just return null\n }\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n \n d3 = base64Data[dataIndex++];\n d4 = base64Data[dataIndex++];\n if (!isData( (d3 ) ) ||\n !isData( (d4 ) )) {//Check if they are PAD characters\n if (isPad( d3 ) && isPad( d4)) { //Two PAD e.g. 3c[Pad][Pad]\n if ((b2 & 0xf) != 0)//last 4 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 1 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex] = (byte)( b1 <<2 | b2>>4 ) ;\n return tmp;\n } else if (!isPad( d3) && isPad(d4)) { //One PAD e.g. 3cQ[Pad]\n b3 = base64Alphabet[ d3 ];\n if ((b3 & 0x3 ) != 0)//last 2 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 2 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex++] = (byte)( b1 <<2 | b2>>4 );\n tmp[encodedIndex] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n return tmp;\n } else {\n return null;//an error like \"3c[Pad]r\", \"3cdX\", \"3cXd\", \"3cXX\" where X is non data\n }\n } else { //No PAD e.g 3cQl\n b3 = base64Alphabet[ d3 ];\n b4 = base64Alphabet[ d4 ];\n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n \n }\n \n return decodedData;\n }", "private static void encodeString(String in){\n\n\t\tString officalEncodedTxt = officallyEncrypt(in);\n\t\tSystem.out.println(\"Encoded message: \" + officalEncodedTxt);\n\t}", "public static String encode(byte[] data) {\n\t\treturn Base64.getEncoder().encodeToString(data);\n\t}", "private String encodeBase64(String ldapPwd){\n try {\n return CryptoUtils.object2String(ldapPwd);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public static String byte2Base64(byte[] bytes) {\n BASE64Encoder encoder = new BASE64Encoder();\n return encoder.encode(bytes);\n }", "public abstract byte[] getEncoded();", "static byte[] base64decode(String base64)\n {\n // Remove all whitespace.\n base64 = base64.replaceAll(\"\\\\s\", \"\");\n int endTrim = 0;\n if (base64.endsWith(\"==\")) {\n endTrim = 2;\n base64 = base64.substring(0, base64.length() - 2) + \"AA\";\n } else if (base64.endsWith(\"=\"))\n {\n endTrim = 1;\n base64 = base64.substring(0, base64.length() - 1) + \"A\";\n }\n if (base64.length() % 4 != 0) throw new IllegalArgumentException(\"Illegal base64 string, length \" + base64.length());\n int length = (base64.length() / 4) * 3 - endTrim;\n base64 = base64.replace('=', 'A');\n byte[] result = new byte[length];\n int stringLength = base64.length();\n int index = 0;\n for (int i = 0; i < stringLength; i += 4)\n {\n int i0 = BASE64_STRING.indexOf(base64.charAt(i));\n int i1 = BASE64_STRING.indexOf(base64.charAt(i + 1));\n int i2 = BASE64_STRING.indexOf(base64.charAt(i + 2));\n int i3 = BASE64_STRING.indexOf(base64.charAt(i + 3));\n byte b0 = (byte) ((i0 << 2) | (i1 >> 4));\n byte b1 = (byte) ((i1 << 4) | (i2 >> 2));\n byte b2 = (byte) ((i2 << 6) | i3);\n result[index++] = b0;\n if (index < length)\n {\n result[index++] = b1;\n if (index < length)\n {\n result[index++] = b2;\n }\n }\n }\n return result;\n }", "public String toUrlSafe() {\n// try {\n //todo: key encoder\n return Base64.getEncoder().encodeToString(new Gson().toJson(this).getBytes());\n// return URLEncoder.encode(\"\", UTF_8.name());\n// return URLEncoder.encode(TextFormat.printToString(toPb()), UTF_8.name());\n// } catch (UnsupportedEncodingException e) {\n// throw new IllegalStateException(\"Unexpected encoding exception\", e);\n// }\n }", "private byte[] toBytes(String obj){\n return Base64.getDecoder().decode(obj);\n }", "public String encode() {\n return encodeToBase64(encKey.getEncoded()) + \":\" + encodeToBase64(macKey.getEncoded());\n }", "private static byte[] m5293aA(String str) {\n try {\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(C1248f.getKey());\n return Arrays.copyOf(sb.toString().getBytes(AudienceNetworkActivity.WEBVIEW_ENCODING), 16);\n } catch (Throwable unused) {\n return null;\n }\n }", "public static void main(String[] args) throws UnsupportedEncodingException, IOException {\n BASE64Decoder baseDecoder = new BASE64Decoder();\n byte [] b = baseDecoder.decodeBuffer(\"MTTvvJoxOeadpeS4gOadoeivhOiuug==\");\n System.out.println(new String(b,\"UTF-8\"));\n }", "public static String create()\n\t{\n\t\tBASE64Encoder\tencoder = new BASE64Encoder();\n\n\t\treturn encoder.encode(createBytes());\n\t}", "private String base64Decode(String token) {\n\t\t \tBase64 base64 = new Base64();\n\t \tbyte[] decodedBytes = base64.decode(token.getBytes()); \t\n\t \tString decodeString = new String(decodedBytes, Charset.forName(\"UTF-8\"));\t\t\n\t \tint index1 = decodeString.indexOf(\"3du\");\n\t \tint index2 = decodeString.indexOf(\"l0g\");\n\t \tint lengthChar = decodeString.length();\n//\t \tif(lengthChar %4 != 0) {\n//\t \t\treturn \"\";\n//\t \t}\n\t \tif((index1 < 3) & (index2 >=3))\n\t \t{\n\t \t\tlengthChar = lengthChar - 3;\n\t \t}\n\t \tif(lengthChar > 0) {\n\t \t\tdecodeString = decodeString.substring(3, lengthChar);\n\t \t} \t\n\t \treturn decodeString;\n\t\t}", "public static String base64DecodeString(String value) throws Exception\n {\n return new String(DatatypeConverter.parseBase64Binary(value), \"UTF-8\");\n }", "public String emitAsImageBase64() {\n BufferedImage img = emitAsBufferedImage();\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n ImageIO.write(img, \"png\", os);\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n Base64 b64 = new Base64();\n String result = b64.encode(os.toByteArray());\n try {\n os.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }", "Base64Binary getCarrierAIDC();", "public final static String decodeBase64(String data) {\n\t\tString rc = null;\n\t\tbyte[] b64 = Base64.decodeBase64(data);\n\t\trc = new String(b64);\n\t\treturn rc;\n\t}", "public static String toBase64(byte[] aValue) {\n \n final String m_strBase64Chars =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n \n int byte1;\n int byte2;\n int byte3;\n int iByteLen = aValue.length;\n StringBuffer tt = new StringBuffer();\n \n for (int i = 0; i < iByteLen; i += 3) {\n boolean bByte2 = (i + 1) < iByteLen;\n boolean bByte3 = (i + 2) < iByteLen;\n byte1 = aValue[i] & 0xFF;\n byte2 = (bByte2) ? (aValue[i + 1] & 0xFF) : 0;\n byte3 = (bByte3) ? (aValue[i + 2] & 0xFF) : 0;\n \n tt.append(m_strBase64Chars.charAt(byte1 / 4));\n tt.append(m_strBase64Chars.charAt((byte2 / 16) + ((byte1 & 0x3) * 16)));\n tt.append(((bByte2) ? m_strBase64Chars.charAt((byte3 / 64) + ((byte2 & 0xF) * 4)) : '='));\n tt.append(((bByte3) ? m_strBase64Chars.charAt(byte3 & 0x3F) : '='));\n }\n \n return tt.toString();\n }", "protected String getEncodedFileContent() throws IOException\n {\n if (fullAttachmentFilename == null)\n {\n return null;\n }\n Path path = Paths.get(fullAttachmentFilename);\n byte[] byteArray = Files.readAllBytes(path);\n Base64 x = new Base64();\n String encodedFileContent = x.encodeAsString(byteArray);\n return encodedFileContent;\n }", "default byte[] decodificarBase64(String archivoBase64) {\n\t\treturn Base64.getDecoder().decode(archivoBase64);\n\t}", "static public String encode(byte[] binaryData) {\n if (binaryData == null)\n return null;\n int lengthData = binaryData.length;\n int lengthEncode = lengthData * 2;\n char[] encodedData = new char[lengthEncode];\n int temp;\n for (int i = 0; i < lengthData; i++) {\n temp = binaryData[i];\n if (temp < 0)\n temp += 256;\n encodedData[i*2] = lookUpHexAlphabet[temp >> 4];\n encodedData[i*2+1] = lookUpHexAlphabet[temp & 0xf];\n }\n return new String(encodedData);\n }", "private String base64Encode(String xmlAsString, String xmlEncoding) throws UnsupportedEncodingException {\r\n String xmlencodingDeclaration = \"<?xml version=\\\"1.0\\\" encoding=\\\"\" + xmlEncoding + \"\\\"?>\";\r\n byte[] xmlAsBytes = (xmlencodingDeclaration + xmlAsString).getBytes(xmlEncoding);\r\n\r\n byte[] xmlAsBase64 = Base64.encodeBase64(xmlAsBytes);\r\n\r\n // base64 is pure ascii\r\n String xmlAsBase64String = new String(xmlAsBase64, \"ascii\");\r\n\r\n return xmlAsBase64String;\r\n }", "public static String convertHexToBase64(String hex){\n\t\tMap<String, String> map = new HashMap<>();\n\t\tString Base64CharSet1 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n\t\tfor(int i=0; i<Base64CharSet1.length(); i++){\n\t\t\tmap.put( Integer.toString(i), Base64CharSet1.charAt(i)+\"\");\n\t\t}\n\t\t\n\t\t// Converting Hex to Binary\n\t\tStringBuilder binary = new StringBuilder();\n\t\tfor (int i=0; i< hex.length(); i++){\n\t\t\tint dec = Integer.parseInt(hex.charAt(i) + \"\" , 16);\n\t\t\tStringBuilder bin = new StringBuilder(Integer.toBinaryString(dec));\n\t\t\twhile(bin.length() < 4){\n\t\t\t\tbin.insert(0, \"0\");\n\t\t\t}\n\t\t\tbinary.append(bin);\n\t\t}\n\n\t\t// Converting Binary to Base64 using the Lookup Table\n\t\tStringBuilder b64 = new StringBuilder();\n\t\tfor (int i=0; i<binary.length(); i=i+6){\n\t\t\tString temp = binary.substring(i, i+6);\n\t\t\tint dec = Integer.parseInt(temp, 2);\n\t\t\tb64.append((String) map.get(Integer.toString(dec)));\n\t\t}\n\t\t\n\t\treturn b64.toString();\n\t}", "public static String byteArrayToAltBase64(byte[] a) {\n return byteArrayToBase64(a, true);\n }", "public static String encrypt(String input) {\n\t\tBase64.Encoder encoder = Base64.getMimeEncoder();\n String message = input;\n String key = encoder.encodeToString(message.getBytes());\n return key;\n\t}", "public String getEncoded()\n\t{\n\t\treturn this.encodedText;\n\t}", "public static String encodePassword( String object )\n\t{\n\t\tBASE64Encoder encoder = new BASE64Encoder();\n\t\tif ( object != null ) {\n\t\t\ttry {\n\t\t\t\tString encodedPassword = encoder.encode(object.getBytes(\"UTF-8\"));\n\t\t\t\tLOGGER.info(\"encode '\" + object + \"' password as base64 -> '\" + encodedPassword + \"'\");\n\t\t\t\treturn encodedPassword;\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\tLOGGER.severe(\"UTF-8 not supported\");\n\t\t\t}\n\t\t}\n\n\n\t\treturn \"\";\n\t}", "String encrypt(String input) {\n\t\treturn BaseEncoding.base64().encode(input.getBytes());\n\t}", "public String getDecod(String text) {\n Base64.Decoder decoder = Base64.getDecoder();\n return new String(decoder.decode(text));\n }", "public String encodeKey() {\n byte[] keyByte = secretKey.getEncoded();\n return Base64.getEncoder().encodeToString(keyByte);\n }", "public static String uuencode (String str) {\n\tStringBuilder ret = new StringBuilder (str.length () * 4 / 3);\n\tchar ch, ch1, ch2, ch3;\n\tint i;\n\t\n\tfor (i = 0; i+2 < str.length (); i+=3) {\t \n\t ch1 = str.charAt (i);\n\t ch2 = str.charAt (i+1);\n\t ch3 = str.charAt (i+2);\n\t ch = uu_base64[((ch1 >> 2) & 077)];\n\t ret.append (ch);\n\t \n\t ch = uu_base64[(((ch1 << 4) & 060) | ((ch2 >> 4) & 017))];\n\t ret.append (ch);\n\t \n\t ch = uu_base64[(((ch2 << 2) & 074) | ((ch3 >> 6) & 03))];\n\t ret.append (ch);\n\t \n\t ch = uu_base64[(ch3 & 077)];\n\t ret.append (ch);\n\t}\n\t\n\t// are we done yet?\n\tif (i == str.length ()) \n\t return ret.toString ();\n\n\t// no so handle the trailing characters.\n\tch1 = str.charAt (i);\n\tch2 = str.length() > i + 1 ? str.charAt (i+1) : (char)0;\n\t\n\tch = uu_base64[((ch1 >> 2) & 077)];\n\tret.append (ch);\n\t\n\tch = uu_base64[(((ch1 << 4) & 060) | ((ch2 >> 4) & 017))];\n\tret.append (ch);\n\t\n\tif (str.length () > i + 1) {\n\t ch = uu_base64[((ch2 << 2) & 074)];\n\t ret.append (ch);\n\t} else {\n\t ret.append ('=');\n\t}\n\tret.append ('=');\n\treturn ret.toString ();\n }", "private String convertUploadedFileToBase64(MultipartFile file) throws IOException {\n return Base64.getEncoder().encodeToString(file.getBytes());\n }", "private String encodeMessage() {\n\t\tString encode = \"\";\n\t\tfor (int i = 0; i < message.length(); i++) {\n\t\t\tencode += map.get(message.charAt(i));\n\t\t}\n\t\tgenerateBack();\n\t\treturn encode;\n\t}", "private String encodeTokenString(String tokenPortion) {\n log.info(\"Entering encodeTokenString\");\n String base64EncodedTokenString = Base64.getEncoder().encodeToString(tokenPortion.getBytes());\n String replacedEncodedTokenString = base64EncodedTokenString.replaceAll(\"={1,2}$\", \"\");\n return encodeURILikeJavascript(replacedEncodedTokenString);\n }", "@SuppressWarnings(\"unused\")\n private static String getKeyString(Key key)\n {\n return Base64.encode(key.getEncoded());\n }", "public static String stringToBase64String(String text) {\n if (text == null) return null;\n return new String(Base64.encodeBase64(text.getBytes()));\n }", "private void encode(){\r\n \r\n StringBuilder sb = new StringBuilder();\r\n \r\n /*\r\n *if a character code is >126 after adding the encryption key, subtract \r\n *95 to wrap\r\n */\r\n for(int i = 0; i < message.length(); i++){\r\n if(message.charAt(i) + key > 126){\r\n int wrappedKey = message.charAt(i) + key - 95;\r\n \r\n sb.append((char) wrappedKey);\r\n \r\n /*\r\n *if a character code ins't > 126 after adding the encryption key\r\n */\r\n } else{\r\n int wrappedKey = message.charAt(i) + key;\r\n sb.append( (char) wrappedKey);\r\n }\r\n }\r\n /*\r\n *case coded message to a string\r\n */\r\n codedMessage = sb.toString();\r\n }", "public static String encodeString(String str) throws IOException {\n BASE64Encoder encoder = new BASE64Encoder();\n String encodedStr = encoder.encodeBuffer(str.getBytes());\n \n return (encodedStr.trim());\n }", "String decodeString();", "public static byte[] base642Byte(String base64Key) throws IOException {\n BASE64Decoder decoder = new BASE64Decoder();\n return decoder.decodeBuffer(base64Key);\n }", "private static byte[] decodeBase64(String base64Input) throws GeneralSecurityException\n {\n try\n {\n return Base64.getDecoder().decode(base64Input);\n }\n catch (IllegalArgumentException e)\n {\n throw new GeneralSecurityException(\"Failed to decode given base64 input. msg=\" + e.getMessage(), e);\n }\n }", "private String encode(String paramString, char[] paramArrayOfchar, MessageDigest paramMessageDigest) {\n/* */ try {\n/* 522 */ paramMessageDigest.update(paramString.getBytes(\"ISO-8859-1\"));\n/* 523 */ } catch (UnsupportedEncodingException unsupportedEncodingException) {\n/* */ assert false;\n/* */ } \n/* 526 */ if (paramArrayOfchar != null) {\n/* 527 */ byte[] arrayOfByte1 = new byte[paramArrayOfchar.length];\n/* 528 */ for (byte b1 = 0; b1 < paramArrayOfchar.length; b1++)\n/* 529 */ arrayOfByte1[b1] = (byte)paramArrayOfchar[b1]; \n/* 530 */ paramMessageDigest.update(arrayOfByte1);\n/* 531 */ Arrays.fill(arrayOfByte1, (byte)0);\n/* */ } \n/* 533 */ byte[] arrayOfByte = paramMessageDigest.digest();\n/* */ \n/* 535 */ StringBuffer stringBuffer = new StringBuffer(arrayOfByte.length * 2);\n/* 536 */ for (byte b = 0; b < arrayOfByte.length; b++) {\n/* 537 */ int i = arrayOfByte[b] >>> 4 & 0xF;\n/* 538 */ stringBuffer.append(charArray[i]);\n/* 539 */ i = arrayOfByte[b] & 0xF;\n/* 540 */ stringBuffer.append(charArray[i]);\n/* */ } \n/* 542 */ return stringBuffer.toString();\n/* */ }", "private static String normalizeB64String(String s) {\n while(s.length() % 4 != 0)\n s += \"=\";\n return s;\n }", "public static String getStringBase64Bitmap(Bitmap bitmap){\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, bos);\n byte[] bitmapBytes = bos.toByteArray();\n String encodedImage = Base64.encodeToString(bitmapBytes, Base64.DEFAULT);\n Log.i(\"getStringBase64Bitmap\",encodedImage);\n return encodedImage;\n }", "public static String create()\n\t{\n\t\treturn new String(B64Code.encode(createBytes()));\n\t}", "public static String encode(byte[] binaryData) {\n \n if (binaryData == null)\n return null;\n \n int lengthDataBits = binaryData.length*EIGHTBIT;\n if (lengthDataBits == 0) {\n return \"\";\n }\n \n int fewerThan24bits = lengthDataBits%TWENTYFOURBITGROUP;\n int numberTriplets = lengthDataBits/TWENTYFOURBITGROUP;\n int numberQuartet = fewerThan24bits != 0 ? numberTriplets+1 : numberTriplets;\n int numberLines = (numberQuartet-1)/19+1;\n char encodedData[] = null;\n \n encodedData = new char[numberQuartet*4+numberLines];\n \n byte k=0, l=0, b1=0,b2=0,b3=0;\n \n int encodedIndex = 0;\n int dataIndex = 0;\n int i = 0;\n if (fDebug) {\n System.out.println(\"number of triplets = \" + numberTriplets );\n }\n \n for (int line = 0; line < numberLines-1; line++) {\n for (int quartet = 0; quartet < 19; quartet++) {\n b1 = binaryData[dataIndex++];\n b2 = binaryData[dataIndex++];\n b3 = binaryData[dataIndex++];\n \n if (fDebug) {\n System.out.println( \"b1= \" + b1 +\", b2= \" + b2 + \", b3= \" + b3 );\n }\n \n l = (byte)(b2 & 0x0f);\n k = (byte)(b1 & 0x03);\n \n byte val1 = ((b1 & SIGN)==0)?(byte)(b1>>2):(byte)((b1)>>2^0xc0);\n \n byte val2 = ((b2 & SIGN)==0)?(byte)(b2>>4):(byte)((b2)>>4^0xf0);\n byte val3 = ((b3 & SIGN)==0)?(byte)(b3>>6):(byte)((b3)>>6^0xfc);\n \n if (fDebug) {\n System.out.println( \"val2 = \" + val2 );\n System.out.println( \"k4 = \" + (k<<4));\n System.out.println( \"vak = \" + (val2 | (k<<4)));\n }\n \n encodedData[encodedIndex++] = lookUpBase64Alphabet[ val1 ];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ val2 | ( k<<4 )];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ (l <<2 ) | val3 ];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ b3 & 0x3f ];\n \n i++;\n }\n encodedData[encodedIndex++] = 0xa;\n }\n \n for (; i<numberTriplets; i++) {\n b1 = binaryData[dataIndex++];\n b2 = binaryData[dataIndex++];\n b3 = binaryData[dataIndex++];\n \n if (fDebug) {\n System.out.println( \"b1= \" + b1 +\", b2= \" + b2 + \", b3= \" + b3 );\n }\n \n l = (byte)(b2 & 0x0f);\n k = (byte)(b1 & 0x03);\n \n byte val1 = ((b1 & SIGN)==0)?(byte)(b1>>2):(byte)((b1)>>2^0xc0);\n \n byte val2 = ((b2 & SIGN)==0)?(byte)(b2>>4):(byte)((b2)>>4^0xf0);\n byte val3 = ((b3 & SIGN)==0)?(byte)(b3>>6):(byte)((b3)>>6^0xfc);\n \n if (fDebug) {\n System.out.println( \"val2 = \" + val2 );\n System.out.println( \"k4 = \" + (k<<4));\n System.out.println( \"vak = \" + (val2 | (k<<4)));\n }\n \n encodedData[encodedIndex++] = lookUpBase64Alphabet[ val1 ];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ val2 | ( k<<4 )];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ (l <<2 ) | val3 ];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ b3 & 0x3f ];\n }\n \n // form integral number of 6-bit groups\n if (fewerThan24bits == EIGHTBIT) {\n b1 = binaryData[dataIndex];\n k = (byte) ( b1 &0x03 );\n if (fDebug) {\n System.out.println(\"b1=\" + b1);\n System.out.println(\"b1<<2 = \" + (b1>>2) );\n }\n byte val1 = ((b1 & SIGN)==0)?(byte)(b1>>2):(byte)((b1)>>2^0xc0);\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ val1 ];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ k<<4 ];\n encodedData[encodedIndex++] = PAD;\n encodedData[encodedIndex++] = PAD;\n } else if (fewerThan24bits == SIXTEENBIT) {\n b1 = binaryData[dataIndex];\n b2 = binaryData[dataIndex +1 ];\n l = ( byte ) ( b2 &0x0f );\n k = ( byte ) ( b1 &0x03 );\n \n byte val1 = ((b1 & SIGN)==0)?(byte)(b1>>2):(byte)((b1)>>2^0xc0);\n byte val2 = ((b2 & SIGN)==0)?(byte)(b2>>4):(byte)((b2)>>4^0xf0);\n \n encodedData[encodedIndex++] = lookUpBase64Alphabet[ val1 ];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ val2 | ( k<<4 )];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ l<<2 ];\n encodedData[encodedIndex++] = PAD;\n }\n \n //encodedData[encodedIndex] = 0xa;\n \n return new String(encodedData);\n }", "public static String getEncodedFile(File file) {\n InputStream fis = null;\n StringBuilder sb = new StringBuilder(\"\");\n try {\n fis = new FileInputStream(file);\n byte[] buffer = new byte[fis.available()];\n final int readLength = fis.read(buffer);\n Log.i(TAG, \"getEncodedFile: Read Length: \" + readLength);\n sb.append(Base64.encodeToString(buffer, Base64.DEFAULT));\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fis != null) {\n try {\n fis.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return sb.toString();\n }", "private static String decodeString(String encoded) throws NullPointerException {\n byte[] dataDec = Base64.decode(encoded, Base64.DEFAULT);\n String decodedString = \"\";\n try {\n decodedString = new String(dataDec, \"UTF-8\");\n } catch (UnsupportedEncodingException ignored) {\n }\n return decodedString;\n }", "public static byte[] fromBase64(String data)\n {\n return Base64.decode(data, Base64.NO_WRAP);\n }", "public static String convertPassword(String jiveEncodedPassword) {\r\n String mvnEncodedPassword=null;\r\n try {\r\n byte[] decodedByteArray = Hex.decodeHex(jiveEncodedPassword.toCharArray());\r\n mvnEncodedPassword=new String(Base64.encodeBase64(decodedByteArray));\r\n } catch (Exception e) {\r\n mvnEncodedPassword=null;\r\n }\r\n return mvnEncodedPassword;\r\n }", "public static String getSalt(String str) throws UnsupportedEncodingException{\n\t\treturn new String(Base64.encodeBase64(str.getBytes(\"UTF-8\"))).replaceAll(\"\\r\\n\", \"\").trim();\n\t}", "private String[] playerInventoryToBase64(PlayerInventory playerInventory) throws IllegalStateException {\n //get the main content part, this doesn't return the armor\n String content = this.toBase64(playerInventory);\n String armor = itemStackArrayToBase64(playerInventory.getArmorContents());\n\n return new String[]{content, armor};\n }", "public static String bitMapToBase64String(Bitmap bitmap){\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, byteStream);\n byte[] byteArray = byteStream.toByteArray();\n String baseString = Base64.encodeToString(byteArray,Base64.DEFAULT);\n return baseString;\n }", "@Override\n public String toEncodedString() {\n int completeBinary = 0;\n if (this.isComplete) {\n completeBinary = 1;\n }\n return \"D\" + \" | \" + completeBinary + \" | \" + this.taskDetails + \" | \"\n + this.date.format(inputDateFormat);\n }", "public byte[] doEncoding(byte[] bArr) {\r\n return bArr == null ? null : Base64.encodeBase64(bArr);\r\n }", "public String getEncodedForm()\n {\n return Base64.encodeToString(mForm.gotoRoot().toBytes(), Base64.DEFAULT); \n }" ]
[ "0.730503", "0.71348864", "0.7107052", "0.69432044", "0.6821302", "0.6777562", "0.67607784", "0.6563065", "0.6460921", "0.6454853", "0.6438645", "0.6414068", "0.6365577", "0.63418144", "0.62911904", "0.62818366", "0.6280654", "0.6271417", "0.62685937", "0.62364465", "0.6235408", "0.6231509", "0.6191729", "0.6154178", "0.6116757", "0.6112403", "0.6104363", "0.6092768", "0.60737383", "0.60682493", "0.606418", "0.6063319", "0.6047629", "0.60452557", "0.6035204", "0.60305804", "0.60290074", "0.6026934", "0.6026634", "0.6026493", "0.601488", "0.60138196", "0.600943", "0.60032207", "0.60001475", "0.5994013", "0.59925985", "0.5989231", "0.59790975", "0.5955208", "0.59505504", "0.594486", "0.59319663", "0.59086704", "0.5904666", "0.5885183", "0.586352", "0.5862328", "0.58482546", "0.5844412", "0.5842567", "0.5829938", "0.58267903", "0.58239704", "0.580822", "0.5798953", "0.5798843", "0.5785268", "0.57847536", "0.5782896", "0.57740605", "0.5761202", "0.5749797", "0.5749065", "0.57465905", "0.5744512", "0.5742148", "0.57331735", "0.5728558", "0.5719799", "0.57151777", "0.5712978", "0.56990725", "0.5695726", "0.56937736", "0.5682435", "0.56777644", "0.56629324", "0.5657535", "0.5655648", "0.56550294", "0.5654721", "0.5636378", "0.563041", "0.5627267", "0.56174576", "0.56162673", "0.56138325", "0.5588933", "0.5588742", "0.5587999" ]
0.0
-1
Encoded "Sergeant Colon:owed thirty years of happy marriage to the fact that Mrs. Colon:worked all day and Sargent Colon worked all night." as Base64
@Test public void shouldIgnoreMoreThanOneColon() { String decodeString = "U2VyZ2VhbnQgQ29sb246b3dlZCB0aGlydHkgeWVhcnMgb2YgaGFwcHkgbWFycmlhZ2UgdG8gdGhlIGZhY3QgdGhhdCBNcnMuIENvbG9uOndvcmtlZCBhbGwgZGF5IGFuZCBTYXJnZW50IENvbG9uIHdvcmtlZCBhbGwgbmlnaHQu"; assertThat("Two elements is present", BasicAuth.decode(decodeString), is(arrayWithSize(2))); assertThat("Username is contained", BasicAuth.decode(decodeString), is(hasItemInArray("Sergeant Colon"))); assertThat("Password is contained", BasicAuth.decode(decodeString), is(hasItemInArray("owed thirty years of happy marriage to the fact that Mrs. Colon:worked all day and Sargent Colon worked all night."))); // Encoded "They:communicated:by:means:of:notes.:They:had:three:grown-up:children,:all:born,:Vimes:had:assumed,:as:a:result:of:extremely:persuasive:handwriting." as Base64 decodeString = "VGhleTpjb21tdW5pY2F0ZWQ6Ynk6bWVhbnM6b2Y6bm90ZXMuOlRoZXk6aGFkOnRocmVlOmdyb3duLXVwOmNoaWxkcmVuLDphbGw6Ym9ybiw6VmltZXM6aGFkOmFzc3VtZWQsOmFzOmE6cmVzdWx0Om9mOmV4dHJlbWVseTpwZXJzdWFzaXZlOmhhbmR3cml0aW5nLg=="; assertThat("Two elements is present", BasicAuth.decode(decodeString), is(arrayWithSize(2))); assertThat("Username is contained", BasicAuth.decode(decodeString), is(hasItemInArray("They"))); assertThat("Password is contained", BasicAuth.decode(decodeString), is(hasItemInArray("communicated:by:means:of:notes.:They:had:three:grown-up:children,:all:born,:Vimes:had:assumed,:as:a:result:of:extremely:persuasive:handwriting."))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getEncoded();", "default String codificarBase64(String contenido) {\n\t\tbyte[] encoded = Base64.getEncoder().encode(contenido.getBytes(StandardCharsets.UTF_8));\n\t\treturn new String(encoded);\n\t}", "private String encodeBase64(String msg) {\n\t\tbyte[] bytesEncoded = Base64.encodeBase64(msg.getBytes());\n\t\t//System.out.println(\"encoded value is \" + new String(bytesEncoded));\n\n\t\treturn new String(bytesEncoded);\n\t}", "private static String encodeToBase64(byte[] data) {\n return Base64.encodeToString(data, BASE64_EFLAGS);\n }", "private static String descifrarBase64(String arg) {\n Base64.Decoder decoder = Base64.getDecoder();\n byte[] decodedByteArray = decoder.decode(arg);\n\n return new String(decodedByteArray);\n }", "public String base64Encode(String str) throws StoreFactoryException;", "public static String encode(byte[] in) {\n int fourB64Bytes = 0;\n StringBuffer sb = new StringBuffer();\n int posIn = 0;\n for (posIn = 0; posIn < in.length; posIn++) {\n int oneByte = in[posIn]; // in 0..255, not -128..127 \n if (oneByte < 0) {\n oneByte += 256;\n }\n fourB64Bytes = (fourB64Bytes << 8) + oneByte;\n if (posIn % 3 == 2) {\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 18) & 0x3F]);\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 12) & 0x3F]);\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 6) & 0x3F]);\n sb.append((char)ENCODE_TABLE[fourB64Bytes & 0x3F]);\n fourB64Bytes = 0;\n }\n }\n posIn--;\n switch (posIn % 3) {\n case 0:\n fourB64Bytes = fourB64Bytes << 4; //pad with 0000\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 6) & 0x3F]);\n sb.append((char)ENCODE_TABLE[fourB64Bytes & 0x3F]);\n sb.append((char)PAD);\n sb.append((char)PAD);\n fourB64Bytes = 0;\n break;\n\n case 1:\n fourB64Bytes = fourB64Bytes << 2; //pad with 00\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 12) & 0x3F]);\n sb.append((char)ENCODE_TABLE[(fourB64Bytes >> 6) & 0x3F]);\n sb.append((char)ENCODE_TABLE[fourB64Bytes & 0x3F]);\n sb.append((char)PAD);\n fourB64Bytes = 0;\n break;\n\n }\n return sb.toString();\n }", "private static String encodeBase64(String stringToEncode){\r\n\t\treturn Base64.getEncoder().encodeToString(stringToEncode.getBytes());\t\r\n\t}", "public static String byteToBase64(byte[] data){\n BASE64Encoder endecoder = new BASE64Encoder();\n return endecoder.encode(data);\n }", "public static String encode(byte[] input) {\r\n\tint i;\r\n\tint j;\r\n\tint m;\r\n\tint a;\r\n\tint b;\r\n\tint c;\r\n\tStringBuffer output;\r\n\r\n\tif (input.length == 0) {\r\n\t return \"\";\r\n\t}\r\n\r\n\t/*\r\n\t * Compute the length of the output buffer.\r\n\t */\r\n\ti = ((input.length + 2) / 3) << 2;\r\n\toutput = new StringBuffer(i);\r\n\ti = input.length / 3;\r\n\tj = 0;\r\n\r\n\twhile (i > 0) {\r\n\t a = input[j++];\r\n\t b = input[j++];\r\n\t c = input[j++];\r\n\r\n\t m = (a >>> 2) & 63;\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = ((a & 3) << 4) | ((b >>> 4) & 15);\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = ((b & 15) << 2) | ((c >>> 6) & 3);\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = c & 63;\r\n\t output.append(BASE64[m]);\r\n\t i--;\r\n\t}\r\n\t/*\r\n\t * Handle the padding and encoding of groups of less than three input\r\n\t * bytes length.\r\n\t */\r\n\ti = input.length % 3;\r\n\r\n\tswitch (i) {\r\n\tcase 1:\r\n\t a = input[j++];\r\n\t m = (a >>> 2) & 63;\r\n\t output.append(BASE64[m]);\r\n\t m = (a & 3) << 4;\r\n\t output.append(BASE64[m]);\r\n\t output.append(PAD_2);\r\n\t break;\r\n\r\n\tcase 2:\r\n\t a = input[j++];\r\n\t b = input[j++];\r\n\t m = (a >>> 2) & 63;\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = ((a & 3) << 4) | ((b >>> 4) & 15);\r\n\t output.append(BASE64[m]);\r\n\r\n\t m = (b & 15) << 2;\r\n\t output.append(BASE64[m]);\r\n\t output.append(PAD_1);\r\n\t break;\r\n\t}\r\n\treturn output.toString();\r\n }", "public static String encode(byte[] binaryData) {\n if (CommonUtil.isNull(binaryData)) {\n return null;\n }\n\n int lengthDataBits = binaryData.length * EIGHTBIT;\n if (lengthDataBits == 0) {\n return \"\";\n }\n\n int fewerThan24bits = lengthDataBits % TWENTYFOURBITGROUP;\n int numberTriplets = lengthDataBits / TWENTYFOURBITGROUP;\n int numberQuartet = fewerThan24bits != 0 ? numberTriplets + 1 : numberTriplets;\n char[] encodedData = new char[numberQuartet * 4];\n\n byte k1 = 0;\n byte l1 = 0;\n byte b1 = 0;\n byte b2 = 0;\n byte b3 = 0;\n\n int encodedIndex = 0;\n int dataIndex = 0;\n byte val1 = 0;\n byte val2 = 0;\n byte val3 = 0;\n for (int i = 0; i < numberTriplets; i++) {\n b1 = binaryData[dataIndex++];\n b2 = binaryData[dataIndex++];\n b3 = binaryData[dataIndex++];\n\n l1 = (byte) (b2 & 0x0f);\n k1 = (byte) (b1 & 0x03);\n\n val1 = ((b1 & SIGN) == 0) ? (byte) (b1 >> 2) : (byte) ((b1) >> 2 ^ 0xc0);\n val2 = ((b2 & SIGN) == 0) ? (byte) (b2 >> 4) : (byte) ((b2) >> 4 ^ 0xf0);\n val3 = ((b3 & SIGN) == 0) ? (byte) (b3 >> 6) : (byte) ((b3) >> 6 ^ 0xfc);\n\n encodedData[encodedIndex++] = LOOK_UP_BASE64_ALPHABET[val1];\n encodedData[encodedIndex++] = LOOK_UP_BASE64_ALPHABET[val2 | (k1 << 4)];\n encodedData[encodedIndex++] = LOOK_UP_BASE64_ALPHABET[(l1 << 2) | val3];\n encodedData[encodedIndex++] = LOOK_UP_BASE64_ALPHABET[b3 & 0x3f];\n }\n\n // form integral number of 6-bit groups\n assembleInteger(binaryData, fewerThan24bits, encodedData, encodedIndex, dataIndex);\n\n return new String(encodedData);\n }", "public static String toBase64(byte[] data)\n {\n return Base64.encodeToString(data, Base64.NO_WRAP);\n }", "static String convertToBase64(byte[] image){\n return !Objects.isNull(image)\n ? Base64.getEncoder().encodeToString(image)\n : \"\";\n }", "public static String m136430b(String str) throws IOException {\n return new String(Base64.encodeBase64(m136428a(new File(str))));\n }", "private String byteToBase64(final byte[] bytes) {\n String str = DatatypeConverter.printBase64Binary(bytes);\n return str;\n }", "private static String normalizeB64String(String s) {\n while(s.length() % 4 != 0)\n s += \"=\";\n return s;\n }", "public static String base64Encode(byte[] input) {\n return DatatypeConverter.printBase64Binary(input);\n }", "private String encodeTokenString(String tokenPortion) {\n log.info(\"Entering encodeTokenString\");\n String base64EncodedTokenString = Base64.getEncoder().encodeToString(tokenPortion.getBytes());\n String replacedEncodedTokenString = base64EncodedTokenString.replaceAll(\"={1,2}$\", \"\");\n return encodeURILikeJavascript(replacedEncodedTokenString);\n }", "@Test\n public void testEncodeDecodeBase64() {\n ///////////////////////////////\n // plaintext=\"Text to convert.\";\n plaintext=\"ABCDEFGHIJKLMNOPQRSTUPVWYZ123456789\";\n /////////////////////////////////\n System.out.println(\"Convert following text: \"+plaintext);\n \n System.out.println(\"::encodeBase64::\");\n \n byte[] plaindata = plaintext.getBytes();\n byte[] tmp = Base64Encoder.encodeBase64(plaindata);\n this.storeEncoding=new String(tmp);\n System.out.println(storeEncoding);\n System.out.println(\"::decodeBase64::\");\n byte[] base64Message = this.storeEncoding.getBytes();\n byte[] expResult = plaindata;\n byte[] result = Base64Encoder.decodeBase64(base64Message);\n String decodedText=new String(result);\n System.out.println(\"Decoded Text: \"+decodedText);\n assertArrayEquals(expResult, result);\n }", "public static String encode(byte[] data) {\t\t\n\t\tif (data == null || data.length == 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\tStringBuilder resultBuffer = new StringBuilder();\n\t\t//mod\n\t\tint m = data.length % 3;\n\t\t//amount of data group with 3 byte\n\t\tint g = (m == 0) ? (data.length / 3) : (data.length / 3 + 1);\n\t\tfinal byte[] _clear_buff = {0, 0, 0};\n\t\tbyte[] dataBuffer = new byte[3];\n\t\tchar[] codeBuffer = new char[4];\n\t\tint offset = 0;\n\t\tfor (int i = 0; i < g; ++i) {\n\t\t\t//clear buffer\n\t\t\tSystem.arraycopy(_clear_buff, 0, dataBuffer, 0, 3);\n\t\t\t//copy data for handling\n\t\t\tint copySize = (m != 0 && i == g - 1) ? m : 3;\n\t\t\tSystem.arraycopy(data, offset, dataBuffer, 0, copySize);\n\t\t\t//concatenate the byte data buffer as an integer\n\t\t\tint tmp = 0x00000000;\n\t\t\tfor (int j = 0, z = 2; j < 3; ++j, --z) {\n\t\t\t\tint tt = ((dataBuffer[j] & 0xff) << (z * 8));\n\t\t\t\ttmp ^= tt;\n\t\t\t}\n\t\t\t//encode current data buffer with base64\n\t\t\tfor (int k = 0; k < 4; ++k) {\n\t\t\t\tint p = (tmp >> (k * 6)) & 0x0000003F;\n\t\t\t\tcodeBuffer[3 - k] = _dict_[p];\n\t\t\t}\n\t\t\t\n\t\t\tif (copySize != 3) {\n\t\t\t\tfor (int e = 0; e < 3 - copySize; ++e) {\n\t\t\t\t\tcodeBuffer[3 - e] = '=';\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tresultBuffer.append(codeBuffer);\n\t\t\toffset += 3;\n\t\t}\n\t\t\n\t\tString encodeText = resultBuffer.toString();\n\t\tresultBuffer.delete(0, resultBuffer.length());\n\t\treturn encodeText;\n\t}", "public static String encB64(byte[] data) {\n return Base64.encodeToString(data,Base64.DEFAULT);\n }", "public static String toBase64( byte[] b ) {\n StringBuffer sb = new StringBuffer();\n for ( int ptr = 0; ptr < b.length; ptr += 3 ) {\n sb.append( base64[ ( b[ ptr ] >> 2 ) & 0x3F ] );\n if ( ptr + 1 < b.length ) {\n sb.append( base64[ ( ( b[ ptr ] << 4 ) & 0x30 ) | ( ( b[ ptr + 1 ] >> 4 ) & 0x0F ) ] );\n if ( ptr + 2 < b.length ) {\n sb.append( base64[ ( ( b[ ptr + 1 ] << 2 ) & 0x3C ) | ( ( b[ ptr + 2 ] >> 6 ) & 0x03 ) ] );\n sb.append( base64[ b[ ptr + 2 ] & 0x3F ] );\n } else {\n sb.append( base64[ ( b[ ptr + 1 ] << 2 ) & 0x3C ] );\n sb.append( pad );\n }\n } else {\n sb.append( base64[ ( ( b[ ptr ] << 4 ) & 0x30 ) ] );\n sb.append( pad );\n sb.append( pad );\n }\n }\n return sb.toString();\n }", "public static byte[] decode(String encoded) {\n \n if (encoded == null)\n return null;\n \n char[] base64Data = encoded.toCharArray();\n // remove white spaces\n int len = removeWhiteSpace(base64Data);\n \n if (len%FOURBYTE != 0) {\n return null;//should be divisible by four\n }\n \n int numberQuadruple = (len/FOURBYTE );\n \n if (numberQuadruple == 0)\n return new byte[0];\n \n byte decodedData[] = null;\n byte b1=0,b2=0,b3=0, b4=0, marker0=0, marker1=0;\n char d1=0,d2=0,d3=0,d4=0;\n \n int i = 0;\n int encodedIndex = 0;\n int dataIndex = 0;\n decodedData = new byte[ (numberQuadruple)*3];\n \n for (; i<numberQuadruple-1; i++) {\n \n if (!isData( (d1 = base64Data[dataIndex++]) )||\n !isData( (d2 = base64Data[dataIndex++]) )||\n !isData( (d3 = base64Data[dataIndex++]) )||\n !isData( (d4 = base64Data[dataIndex++]) ))\n return null;//if found \"no data\" just return null\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n b3 = base64Alphabet[d3];\n b4 = base64Alphabet[d4];\n \n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n }\n \n if (!isData( (d1 = base64Data[dataIndex++]) ) ||\n !isData( (d2 = base64Data[dataIndex++]) )) {\n return null;//if found \"no data\" just return null\n }\n \n b1 = base64Alphabet[d1];\n b2 = base64Alphabet[d2];\n \n d3 = base64Data[dataIndex++];\n d4 = base64Data[dataIndex++];\n if (!isData( (d3 ) ) ||\n !isData( (d4 ) )) {//Check if they are PAD characters\n if (isPad( d3 ) && isPad( d4)) { //Two PAD e.g. 3c[Pad][Pad]\n if ((b2 & 0xf) != 0)//last 4 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 1 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex] = (byte)( b1 <<2 | b2>>4 ) ;\n return tmp;\n } else if (!isPad( d3) && isPad(d4)) { //One PAD e.g. 3cQ[Pad]\n b3 = base64Alphabet[ d3 ];\n if ((b3 & 0x3 ) != 0)//last 2 bits should be zero\n return null;\n byte[] tmp = new byte[ i*3 + 2 ];\n System.arraycopy( decodedData, 0, tmp, 0, i*3 );\n tmp[encodedIndex++] = (byte)( b1 <<2 | b2>>4 );\n tmp[encodedIndex] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n return tmp;\n } else {\n return null;//an error like \"3c[Pad]r\", \"3cdX\", \"3cXd\", \"3cXX\" where X is non data\n }\n } else { //No PAD e.g 3cQl\n b3 = base64Alphabet[ d3 ];\n b4 = base64Alphabet[ d4 ];\n decodedData[encodedIndex++] = (byte)( b1 <<2 | b2>>4 ) ;\n decodedData[encodedIndex++] = (byte)(((b2 & 0xf)<<4 ) |( (b3>>2) & 0xf) );\n decodedData[encodedIndex++] = (byte)( b3<<6 | b4 );\n \n }\n \n return decodedData;\n }", "public CodePointIterator base64Encode() {\n return base64Encode(Base64Alphabet.STANDARD, true);\n }", "static String base64encode(byte[] bytes)\n {\n StringBuilder builder = new StringBuilder(((bytes.length + 2)/ 3) * 4);\n for (int i = 0; i < bytes.length; i += 3)\n {\n byte b0 = bytes[i];\n byte b1 = i < bytes.length - 1 ? bytes[i + 1] : 0;\n byte b2 = i < bytes.length - 2 ? bytes[i + 2] : 0;\n builder.append(BASE64_CHARS[(b0 & 0xFF) >> 2]);\n builder.append(BASE64_CHARS[((b0 & 0x03) << 4) | ((b1 & 0xF0) >> 4)]);\n builder.append(i < bytes.length - 1 ? BASE64_CHARS[((b1 & 0x0F) << 2) | ((b2 & 0xC0) >> 6)] : \"=\");\n builder.append(i < bytes.length - 2 ? BASE64_CHARS[b2 & 0x3F] : \"=\");\n }\n return builder.toString();\n }", "private String convertintobase64(Bitmap bitmap2) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tbitmap2.compress(Bitmap.CompressFormat.PNG, 100, baos);\n\t\tbyte[] b = baos.toByteArray();\n\t\tString temp = Base64.encodeToString(b, Base64.DEFAULT | Base64.NO_WRAP);\n\t\tSystem.out.println(\"encoded string is:\" + temp);\n\t\treturn temp;\n\t}", "private String base64Decode(String token) {\n\t\t \tBase64 base64 = new Base64();\n\t \tbyte[] decodedBytes = base64.decode(token.getBytes()); \t\n\t \tString decodeString = new String(decodedBytes, Charset.forName(\"UTF-8\"));\t\t\n\t \tint index1 = decodeString.indexOf(\"3du\");\n\t \tint index2 = decodeString.indexOf(\"l0g\");\n\t \tint lengthChar = decodeString.length();\n//\t \tif(lengthChar %4 != 0) {\n//\t \t\treturn \"\";\n//\t \t}\n\t \tif((index1 < 3) & (index2 >=3))\n\t \t{\n\t \t\tlengthChar = lengthChar - 3;\n\t \t}\n\t \tif(lengthChar > 0) {\n\t \t\tdecodeString = decodeString.substring(3, lengthChar);\n\t \t} \t\n\t \treturn decodeString;\n\t\t}", "public String base64Decode(String str) throws StoreFactoryException;", "private String convertUploadedFileToBase64(MultipartFile file) throws IOException {\n return Base64.getEncoder().encodeToString(file.getBytes());\n }", "public static String byte2Base64(byte[] bytes) {\n BASE64Encoder encoder = new BASE64Encoder();\n return encoder.encode(bytes);\n }", "private byte[] toBytes(String obj){\n return Base64.getDecoder().decode(obj);\n }", "public static String uuencode (String str) {\n\tStringBuilder ret = new StringBuilder (str.length () * 4 / 3);\n\tchar ch, ch1, ch2, ch3;\n\tint i;\n\t\n\tfor (i = 0; i+2 < str.length (); i+=3) {\t \n\t ch1 = str.charAt (i);\n\t ch2 = str.charAt (i+1);\n\t ch3 = str.charAt (i+2);\n\t ch = uu_base64[((ch1 >> 2) & 077)];\n\t ret.append (ch);\n\t \n\t ch = uu_base64[(((ch1 << 4) & 060) | ((ch2 >> 4) & 017))];\n\t ret.append (ch);\n\t \n\t ch = uu_base64[(((ch2 << 2) & 074) | ((ch3 >> 6) & 03))];\n\t ret.append (ch);\n\t \n\t ch = uu_base64[(ch3 & 077)];\n\t ret.append (ch);\n\t}\n\t\n\t// are we done yet?\n\tif (i == str.length ()) \n\t return ret.toString ();\n\n\t// no so handle the trailing characters.\n\tch1 = str.charAt (i);\n\tch2 = str.length() > i + 1 ? str.charAt (i+1) : (char)0;\n\t\n\tch = uu_base64[((ch1 >> 2) & 077)];\n\tret.append (ch);\n\t\n\tch = uu_base64[(((ch1 << 4) & 060) | ((ch2 >> 4) & 017))];\n\tret.append (ch);\n\t\n\tif (str.length () > i + 1) {\n\t ch = uu_base64[((ch2 << 2) & 074)];\n\t ret.append (ch);\n\t} else {\n\t ret.append ('=');\n\t}\n\tret.append ('=');\n\treturn ret.toString ();\n }", "public static String bitmapEncodeTobase64(Bitmap image) {\n Bitmap immage = image;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n immage.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n String imageEncoded = Base64.encodeToString(b, Base64.DEFAULT);\n return imageEncoded;\n }", "public static String base64EncodeString(String input) throws Exception\n {\n return base64Encode(input.getBytes(\"UTF-8\"));\n }", "public String getDecod(String text) {\n Base64.Decoder decoder = Base64.getDecoder();\n return new String(decoder.decode(text));\n }", "public static String encodeToBase64(Bitmap image) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n image.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n return Base64.encodeToString(b, Base64.DEFAULT);\n }", "Base64Binary getCarrierAIDC();", "public static String base64Encode(byte[] bytes)\n {\n return DatatypeConverter.printBase64Binary(bytes);\n }", "public String encode() {\n return encodeToBase64(encKey.getEncoded()) + \":\" + encodeToBase64(macKey.getEncoded());\n }", "public static String returnEncoded(String text) {\n if (text == null) {\n return null;\n }\n return Base64.encodeToString(text.getBytes(), Base64.NO_WRAP);\n }", "private static String encodeWritable(Writable obj) throws IOException {\n DataOutputBuffer buf = new DataOutputBuffer();\n obj.write(buf);\n Base64 encoder = new Base64(0, null, true);\n byte[] raw = new byte[buf.getLength()];\n System.arraycopy(buf.getData(), 0, raw, 0, buf.getLength());\n return encoder.encodeToString(raw);\n }", "private static String convertToHex(byte[] data) throws IOException {\n //create new instance of string buffer\n StringBuffer stringBuffer = new StringBuffer();\n String hex = \"\";\n\n //encode byte data with base64\n hex = Base64.getEncoder().encodeToString(data);\n stringBuffer.append(hex);\n\n //return string\n return stringBuffer.toString();\n }", "public static String create()\n\t{\n\t\tBASE64Encoder\tencoder = new BASE64Encoder();\n\n\t\treturn encoder.encode(createBytes());\n\t}", "private static byte[] decodeBase64(String data) {\n return Base64.decode(data, BASE64_DFLAGS);\n }", "public String toUrlSafe() {\n// try {\n //todo: key encoder\n return Base64.getEncoder().encodeToString(new Gson().toJson(this).getBytes());\n// return URLEncoder.encode(\"\", UTF_8.name());\n// return URLEncoder.encode(TextFormat.printToString(toPb()), UTF_8.name());\n// } catch (UnsupportedEncodingException e) {\n// throw new IllegalStateException(\"Unexpected encoding exception\", e);\n// }\n }", "public static String base64Encode(String str) {\n sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();\n byte[] bytes = str.getBytes();\n return encoder.encode(bytes);\n\n }", "public static String convertHexToBase64(String hex){\n\t\tMap<String, String> map = new HashMap<>();\n\t\tString Base64CharSet1 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n\t\tfor(int i=0; i<Base64CharSet1.length(); i++){\n\t\t\tmap.put( Integer.toString(i), Base64CharSet1.charAt(i)+\"\");\n\t\t}\n\t\t\n\t\t// Converting Hex to Binary\n\t\tStringBuilder binary = new StringBuilder();\n\t\tfor (int i=0; i< hex.length(); i++){\n\t\t\tint dec = Integer.parseInt(hex.charAt(i) + \"\" , 16);\n\t\t\tStringBuilder bin = new StringBuilder(Integer.toBinaryString(dec));\n\t\t\twhile(bin.length() < 4){\n\t\t\t\tbin.insert(0, \"0\");\n\t\t\t}\n\t\t\tbinary.append(bin);\n\t\t}\n\n\t\t// Converting Binary to Base64 using the Lookup Table\n\t\tStringBuilder b64 = new StringBuilder();\n\t\tfor (int i=0; i<binary.length(); i=i+6){\n\t\t\tString temp = binary.substring(i, i+6);\n\t\t\tint dec = Integer.parseInt(temp, 2);\n\t\t\tb64.append((String) map.get(Integer.toString(dec)));\n\t\t}\n\t\t\n\t\treturn b64.toString();\n\t}", "private byte[] encode(byte[] msg) {\r\n\t\treturn Base64.encode(msg);\r\n\t}", "public static String encodeTobase64(Bitmap image){\n if(image != null) {\n Bitmap image2 = image;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n image2.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n String imageEncoded = Base64.encodeToString(b, Base64.DEFAULT);\n\n Log.d(\"Image Log:\", imageEncoded);\n return imageEncoded;\n }\n else{\n return \"\";\n }\n }", "private String encode(String str) {\n verifyNotNull(str, ERROR_MESSAGE);\n byte[] bytes = str.getBytes();\n return Base64.getEncoder()\n .withoutPadding()\n .encodeToString(bytes);\n }", "static byte[] base64ToByteArray(String s) {\r\n byte[] alphaToInt = base64ToInt;\r\n int sLen = s.length();\r\n int numGroups = sLen/4;\r\n if (4*numGroups != sLen)\r\n throw new IllegalArgumentException(\r\n \"String length must be a multiple of four.\");\r\n int missingBytesInLastGroup = 0;\r\n int numFullGroups = numGroups;\r\n if (sLen != 0) {\r\n if (s.charAt(sLen-1) == '=') {\r\n missingBytesInLastGroup++;\r\n numFullGroups--;\r\n }\r\n if (s.charAt(sLen-2) == '=')\r\n missingBytesInLastGroup++;\r\n }\r\n byte[] result = new byte[3*numGroups - missingBytesInLastGroup];\r\n\r\n // Translate all full groups from base64 to byte array elements\r\n int inCursor = 0, outCursor = 0;\r\n for (int i=0; i<numFullGroups; i++) {\r\n int ch0 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch1 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch2 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch3 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n result[outCursor++] = (byte) ((ch0 << 2) | (ch1 >> 4));\r\n result[outCursor++] = (byte) ((ch1 << 4) | (ch2 >> 2));\r\n result[outCursor++] = (byte) ((ch2 << 6) | ch3);\r\n }\r\n\r\n // Translate partial group, if present\r\n if (missingBytesInLastGroup != 0) {\r\n int ch0 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch1 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n result[outCursor++] = (byte) ((ch0 << 2) | (ch1 >> 4));\r\n\r\n if (missingBytesInLastGroup == 1) {\r\n int ch2 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n result[outCursor++] = (byte) ((ch1 << 4) | (ch2 >> 2));\r\n }\r\n }\r\n // assert inCursor == s.length()-missingBytesInLastGroup;\r\n // assert outCursor == result.length;\r\n return result;\r\n }", "static byte[] base64decode(String base64)\n {\n // Remove all whitespace.\n base64 = base64.replaceAll(\"\\\\s\", \"\");\n int endTrim = 0;\n if (base64.endsWith(\"==\")) {\n endTrim = 2;\n base64 = base64.substring(0, base64.length() - 2) + \"AA\";\n } else if (base64.endsWith(\"=\"))\n {\n endTrim = 1;\n base64 = base64.substring(0, base64.length() - 1) + \"A\";\n }\n if (base64.length() % 4 != 0) throw new IllegalArgumentException(\"Illegal base64 string, length \" + base64.length());\n int length = (base64.length() / 4) * 3 - endTrim;\n base64 = base64.replace('=', 'A');\n byte[] result = new byte[length];\n int stringLength = base64.length();\n int index = 0;\n for (int i = 0; i < stringLength; i += 4)\n {\n int i0 = BASE64_STRING.indexOf(base64.charAt(i));\n int i1 = BASE64_STRING.indexOf(base64.charAt(i + 1));\n int i2 = BASE64_STRING.indexOf(base64.charAt(i + 2));\n int i3 = BASE64_STRING.indexOf(base64.charAt(i + 3));\n byte b0 = (byte) ((i0 << 2) | (i1 >> 4));\n byte b1 = (byte) ((i1 << 4) | (i2 >> 2));\n byte b2 = (byte) ((i2 << 6) | i3);\n result[index++] = b0;\n if (index < length)\n {\n result[index++] = b1;\n if (index < length)\n {\n result[index++] = b2;\n }\n }\n }\n return result;\n }", "public static String encodeString(String str) throws IOException {\n BASE64Encoder encoder = new BASE64Encoder();\n String encodedStr = encoder.encodeBuffer(str.getBytes());\n \n return (encodedStr.trim());\n }", "public ValidationEntity encodeBase64(ValidationEntity validationEntity) {\n String encodedBytes =\n Base64.getEncoder().encodeToString(validationEntity.getInputMessage().getBytes(StandardCharsets.UTF_8));\n log.debug(\"encodeBase64 completed successfully: {}\", encodedBytes);\n validationEntity.setValid(true);\n validationEntity.setInputMessage(encodedBytes);\n validationEntity.setValidationMessage(\"Encode Successful!!!\");\n return validationEntity;\n }", "public String getEncodedImage() {\n String base64String = Base64.getEncoder().encodeToString(profilePictureBytes);\n return base64String;\n }", "public static String encode(byte[] data) {\n\t\treturn Base64.getEncoder().encodeToString(data);\n\t}", "public static String base64Encode(final byte[] key) {\n return Base64.encode(key);\n }", "private static void encodeString(String in){\n\n\t\tString officalEncodedTxt = officallyEncrypt(in);\n\t\tSystem.out.println(\"Encoded message: \" + officalEncodedTxt);\n\t}", "String decodeString();", "protected String getEncodedFileContent() throws IOException\n {\n if (fullAttachmentFilename == null)\n {\n return null;\n }\n Path path = Paths.get(fullAttachmentFilename);\n byte[] byteArray = Files.readAllBytes(path);\n Base64 x = new Base64();\n String encodedFileContent = x.encodeAsString(byteArray);\n return encodedFileContent;\n }", "public String fromImageToString(BitmapDrawable personPhoto){\n Bitmap photoBitmap = personPhoto.getBitmap();\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n photoBitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n byte[] photoByteFormat = stream.toByteArray();\n String encodedImage = Base64.encodeToString(photoByteFormat, Base64.NO_WRAP);\n return encodedImage;\n }", "public String getBase64EncodedPNG()\n\t{\n\t\tString base64Png = null;\n\t\tByteArrayOutputStream output = new ByteArrayOutputStream();\n\t\ttry\n\t\t{\n\t\t\tif (getBlackWhiteBitmap().compress(Bitmap.CompressFormat.PNG, 100, output))\n\t\t\t{\n\t\t\t\tbyte[] imgData = output.toByteArray();\n\t\t\t\tbase64Png = Base64.encodeToString(imgData, Base64.DEFAULT);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn base64Png;\n\t}", "public final static String decodeBase64(String data) {\n\t\tString rc = null;\n\t\tbyte[] b64 = Base64.decodeBase64(data);\n\t\trc = new String(b64);\n\t\treturn rc;\n\t}", "public static String encode(String arg) {\n String encoded = Base64.getEncoder().encodeToString(arg.getBytes());\n\n return encoded;\n }", "private String encodeBase64(String ldapPwd){\n try {\n return CryptoUtils.object2String(ldapPwd);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public static String encode(byte[] binaryData) {\n \n if (binaryData == null)\n return null;\n \n int lengthDataBits = binaryData.length*EIGHTBIT;\n if (lengthDataBits == 0) {\n return \"\";\n }\n \n int fewerThan24bits = lengthDataBits%TWENTYFOURBITGROUP;\n int numberTriplets = lengthDataBits/TWENTYFOURBITGROUP;\n int numberQuartet = fewerThan24bits != 0 ? numberTriplets+1 : numberTriplets;\n int numberLines = (numberQuartet-1)/19+1;\n char encodedData[] = null;\n \n encodedData = new char[numberQuartet*4+numberLines];\n \n byte k=0, l=0, b1=0,b2=0,b3=0;\n \n int encodedIndex = 0;\n int dataIndex = 0;\n int i = 0;\n if (fDebug) {\n System.out.println(\"number of triplets = \" + numberTriplets );\n }\n \n for (int line = 0; line < numberLines-1; line++) {\n for (int quartet = 0; quartet < 19; quartet++) {\n b1 = binaryData[dataIndex++];\n b2 = binaryData[dataIndex++];\n b3 = binaryData[dataIndex++];\n \n if (fDebug) {\n System.out.println( \"b1= \" + b1 +\", b2= \" + b2 + \", b3= \" + b3 );\n }\n \n l = (byte)(b2 & 0x0f);\n k = (byte)(b1 & 0x03);\n \n byte val1 = ((b1 & SIGN)==0)?(byte)(b1>>2):(byte)((b1)>>2^0xc0);\n \n byte val2 = ((b2 & SIGN)==0)?(byte)(b2>>4):(byte)((b2)>>4^0xf0);\n byte val3 = ((b3 & SIGN)==0)?(byte)(b3>>6):(byte)((b3)>>6^0xfc);\n \n if (fDebug) {\n System.out.println( \"val2 = \" + val2 );\n System.out.println( \"k4 = \" + (k<<4));\n System.out.println( \"vak = \" + (val2 | (k<<4)));\n }\n \n encodedData[encodedIndex++] = lookUpBase64Alphabet[ val1 ];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ val2 | ( k<<4 )];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ (l <<2 ) | val3 ];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ b3 & 0x3f ];\n \n i++;\n }\n encodedData[encodedIndex++] = 0xa;\n }\n \n for (; i<numberTriplets; i++) {\n b1 = binaryData[dataIndex++];\n b2 = binaryData[dataIndex++];\n b3 = binaryData[dataIndex++];\n \n if (fDebug) {\n System.out.println( \"b1= \" + b1 +\", b2= \" + b2 + \", b3= \" + b3 );\n }\n \n l = (byte)(b2 & 0x0f);\n k = (byte)(b1 & 0x03);\n \n byte val1 = ((b1 & SIGN)==0)?(byte)(b1>>2):(byte)((b1)>>2^0xc0);\n \n byte val2 = ((b2 & SIGN)==0)?(byte)(b2>>4):(byte)((b2)>>4^0xf0);\n byte val3 = ((b3 & SIGN)==0)?(byte)(b3>>6):(byte)((b3)>>6^0xfc);\n \n if (fDebug) {\n System.out.println( \"val2 = \" + val2 );\n System.out.println( \"k4 = \" + (k<<4));\n System.out.println( \"vak = \" + (val2 | (k<<4)));\n }\n \n encodedData[encodedIndex++] = lookUpBase64Alphabet[ val1 ];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ val2 | ( k<<4 )];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ (l <<2 ) | val3 ];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ b3 & 0x3f ];\n }\n \n // form integral number of 6-bit groups\n if (fewerThan24bits == EIGHTBIT) {\n b1 = binaryData[dataIndex];\n k = (byte) ( b1 &0x03 );\n if (fDebug) {\n System.out.println(\"b1=\" + b1);\n System.out.println(\"b1<<2 = \" + (b1>>2) );\n }\n byte val1 = ((b1 & SIGN)==0)?(byte)(b1>>2):(byte)((b1)>>2^0xc0);\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ val1 ];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ k<<4 ];\n encodedData[encodedIndex++] = PAD;\n encodedData[encodedIndex++] = PAD;\n } else if (fewerThan24bits == SIXTEENBIT) {\n b1 = binaryData[dataIndex];\n b2 = binaryData[dataIndex +1 ];\n l = ( byte ) ( b2 &0x0f );\n k = ( byte ) ( b1 &0x03 );\n \n byte val1 = ((b1 & SIGN)==0)?(byte)(b1>>2):(byte)((b1)>>2^0xc0);\n byte val2 = ((b2 & SIGN)==0)?(byte)(b2>>4):(byte)((b2)>>4^0xf0);\n \n encodedData[encodedIndex++] = lookUpBase64Alphabet[ val1 ];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ val2 | ( k<<4 )];\n encodedData[encodedIndex++] = lookUpBase64Alphabet[ l<<2 ];\n encodedData[encodedIndex++] = PAD;\n }\n \n //encodedData[encodedIndex] = 0xa;\n \n return new String(encodedData);\n }", "String encrypt(String input) {\n\t\treturn BaseEncoding.base64().encode(input.getBytes());\n\t}", "default byte[] decodificarBase64(String archivoBase64) {\n\t\treturn Base64.getDecoder().decode(archivoBase64);\n\t}", "public static String toBase64(byte[] aValue) {\n \n final String m_strBase64Chars =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n \n int byte1;\n int byte2;\n int byte3;\n int iByteLen = aValue.length;\n StringBuffer tt = new StringBuffer();\n \n for (int i = 0; i < iByteLen; i += 3) {\n boolean bByte2 = (i + 1) < iByteLen;\n boolean bByte3 = (i + 2) < iByteLen;\n byte1 = aValue[i] & 0xFF;\n byte2 = (bByte2) ? (aValue[i + 1] & 0xFF) : 0;\n byte3 = (bByte3) ? (aValue[i + 2] & 0xFF) : 0;\n \n tt.append(m_strBase64Chars.charAt(byte1 / 4));\n tt.append(m_strBase64Chars.charAt((byte2 / 16) + ((byte1 & 0x3) * 16)));\n tt.append(((bByte2) ? m_strBase64Chars.charAt((byte3 / 64) + ((byte2 & 0xF) * 4)) : '='));\n tt.append(((bByte3) ? m_strBase64Chars.charAt(byte3 & 0x3F) : '='));\n }\n \n return tt.toString();\n }", "public static String stringToBase64String(String text) {\n if (text == null) return null;\n return new String(Base64.encodeBase64(text.getBytes()));\n }", "public static String encodeBase64(String string) {\n\t\tif (string == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn Base64.getEncoder().encodeToString(string.getBytes(UTF_8));\n\t}", "private Base64(){}", "public static String create()\n\t{\n\t\treturn new String(B64Code.encode(createBytes()));\n\t}", "public static String getEncodedKey(final String key)\n {\n String encodedKey = key;\n \n try {\n final int ontEnd = key.indexOf(ONT_SEPARATOR);\n if (ontEnd != -1) { \n final String prefix = key.substring(0, ontEnd + 1);\n final String name = key.substring(ontEnd + 1, key.length());\n final String encodedName = java.net.URLEncoder.encode(name, \"UTF-8\");\n if (name != encodedName) {\n encodedKey = prefix + encodedName;\n if (DEBUG.RDF) Log.debug(\"encoded \" + Util.tags(key) + \" to \" + Util.tags(encodedKey));\n }\n } else {\n encodedKey = java.net.URLEncoder.encode(key, \"UTF-8\");\n if (DEBUG.RDF && encodedKey != key) Log.debug(\"encoded \" + Util.tags(key) + \" to \" + Util.tags(encodedKey));\n }\n }\n catch (java.io.UnsupportedEncodingException e) {\n Log.warn(\"encoding key \" + Util.tags(key), e); \n }\n \n return encodedKey;\n }", "private char[] encode(byte[] data) {\n char[] out = new char[getLengthInCharacters(data.length)];\n //\n // 3 bytes encode to 4 chars. Output is always an even\n // multiple of 4 characters.\n //\n for (int i = 0, index = 0; i < data.length; i++, index += CHARACTERS_IN_BLOCK) {\n boolean quad = false;\n boolean trip = false;\n\n int val = byteValue(data[i]);\n val <<= MULTIPLY_BY_256;\n i++; // NOSONAR each loop is actually i+3, and we increment counter inside loop\n if (i < data.length) {\n val |= byteValue(data[i]);\n trip = true;\n }\n val <<= MULTIPLY_BY_256;\n i++; // NOSONAR each loop is actually i+3, and we increment counter inside loop\n if (i < data.length) {\n val |= byteValue(data[i]);\n quad = true;\n }\n out[index + 3] = SESSION_ID_ALPHABET[(quad ? (val & MASK_6_BITS) : FILLER_CHARACTER_INDEX)]; // NOSONAR 3 is not magic!\n val >>= DIVIDE_BY_64;\n out[index + 2] = SESSION_ID_ALPHABET[(trip ? (val & MASK_6_BITS) : FILLER_CHARACTER_INDEX)]; // NOSONAR 2 is not magic!\n val >>= DIVIDE_BY_64;\n out[index + 1] = SESSION_ID_ALPHABET[val & MASK_6_BITS];\n val >>= DIVIDE_BY_64;\n //\n // evry odd step use only alpha characters for last digit, so any number sequence will be at most 7 characters\n //\n if ((i & 0x01) != 0) { // NOSONAR we check last bit\n out[index] = SESSION_ID_ALPHABET[val & MASK_6_BITS];\n } else {\n out[index] = SESSION_ID_ALPHABET_2[val & MASK_6_BITS];\n }\n }\n return out;\n }", "public abstract byte[] getEncoded();", "private static byte[] m24635a(Context context, String str) {\n String f = C6014b.m23956f();\n String string = Secure.getString(context.getContentResolver(), \"android_id\");\n String substring = str.substring(0, Math.min(8, str.length() - 1));\n StringBuilder sb = new StringBuilder();\n sb.append(substring);\n sb.append(f.substring(0, Math.min(8, f.length() - 1)));\n String sb2 = sb.toString();\n StringBuilder sb3 = new StringBuilder();\n sb3.append(sb2);\n sb3.append(string.substring(0, Math.min(8, string.length() - 1)));\n String sb4 = sb3.toString();\n if (sb4.length() != 24) {\n StringBuilder sb5 = new StringBuilder();\n sb5.append(sb4);\n sb5.append(str.substring(8, 24 - sb4.length()));\n sb4 = sb5.toString();\n }\n return sb4.getBytes();\n }", "public static byte[] fromBase64(String data)\n {\n return Base64.decode(data, Base64.NO_WRAP);\n }", "public String serialize() throws IOException \r\n\t{\r\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n\t\tObjectOutputStream oos = new ObjectOutputStream(baos);\r\n\t\toos.writeObject(this);\r\n\t\toos.close();\r\n\t\treturn new String(Base64Coder.encode(baos.toByteArray()));\r\n\t}", "public static String encodeToBase64String(MultipartFile file) throws IOException, SQLException {\n byte[] fileBytes = file.getBytes();\n String base64String = Base64Utils.encodeToString(fileBytes);\n\n return base64String;\n }", "private String encodeBytesFromBuffer(int howMany) {\n String result;\n\n if (innerStreamHasMoreData) {\n howMany = howMany - howMany % 3;\n }\n\n if (howMany == 0) {\n return \"\";\n }\n\n byte[] encodeBuffer = new byte[howMany];\n System.arraycopy(buffer, 0, encodeBuffer, 0, howMany);\n result = Base64.encodeToString(encodeBuffer);\n\n bytesInBuffer -= howMany;\n if (bytesInBuffer != 0) {\n System.arraycopy(buffer, howMany, buffer, 0, bytesInBuffer);\n }\n\n return result;\n }", "public static String base64DecodeString(String value) throws Exception\n {\n return new String(DatatypeConverter.parseBase64Binary(value), \"UTF-8\");\n }", "public String toExternalString() {\n\t\treturn new String(signature, US_ASCII);\n\t}", "public String emitAsImageBase64() {\n BufferedImage img = emitAsBufferedImage();\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n ImageIO.write(img, \"png\", os);\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n Base64 b64 = new Base64();\n String result = b64.encode(os.toByteArray());\n try {\n os.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }", "private String encodeMessage() {\n\t\tString encode = \"\";\n\t\tfor (int i = 0; i < message.length(); i++) {\n\t\t\tencode += map.get(message.charAt(i));\n\t\t}\n\t\tgenerateBack();\n\t\treturn encode;\n\t}", "public String getEncodedForm()\n {\n return Base64.encodeToString(mForm.gotoRoot().toBytes(), Base64.DEFAULT); \n }", "private String base64Encode(String xmlAsString, String xmlEncoding) throws UnsupportedEncodingException {\r\n String xmlencodingDeclaration = \"<?xml version=\\\"1.0\\\" encoding=\\\"\" + xmlEncoding + \"\\\"?>\";\r\n byte[] xmlAsBytes = (xmlencodingDeclaration + xmlAsString).getBytes(xmlEncoding);\r\n\r\n byte[] xmlAsBase64 = Base64.encodeBase64(xmlAsBytes);\r\n\r\n // base64 is pure ascii\r\n String xmlAsBase64String = new String(xmlAsBase64, \"ascii\");\r\n\r\n return xmlAsBase64String;\r\n }", "static public String encode(byte[] binaryData) {\n if (binaryData == null)\n return null;\n int lengthData = binaryData.length;\n int lengthEncode = lengthData * 2;\n char[] encodedData = new char[lengthEncode];\n int temp;\n for (int i = 0; i < lengthData; i++) {\n temp = binaryData[i];\n if (temp < 0)\n temp += 256;\n encodedData[i*2] = lookUpHexAlphabet[temp >> 4];\n encodedData[i*2+1] = lookUpHexAlphabet[temp & 0xf];\n }\n return new String(encodedData);\n }", "public String getEncoded64ImageStringFromBitmap(Bitmap bitmap) {\n\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n byte[] byteFormat = stream.toByteArray();\n // get the base 64 string\n //String imgString = Base64.encodeToString(byteFormat, Base64.NO_WRAP);\n String imgString = Base64.encodeToString(byteFormat, Base64.DEFAULT);\n\n return imgString;\n }", "public static String bitMapToBase64String(Bitmap bitmap){\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, byteStream);\n byte[] byteArray = byteStream.toByteArray();\n String baseString = Base64.encodeToString(byteArray,Base64.DEFAULT);\n return baseString;\n }", "private static String extractBase64EncodedKey(String pemKey) throws GeneralSecurityException\n {\n Matcher matcher = KEY_PATTERN.matcher(pemKey);\n if (matcher.find())\n {\n return matcher.group(1).replaceAll(\"\\\\s\", \"\");\n }\n else\n {\n throw new GeneralSecurityException(\"Invalid private key format\");\n }\n }", "public String encodeKey() {\n byte[] keyByte = secretKey.getEncoded();\n return Base64.getEncoder().encodeToString(keyByte);\n }", "public String getEncoded()\n\t{\n\t\treturn this.encodedText;\n\t}", "public static String encrypt(String input) {\n\t\tBase64.Encoder encoder = Base64.getMimeEncoder();\n String message = input;\n String key = encoder.encodeToString(message.getBytes());\n return key;\n\t}", "public static String getEncodedFile(File file) {\n InputStream fis = null;\n StringBuilder sb = new StringBuilder(\"\");\n try {\n fis = new FileInputStream(file);\n byte[] buffer = new byte[fis.available()];\n final int readLength = fis.read(buffer);\n Log.i(TAG, \"getEncodedFile: Read Length: \" + readLength);\n sb.append(Base64.encodeToString(buffer, Base64.DEFAULT));\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fis != null) {\n try {\n fis.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return sb.toString();\n }", "public static byte[] base64ToByte(String data) throws IOException {\n BASE64Decoder decoder = new BASE64Decoder();\n return decoder.decodeBuffer(data);\n }", "public static String toBase64String(final byte[] bytes) {\n Objects.requireNonNull(bytes);\n return (DatatypeConverter.printBase64Binary(bytes));\n }", "public static String convertPassword(String jiveEncodedPassword) {\r\n String mvnEncodedPassword=null;\r\n try {\r\n byte[] decodedByteArray = Hex.decodeHex(jiveEncodedPassword.toCharArray());\r\n mvnEncodedPassword=new String(Base64.encodeBase64(decodedByteArray));\r\n } catch (Exception e) {\r\n mvnEncodedPassword=null;\r\n }\r\n return mvnEncodedPassword;\r\n }", "public static String getEmailEncoded(String email){\n String preKey = email.replace(\"_\",\"__\");\n return preKey.replace(\".\",\"_\");\n }", "public String encode() {\n\t\tString coded = \"\";\n\t\tfor (Character c: this.input.toCharArray()) {\n\t\t\tcoded += this.mapping.get(c);\n\t\t}\n\t\treturn coded;\n\t}", "public String decode64(String bytesEncoded)\n\t{\n\t\tbyte[] valueDecoded= Base64.decodeBase64(bytesEncoded);\n\t\t//System.out.println(\"Decoded value is \" + new String(valueDecoded));\n\t\treturn new String(valueDecoded);\n\t}" ]
[ "0.7065799", "0.6947346", "0.6746004", "0.6714024", "0.6458166", "0.6420546", "0.63457155", "0.6332678", "0.6260021", "0.6243223", "0.623643", "0.619039", "0.6127642", "0.61231995", "0.61213833", "0.6091232", "0.6084362", "0.608348", "0.60791284", "0.60718113", "0.60580784", "0.6045747", "0.6041702", "0.60187143", "0.59767896", "0.59758735", "0.5962754", "0.5947331", "0.59291947", "0.5924128", "0.59130156", "0.5909654", "0.5900015", "0.58991647", "0.5889969", "0.58819216", "0.5865655", "0.5842277", "0.58392096", "0.5822833", "0.581869", "0.58185524", "0.58170396", "0.5816561", "0.58101946", "0.58048177", "0.5801615", "0.57952935", "0.57945085", "0.5781223", "0.5774646", "0.5771649", "0.5767674", "0.576544", "0.57565475", "0.5750567", "0.5750338", "0.5744979", "0.57396483", "0.57301205", "0.57074404", "0.57063264", "0.5695948", "0.56752765", "0.56614244", "0.56457937", "0.5639221", "0.56355447", "0.5629277", "0.562889", "0.56243956", "0.5624234", "0.56152153", "0.5613622", "0.561253", "0.5599181", "0.55947506", "0.5591358", "0.55876863", "0.5585776", "0.5570079", "0.556458", "0.5559158", "0.55589455", "0.5534971", "0.5531573", "0.5529461", "0.55286384", "0.5527606", "0.5525904", "0.55185753", "0.5516644", "0.55155647", "0.55126846", "0.5511222", "0.55066067", "0.54795605", "0.5478942", "0.5478654", "0.5475399", "0.5474718" ]
0.0
-1
NEVER CHANGE THE ORDERING OF THE PARAMETERS. THE SWITCH (RIGHT, LEFT) IS DELIBERATE!
public Iterator<GraphMapping<ToscaNode, ToscaEdge>> findMatches(ToscaGraph queryGraph, ToscaGraph toSearchIn, IToscaMatcher comp) { Comparator<ToscaNode> vertexComparator = (ToscaNode left, ToscaNode right) -> new ToscaComparatorProxy(comp).compareTypeCompatible(right, left); Comparator<ToscaEdge> edgeComparator = (ToscaEdge left, ToscaEdge right) -> new ToscaComparatorProxy(comp).compareTypeCompatible(right, left); VF2SubgraphIsomorphismInspector<ToscaNode, ToscaEdge> inspector = new VF2SubgraphIsomorphismInspector<>(toSearchIn, queryGraph, vertexComparator, edgeComparator); return inspector.getMappings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void switchSides() {\n\t\tint temp = 0;\r\n\t\ttemp = leftValue;\r\n\t\tleftValue = rightValue;\r\n\t\trightValue = temp;\r\n\t}", "void setLeftToRight(boolean ltor);", "public void changeDirection()\n {\n if(goLeft){\n goLeft = false;\n }else{\n goLeft = true;\n }\n }", "private void rotateRight() {\r\n\t switch(direction){\r\n\t case Constants.DIRECTION_NORTH:\r\n\t direction = Constants.DIRECTION_EAST;\r\n\t break;\r\n\t case Constants.DIRECTION_EAST:\r\n\t direction = Constants.DIRECTION_SOUTH;\r\n\t break;\r\n\t case Constants.DIRECTION_SOUTH:\r\n\t direction = Constants.DIRECTION_WEST;\r\n\t break;\r\n\t case Constants.DIRECTION_WEST:\r\n\t direction = Constants.DIRECTION_NORTH;\r\n\t break;\r\n\t }\r\n\t }", "void changeDirection();", "public void turnRight() { turn(\"RIGHT\"); }", "boolean getLeftToRight();", "public void right(){\n\t\tmoveX=1;\n\t\tmoveY=0;\n\t}", "private void right() {\n lastMovementOp = Op.RIGHT;\n rotate(TURNING_ANGLE);\n }", "public void changeDirection(){\n\t\tthis.toRight ^= true;\n\t\t\n\t\tif(this.toRight)\n\t\t\tthis.nextElem = (this.currElem + 1) % players.size();\n\t\telse\n\t\t\tthis.nextElem = (this.currElem - 1 + players.size()) % players.size();\n\t}", "void reverseDirection();", "public void switchOr() {\n if (orientation == 1) {\n orientation = 0;\n }\n else {\n orientation = 1;\n }\n }", "private void LeftRightRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n\t\t\n\t}", "public void moveRight() {\n\t\t\n\t}", "public String getDirection(){\n\t\tif(this.toRight)\n\t\t\treturn \"RIGHT\";\n\t\telse\n\t\t\treturn \"LEFT\";\n\t}", "public void drive(double leftMotors, double rightMotors) {\n\t\tleft1.set(leftMotors);\n\t\tleft2.set(leftMotors);\n\t\tleft3.set(leftMotors);\n\t\tright1.set(rightMotors);\n\t\tright2.set(rightMotors);\n\t\tright3.set(rightMotors);\n\t}", "public void turnLeft() { turn(\"LEFT\"); }", "public void turnRight() {\r\n setDirection( modulo( myDirection+1, 4 ) );\r\n }", "void moveRight();", "void whichWay(Pair adder){\n\t\tSystem.out.print(\"arah kanan : \");\n\t\tswitch (adder.RIGHT_STATUS) {\n\t\tcase ATAS_BOTTOM:\n\t\t\tSystem.out.println(\"bawah\");\n\t\t\tbreak;\n\n\t\tcase ATAS_UP:\n\t\t\tSystem.out.println(\"atas\");\n\t\t\tbreak;\n\n\t\tcase ATAS_RIGHT:\n\t\t\tSystem.out.println(\"kanan\");\n\t\t\tbreak;\n\n\t\tcase ATAS_LEFT:\n\t\t\tSystem.out.println(\"kiri\");\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\tpublic String calculateRightTurn() {\n\t\t// check the current side with the side of the retrieved value from\n\t\t// properties file.\n\t\tif (side.substring(1).equals(properties.getSideFromProperties().get(1))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(2);\n\n\t\t} else if (side.substring(1).equals(properties.getSideFromProperties().get(2))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(3);\n\n\t\t} else if (side.substring(1).equals(properties.getSideFromProperties().get(3))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(4);\n\n\t\t} else {\n\t\t\tthis.side = properties.getSideFromProperties().get(1);\n\t\t}\n\t\t// return the new side to update the image shown with the starting\n\t\t// letter of the room and the side to be the same as the name of the\n\t\t// image.\n\t\treturn this.room.substring(0, 1).toLowerCase() + this.side;\n\t}", "public void directionRestriction(){\n \t\n }", "private void LeftLeftRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}", "public void turnLeft() {\r\n setDirection( modulo( myDirection-1, 4 ) );\r\n }", "protected void right() {\n move(positionX + 1, positionY);\n orientation = 0;\n }", "public void calRightMove() {\n }", "private void setDirection() {\r\n\t\tif (destinationFloor > initialFloor){\r\n\t\t\tdirection = 1;\r\n\t\t} else {\r\n\t\t\tdirection = -1;\r\n\t\t}\r\n\t}", "private void rotateRight() {\n robot.leftBack.setPower(TURN_POWER);\n robot.leftFront.setPower(TURN_POWER);\n robot.rightBack.setPower(-TURN_POWER);\n robot.rightFront.setPower(-TURN_POWER);\n }", "protected void nextDirection()\n {\n if (this.lastKeyDirection == Canvas.LEFT)\n {\n this.lastKeyDirection = keyDirection = Canvas.RIGHT;\n xTotalDistance = 0;\n //yTotalDistance = 0;\n }\n else if (this.lastKeyDirection == Canvas.RIGHT)\n {\n this.lastKeyDirection = keyDirection = Canvas.LEFT;\n xTotalDistance = 0;\n //yTotalDistance = 0;\n }\n }", "public void direction(int dirX, int dirY) {\r\n if (dirX == 1 && dirY == 0) {\r\n this.direction = \"HORI\";\r\n }\r\n else if (dirX == 1 && dirY == -1) {\r\n this.direction = \"RISE\";\r\n }\r\n else if (dirX == 0 && dirY == 1) {\r\n this.direction = \"VERTI\";\r\n }\r\n else {\r\n this.direction = \"FALL\";\r\n }\r\n }", "protected void left() {\n move(positionX - 1, positionY);\n orientation = BattleGrid.RIGHT_ANGLE * 2;\n }", "public static void turnRight() {\n LEFT_MOTOR.forward();\n RIGHT_MOTOR.backward();\n }", "public void moveLeft() {\n\t\t\n\t}", "@Override\r\n\tpublic void onRight() {\n\t\tif (snakeView.smer != snakeView.ZAHOD) {\r\n\t\t\tsnakeView.naslednjaSmer = snakeView.VZHOD;\r\n\t\t}\r\n\t}", "@Test\n\tpublic void lowerLeft2SWCSpecial()\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 112);\n\t\td.set(1, 113);\n\t\td.set(13, 101);\n\t\td.set(14, 102);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(114);\n\t\tassertTrue(2==test_arr.get(0).getX() && 10==test_arr.get(0).getY()\n\t\t\t&& 1==test_arr.get(1).getX() && 10==test_arr.get(1).getY());\n\t}", "@Test\n\tpublic void lowerRight2SWCSpecial()\t\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 99);\n\t\td.set(1, 110);\n\t\td.set(13, 98);\n\t\td.set(14, 109);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(88);\n\t\tassertTrue(10==test_arr.get(0).getX() && 8==test_arr.get(0).getY()\n\t\t\t&& 10==test_arr.get(1).getX() && 9==test_arr.get(1).getY());\n\t}", "public abstract int getDirection();", "public void left(){\n\t\tmoveX=-1;\n\t\tmoveY=0;\n\t}", "private void LeftRightLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}", "private void driveRight() {\n setSpeed(MAX_SPEED, MIN_SPEED);\n }", "public Squarelotron leftRightFlip(int ring);", "@Override\n\tpublic String calculateLeftTurn() {\n\t\t// check the current side with the side of the retrieved value from\n\t\t// properties file.\n\t\tif (side.substring(1).equals(properties.getSideFromProperties().get(1))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(4);\n\n\t\t} else if (side.substring(1).equals(properties.getSideFromProperties().get(2))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(1);\n\n\t\t} else if (side.substring(1).equals(properties.getSideFromProperties().get(3))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(2);\n\n\t\t} else {\n\t\t\tthis.side = properties.getSideFromProperties().get(3);\n\n\t\t}\n\t\t// return the new side to update the image shown with the starting\n\t\t// letter of the room and the side to be the same as the name of the\n\t\t// image.\n\t\treturn this.room.substring(0, 1).toLowerCase() + this.side;\n\t}", "public void UpdateVariables(boolean Up, boolean Down, boolean Right, boolean Left){\r\n\t\tup = Up; down = Down; \r\n\t\tif(!left)right = Right; \r\n\t\tif(!right)left = Left;\r\n\t}", "public String switchDirection(MapTile[][] scanMapTiles, String direction) {\n\tswitch (direction) {\n\tcase \"E\":\n\t\treturn south;\n\tcase \"S\":\n\t\treturn west;\n\tcase \"N\":\n\t\treturn east;\n\tcase \"W\":\n\t\treturn north;\n\tdefault:\n\t\treturn null;\n\n\t}\n\n}", "public Direction optimalChoice(int left, int right) {\n\n\t\tint x = ((left + 2) <= right) ? board.getOptionTable()[left + 2][right] : 0; // x gets max value from left+2 to right.\n\t\tint y = ((left + 1) <= (right - 1)) ? board.getOptionTable()[left + 1][right - 1] : 0; // y gets max value from left+1 to right-1.\n\t\tint z = (left <= (right - 2)) ? board.getOptionTable()[left][right - 2] : 0; // z gets max value from left to right-2.\n\t\t\n\t\tint maxLeft = board.getCards()[left] + Math.min(x, y); // gets the max value if player chose the left card.\n\t\tint maxRight = board.getCards()[right] + Math.min(y, z); // gets the max value if player chose the right card.\n\t\t\n\t\tif(maxRight > maxLeft) {\n\t\t\treturn Direction.RIGHT;\n\t\t} else {\n\t\t\treturn Direction.LEFT;\n\t\t}\n\t\t\n\n\t}", "public abstract void setDirection(int dir);", "@Test\n public void testMove() {\n Point Left_1_North = Day1.move(\"L\", 1, new Point(0, 0), \"NORTH\");\n assertEquals(new Point(-1, 0), Left_1_North);\n\n Point Left_1_South = Day1.move(\"L\", 1, new Point(0, 0), \"SOUTH\");\n assertEquals(new Point(1, 0), Left_1_South);\n\n Point Left_1_East = Day1.move(\"L\", 1, new Point(0, 0), \"EAST\");\n assertEquals(new Point(0, 1), Left_1_East);\n\n Point Left_1_West = Day1.move(\"L\", 1, new Point(0, 0), \"WEST\");\n assertEquals(new Point(0, -1), Left_1_West);\n\n //turn right when facing North, South, East and West\n Point Right_1_North = Day1.move(\"R\", 1, new Point(0, 0), \"NORTH\");\n assertEquals(new Point(1, 0), Right_1_North);\n\n Point Right_1_South = Day1.move(\"R\", 1, new Point(0, 0), \"SOUTH\");\n assertEquals(new Point(-1, 0), Right_1_South);\n\n Point Right_1_East = Day1.move(\"R\", 1, new Point(0, 0), \"EAST\");\n assertEquals(new Point(0, -1), Right_1_East);\n\n Point Right_1_West = Day1.move(\"R\", 1, new Point(0, 0), \"WEST\");\n assertEquals(new Point(0, 1), Right_1_West);\n\n //wrong Input, return current point\n Point wrong = Day1.move(\"A\", 1, new Point(0, 0), \"B\");\n assertEquals(new Point(0, 0), wrong);\n\n }", "public static void turnLeft() {\n LEFT_MOTOR.backward();\n RIGHT_MOTOR.forward();\n }", "public void setSidesToGenerate(final boolean doLeft, final boolean doRight) {\n this.doLeft = doLeft;\n this.doRight = doRight;\n }", "public void rotateLeft() {\n // I fucked up? Rotations are reversed, just gonna switch em\n// tileLogic = getRotateLeft();\n tileLogic = getRotateRight();\n// rotateLeftTex();\n rotateRightTex();\n }", "private void printLeft() {\n System.out.println(\"left side:\");\n if(leftSide != null) {\n for (int person : leftSide) System.out.print(Integer.toString(person) + \" \");\n System.out.println();\n }\n }", "private void RightLeftRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<.5) {\n\t\t\t\tRobot.cubebase.clickdown();//pay attention: maybe this is clickup()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\tif (Robot.autotime.get()>=.5&&Robot.autotime.get()<2.5) {\n \t\t\tRobot.cubebase.clickstop();\n\t\t\t\tRobot.cubebase.liftdown();//pay attention: maybe this is liftdown()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\t //about 300cm note: 0.08*2->90*2=180cm 0.08*3->90*3=270cm 270+45=315cm->0.08*3+0.08/2=0.28s\n \t\tif (Robot.autotime.get()>=2.5&&Robot.autotime.get()<3.9) {\n\t\t\t\tRobot.cubebase.stoplift();\n\t\t\t\tRobot.drivebase.run(.53, -.53 );\n\t\t\t}\n \t\tif (Robot.autotime.get()>=3.9&&Robot.autotime.get()<5.9) {\n\t\t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t}\n \t\tif (Robot.autotime.get()>5.9&&Robot.autotime.get()<6.2) {\n\t\t\t\tRobot.pneumatics_drive.close1();\n\t\t\t}\n \t\tif (Robot.autotime.get()>6.2) {\n \t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n \t\t}}\n \t\t\n\t\t\n\t}", "public void moveRight()\n\t{\n\t\tmoveRight = true;\n\t}", "private static void turnRight(Robot r) \n {\n for(int i=0; i<3;i++)\n {\n r.turnLeft();\n }\n }", "@Test\n\t public void processLeftCommands()\n\t {\n\t Rover rover = createFrontFacingRoverAt(0, 0);\n\t rover.executeCommands(\"l\");\n\t assertTrue(0 == rover.facing.x);\n\t assertTrue(-1 == rover.facing.y);\n\n\t }", "public static void Turno(){\n\t\tif (pl1){\n\t\t\tpl1=false;\n\t\t\tpl2=true;\t\n\t\t\tvalore = 1;\n\t\t}\n\t\telse{\n\t\t\tpl1=true;\n\t\t\tpl2=false;\n\t\t\tvalore = 2;\n\t\t}\n\t}", "@Test\n\tpublic void lowerRight1SWCSpecial()\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 99);\n\t\td.set(1, 110);\n\t\td.set(13, 98);\n\t\td.set(14, 109);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(88);\n\t\tassertTrue(10==test_arr.get(0).getX() && 8==test_arr.get(0).getY()\n\t\t\t&& 10==test_arr.get(1).getX() && 9==test_arr.get(1).getY());\n\t}", "public Direction left() {\r\n\t\tint newDir = this.index - 1;\r\n\r\n\t\tnewDir = (newDir == 0) ? 4 : newDir;\r\n\t\treturn getEnum(newDir);\r\n\t}", "public void driveRaw (double left, double right) {\n leftBackMotor.set(left);\n leftMiddleMotor.set(left);\n leftFrontMotor.set(left);\n rightBackMotor.set(right);\n rightMiddleMotor.set(right);\n rightFrontMotor.set(right);\n }", "public void rotateRight() {\n// tileLogic = getRotateRight();\n tileLogic = getRotateLeft();\n// rotateRightTex();\n rotateLeftTex();\n }", "int getDirection();", "public void setRight(int x) {\r\n rightSide = x;\r\n }", "private void rotateLeft() {\n robot.leftBack.setPower(-TURN_POWER);\n robot.leftFront.setPower(-TURN_POWER);\n robot.rightBack.setPower(TURN_POWER);\n robot.rightFront.setPower(TURN_POWER);\n }", "public void setLeftRightMotorOutputs(double left, double right)\n\t{\n\t\tleft = MathUtil.clamp(left, -1.0, +1.0);\n\t\tright = MathUtil.clamp(right, -1.0, +1.0);\n\t\t\n\t\tleftMotor1.set(ControlMode.PercentOutput, Math.copySign(left * left, left));\n\t\trightMotor1.set(ControlMode.PercentOutput, Math.copySign(right * right, right));\n\t}", "public void drive(double speedLeft, double speedRight){\n \t\tsetRight(speedRight);\n \t\tsetLeft(speedLeft);\n \t}", "private void checkFlipDirection()\n\t{\n\t\tif (currentFloor == 0) //Are we at the bottom?\n\t\t\tcurrentDirection = Direction.UP; //Then we must go up\n\t\tif (currentFloor == (ElevatorSystem.getNumberOfFloors() - 1)) //Are we at the top?\n\t\t\tcurrentDirection = Direction.DOWN; //Then we must go down\n\t}", "void moveRight() {\n\t\tsetX(x+1);\r\n\t\tdx=1;\r\n\t\tdy=0;\r\n\t}", "private Side secondSide(final Cell cell, final Side prev) {\n switch (cell.getCellNdx()) {\n case 8:\n case 12:\n case 14:\n return LEFT;\n case 1:\n case 9:\n case 13:\n return BOTTOM;\n case 2:\n case 3:\n case 11:\n return RIGHT;\n case 4:\n case 6:\n case 7:\n return TOP;\n case 5:\n if (prev == null) {\n if (LOGGER.isErrorEnabled()) {\n LOGGER.atError().addArgument(cell).log(\"cell '{}' switch case 5, prev is null\");\n }\n throw new IllegalStateException(\"cell \" + cell + \" prev is null\");\n }\n switch (prev) {\n case LEFT:\n return cell.isFlipped() ? BOTTOM : TOP;\n case RIGHT:\n return cell.isFlipped() ? TOP : BOTTOM;\n default:\n final String m = \"Saddle w/ no connected neighbour; Cell = \" + cell + \", previous side = \" + prev;\n throw new IllegalStateException(m);\n }\n case 10:\n if (prev == null) {\n if (LOGGER.isErrorEnabled()) {\n LOGGER.atError().addArgument(cell).log(\"cell '{}' switch case 5, prev is null\");\n }\n throw new IllegalStateException(\"cell \" + cell + \" prev is null\");\n }\n switch (prev) {\n case BOTTOM:\n return cell.isFlipped() ? RIGHT : LEFT;\n case TOP:\n return cell.isFlipped() ? LEFT : RIGHT;\n default:\n final String m = \"Saddle w/ no connected neighbour; Cell = \" + cell + \", previous side = \" + prev;\n throw new IllegalStateException(m);\n }\n default:\n final String m = \"Attempt to use a trivial Cell as a node: \" + cell;\n throw new IllegalStateException(m);\n }\n }", "@Override\r\n\tpublic void rotateLeft() {\n\t\tsetDirection((this.getDirection() + 3) % 4);\r\n\t}", "private void turnRight() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n switch (direction) {\n case EAST:\n direction = Position.Direction.SOUTH;\n break;\n case WEST:\n direction = Position.Direction.NORTH;\n break;\n case NORTH:\n direction = Position.Direction.EAST;\n break;\n case SOUTH:\n direction = Position.Direction.WEST;\n break;\n }\n\n currentPosition.setDirection(direction);\n }", "private int dir(Point p1, Point p2) {\n final int dy = p2.y - p1.y;\n switch (p2.x - p1.x) {\n case -1: {\n switch (dy) {\n case -1:\n return 7;\n case 0:\n return 6;\n default:\n return 5;\n }\n }\n case 0: {\n switch (dy) {\n case -1:\n return 0;\n case 0:\n return -1;\n default:\n return 4;\n }\n }\n default:\n switch (dy) {\n case -1:\n return 1;\n case 0:\n return 2;\n default:\n return 3;\n }\n }\n }", "public Squarelotron sideFlip(String side);", "@Override\r\n //used the keyPressed event \r\n public void keyPressed(KeyEvent e) {\n int key = e.getKeyCode();\r\n //If statements works if the key pressed && opposite direction from what it is travelling in \r\n //can't Double back ,should be game over so to avoid it we use the !(not) variable \r\n if ((key == KeyEvent.VK_LEFT) && (!right)) {\r\n left = true;\r\n up = false;\r\n down = false;\r\n }\r\n if ((key == KeyEvent.VK_RIGHT) && (!left)) {\r\n right = true;\r\n up = false;\r\n down = false;\r\n }\r\n if ((key == KeyEvent.VK_UP) && (!down)) {\r\n up= true;\r\n right = false;\r\n left = false;\r\n }\r\n if ((key == KeyEvent.VK_DOWN) && (!up)) {\r\n down= true;\r\n right = false;\r\n left = false;\r\n }\r\n }", "void swap(int start, int end) {\n\n pushLeftWord(start);\n pushRightWord(end);\n\n putRightWordToLeft(start);\n putLeftWordToRight(end);\n }", "private void menu2() {\r\n\t\tSystem.out.println(\" ---------WHICH ROOM?---------\");\r\n\t\tSystem.out.println(\"1) Move to North room.\");\r\n\t\tSystem.out.println(\"2) Move to East room.\");\r\n\t\tSystem.out.println(\"3) Move to South room.\");\r\n\t\tSystem.out.println(\"4) Move to West room.\");\r\n\t}", "static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }", "@Override\r\n\tpublic void setRight(MoveRightCommand right) {\n\r\n\t}", "public void chooseDirection(){\n Player player=board.getPlayer();\n if(player==null) return;\n if (getXCentrer()>board.getPlayer().getXCentrer()){\n setDirection(3);\n }\n else{\n setDirection(1);\n }\n }", "private void RightRightLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<.5) {\n\t\t\t\tRobot.cubebase.clickdown();//pay attention: maybe this is clickup()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\tif (Robot.autotime.get()>=.5&&Robot.autotime.get()<2.5) {\n \t\t\tRobot.cubebase.clickstop();\n\t\t\t\tRobot.cubebase.liftdown();//pay attention: maybe this is liftdown()!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\t\t}\n \t\t //about 300cm note: 0.08*2->90*2=180cm 0.08*3->90*3=270cm 270+45=315cm->0.08*3+0.08/2=0.28s\n \t\tif (Robot.autotime.get()>=2.5&&Robot.autotime.get()<3.9) {\n\t\t\t\tRobot.cubebase.stoplift();\n\t\t\t\tRobot.drivebase.run(.53, -.53 );\n\t\t\t}\n \t\tif (Robot.autotime.get()>=3.9&&Robot.autotime.get()<5.9) {\n\t\t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t}\n \t\tif (Robot.autotime.get()>5.9&&Robot.autotime.get()<6.2) {\n\t\t\t\tRobot.pneumatics_drive.close1();\n\t\t\t}\n \t\tif (Robot.autotime.get()>6.2) {\n \t\t\tRobot.cubebase.stopall();\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t}\n\t}", "@Override\r\n\tpublic String moveRight() {\n\t\tif((0<=x && x<50) && (0<=y && y<=10) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx++;\r\n\t\t}\r\n\t\telse if((0<=x && x<50) && (40<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx++;\r\n\t\t}\r\n\t\telse if((0<=x && x<50) && (0<=y && y<=50) && (0<=z && z<=10))\r\n\t\t{\r\n\t\t\tx++;\r\n\t\t}\r\n\t\telse if((0<=x && x<10) && (0<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx++;\r\n\t\t}\r\n\t\telse if((0<=x && x<50) && (0<=y && y<=50) && (40<=z && z<=50))\r\n\t\t{\r\n\t\t\tx++;\r\n\t\t}\r\n\t\telse if((40<=x && x<50) && (0<=y && y<=50) && (0<=z && z<=50))\r\n\t\t{\r\n\t\t\tx++;\r\n\t\t}\r\n\t\treturn getFormatedCoordinates();\r\n\t}", "@Override\n\tpublic void goForward() {\n\t\t// check side and move the according room and side\n\t\tif (side.equals(\"hRight\")) {\n\t\t\tthis.side = \"bFront\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(3);\n\n\t\t} else if (side.equals(\"hFront\")) {\n\t\t\tthis.side = \"mFront\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(2);\n\n\t\t} else if (side.equals(\"bLeft\")) {\n\t\t\tthis.side = \"rLeft\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(4);\n\n\t\t} else if (side.equals(\"rBack\")) {\n\t\t\tthis.side = \"bBack\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(3);\n\n\t\t} else if (side.equals(\"bBack\")) {\n\t\t\tthis.side = \"hLeft\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(1);\n\n\t\t} else if (side.equals(\"kBack\")) {\n\t\t\tthis.side = \"lFront\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(5);\n\n\t\t} else if (side.equals(\"lLeft\")) {\n\t\t\tthis.side = \"kRight\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(6);\n\n\t\t} else if (side.equals(\"lBack\")) {\n\t\t\tthis.side = \"mBack\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(2);\n\n\t\t} else if (side.equals(\"mFront\")) {\n\t\t\tthis.side = \"lFront\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(5);\n\n\t\t} else if (side.equals(\"mBack\")) {\n\t\t\tthis.side = \"hBack\";\n\t\t\tthis.room = properties.getRoomFromProperties().get(1);\n\n\t\t} else {\n\t\t\trandomRoom();\n\t\t\tSystem.out.println(\"Entered Wormhole!\");\n\t\t\tSystem.out.println(\"Location was chosen at random\");\n\t\t\tSystem.out.println(\"New location is: \" + room + \" room and \" + side.substring(1) + \" side\");\n\n\t\t}\n\t}", "private void flip()\r\n\t{\r\n\t\tif(heading == Direction.WEST)\r\n\t\t{\r\n\t\t\tsetDirection(Direction.EAST);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsetDirection(Direction.WEST);\r\n\t\t}\r\n\t}", "void moveLeft();", "public Direction right() {\r\n\t\tint newDir = this.index + 1;\r\n\r\n\t\tnewDir = (this.index + 1 == 5) ? 1 : newDir;\r\n\t\treturn getEnum(newDir);\r\n\t}", "private Direction determineDirection(Point p1, Point p2) {\n\t\tif (p1.y == p2.y) {\n\t\t\tif (p1.x < p2.x) {\n\t\t\t\treturn Direction.RIGHT;\n\t\t\t} else {\n\t\t\t\treturn Direction.LEFT;\n\t\t\t}\n\t\t} else {\n\t\t\tif (p1.y < p2.y) {\n\t\t\t\treturn Direction.DOWN;\n\t\t\t} else {\n\t\t\t\treturn Direction.UP;\n\t\t\t}\n\t\t}\n\t}", "public void right() {\n\t\tstate.right();\n\t}", "protected void setMotorPositions(long lPos, long rPos) {\n leftPosition = lPos;\n rightPosition = rPos;\n }", "@Test\n\tpublic void upperLeft2SWCSpecial()\t\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 2);\n\t\td.set(1, 3);\n\t\td.set(2, 4);\n\t\td.set(13, 13);\n\t\td.set(15, 14);\n\t\td.set(16, 15);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(5);\n\t\tassertTrue(3==test_arr.get(0).getX() && 0==test_arr.get(0).getY()\n\t\t\t&& 2==test_arr.get(1).getX() && 0==test_arr.get(1).getY()\n\t\t\t&& 1==test_arr.get(2).getX() && 0==test_arr.get(2).getY());\n\t}", "public Direction invertTurns(){\n switch(this){\n case SPIN_BACK:\n return SPIN_BACK;\n case SPIN_LEFT:\n return SPIN_RIGHT; \n case SPIN_RIGHT:\n return SPIN_LEFT;\n case ARC_LEFT:\n return ARC_RIGHT;\n case ARC_RIGHT:\n return ARC_LEFT; \n default:\n return this; \n }\n }", "private SnakeDirection directionValueToSnakeDirection(int val)\r\n\t{\r\n\t\tif(val == SnakeDirection.RIGHT.getValue())\r\n\t\t\treturn SnakeDirection.RIGHT;\r\n\t\telse if(val == SnakeDirection.UP.getValue())\r\n\t\t\treturn SnakeDirection.UP;\r\n\t\telse if(val == SnakeDirection.DOWN.getValue())\r\n\t\t\treturn SnakeDirection.DOWN;\r\n\t\telse if(val == SnakeDirection.LEFT.getValue())\r\n\t\t\treturn SnakeDirection.LEFT;\r\n\t\treturn SnakeDirection.DOWN; \r\n\t}", "public void moveRight() {\n\t\tif (x1 < 24 && x2 < 24 && x3 < 24 && x4 < 24) {\n\t\t\tclearPiece();\n\t\t\tx1 += 1;\n\t\t\tx2 += 1;\n\t\t\tx3 += 1;\n\t\t\tx4 += 1;\n\t\t\tsetPiece();\n\t\t\trepaint();\n\t\t}\n\t}", "public void convert_right()\n {\n //If the box is empty then empty the other box\n if (box_right.getText().toString().equals(\"\")) {\n app_input = true;\n box_left.setText(\"\");\n return;\n }\n\n long left_id = spinnerl.getSelectedItemId();\n long right_id = spinnerr.getSelectedItemId();\n\n double amount = Double.parseDouble(box_right.getText().toString());\n if (left_id == right_id)\n {\n app_input = true;\n box_left.setText(Double.toString(amount));\n return;\n }\n\n\n double left_value = left_id == 0 ? 1.0 : rates.rates.get(spinnerl.getSelectedItem().toString());\n double right_value = right_id == 0 ? 1.0 : rates.rates.get(spinnerr.getSelectedItem().toString());\n\n double result = amount / right_value * left_value;\n app_input = true;\n box_left.setText(Double.toString(result));\n }", "void keyRight();", "public void moveAsteroidLeftToRight() {\t\r\n\t\tsetY(this.getY()+1);\r\n\t}", "@Override\r\n\tpublic void rotateRight() {\n\t\tsetDirection((this.getDirection() + 1) % 4);\r\n\t}", "public void moveRight() {\r\n\t\r\n\t\tint rightSteps=10;\r\n\t\t\ttopX+= rightSteps;\r\n\t}", "public void setMotors(double leftSpeed, double rightSpeed, double multiplier){\n double z = 0.1;\n if(multiplier<0){\n z = (1-Math.abs(multiplier))*0.5+0.25;\n }\n else{\n z = multiplier*0.25+0.75;\n }\n m_leftMotor.set(leftSpeed*z); \n m_rightMotor.set(rightSpeed*z);\n}", "public abstract void rotateLeft();", "@Test\n\tpublic void testSwichposition() {\n\t\tresultlist = DoRotation.swichposition(initialList, 0, 0);\n\t\texpectedList = new ArrayList<>(Arrays.asList(1, 2, 3, 4, 5, 6));\n\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n\t\tassertArrayEquals(\"Switching position from 0 to 0\", resultlist.toArray(), expectedList.toArray());\n\t\t\n//\t\tresultlist = DoRotation.swichposition(initialList, 0, 5);\n//\t\texpectedList = new ArrayList<>(Arrays.asList(6, 2, 3, 4, 5, 1));\n//\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n//\t\tassertArrayEquals(\"Switching position from 0 to 5\", resultlist.toArray(), expectedList.toArray());\n\t\t\n//\t\tresultlist = DoRotation.swichposition(initialList, 5, 0);\n//\t\texpectedList = new ArrayList<>(Arrays.asList(6, 2, 3, 4, 5, 1));\n//\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n//\t\tassertArrayEquals(\"Switching position from 5 to 0\", resultlist.toArray(), expectedList.toArray());\n\t\t\n\t\tresultlist = DoRotation.swichposition(initialList, 2, 3);\n\t\texpectedList = new ArrayList<>(Arrays.asList(1, 2, 4, 3, 5, 6));\n\t\tassertNotNull(resultlist);assertNotNull(expectedList);\n\t\tassertArrayEquals(\"Switching position from 2 to 3\", resultlist.toArray(), expectedList.toArray());\n\t}", "private void menu2Switch(int choice) {\r\n\t\tswitch(choice) {\r\n\t\tcase 1:\r\n\t\t\tthis.myMaze.movePlayer('n');\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.myMaze.movePlayer('e');\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.myMaze.movePlayer('s');\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.myMaze.movePlayer('w');\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void turnLeft();" ]
[ "0.70120096", "0.6324111", "0.6210978", "0.6136552", "0.6055088", "0.60222447", "0.599093", "0.5960044", "0.5957374", "0.59019446", "0.58728915", "0.58635056", "0.58240235", "0.5817118", "0.5803317", "0.57961464", "0.57859457", "0.57623047", "0.57485974", "0.5737474", "0.5718102", "0.56852216", "0.56561536", "0.5650239", "0.56495225", "0.56350124", "0.56340754", "0.5619285", "0.5612282", "0.55918497", "0.5581581", "0.557256", "0.5557317", "0.553928", "0.5522422", "0.55063885", "0.55063146", "0.55030715", "0.54867", "0.5465833", "0.54584247", "0.5448619", "0.5444212", "0.5440135", "0.5436608", "0.5433873", "0.5431201", "0.54236364", "0.5422084", "0.54149896", "0.5395893", "0.5395548", "0.5393197", "0.53924704", "0.5387128", "0.53858083", "0.53824884", "0.5377164", "0.5375223", "0.53737295", "0.5368526", "0.5364206", "0.53632796", "0.53618586", "0.5353322", "0.534144", "0.53404313", "0.5335141", "0.53299767", "0.5327774", "0.53274494", "0.5326221", "0.5324058", "0.5322722", "0.53225076", "0.53206676", "0.5320545", "0.5315188", "0.5314672", "0.5311675", "0.530971", "0.5306042", "0.5302841", "0.5300989", "0.5298356", "0.5296415", "0.52898043", "0.5288673", "0.528258", "0.5281908", "0.5280055", "0.5276658", "0.527563", "0.5275071", "0.52741617", "0.52731204", "0.52709043", "0.52648056", "0.52626157", "0.52625114", "0.5260706" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel3 = new javax.swing.JLabel(); slide = new javax.swing.JSlider(); jLabel4 = new javax.swing.JLabel(); comboSexo = new javax.swing.JComboBox<>(); jLabel5 = new javax.swing.JLabel(); campoIdade = new javax.swing.JTextField(); jPanel2 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); tabela = new javax.swing.JTable(); jPanel3 = new javax.swing.JPanel(); btnAdd = new javax.swing.JButton(); btnRemover = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); campoNome = new javax.swing.JTextField(); campoSenha = new javax.swing.JPasswordField(); jPanel1.setBackground(new java.awt.Color(162, 166, 166)); jPanel1.setLayout(new java.awt.GridLayout(6, 2, 0, 20)); jLabel3.setText("Altura"); jPanel1.add(jLabel3); jPanel1.add(slide); jLabel4.setText("Sexo"); jPanel1.add(jLabel4); comboSexo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Escolha", "Masc", "Fem" })); jPanel1.add(comboSexo); jLabel5.setText("Idade"); jPanel1.add(jLabel5); jPanel1.add(campoIdade); jPanel2.setBackground(new java.awt.Color(184, 177, 170)); jPanel2.setLayout(new java.awt.GridLayout(1, 0)); tabela.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Usuario", "Sexo", "Idade", "Altura" } ) { Class[] types = new Class [] { java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class }; boolean[] canEdit = new boolean [] { false, false, false, false }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); jScrollPane1.setViewportView(tabela); if (tabela.getColumnModel().getColumnCount() > 0) { tabela.getColumnModel().getColumn(0).setResizable(false); tabela.getColumnModel().getColumn(1).setResizable(false); tabela.getColumnModel().getColumn(2).setResizable(false); tabela.getColumnModel().getColumn(3).setResizable(false); } jPanel2.add(jScrollPane1); jPanel3.setBackground(new java.awt.Color(242, 255, 251)); jPanel3.setLayout(new java.awt.GridLayout(3, 4, 5, 5)); btnAdd.setText("Adicionar"); btnAdd.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAddActionPerformed(evt); } }); jPanel3.add(btnAdd); btnRemover.setText("Remover"); jPanel3.add(btnRemover); jLabel1.setText("Nome"); jPanel3.add(jLabel1); jLabel2.setText("Senha"); jPanel3.add(jLabel2); jPanel3.add(campoNome); jPanel3.add(campoSenha); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 248, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.6945632", "0.6943359", "0.69363457", "0.6931661", "0.6927987", "0.6925778", "0.6925381", "0.69117576", "0.6911631", "0.68930036", "0.6892348", "0.6890817", "0.68904495", "0.6889411", "0.68838716", "0.6881747", "0.6881229", "0.68778914", "0.6876094", "0.6874808", "0.68713", "0.6859444", "0.6856188", "0.68556464", "0.6855074", "0.68549985", "0.6853093", "0.6853093", "0.68530816", "0.6843091", "0.6837124", "0.6836549", "0.6828579", "0.68282986", "0.68268806", "0.682426", "0.6823653", "0.6817904", "0.68167645", "0.68102163", "0.6808751", "0.680847", "0.68083245", "0.6807882", "0.6802814", "0.6795573", "0.6794048", "0.6792466", "0.67904556", "0.67893785", "0.6789265", "0.6788365", "0.67824304", "0.6766916", "0.6765524", "0.6765339", "0.67571205", "0.6755559", "0.6751974", "0.67510027", "0.67433685", "0.67390305", "0.6737053", "0.673608", "0.6733373", "0.67271507", "0.67262334", "0.67205364", "0.6716807", "0.67148036", "0.6714143", "0.67090863", "0.67077154", "0.67046666", "0.6701339", "0.67006236", "0.6699842", "0.66981244", "0.6694887", "0.6691074", "0.66904294" ]
0.0
-1
Performs a post operation to the query service and has no output
@Override public CompletableFuture<APostOperationResponse> aPostOperation(APostOperationRequest aPostOperationRequest) { List<MetricPublisher> metricPublishers = resolveMetricPublishers(clientConfiguration, aPostOperationRequest .overrideConfiguration().orElse(null)); MetricCollector apiCallMetricCollector = metricPublishers.isEmpty() ? NoOpMetricCollector.create() : MetricCollector .create("ApiCall"); try { apiCallMetricCollector.reportMetric(CoreMetric.SERVICE_ID, "QueryToJsonCompatibleService"); apiCallMetricCollector.reportMetric(CoreMetric.OPERATION_NAME, "APostOperation"); JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(true).build(); HttpResponseHandler<APostOperationResponse> responseHandler = protocolFactory.createResponseHandler( operationMetadata, APostOperationResponse::builder); HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory, operationMetadata); String hostPrefix = "{StringMember}-foo."; HostnameValidator.validateHostnameCompliant(aPostOperationRequest.stringMember(), "StringMember", "aPostOperationRequest"); String resolvedHostExpression = String.format("%s-foo.", aPostOperationRequest.stringMember()); CompletableFuture<APostOperationResponse> executeFuture = clientHandler .execute(new ClientExecutionParams<APostOperationRequest, APostOperationResponse>() .withOperationName("APostOperation") .withMarshaller(new APostOperationRequestMarshaller(protocolFactory)) .withResponseHandler(responseHandler).withErrorResponseHandler(errorResponseHandler) .withMetricCollector(apiCallMetricCollector).hostPrefixExpression(resolvedHostExpression) .withInput(aPostOperationRequest)); CompletableFuture<APostOperationResponse> whenCompleted = executeFuture.whenComplete((r, e) -> { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); }); executeFuture = CompletableFutureUtils.forwardExceptionTo(whenCompleted, executeFuture); return executeFuture; } catch (Throwable t) { metricPublishers.forEach(p -> p.publish(apiCallMetricCollector.collect())); return CompletableFutureUtils.failedFuture(t); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String post();", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "public void postData() {\n\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public void doPost( )\n {\n \n }", "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n\tvoid post() {\n\t\t\n\t}", "@Override\n public String getMethod() {\n return \"POST\";\n }", "@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\tprotected void doPost(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException\n\t{\n\t\tdoDebug(httpServletRequest);\n doSystemMethod(httpServletRequest, httpServletResponse, \"insert\");\n\t}", "public HarvestResult executePostRequest() throws ParseException,\n IOException {\n HttpPost post = new HttpPost(petition.getUrl() + generateQueryParams());\n\n HttpResponse httpResult = null;\n T21HttpClientWithSSL httpClient = petition.getHttpClient();\n\n post.setEntity(generateEntity(post));\n post.setHeaders(generateHeaders(post));\n\n\n int statusCode = HttpStatus.SC_NOT_FOUND;\n logPetition(post);\n\n httpResult = httpClient.execute(post);\n statusCode = httpResult.getStatusLine().getStatusCode();\n\n String answer = getJsonFromRequest(httpResult);\n HarvestResult result = generateResult(answer, statusCode, httpClient);\n return result;\n\n }", "public void handlePostEntitiesQuery(RoutingContext routingContext) {\n LOGGER.debug(\"Info: handlePostEntitiesQuery method started.\");\n HttpServerRequest request = routingContext.request();\n JsonObject requestJson = routingContext.getBodyAsJson();\n LOGGER.debug(\"Info: request Json :: ;\" + requestJson);\n HttpServerResponse response = routingContext.response();\n MultiMap headerParams = request.headers();\n // validate request parameters\n Future<Boolean> validationResult = validator.validate(requestJson);\n validationResult.onComplete(validationHandler -> {\n if (validationHandler.succeeded()) {\n // parse query params\n NGSILDQueryParams ngsildquery = new NGSILDQueryParams(requestJson);\n QueryMapper queryMapper = new QueryMapper();\n JsonObject json = queryMapper.toJson(ngsildquery, requestJson.containsKey(\"temporalQ\"));\n Future<List<String>> filtersFuture =\n catalogueService.getApplicableFilters(json.getJsonArray(\"id\").getString(0));\n String instanceID = request.getHeader(HEADER_HOST);\n json.put(JSON_INSTANCEID, instanceID);\n requestJson.put(\"ids\", json.getJsonArray(\"id\"));\n LOGGER.debug(\"Info: IUDX query json : ;\" + json);\n filtersFuture.onComplete(filtersHandler -> {\n if (filtersHandler.succeeded()) {\n json.put(\"applicableFilters\", filtersHandler.result());\n if (json.containsKey(IUDXQUERY_OPTIONS)\n && JSON_COUNT.equalsIgnoreCase(json.getString(IUDXQUERY_OPTIONS))) {\n executeCountQuery(json, response);\n } else {\n executeSearchQuery(json, response);\n }\n } else {\n LOGGER.error(\"catalogue item/group doesn't have filters.\");\n }\n });\n } else if (validationHandler.failed()) {\n LOGGER.error(\"Fail: Bad request\");\n handleResponse(response, ResponseType.BadRequestData,\n validationHandler.cause().getMessage());\n }\n });\n }", "@POST\n public String SendQueryResult(String data) throws JsonProcessingException {\n ObjectMapper objectMapper = new ObjectMapper();\n InputQueryData inputQueryData = new ObjectMapper().readValue(data, InputQueryData.class);\n// System.out.println(inputQueryData.getTableName());\n// System.out.println(inputQueryData.getSelectedColumns());\n// System.out.println(inputQueryData.getWhereConditionSelectedColumns());\n// System.out.println(inputQueryData.getWhereConditionSelectedValues());\n\n\n ManageFact manageFact = new ManageFact();\n\n String resultQuery = manageFact.QueryGenerator(inputQueryData.getTableName(), inputQueryData.getSelectedColumns(), inputQueryData.getWhereConditionSelectedColumns(), inputQueryData.getWhereConditionSelectedValues(),inputQueryData.getGroupByColumns());\n\n\n\n\n return objectMapper.writeValueAsString(resultQuery);\n }", "@Test\n void postTest() {\n URI uri = URI.create(endBody + \"/post\");\n\n // create a dummy body for easy JSON conversion\n QuestionText newQuestion = new QuestionText(\"Test\");\n\n // convert to json and send / store the response\n HttpResponse<String> response = HttpMethods.post(uri, gson.toJson(newQuestion));\n\n assertEquals(200, response.statusCode());\n }", "void post(java.lang.Runnable command);", "public RequestDataBuilder post() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.POST);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void post(Result result) throws PostRequestFailure {\n CloseableHttpClient httpClient = HttpClients.createDefault();\n HttpPost postRequest = new HttpPost(this.host + this.endpoint);\n postRequest.setEntity(new StringEntity(JsonWriter.objectToJson(result, JSON_WRITER_ARGS), ContentType.APPLICATION_JSON));\n try {\n HttpResponse response = httpClient.execute(postRequest);\n if (response.getStatusLine().getStatusCode() != 200) {\n throw new PostRequestFailure(response.getStatusLine().getStatusCode());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Test(enabled=false)\n\tpublic void basicPost() {\t\n\t\tResponse res = \n\t\tgiven().\n\t\tbody(\" { \\\"id\\\": \\\"2\\\",\"\n\t\t\t\t+ \"\\\"title\\\": \\\"Cleveland\\\", \"\n\t\t\t\t+ \"\\\"author\\\": \\\"Kyrie\\\" }\").\n\t\twhen().\n\t\tcontentType(ContentType.JSON).\n\t\tpost(\"http://localhost:3000/posts/\");\n\t\n\t\tSystem.out.println(res.asString());\n\t}", "public static void operation() {\n try ( QueryExecution qExec = QueryExecutionHTTP.service(dataURL).query(\"ASK{}\").build() ) {\n qExec.execAsk();\n System.out.println(\"Operation succeeded\");\n } catch (QueryException ex) {\n System.out.println(\"Operation failed: \"+ex.getMessage());\n }\n System.out.println();\n }", "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}", "void queryDone(String queryId);", "@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\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 }", "public interface PostRequest {}", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "public void post() {\n//\t\tif(!supercachequery){\n//\t\t\thandlePostReset();\n//\t\t}\n//\t\tsupercachequery = false;\n\t}", "@Override\n public void run() {\n HttpsURLConnection connPut = null;\n try {\n URL webServerUrl = new URL(DB_URL);\n\n connPut = (HttpsURLConnection) webServerUrl.openConnection();\n\n connPut.setReadTimeout(10000 /* milliseconds */);\n connPut.setConnectTimeout(15000 /* milliseconds */);\n connPut.setDoOutput(true);\n\n connPut.setRequestMethod(\"POST\");\n connPut.setRequestProperty(\"Content-type\", \"application/json\");\n AuthenticationValidator authenticationValidator = new AuthenticationValidator(context);\n String token = authenticationValidator.getAuthenticationToken();\n connPut.addRequestProperty(\"Authorization\", \"Bearer \" + token);\n connPut.connect();\n OutputStreamWriter out = new OutputStreamWriter(connPut.getOutputStream());\n\n\n\n\n for(RestRecord rr : toBePushed)\n {\n out.write(rr.getJSON().toString());\n out.flush();\n }\n out.close();\n\n if(connPut.getResponseCode() == 200)\n System.out.println(\"Successfully posted new route(s).\");\n else\n System.out.println(connPut.getResponseMessage());\n\n connPut.disconnect();\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if(connPut!=null)\n connPut.disconnect();\n }\n }", "private static InputStream postQuery(String url) throws IOException {\n\t\tURL u = new URL(SERVICE_LOCATION);\n\n\t\tString encodedUrl = URLEncoder.encode(url, \"UTF-8\");\n\n\t\tInputStream input = doPOST(u, encodedUrl);\n\n\t\treturn input;\n\t}", "public void setResultPost(java.lang.String value) {\n this.result_post = value;\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String q_id = request.getParameter(\"q_id\");\n String content = request.getParameter(\"content\");\n String token = request.getParameter(\"token\");\n \n String query = String.format(\"q_id=%s&content=%s&token=%s\",\n q_id, content, token);\n \n try (PrintWriter output = response.getWriter()){\n // Establish HTTP connection with Identity Service\n URL url = new URL(CONTEXT_PATH + \"comment\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"POST\");\n conn.setDoOutput(true);\n conn.setDoInput(true);\n conn.setUseCaches(false);\n conn.setAllowUserInteraction(false);\n conn.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n \n //Create the form content\n try (OutputStream out = conn.getOutputStream()) {\n out.write(query.getBytes());\n out.close();\n }\n \n // Buffer the result into a string\n BufferedReader rd = new BufferedReader(\n new InputStreamReader(conn.getInputStream()));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = rd.readLine()) != null) {\n sb.append(line);\n }\n \n rd.close();\n //conn.disconnect();\n \n //Print result\n output.print(sb.toString());\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n }", "private void executeQuery() {\n }", "private void sendPost() {\n Map<String,Object> values = new HashMap<>();\n values.put(Constants.MANAGEMENT,management);\n values.put(Constants.GENERAL_INFORMATION,generalnformation);\n values.put(Constants.SYMPTOMS,symptoms);\n\n FireBaseUtils.mDatabaseDiseases.child(caseStudyUrl).child(url).updateChildren(values);\n Toast.makeText(DiseaseEditActivity.this, \"Item Posted\",LENGTH_LONG).show();\n finish();\n }", "@Override\n\tpublic HttpResponse post(final String endpoint, final String body) {\n\t\treturn httpRequest(HTTP_POST, endpoint, body);\n\t}", "ResponseEntity execute();", "public interface PostQuery {\n /**\n * Obtains a collection with the keys mentioned in the actual post query\n * @return the collection (possibly empty).\n */\n Set<String> getKeys();\n\n /**\n * Get the byte array representation of the value corresponding to {@param key}\n * @param key the key to search\n * @return the representation or null if key is missing.\n */\n byte[] getValueBytes(String key);\n\n /**\n * Get the object associated with the corresponding to {@param key}\n * @param key the key to search\n * @return the object or null if key is missing.\n */\n <E> E getValue(String key) throws IOException;\n\n /**\n * Get the string associated with the corresponding to {@param key}\n * @param key the key to search\n * @return the string or null if key is missing.\n */\n String getStringValue(String key) throws UnsupportedEncodingException;\n\n}", "public void postData()\n\t{\n\t\tnew NetworkingTask().execute(message);\n\t}", "@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\n Entity user = LoginServlet.getUser(request);\n\n long authorId = user.getKey().getId();\n\n Filter productFilter = new FilterPredicate(\"productID\", FilterOperator.EQUAL, ideaComments.productID);\n Filter authorFilter = new FilterPredicate(\"authorId\", FilterOperator.EQUAL, authorId);\n\n CompositeFilter filter = CompositeFilterOperator.and(productFilter, authorFilter);\n Query query = new Query(\"Vote\").setFilter(filter);\n List<Entity> results = datastore.prepare(query).asList(FetchOptions.Builder.withDefaults());\n Entity taskEntity = new Entity(\"Vote\");\n if(results.size()>0){\n taskEntity = results.get(0);\n }\n Integer voteValue = Integer.parseInt(request.getParameter(\"voteValue\"));\n double sentimentAnalysisScore = 9.5;\n\n taskEntity.setProperty(\"productID\",ideaComments.productID);\n taskEntity.setProperty(\"authorId\",authorId);\n taskEntity.setProperty(\"voteValue\",voteValue);\n\n datastore.put(taskEntity);\n\n response.sendRedirect(\"/IdeaPage.html\");\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void post(T modelDTO);", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}", "public static int doPost(String name, String id, Result r) {\n r.setValue(\"\");\n String response = \"\";\n int status = 0;\n String output =\"\";\n \n try {\n // Make call to a particular URL\n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n // set request method to POST and send name value pair\n conn.setRequestMethod(\"POST\");\n conn.setDoOutput(true);\n conn.setRequestProperty(\"Accept\", \"text/plain\");\n // write to POST data area\n JSONObject objJson = new JSONObject();\n JSONObject objJsonSend = new JSONObject();\n try {\n objJson.put(\"id\", id);\n objJson.put(\"name\", name);\n objJsonSend.put(\"name\", name);\n } catch (JSONException ex) {\n Logger.getLogger(RestaurantApiClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n String ans = objJson.toString();\n System.out.println(\"Request Body:\");\n System.out.println(objJsonSend.toString());\n OutputStreamWriter out = new OutputStreamWriter(conn.getOutputStream());\n out.write(ans);\n out.close();\n // get HTTP response code sent by server\n status = conn.getResponseCode();\n if (status != 200) {\n // not using msg\n String msg = conn.getResponseMessage();\n return conn.getResponseCode();\n }\n output = \"\";\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream())));\n while ((output = br.readLine()) != null) {\n response += output; \n }\n conn.disconnect();\n //close the connection\n conn.disconnect();\n }\n // handle exceptions\n catch (MalformedURLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n } \n // return HTTP status\n r.setValue(response);\n return status; \n }", "ClientResponse post(URI resourceURI, String postData, String jsonFormat) {\n ClientResponse response = _client.post(resourceURI, postData, _vplexSessionId, jsonFormat);\n updateVPLEXSessionId(response);\n return response;\n }", "@Override\n\t\tpublic void executeQuery(String query) {\n\t\t\t\n\t\t}", "public static void main(String[] args) throws Exception {\n testPost();\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n public void post(java.lang.Runnable command) {\n mExecutor.execute(command);\n }", "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 }", "@Test\n\tpublic void postExample() {\n\t\tString APIUrl = \"http://34.210.101.131:8081/topics\";\n\t\tString APIBody=\"{\\\"topicComplexity\\\":\\\"5\\\",\\\"topicName\\\":\\\"MCQ\\\"}\";\n\t\t// Building request using requestSpecBuilder\n\t\tRequestSpecBuilder builder = new RequestSpecBuilder();\n\t\t \n\t\tbuilder.setBody(APIBody);\n\t\tbuilder.setContentType(\"application/json\");\n\t\t//RequestSpecification requestSpec = (RequestSpecification) builder.build();\n\t\tRequestSpecification request = RestAssured.given();\n\t\tRestAssured.given().auth().preemptive().basic(\"[email protected]\",\"testdata@123\");\n\t\t//com.jayway.restassured.specification.RequestSpecification requestSpec = builder.build();\t \n\t\t \n\t\n\t\t\t\t\n\t\tResponse response = request.post(\"http://34.210.101.131:8081/topics\");\n\t\tfloat code = response.getStatusCode();\n\t\tSystem.out.println(\"status code is\"+code);\n\t\tString data =response.asString();\n\t\tSystem.out.println(\"Data is\"+data);\n\t\t\n\n\t\t\n\t\t\n\t}", "@Override\n public boolean onQueryTextSubmit(String query) {\n\n new Clientes().execute(query);\n Toast.makeText(c, query,\n Toast.LENGTH_SHORT).show();\n\n return false;\n }", "public FutureResultWithAnswer queryToServer(Query query) throws IOException, Net4CareException;", "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "@POST\n Call<Post> createPost(@Body Post post);", "@POST(\"posts\")\n Call<Post> createPost(@Body Post post);", "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\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "<T> T post(String uri, String body, ContentType contentType, ResponseCallback<T> callback);", "public void Query() {\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n setConnection(transactionRepository, userRepository);\n\n String amountString = req.getParameter(\"amount\");\n\n if(!validateAmountFormat(amountString, req, resp)) return;\n\n double amount = parseAmount(amountString);\n Transaction.Operation operation = getOperation(req);\n\n if(!validateAmountSize(amount, req, resp)) return;\n\n String username = req.getParameter(\"username\");\n\n if(!validateUser(resp, req, username)) return;\n\n Transaction transaction = setUpTransaction(amount, operation, username);\n\n transactionRepository.save(transaction);\n\n page.redirectTo(\"/account?username=\" + username, resp, req,\n \"successMessage\", \"Transaction successful!\");\n }", "public synchronized void postRequest (final Runnable r) {\n postRequest (r, false);\n }", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\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\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@When(\"user calls {string} with Post http request\")\npublic void user_calls_with_post_http_request(String string) {\n\tresponse = res.when().post(\"/maps/api/place/add/json\")\n\t\t\t.then().spec(responspec).extract().response();\n \n}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (SQLException ex) {\n Logger.getLogger(getData.class.getName()).log(Level.SEVERE, null, ex);\n }\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 public String post(final Request request, final Response response) {\n final String phases = request.queryParams(\"phases\");\n Type type = Type.SIMPLE;\n switch (phases) {\n case \"1-phase\":\n type = Type.SIMPLE;\n break;\n case \"2-phase\":\n type = Type.CHECKED;\n break;\n default:\n response.status(400);\n return \"\";\n }\n final Bank bank = BankController.getBank(request);\n if (bank == null) {\n // invalid bank\n response.status(404);\n return \"\";\n }\n final TransactionId transactionId = bank.createTransaction(type);\n // send id of the created transaction to client\n return transactionId.getUri();\n }", "private void submit()\n {\n ownerSelected = ownersDropDown.getSelectedItemPosition();\n dogSelected = dogsDropDown.getSelectedItemPosition();\n\n dog_id = dogID.get(dogSelected).toString();\n human_id = ownerID.get(ownerSelected).toString();\n\n String jsonBody = \"{}\";\n\n mOkHttpClient = new OkHttpClient();\n\n HttpUrl reqURL = HttpUrl.parse(\"https://final-project-saldanaj.appspot.com/dogs/\" + dog_id + \"/owner/\" + human_id);\n\n RequestBody body = RequestBody.create(JSON, jsonBody);\n\n Request request = new Request.Builder()\n .url(reqURL)\n .put(body)\n .build();\n\n mOkHttpClient.newCall(request).enqueue(new Callback(){\n\n @Override\n public void onFailure(Call call, IOException e)\n {\n e.printStackTrace();\n }\n\n\n @Override\n public void onResponse(Call call, Response response) throws IOException\n {\n String r = response.body().string();\n\n System.out.print(r);\n }\n\n }); // end of the newCall.enqueue callback\n\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "Query query();", "@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}", "private void requestPost(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n\n post(requestUri, params, listener);\n }", "@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 }", "public HttpPost() {\n super();\n parameters = new HashMap<>();\n }", "@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 postRequest() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request body parameters are :-\");\n SamplePOJO samplePOJO = new SamplePOJO();\n samplePOJO.setFirstName(scenarioContext.getContext(\"firstName\"));\n samplePOJO.setLastName(scenarioContext.getContext(\"lastName\"));\n\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n apiUtil.setRequestBody(objectMapper.writeValueAsString(samplePOJO));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n }", "@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 java.lang.String getResultPost() {\n return result_post;\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "public void postDoRetrieve(ID id)\n {\n }", "protected void handlePostExecution(Logger log) {\n \n handleException(log);\n \n // TODO: should status=0 (success?) be left as-is in the response header?\n SolrCore.postDecorateResponse(null, solrRequest, solrResponse);\n addDeprecatedWarning();\n\n if (log.isInfoEnabled() && solrResponse.getToLog().size() > 0) {\n log.info(solrResponse.getToLogAsString(solrCore.getLogId()));\n }\n }", "Product postProduct(Product product);", "DataWrapper submit(Long projectId);", "public void postPerform() {\n // nothing to do by default\n }", "@Override\n public void addPostCommand(String postCommand) {\n }", "@Test(enabled=false)\n\tpublic void objectPost() {\t\n\t\tPosts posts = new Posts(\"3\", \"Seahawks\", \"Wilson\");\n\t\t\n\t\tResponse res = given().\n\t\twhen().\n\t\tcontentType(ContentType.JSON).\n\t\tbody(posts).\n\t\tpost(\"http://localhost:3000/posts/\");\n\t\n\t\tSystem.out.println(\"Response as object: \"+res.asString());\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}", "public io.confluent.developer.InterceptTest.Builder setResultPost(java.lang.String value) {\n validate(fields()[8], value);\n this.result_post = value;\n fieldSetFlags()[8] = true;\n return this;\n }" ]
[ "0.67225707", "0.65536684", "0.6389486", "0.6371895", "0.6303206", "0.6284483", "0.6222902", "0.61744565", "0.61671996", "0.61172426", "0.5919699", "0.59184355", "0.587704", "0.58194", "0.57833743", "0.5741904", "0.57039875", "0.5703503", "0.5688923", "0.56799895", "0.56717753", "0.5671255", "0.56652296", "0.5629713", "0.5599354", "0.558755", "0.5546017", "0.5533157", "0.5525168", "0.55155075", "0.5495155", "0.5492388", "0.5483236", "0.54828864", "0.54798615", "0.5470172", "0.54616094", "0.5461369", "0.54259324", "0.5425531", "0.5421476", "0.54035866", "0.54000425", "0.53762436", "0.5369193", "0.53682464", "0.5366276", "0.53601795", "0.53573745", "0.53521496", "0.535048", "0.5348111", "0.5346192", "0.5338218", "0.5337774", "0.53331447", "0.53249305", "0.5320619", "0.53195924", "0.531514", "0.53134775", "0.53122336", "0.5310892", "0.5307992", "0.5304822", "0.53036", "0.53036", "0.53036", "0.53007126", "0.5296214", "0.5291626", "0.52912056", "0.52912056", "0.52912056", "0.5289006", "0.52840525", "0.528197", "0.5280776", "0.52776206", "0.5277136", "0.52754956", "0.5274757", "0.5274593", "0.52701175", "0.52701175", "0.5265957", "0.5262216", "0.5262216", "0.5262216", "0.5255804", "0.52513236", "0.5249746", "0.5242669", "0.52412844", "0.52385646", "0.5231792", "0.5223265", "0.52196854", "0.52106416", "0.52027875" ]
0.60042083
10
Creates a Pair that represents a object. The key must be of Comparable type as it is used to implement the Comparable interface.
public Pair(K key, V value) { this.key = key; this.value = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Pair(K key, V value){\n this.key = key;\n this.value = value;\n }", "public Pair(Key key, Value value) {\n this.key = key;\n this.value = value;\n }", "static <K extends Comparable<? super K>, V> KeyValue<K, V> make(K key, V value) {\n return new Tuple<>(key, value);\n }", "DictionaryPair (K someKey , V someValue) {\n this.key = someKey;\n this.value = someValue;\n }", "public interface Pair<K,V> {\n public K getKey();\n public V getValue();\n}", "public OrderedPair(int x, int y) {\n this.x = x;\n this.y = y;\n }", "public PairImpl(F key, S value) {\n this.key = key;\n this.value = value;\n }", "public MutablePair(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public Pair(K first, V second) {\r\n\t\tthis.first = first;\r\n\t\tthis.second = second;\r\n\t}", "private Tuple(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public Pair() {\n // nothing to do here\n }", "public KeyedItem(Comparable key,\n T item)\n {\n this.key = key;\n this.item = item;\n this.valid = true;\n }", "public Pair(T first, T second) {\r\n this.first = first;\r\n this.second = second;\r\n }", "public static <K, V> MutablePair<K, V> of(K key, V value) {\n return new MutablePair<>(key, value);\n }", "public Pair(S n1, S n2) {\n\t\tkey1 = n1;\n\t\tkey2 = n2;\n\t}", "@Override\n public void insert(Comparable k, Object v) {\n\n if (k == null) { // Check for null key\n throw new IllegalArgumentException(\"null key\");\n }\n\n // If size 0, just add pair\n else if (this.size == 0) {\n ls[this.size] = new Pair(k, v);\n this.size++;\n return;\n }\n // If # of items reached capacity\n else if (this.CAPACITY == this.size) {\n Pair[] newLs = new Pair[this.CAPACITY + 100];\n\n // Deep copy of previous Pair[]\n for (int i = 0; i < this.size; i++) {\n if (ls[i].key.equals(k)) {\n throw new RuntimeException(\"duplicate key\");\n }\n newLs[i] = this.ls[i]; // Change this.ls value\n }\n this.ls = newLs; // Change field to new Pair[]\n this.ls[size] = new Pair(k, v); // Add the Pair\n this.CAPACITY += 100; // Increase capacity\n size++;\n return;\n\n } else {\n // Loop to check for duplicate exception\n for (int i = 0; i < this.size; i++) {\n if (ls[i].key.equals(k)) {\n throw new RuntimeException(\"duplicate key\");\n }\n }\n\n // Add pair to array\n ls[this.size] = new Pair(k, v);\n this.size++;\n }\n\n }", "public Pair() {\r\n\t}", "public Node(String key, Model pair) {\n\t\tthis.key = key;\n\t\tthis.pair = pair;\n\t}", "KeyIdPair createKeyIdPair();", "public static KeyPair createKeyPair() throws InvalidKeySpecException,\n\t\t\tInvalidAlgorithmParameterException, NoSuchAlgorithmException,\n\t\t\tInvalidParameterSpecException {\n\n\t\treturn DHAlgorithm.generateKeyPair();\n }", "public Pair(Object i, Object j)\n {\n a = i;\n b = j;\n }", "public ClothingPair(E left, E right) {\n super(left, right);\n }", "public Pair(Pair<T,V> p){\r\n this.v1 = p.v1;\r\n this.v2 = p.v2;\r\n }", "public Pair(X first, Y second) {\n this.first = first;\n this.second = second;\n }", "public interface Pair {\n /**\n * @return the x value from the pair\n */\n public int getX();\n\n /**\n * @return the y value from the pair\n */\n public int getY();\n\n /**\n * @param other the pair to add to this pair\n * @return a pair with the given pair's x and y values added onto this one's\n */\n public Pair add(Pair other);\n\n /**\n * @param other the pair to subtract this pair\n * @return a pair with the given pair's x and y values subtracted from this one's\n */\n public Pair subtract(Pair other);\n}", "public KeyPair createKeyPair() {\n try {\n KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(\"RSA\");\n keyPairGenerator.initialize(4096);\n return keyPairGenerator.generateKeyPair();\n } catch (RuntimeException | NoSuchAlgorithmException e) {\n throw new RuntimeException(\"Failed to create public/private key pair\", e);\n }\n }", "public static <A, B> PairImpl <A, B> create(A a, B b) {\n return new PairImpl<A, B>(a, b);\n }", "public Pair(T v1, V v2) {\r\n this.v1 = v1;\r\n this.v2 = v2;\r\n }", "public static <U, V> Pair<U, V> of(U a, V b) {\n\t\t\t// calls private constructor\n\t\t\treturn new Pair<>(a, b);\n\t\t}", "@Override\n public int compareTo(DictionaryPair o) {\n return this.key.compareTo(o.key);\n }", "public Pair(int first, int second) {\n this.first = first;\n this.second = second;\n }", "public Pair(final T first, final U second) {\n this.first = first;\n this.second = second;\n }", "public Pair(Object first, Object rest) {\n\t\tthis.first = first; this.rest = rest;\n\t}", "public coOrdPair(int x, int y)\n {\n this.x = x;\n this.y = y;\n }", "public final ObjectNode object() throws RecognitionException {\n ObjectNode obj = null;\n\n KeyNode kvpair8 = null;\n\n\n ArrayList<JSONNode> pairs = new ArrayList<JSONNode>();\n try {\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:38:3: ( ^( OBJECT ( kvpair )* ) )\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:38:5: ^( OBJECT ( kvpair )* )\n {\n match(input,OBJECT,FOLLOW_OBJECT_in_object172); \n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); \n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:38:14: ( kvpair )*\n loop5:\n do {\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0==COLON) ) {\n alt5=1;\n }\n\n\n switch (alt5) {\n \tcase 1 :\n \t // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:38:15: kvpair\n \t {\n \t pushFollow(FOLLOW_kvpair_in_object175);\n \t kvpair8=kvpair();\n\n \t state._fsp--;\n\n \t pairs.add(kvpair8);\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop5;\n }\n } while (true);\n\n\n match(input, Token.UP, null); \n }\n obj = new ObjectNode(\"OBJECT\", pairs);\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return obj;\n }", "CritPair createCritPair();", "public synchronized Pair getPair() {\n\t\treturn new Pair(pair.getX(), pair.getY());\n\t}", "public interface BucketKeyPair<B, K> {\n\n /**\n * Get the bucket representation.\n *\n * @return\n */\n B getBucket();\n\n /**\n * Get the key representation.\n *\n * @return\n */\n K getKey();\n\n}", "protected Pair() {\n\t\t\n\t\tsuper(2);\n\t}", "public Pair(String origin_id, String destination_id){\n this.origin_id = origin_id;\n this.destination_id = destination_id;\n }", "public KeyValuePair () {\n key = null;\n value = null;\n }", "public Pair(Card firstCard, Card secondCard){\r\n this.firstCard = firstCard;\r\n this.secondCard = secondCard;\r\n }", "public Pair(T t, U u) {\n this.t= t;\n this.u= u;\n }", "public static void main(String[] args) {\n\r\n\t\tInteger f = new Integer(2);\r\n\t\tInteger s = new Integer(3);\r\n\t\tDouble d = new Double(2.3);\r\n\t\tPair<Integer> pair = new Pair<Integer>(f, s);\r\n\t\tSystem.out.println(pair.toString());\r\n\t}", "@Override\n\t\tpublic int compareTo(Pair o) {\n\t\t\tif (x == o.x) return y-o.y;\n\t\t\treturn o.x-x;\n\t\t}", "public MutablePair(Pair<K, V> pair) {\n this(pair.getKey(), pair.getValue());\n }", "@FunctionalInterface\npublic interface PairingFunction<X> extends Function<X, Pair<X, ? extends Comparable>> {\n Comparator<Pair<?, ? extends Comparable>> COMPARATOR = Comparator.comparing(Pair::getValue);\n\n Pair<X, ? extends Comparable> apply(X obj);\n}", "@NotNull\n default GenericPair getPair() {\n return GenericPair.of(this.getLeftType(), this.getRightType());\n }", "public boolean put( KEY key, OBJECT object );", "private Pair(U first, V second) {\n\t\t\tthis.first = first;\n\t\t\tthis.second = second;\n\t\t}", "public String getType() {return \"Pair\";}", "public Pair(final @Nullable A first, final @Nullable B second) {\n this.first = first;\n this.second = second;\n }", "@Override\r\n\tpublic void putObject(Object key, Object value) {\n\t\t\r\n\t}", "public KeyedItem(int key,\n T item)\n {\n this(new Integer(key), item);\n }", "public Pair(A primer, B segon) {\n this.primer = primer;\n this.segon = segon;\n }", "public static KeyPair createKeyPair(){\n KeyPair pair = KeyPair.random();\n System.out.println(pair.getSecretSeed());\n System.out.println(pair.getAccountId());\n return pair;\n\n }", "public Pair(String unparsed, K parsed)\n {\n this.unparsed = unparsed;\n this.parsed = parsed;\n }", "public CoinsuperPair() {}", "public Tuple(K newKey, V newValue) {\r\n\t\tkey = newKey;\r\n\t\tvalue = newValue;\r\n\t}", "public PrivatePublicTuple generateKeyPair() {\n try {\n KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(\"RSA\");\n SecureRandom secureRandom = generateNewSecureRandom();\n keyPairGenerator.initialize(PRIVATE_KEY_LENGTH, secureRandom);\n KeyPair pair = keyPairGenerator.generateKeyPair();\n PrivateKey privateKey = pair.getPrivate();\n PublicKey publicKey = pair.getPublic();\n return new PrivatePublicTuple(getDEREncodingFromPrivateKey(privateKey), getDEREncodingFromPublicKey(publicKey));\n } catch (Exception e) {\n LOG.error(\"There was an error generating key pair: \", e);\n }\n return null;\n }", "public static <K, V> MutablePair<K, V> of(Pair<K, V> pair) {\n return new MutablePair<>(pair);\n }", "public interface Pairable <T>{\n public T getFirst();\n public T getSecond();\n public void changeOrder();\n}", "public static <K, V> MutablePair<K, V> of(Map.Entry<K, V> entry) {\n return new MutablePair<>(entry);\n }", "public Pair(String state, double value) {\r\n\t\tthis.key = state;\r\n\t\tthis.val = value;\r\n\t}", "public CVectorPair(double x1, double y1, double x2, double y2) {\n\tthis(new CVector(x1, y1), new CVector(x2, y2));\n }", "public KeyNamePair(String key, String name) {\r\n this.key = key;\r\n this.name = name;\r\n }", "public MapReducePair(double key, int value) {\n this.key = key;\n this.value = value;\n }", "@Override\n public String toString() {\n return \"Pair[\" + first + \", \" + second + \"]\";\n }", "@Override\r\n\t\tpublic hust.idc.util.pair.UnorderedPair<E> convertPair() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn synchronizedPair(pair.convertPair(), mutex);\r\n\t\t\t}\r\n\t\t}", "@Override\n public int compareTo(Pair o) {\n return this.v-o.v;\n }", "public Pair(int row, int col)\n {\n this.row = row;\n this.col = col;\n }", "public Pair(Object exchange, PairType type) {\n\t\tthis.exchange = exchange;\n\t\tthis.type = type;\n\t}", "public Pair(double v1, double v2) {\n\t\t\n\t\tsuper(v1, v2);\n\t}", "@Override\n\tpublic int compareTo(MyPair arg0) {\n\t\tif(first.equals(arg0.first)){\n\t\t\treturn second.compareTo(arg0.second);\n\t\t}else{\n\t\t\treturn first.compareTo(arg0.first);\n\t\t}\n\t}", "public Node(final Object key, final Object value) {\r\n this.k = new Object[]{key};\r\n this.v = new Object[]{value};\r\n this.c = null;\r\n this.kcount = 1;\r\n }", "public Object getObject(String key);", "@Override\r\n\t\tpublic Pair<S, T> convertPair() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn synchronizedPair(pair.convertPair(), mutex);\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\t\tpublic K getKey() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "public interface IProducer<T extends Pair<Class<?>,Object>> {\n void start();\n void stop();\n}", "public MutablePair(Map.Entry<K, V> entry) {\n this(entry.getKey(), entry.getValue());\n }", "public static <A, B> Pair<A, B> of(final @Nullable A first, final @Nullable B second) {\n return new Pair<A, B>(first, second);\n }", "public static void main(String[] args) {\n Pair p1 = new Pair(2,3);\n Pair p5 = new Pair();\n System.out.println(\"The Value of p5 = \" + p5);\n p5.first(7);\n p5.second(9);\n System.out.println(\"The Value of p5 = \" + p5);\n System.out.println(p1.first());\n System.out.println(p1.second());\n Pair p2 = new Pair(5,4);\n Pair p3 = new Pair(2,3);\n String str = new String(\"randi\");\n System.out.println(p1.equals(str));\n System.out.println(p1.equals(p3));\n System.out.println(p1);\n System.out.println(p2);\n System.out.println(p3);\n\n }", "@Override\n\t\tpublic Object makeObject(Object key) throws Exception {\n\t\t\tTConnection tc = new TConnection((String) key);\n\t\t\ttc.open();\n\t\t\treturn tc;\n\t\t}", "PK create(T newInstance);", "private void fromPairs(final Object[] pairs) throws IllegalArgumentException {\n if ((pairs.length & 1) != 0) {\n throw new IllegalArgumentException(\n Errors.format(ErrorKeys.ODD_ARRAY_LENGTH_$1, pairs.length));\n }\n for (int i=0; i<pairs.length; i += 2) {\n super.put(pairs[i], pairs[i+1]);\n }\n }", "public Entry(K key, V value) {\r\n this.key = key;\r\n this.value = value;\r\n }", "public Entry(K key, V value) {\r\n this.key = key;\r\n this.value = value;\r\n }", "private static <U extends Comparable<? super U>> NodePair<U> split(Node<U> root, U key) {\n if (root == null)\n return new NodePair<U>(null, null);\n if (root.value.compareTo(key) < 0) {\n NodePair<U> spl = split(root.right, key);\n root.right = spl.first;\n root.recalc();\n \n return new NodePair<U>(root, spl.second);\n } else {\n NodePair<U> spl = split(root.left, key);\n root.left = spl.second;\n root.recalc();\n \n return new NodePair<U>(spl.first, root);\n }\n }", "private KeyPair getPrivateKeyPair() throws IOException {\n final PEMParser pemParser = new PEMParser(new StringReader(sshKey));\n final PEMKeyPair keypair = (PEMKeyPair) pemParser.readObject();\n final JcaPEMKeyConverter converter = new JcaPEMKeyConverter();\n return new KeyPair(\n converter.getPublicKey(SubjectPublicKeyInfo.getInstance(keypair.getPublicKeyInfo())),\n converter.getPrivateKey(keypair.getPrivateKeyInfo()));\n }", "public CompositeKey(double startPrice,double endPrice){\n\t this.key1=startPrice;\n\t this.key2=endPrice;\n }", "public Entry(K key, V value)\r\n\t\t{\r\n\t\t\tthis.key = key;\r\n\t\t\tthis.value = value;\r\n\t\t}", "@Override\n\tpublic Pair getPair() {\n\t\tlock.lock();\n\t\ttry {\n\t\t\treturn new Pair(pair.getX(), pair.getY());\n\t\t} finally {\n\t\t\tlock.unlock();\n\t\t}\t\t\n\t}", "public static KeyPair generatePublicKeyPair(){\r\n\t\ttry {\r\n\t\t\tKeyPairGenerator keyGen = KeyPairGenerator.getInstance(publicKeyAlgorithm);\r\n\t\t\tkeyGen.initialize(PUBLIC_KEY_LENGTH, new SecureRandom());\r\n\t\t\treturn keyGen.generateKeyPair();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// should not happen\r\n\t\t\tthrow new ModelException(\"Internal key generation error - \"+publicKeyAlgorithm+\"[\"+PUBLIC_KEY_LENGTH+\"]\",e);\r\n\t\t}\r\n\t}", "public Entry insert(Object key, Object value) {\n resize();//only if it needs to.\n Entry e = new Entry();\n e.key = key;\n e.value = value;\n int i = compFunction(key.hashCode());\n buckets[i].insertFront(e);\n size++;\n return e;\n }", "public Entry(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public Entry(K key, V value) {\n this.key = key;\n this.value = value;\n }", "@Override\r\n\t\tpublic hust.idc.util.pair.ImmutableUnorderedPair<E> convertPair() {\n\t\t\treturn this;\r\n\t\t}", "public static Key createPrimaryKey(Number idexped, Number idbulto)\n {\n return new Key(new Object[] {idexped, idbulto});\n }", "public Entry insert(Object key, Object value) {\r\n if (size / num_buckets > 0.75) { //table must be resized if load factor is too great\r\n this.resize();\r\n }\r\n Entry new_entry = new Entry();\r\n new_entry.key = key;\r\n new_entry.value = value;\r\n int comp_hash = compFunction(new_entry.key.hashCode()); //compresses key hash code\r\n if (hash_table[comp_hash] == null) { \r\n hash_table[comp_hash] = new DList();\r\n hash_table[comp_hash].insertFront(new_entry);\r\n } else {\r\n hash_table[comp_hash].insertFront(new_entry);\r\n }\r\n size++;\r\n return new_entry;\r\n }", "public static <K> Object2DoubleSortedMap<K> singleton(K key, Double value) {\n/* 266 */ return new Singleton<>(key, value.doubleValue());\n/* */ }" ]
[ "0.7172735", "0.7106501", "0.64487004", "0.64194876", "0.62081957", "0.617582", "0.600953", "0.59861606", "0.5984482", "0.59558314", "0.5865532", "0.5863913", "0.58274543", "0.58204776", "0.5760091", "0.57316554", "0.5677304", "0.5657347", "0.5653394", "0.5636543", "0.5605832", "0.5597366", "0.5582374", "0.5570179", "0.5548451", "0.5540412", "0.5522208", "0.54653263", "0.54449207", "0.5426063", "0.5425934", "0.54070854", "0.5403207", "0.5385819", "0.5323358", "0.53205377", "0.53016573", "0.52726203", "0.5264243", "0.52250314", "0.52156836", "0.5206336", "0.52036095", "0.519647", "0.5194698", "0.51843756", "0.51633763", "0.5154356", "0.5147251", "0.51314586", "0.51131177", "0.51081735", "0.50983465", "0.5097343", "0.5095681", "0.5090537", "0.5068097", "0.5063465", "0.5053351", "0.5005441", "0.49952298", "0.49912894", "0.49813008", "0.49806097", "0.49695593", "0.49694765", "0.4966924", "0.49610385", "0.49607685", "0.49527764", "0.49484494", "0.4946168", "0.49435246", "0.493677", "0.49340743", "0.49335197", "0.49313155", "0.49305195", "0.49153453", "0.49046806", "0.48964134", "0.48895678", "0.4886479", "0.48820862", "0.48694688", "0.48518145", "0.48518145", "0.48486757", "0.48403805", "0.48394185", "0.48329476", "0.4815424", "0.48074403", "0.48011738", "0.4795884", "0.4795884", "0.47957262", "0.47919077", "0.47860536", "0.47742647" ]
0.70040166
2
return the key of this pair
public K getKey() { return key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic K getKey() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey()\r\n {\r\n return getValue().toString();\r\n }", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public String getKey() { \n\t\treturn getKeyElement().getValue();\n\t}", "public K getKey()\r\n\t\t{\r\n\t\t\treturn key;\r\n\t\t}", "public Object getKey()\n {\n return key;\n }", "public Object getKey() {\n return key;\n }", "protected K getKey() {\n return this.key;\n }", "public String getKey()\n\t\t{\n\t\t\treturn key;\n\t\t}", "public Object getKey() {\r\n return key;\r\n }", "@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}", "Object getKey();", "public String getKey() {\r\n\t\treturn key;\r\n\t}", "public String getKey() {\r\n\t\treturn key;\r\n\t}", "public String getKey() {\r\n\t\treturn key;\r\n\t}", "public String getKey()\n\t{\n\t\treturn key;\n\t}", "public K getKey() {\r\n\t\treturn key;\r\n\t}", "public String getKey()\n\t{\n\t\treturn this.key;\n\t}", "K getKey();", "K getKey();", "K getKey();", "K getKey();", "public String getKey(){\n\t\treturn key;\n\t}", "public String getKey() {\n\t\treturn key;\n\t}", "public String getKey() {\n\t\treturn key;\n\t}", "public String getKey() {\n\t\treturn key;\n\t}", "public K getKey() {\n\t\treturn key;\n\t}", "public String getKey() {\n\t\treturn this.key;\n\t}", "public String getKey() {\n\t\treturn this.key;\n\t}", "public String getKey() {\n\t\treturn this.key;\n\t}", "@Override\n\t\tpublic K getKey() {\n\t\t\treturn k;\n\t\t}", "public String getKey() {\r\n return key;\r\n }", "public String getKey() {\r\n return key;\r\n }", "public String getKey() {\r\n return key;\r\n }", "public K getKey();", "public K getKey();", "public String getKey() {\r\n return key;\r\n }", "public K getKey() {\n return key;\n }", "public final String getKey() {\n return key;\n }", "public static String getKey(){\n\t\treturn key;\n\t}", "public String getKey() {\n return key;\n }", "public double getKey() {\n\t\treturn key;\n\t}", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "@Override\n\tpublic String getKey() {\n\t\treturn key;\n\t}", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n\n return this.key;\n }", "public Integer getKey()\r\n {\r\n return key;\r\n }", "public Key getKey() {\n\t\treturn mKey;\n\t}", "public Key getKey() {\n\t\treturn key;\n\t}", "public int getKey() {\n\t\t\treturn this.key; // to be replaced by student code\n\t\t}", "public String getKey() {\n\treturn key;\n }", "@Override\n public int getKey() {\n return this.key;\n }", "public int getKey() {\r\n return key;\r\n }", "public int getKey() {\n return this.key;\n }", "public java.lang.String getKey() {\n\t\treturn this.key;\n\t}", "public Key getKey()\r\n { \r\n return key; \r\n }", "public int getKey() {\n return key;\n }", "public int getKey()\n {\n return key;\n }", "public int getKey()\n {\n return key;\n }" ]
[ "0.8367476", "0.79812276", "0.79812276", "0.79812276", "0.79812276", "0.79812276", "0.79812276", "0.7783132", "0.7783132", "0.7783132", "0.7783132", "0.7762106", "0.77604353", "0.77604353", "0.77604353", "0.77604353", "0.77604353", "0.77604353", "0.77604353", "0.77604353", "0.77604353", "0.77604353", "0.77604353", "0.77604353", "0.77604353", "0.7747467", "0.7675953", "0.7666988", "0.7651311", "0.7644187", "0.76401716", "0.7631701", "0.7617786", "0.76139534", "0.7602958", "0.7602958", "0.7602958", "0.7596062", "0.758812", "0.7585428", "0.75707424", "0.75707424", "0.75707424", "0.75707424", "0.7570611", "0.75662404", "0.75662404", "0.75662404", "0.7561331", "0.7556007", "0.7556007", "0.7556007", "0.7546345", "0.7545063", "0.7545063", "0.7545063", "0.7532239", "0.7532239", "0.7530453", "0.7519393", "0.7508659", "0.74982554", "0.7494203", "0.7482817", "0.7478818", "0.7478818", "0.7478818", "0.7478818", "0.7478818", "0.7478818", "0.7478818", "0.7478818", "0.7478818", "0.7478818", "0.7462705", "0.7462705", "0.7462705", "0.7462705", "0.7462705", "0.7462705", "0.7459354", "0.74434674", "0.74380904", "0.74380904", "0.7436395", "0.7409031", "0.74021906", "0.7394384", "0.73874944", "0.73827785", "0.7364143", "0.7356384", "0.7356104", "0.73538923", "0.7334702", "0.73194724", "0.7316514", "0.7316514" ]
0.7509503
62
return the value of this pair
public V getValue() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic V getValue() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "public Pair get()\n {\n return this.MapItr.element;\n }", "@Override\n public V getValue() {\n return m_value;\n }", "public V getValue()\r\n\t\t{\r\n\t\t\treturn val;\r\n\t\t}", "public V getValue() {\r\n\t\treturn value;\r\n\t}", "@Override\n\t\tpublic V getValue(){\n\t\t\treturn value;\n\t\t}", "public V getValue() {\n\t\treturn value;\n\t}", "public V getValue() {\n\t\treturn value;\n\t}", "@Override\n\t\tpublic V getValue() {\n\t\t\treturn v;\n\t\t}", "V getValue() {\n return value;\n }", "public T getValue() {\n\t\t\treturn this.entry.value;\n\t\t}", "protected V getValue() {\n return this.value;\n }", "@Override\n public T getValue() {\n return entry.getValue().getValue();\n }", "public Object getValue()\r\n\t{\r\n\t\treturn m_value;\r\n\t}", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }", "public Object getValue()\r\n {\r\n return this.value;\r\n }", "public V getValue();", "public Object getValue() { return this.value; }", "public Object getValue(){\n \treturn this.value;\n }", "public S getValue() { return value; }", "public synchronized Pair getPair() {\n\t\treturn new Pair(pair.getX(), pair.getY());\n\t}", "V getValue();", "V getValue();", "V getValue();", "public final Object getValue()\n {\n return m_Value;\n }", "public Object getValue() {\n\t\t\treturn value;\n\t\t}", "@Override\r\n\t\tpublic S getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "public Object getValue()\n {\n\treturn value;\n }", "public Object getValue() {\n\t\treturn value;\n\t}", "public Object getValue() {\n\t\treturn value;\n\t}", "@Override\n\tpublic Integer getValue() {\n\t\treturn value;\n\t}", "@Override\n\tpublic Integer getValue() {\n\t\treturn value;\n\t}", "public int getValue(){\n return this.value;\n }", "public Object getValue()\n {\n return value;\n }", "public Object getValue() { return _value; }", "public int getValue ()\r\n\t{\r\n\t\treturn (m_value);\r\n\t}", "public int getValue()\n {\n return value;\n }", "public Integer getValue() {\n return _value ;\n }", "public Object getValue() {\r\n return value;\r\n }", "public E value()\r\n\t// post: returns value associated with this node\r\n\t{\r\n\t\treturn val;\r\n\t}", "public Value getValue(){\n return this.value;\n }", "@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}", "@Override\n\tpublic Object getValue() {\n\t\treturn this ;\n\t}", "public V value()\n\t\t{\n\t\t\treturn _value;\n\t\t}", "@Override\n\tpublic Pair getPair() {\n\t\tlock.lock();\n\t\ttry {\n\t\t\treturn new Pair(pair.getX(), pair.getY());\n\t\t} finally {\n\t\t\tlock.unlock();\n\t\t}\t\t\n\t}", "public int getValue() \n {\n return value;\n }", "protected CompoundValue getCompoundValue() {\n return accessor.getValue(this);\n }", "public int getValue() {\n\t\treturn this.getValue();\n\t}", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public int getValue()\n {\n return mi_value;\n }", "public int getValue()\n {\n return mi_value;\n }", "public Integer getValue();", "public int getValue()\r\n {\r\n return value;\r\n }", "public int getValue() {\r\n return value;\r\n }", "public int getValue(){\n\t\treturn value;\n\t}", "@SuppressWarnings(\"unchecked\")\n public <V> V getValue() {\n return (V) this.value;\n }", "public T getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "Object getValue();", "public int getValue() {\r\n return value;\r\n }", "public Vector3 getValue() {\n\t\treturn this.value;\n\t}", "public T getValue() \n\t{\n\t\treturn value;\n\t}", "@Override\n public V getValue() {\n Object object = this.h;\n synchronized (object) {\n return this.a().getValue();\n }\n }", "public int getValue()\n\t{\n\t\treturn value;\n\t}", "public int getValue()\n\t{\n\t\treturn value;\n\t}", "public int getValue()\n\t{\n\t\treturn value;\n\t}", "public int getValue() {\r\n return value;\r\n }", "public int getValue() \n {\n return value;\n }", "public int getValue() {\n return m_value;\n }", "@Override\r\n\t\tpublic E getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "@Override\r\n\t\tpublic E getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}", "public int getValue() {\n return value;\n }", "public int getValue() {\n return value;\n }", "public int getValue () {\n return value;\n }", "public int getValue() {\n\t\t\treturn value;\n\t\t}", "public T getValue() {\r\n return value;\r\n }", "public int getValue()\n {\n return value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\n return this.value;\n }", "public int getValue() {\r\n return Value;\r\n }", "public T getValue() {\n return value;\n }", "public Object getValue();", "public Object getValue();", "public Object getValue();" ]
[ "0.83068925", "0.69962513", "0.68707895", "0.68508303", "0.6845299", "0.6830432", "0.6806655", "0.6806655", "0.6801393", "0.6783825", "0.6779009", "0.67775095", "0.67731106", "0.6718145", "0.6711043", "0.6711043", "0.6703914", "0.6682832", "0.6647749", "0.6637922", "0.66365033", "0.6604124", "0.6602754", "0.6602754", "0.6602754", "0.6588982", "0.65785664", "0.65650165", "0.6559906", "0.655108", "0.655108", "0.6544019", "0.6544019", "0.65360856", "0.6519734", "0.6508954", "0.6503049", "0.65016294", "0.6501542", "0.65014297", "0.6492007", "0.6490823", "0.6485318", "0.6485318", "0.64837486", "0.6477203", "0.64762145", "0.64519525", "0.6446811", "0.6445677", "0.6445677", "0.6445677", "0.6445677", "0.6445677", "0.64409184", "0.64409184", "0.6435725", "0.6433038", "0.6423518", "0.64135915", "0.64132804", "0.6408629", "0.64051425", "0.64046746", "0.64046746", "0.64046746", "0.64046746", "0.64046746", "0.64046746", "0.64046746", "0.6401427", "0.6393138", "0.6392734", "0.6387768", "0.6384116", "0.6384116", "0.6384116", "0.63817775", "0.6381289", "0.6378711", "0.63771176", "0.63771176", "0.63730264", "0.63730264", "0.6368902", "0.6368889", "0.6364606", "0.6363638", "0.63635933", "0.63635933", "0.63635933", "0.63635933", "0.6360347", "0.6352515", "0.6348664", "0.6348664", "0.6348664" ]
0.6772438
16
Extract the bindings from the input folder to the output file, using the bindingExtractor.
public static void extractBindings(final File inputFolder, final File outputFile, final AbstractJavaNameBindingsExtractor bindingExtractor) throws IOException, JsonIOException { final Collection<File> allFiles = FileUtils .listFiles(inputFolder, JavaTokenizer.javaCodeFileFilter, DirectoryFileFilter.DIRECTORY); final List<SerializableResolvedSourceCode> resolvedCode = allFiles .parallelStream() .map(f -> getResolvedCode(f, bindingExtractor)) .filter(r -> r != null) .map(r -> SerializableResolvedSourceCode .fromResolvedSourceCode(r)) .filter(s -> !s.boundVariables.isEmpty()) .collect(Collectors.toList()); final FileWriter writer = new FileWriter(outputFile); try { final Gson gson = new Gson(); gson.toJson(resolvedCode, writer); } finally { writer.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getFiles() {\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(inputFileName);\n\t\t\tinputBuffer = new BufferedReader(fr);\n\n\t\t\tFileWriter fw = new FileWriter(outputFileName);\n\t\t\toutputBuffer = new BufferedWriter(fw);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found: \" + e.getMessage());\n\t\t\tSystem.exit(-2);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-3);\n\t\t}\n\t}", "private void copyAndResolve() throws IOException {\n if (abort) {\n LOG.debug(\"Nothing to resolve on the backend.\");\n return;\n }\n // Step one is to see if there are any classes in the distributed cache\n if (!jConf.getBoolean(PIG_SCHEMA_TUPLE_ENABLED, SCHEMA_TUPLE_ON_BY_DEFAULT)) {\n LOG.info(\"Key [\" + PIG_SCHEMA_TUPLE_ENABLED +\"] was not set... will not generate code.\");\n return;\n }\n // Step two is to copy everything from the distributed cache if we are in distributed mode\n if (!isLocal) {\n copyAllFromDistributedCache();\n }\n // Step three is to see if the file needs to be resolved\n // If there is a \"$\" in the name, we know that it is an inner\n // class and thus doesn't need to be instantiated directly.\n for (File f : codeDir.listFiles()) {\n String name = f.getName().split(\"\\\\.\")[0];\n if (!name.contains(\"$\")) {\n filesToResolve.add(name);\n LOG.info(\"Added class to list of class to resolve: \" + name);\n }\n }\n // Step four is to actually try and resolve the classes\n resolveClasses();\n }", "public void convert(String inFile, String outFile) throws IOException, JAXBException;", "public void resolveTwoWayBindings()\n {\n // If there are any two-way bindings, only partially built, now is the time\n // to finish them.\n completeTwoWayBindings();\n \n Map<String, BindingExpression> destinationMap = new HashMap<String, BindingExpression>();\n\n for (BindingExpression bindingExpression : bindingExpressions)\n {\n // Note that this just strips the parens on the edges of the expression.\n // It's possible the expression was an inline expression which got parsed to\n // something like '(a.text) + \".\" + (b.text)'. Since this would never be part of a two-way bind\n // it probably doesn't matter that when the parens are stripped it ends up\n // as 'a.text) + \".\" + (b.text'.\n String sourceExpression = TextGen.stripParens(bindingExpression.getSourceExpression());\n \n String destinationPath = bindingExpression.getDestinationPath(false);\n BindingExpression match = destinationMap.get(sourceExpression);\n\n if ((match != null) && destinationPath.equals(TextGen.stripParens(match.getSourceExpression())))\n {\n bindingExpression.setTwoWayCounterpart(match);\n }\n else\n {\n destinationMap.put(destinationPath, bindingExpression);\n } \n }\n }", "@Override public void process()\n{\n readLockData(lock_file);\n\n pattern_builder = new DylockPatternBuilder(this);\n processInput();\n\n try {\n IvyXmlWriter xw = new IvyXmlWriter(output_file);\n xw.begin(\"PATTERNS\");\n pattern_builder.outputPatterns(xw);\n xw.end(\"PATTERNS\");\n xw.close();\n }\n catch (IOException e) { }\n}", "private void buildInput(String inputPath) {\n\t\ttry {\n\t\t\tJAXBContext jxbcontext = (JAXBContext) JAXBContext.newInstance(\"es.ujaen.sinai.first.io.xml.nlptoolsshare\");\n\t\t\tMarshaller marshaller = jxbcontext.createMarshaller();\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\tmarshaller.setProperty(\"com.sun.xml.bind.namespacePrefixMapper\", new XMLPrefixMapper());\n\t\t\tObjectFactory factory = new ObjectFactory();\n\t\t\tJAXBElement<NlptoolsshareType> xml = factory.createNlptoolsshare(xmldoc);\n\t\t\tmarshaller.marshal(xml, new File(inputPath));\n\t\t} catch (JAXBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public File extractTo (File destination) throws IOException\n\t{\n\t\ttry (DirectoryStream<Path> directoryStream = Files\n\t\t\t.newDirectoryStream (zipfs.getPath (\"/\"));)\n\t\t{\n\t\t\tfor (Path file : directoryStream)\n\t\t\t{\n\t\t\t\textract (file, destination.toPath ());\n\t\t\t}\n\t\t}\n\t\treturn destination;\n\t}", "private void completeTwoWayBindings()\n {\n // A side-effect of creating a new BindingExpression is that it is inserted\n // into the bindingExressions list. Since we can't add to the list while \n // iterating thru it, use an array instead.\n Object[] bindingExpressionsArray = bindingExpressions.toArray(); \n for (int i = 0; i < bindingExpressionsArray.length; i++)\n {\n BindingExpression bindingExpression = (BindingExpression) bindingExpressionsArray[i];\n if (bindingExpression.isTwoWayPrimary())\n {\n Model destination = bindingExpression.getDestination();\n\n if (destination != null)\n {\n destination.ensureBindable();\n }\n\n String source2 = bindingExpression.getDestinationPath(false);\n \n BindingExpression bindingExpression2 = \n new BindingExpression(source2, bindingExpression.getXmlLineNumber(), this);\n \n String destination2 = TextGen.stripParens(bindingExpression.getSourceExpression());\n bindingExpression2.setDestinationProperty(destination2);\n bindingExpression2.setDestinationLValue(destination2);\n }\n } \n }", "@Override\n public void handleExtracting(File file) {\n }", "private void buildExtractionRoutes(String workItemQueueUri, String parserQueueUri) {\n\n // routeId: extraction\n from(workItemQueueUri).routeId(\"extraction\")\n .bean(batchJobManager, \"prepareTenantContext\").choice()\n .when(header(INGESTION_MESSAGE_TYPE).isEqualTo(MessageType.ERROR.name()))\n .log(LoggingLevel.INFO, \"CamelRouting\", \"Error in processing. Routing to stop.\").to(\"direct:stop\")\n\n .when(header(INGESTION_MESSAGE_TYPE).isEqualTo(MessageType.BATCH_REQUEST.name()))\n .log(LoggingLevel.INFO, \"CamelRouting\", \"Routing to ControlFileProcessor.\").process(ctlFileProcessor)\n .to(\"direct:assembledJobs\")\n\n .when(header(INGESTION_MESSAGE_TYPE).isEqualTo(MessageType.PURGE.name()))\n .log(LoggingLevel.INFO, \"CamelRouting\", \"Purge command. Routing to PurgeProcessor.\")\n .process(purgeProcessor).to(\"direct:stop\")\n\n .when(header(INGESTION_MESSAGE_TYPE).isEqualTo(MessageType.CONTROL_FILE_PROCESSED.name()))\n .log(LoggingLevel.INFO, \"CamelRouting\", \"Routing to zipFileSplitter.\")\n .choice()\n .when().method(batchJobManager, \"isEligibleForDeltaPurge\")\n .beanRef(\"deltaHashPurgeProcessor\")\n .endChoice()\n .split().method(\"ZipFileSplitter\", \"splitZipFile\")\n .log(LoggingLevel.INFO, \"CamelRouting\", \"Zip file split\").to(parserQueueUri);\n\n from(parserQueueUri).routeId(\"edFiParser\")\n .bean(batchJobManager, \"prepareTenantContext\")\n .log(LoggingLevel.INFO, \"File entry received. Processing: ${body}\")\n .beanRef(\"edFiParserProcessor\")\n .to(\"direct:fileEntryLatch\");\n\n from(\"direct:deltaFilter\").routeId(\"deltaFilter\")\n .bean(batchJobManager, \"prepareTenantContext\")\n .log(LoggingLevel.INFO, \"CamelRouting\", \"Batch of ${body.neutralRecords.size} is recieved for delta processing\")\n .beanRef(\"deltaFilterProcessor\")\n .choice()\n .when(header(INGESTION_MESSAGE_TYPE).isEqualTo(MessageType.PERSIST_REQUEST.name()))\n .choice()\n .when()\n .method(batchJobManager, \"isDryRun\")\n .log(LoggingLevel.INFO, \"CamelRouting\", \"Dry-run specified. Bypassing persistence.\")\n .otherwise()\n .log(LoggingLevel.INFO, \"CamelRouting\", \"Routing to PersistenceProcessor.\")\n .to(\"direct:persister\");\n\n from(\"direct:persister\").routeId(\"persister\")\n .bean(batchJobManager, \"prepareTenantContext\")\n .log(LoggingLevel.INFO, \"CamelRouting\", \"Batch of ${body.neutralRecords.size} is recieved to persist\")\n .beanRef(\"persistenceProcessor\");\n\n // file entry Latch\n from(\"direct:fileEntryLatch\").routeId(\"fileEntryLatch\")\n .bean(batchJobManager, \"prepareTenantContext\")\n .log(LoggingLevel.INFO, \"Removing file entry from latch. Processing: ${body}\")\n .choice()\n .when().method(\"fileEntryLatch\", \"lastFileProcessed\")\n .log(LoggingLevel.INFO, \"CamelRouting\", \"FileEntryWorkNote latch opened.\")\n .to(\"direct:stop\");\n\n // routeId: assembledJobs\n from(\"direct:assembledJobs\").routeId(\"assembledJobs\")\n .bean(batchJobManager, \"prepareTenantContext\").choice().when()\n .method(batchJobManager, \"hasErrors\")\n .log(LoggingLevel.INFO, \"CamelRouting\", \"Error in processing. Routing to stop.\").to(\"direct:stop\")\n .otherwise().to(workItemQueueUri);\n\n // end of routing\n from(\"direct:stop\").routeId(\"stop\")\n .bean(batchJobManager, \"prepareTenantContext\")\n .log(LoggingLevel.INFO, \"CamelRouting\", \"Routing to JobReportingProcessor.\")\n .process(jobReportingProcessor).log(LoggingLevel.INFO, \"CamelRouting\", \"Stop. Job routing complete.\")\n .stop();\n }", "private void processOutputs( Map outputs ) {\n\n\t\tOUTPUTS = new CommandOutputParameter[ outputs.size() ];\n\n\t\tint counter = 0;\n\n\t\tfor( Object attribute : outputs.keySet() ){\n\n\t\t\tOUTPUTS[ counter ] = new CommandOutputParameter();\n\n\t\t\tif ( attribute.equals(\"id\") ) {\n\t\t\t\tOUTPUTS[counter].setid( (String) outputs.get( attribute ) );\n\t\t\t}\n\n\t\t\tif ( attribute.equals(\"type\") ) {\n\t\t\t\tOUTPUTS[counter].settype( (String) outputs.get( attribute ) );\n\t\t\t}\n\n\t\t\tif ( attribute.equals(\"outputBinding\") ) {\n\t\t\t\tMap outputBindingMap = (Map) outputs.get( attribute );\n\t\t\t\tCommandOutputBinding cob = new CommandOutputBinding();\n\n\t\t\t\tfor( Object outputBindingAttribute : outputBindingMap.keySet() ) {\n\t\t\t\t\tif( outputBindingAttribute.equals(\"glob\") ) {\n\t\t\t\t\t\tcob.setglob( new String( (String)outputBindingMap.get(outputBindingAttribute) ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tOUTPUTS[counter].setoutputBinding( cob );\n\t\t\t}\n\t\t}\n\t}", "private static void processJar(Path destinationPath) throws IOException {\n\n if (destinationPath == null) {\n throw new IOException(\"Cobigen folder path not found!\");\n }\n\n File cobigenTemplatesPath = CobiGenPaths.getTemplatesFolderPath().toFile();\n\n Path sourcesJarPath = TemplatesJarUtil.getJarFile(true, cobigenTemplatesPath).toPath();\n Path classesJarPath = TemplatesJarUtil.getJarFile(false, cobigenTemplatesPath).toPath();\n\n LOG.debug(\"Processing jar file @ {}\", sourcesJarPath);\n\n // extract sources jar to target directory\n extractArchive(sourcesJarPath, destinationPath);\n\n // create src/main/java directory\n Files.createDirectory(destinationPath.resolve(\"src/main/java\"));\n\n // move com folder to src/main/java/com\n Files.move(destinationPath.resolve(\"com\"), destinationPath.resolve(\"src/main/java/com\"),\n StandardCopyOption.REPLACE_EXISTING);\n\n // create src/main/resources directory\n Files.createDirectory(destinationPath.resolve(\"src/main/resources\"));\n\n // move META-INF folder to src/main/resources\n Files.move(destinationPath.resolve(\"META-INF\"), destinationPath.resolve(\"src/main/resources/META-INF\"),\n StandardCopyOption.REPLACE_EXISTING);\n\n // delete MANIFEST.MF\n Files.deleteIfExists(destinationPath.resolve(\"src/main/resources/META-INF/MANIFEST.MF\"));\n\n URI zipFile = URI.create(\"jar:file:\" + classesJarPath.toUri().getPath());\n\n // extract classes jar pom.xml\n try (FileSystem fs = FileSystemUtil.getOrCreateFileSystem(zipFile)) {\n Files.copy(fs.getPath(\"pom.xml\"), destinationPath.resolve(\"pom.xml\"), StandardCopyOption.REPLACE_EXISTING);\n }\n\n }", "private void writeToFiles(Context resultContext) throws IOException {\n\t\tMap<String, Map<Object, ArrayList<Object>>> keyValMappingByBaseOutputPath = resultContext.getKeyValMappingsByBaseOutputPath(); \n\t\t//Write key & value to each baseOutputPath's \n\t\tPath targetOutputDir = null;\n\t\tMap<Object, ArrayList<Object>> keyValMapping = null;\n\t\tPath finalOutputBaseDir = this.config.getFinalOutputDir();\n\t\tfor (String baseOutputPath: keyValMappingByBaseOutputPath.keySet()) {\n\t\t\tif (baseOutputPath.equals(\"\")) {\n\t\t\t\t//Regular output goes into the mapper output buffer directory.\n\t\t\t\ttargetOutputDir = this.config.getMapOutputBufferDir();\n\t\t\t}else {\n\t\t\t\t//Multiple output to a particular outputPath which was \n\t\t\t\t//specified by user goes into the final output directory. \n\t\t\t\ttargetOutputDir = Paths.get(finalOutputBaseDir.toString(), baseOutputPath);\n\t\t\t}\n\t\t\tkeyValMapping = keyValMappingByBaseOutputPath.get(baseOutputPath);\n\t\t\tthis.writeEachMapping(targetOutputDir, keyValMapping);\n\t\t};\n\t}", "private void copyNGLibs(File targetLibDir) throws ExportException, IOException\n\t{\n\t\tList<String> pluginLocations = exportModel.getPluginLocations();\n\t\tFile parent = null;\n\t\tif (System.getProperty(\"eclipse.home.location\") != null)\n\t\t\tparent = new File(URI.create(System.getProperty(\"eclipse.home.location\").replaceAll(\" \", \"%20\")));\n\t\telse parent = new File(System.getProperty(\"user.dir\"));\n\t\tfor (String libName : NG_LIBS)\n\t\t{\n\t\t\tint i = 0;\n\t\t\tboolean found = false;\n\t\t\twhile (!found && i < pluginLocations.size())\n\t\t\t{\n\t\t\t\tFile pluginLocation = new File(pluginLocations.get(i));\n\t\t\t\tif (!pluginLocation.isAbsolute())\n\t\t\t\t{\n\t\t\t\t\tpluginLocation = new File(parent, pluginLocations.get(i));\n\t\t\t\t}\n\t\t\t\tFileFilter filter = new WildcardFileFilter(libName);\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tFile[] libs = pluginLocation.listFiles(filter);\n\n\t\t\t\t\tif (libs == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.err.println(pluginLocation.toString() + \" is directory \" + pluginLocation.isDirectory());\n\t\t\t\t\t\tSystem.err.println(\"missing lib name: \" + libName);\n\t\t\t\t\t\tSystem.err.println(\"missing filter: \" + filter.toString());\n\t\t\t\t\t\tSystem.out.println(pluginLocation.listFiles());\n\t\t\t\t\t}\n\n\t\t\t\t\tif (libs != null && libs.length > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tFile file = libs[0];\n\t\t\t\t\t\tif (libName.contains(\"servoy_ngclient\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcopyNGClientJar(file, targetLibDir);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcopyFile(file, new File(targetLibDir, file.getName()));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfound = true;\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\tDebug.error(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!found) throw new ExportException(libName + \" was not found. Please specify location\");\n\t\t}\n\t}", "public void extractResources(final Collection<Resource> files, final File destinationDir) throws IOException {\n for (String file : CONTROL_RESOURCES) {\n final String path = String.format(\"/control/%s\", file);\n final URL resource = DropwizardMojo.class.getResource(path);\n if (resource != null) {\n final ByteSource source = Resources.asByteSource(resource);\n final File target = new File(destinationDir, path);\n extractResource(source, target, true);\n }\n }\n\n // Extract/filter passed in files\n for (Resource resource : files) {\n final String path = String.format(\"/files/%s\", resource.getTarget());\n final ByteSource source = resource.getSource();\n final File target = new File(destinationDir, path);\n extractResource(source, target, resource.isFilter());\n }\n }", "private final void ensureBindingImports()\n {\n if (!bindingImportsAdded)\n {\n for (Iterator<BindingExpression> iter = bindingExpressions.iterator(); iter.hasNext(); )\n {\n BindingExpression expr = iter.next();\n addImport(expr.getDestinationTypeName(), expr.getXmlLineNumber());\n }\n bindingImportsAdded = true;\n }\n }", "private void loadOutputModules() {\n\t\tthis.outputModules = new ModuleLoader<IOutput>(\"/Output_Modules\", IOutput.class).loadClasses();\n\t}", "public void generate() {\n\t\tthis.initializePathBindingClass();\n\t\t// managed at abstract level ; name provided at binding generation time\n\t\t// this.addGetName();\n\t\t// this.addGetType();\n\n\t\t// add all properties methods\n\t\tthis.addProperties();\n\t\t// add getter that provides property list\n\t\tthis.addGetChildBindings();\n\n\t\t// initialize class declaration (*Binding)\n\t\tthis.initializeRootBindingClass();\n\t\t// add constructors\n\t\tthis.addConstructors();\n\t\t// add getWithRoot method\n\t\tthis.addGetWithRoot();\n\t\t// add getSafelyWithRoot method\n\t\tthis.addGetSafelyWithRoot();\n\n\t\tthis.addGeneratedTimestamp();\n\t\tthis.addSerialVersionUID();\n\t\tthis.saveCode(this.pathBindingClass);\n\t\tthis.saveCode(this.rootBindingClass);\n\t}", "public void exportFiles() \r\n\t{\r\n\t\tif(!fDictionaryFile().exists())\r\n\t\t{\r\n\t\t\texportDictionary();\r\n\t\t}\r\n\t}", "private void extractFile() {\n try (BufferedReader buffered_reader = new BufferedReader(new FileReader(source_file))) {\n String line;\n while((line = buffered_reader.readLine()) != null) {\n String spaceEscaped = line.replace(\" \", \"\");\n //file was read, each line is one of the elements of the file_read_lines list\n //line 0 is keyword \"TELL\"\n //line 1 is the knowledge base\n //line 2 is the keyword \"ASK\"\n //line 3 is the query\n file_read_lines.add(spaceEscaped);\n }\n\n //generate list of Horn clauses (raw) from the KB raw sentence\n //replace \\/ by |\n String kbLine = file_read_lines.get(1).replace(\"\\\\/\", \"|\");\n rawClauses = Arrays.asList(kbLine.split(\";\"));\n //query - a propositional symbol\n query = file_read_lines.get(3);\n } catch (IOException e) {\n //Return error if file cannot be opened\n error = true;\n System.out.println(source_file.toString() + \" is not found!\");\n }\n }", "@Override\n public int doWork() {\n INPUT = FileListParsingUtils.expandFileList(INPUT);\n\n if (OUTPUT != null && !OUTPUT.getPath().contains(OUTPUT_SLUG)) {\n throw new IllegalArgumentException(OUTPUT + \" does not contain the replacement token \" + OUTPUT_SLUG);\n }\n\n if (OUTPUT == null) {\n setDefaultOutput();\n }\n\n if (DELETE_INPUT_INDICES == null) {\n DELETE_INPUT_INDICES = DELETE_INPUTS;\n }\n\n // Check that input BAM files can be deleted\n if (DELETE_INPUTS) {\n for (File bamFile : INPUT) {\n IOUtil.assertFileIsWritable(bamFile);\n }\n }\n\n if (DELETE_INPUT_INDICES) {\n for (File bamFile : INPUT) {\n final File index = SamFiles.findIndex(bamFile);\n if (index != null && index.exists()) {\n IOUtil.assertFileIsWritable(index);\n }\n }\n }\n\n if (TARGET_BAM_SIZE != null) {\n long targetSize = dehumanizeFileSize(TARGET_BAM_SIZE);\n NUM_OUTPUTS = (int) Math.max(1, Math.round(1.0 * getTotalBamSize(INPUT) / targetSize));\n }\n\n checkOutputOverwrites();\n\n samWriterFactory = new SAMFileWriterFactory().setCreateIndex(CREATE_INDEX);\n\n headerAndIterator = SamFileMergeUtil.mergeInputs(INPUT, true);\n SamHeaderUtil.addPgRecord(headerAndIterator.header, this);\n splitBAMs();\n CloserUtil.close(headerAndIterator.iterator);\n for (SAMFileInfo writerInfo : writerInfoList) {\n writerInfo.getWriter().close();\n }\n if (OUTPUT_MANIFEST != null) {\n writeManifest(OUTPUT_MANIFEST);\n }\n\n\n writeOutputList();\n writeReport();\n\n if (DELETE_INPUTS) {\n deleteInputBamFiles();\n }\n\n\n return 0;\n }", "public void extract(List<? extends SuSiFile.Entry> in);", "public void run() {\n // Initialize\n imports = new HashSet<>();\n lines = new ArrayList<>();\n\n // Read and merge source files\n final File folder = new File(\"src\");\n recurseOverFolder(folder);\n\n // Output to file\n outputFile();\n }", "private static void unzip(EmailTypes collection) {\n File dir = new File(destDir);\n // create output directory if it doesn't exist\n if(!dir.exists()) {\n dir.mkdirs();\n }\n FileInputStream fis;\n //buffer for read and write data to file\n byte[] buffer = new byte[1024];\n try {\n fis = new FileInputStream(sourceFiles.get(collection).getPath());\n ZipInputStream is = new ZipInputStream(fis);\n ZipEntry zipEntry = is.getNextEntry();\n System.out.println(\"Unzipping set: \" + collection.getCollection() + \".\");\n while(zipEntry != null){\n String fileName = zipEntry.getName();\n File newFile = new File(unpackedFiles.get(collection) + File.separator + fileName);\n new File(newFile.getParent()).mkdirs();\n FileOutputStream fos = new FileOutputStream(newFile);\n int len;\n while ((len = is.read(buffer)) > 0) {\n fos.write(buffer, 0, len);\n }\n fos.close();\n is.closeEntry();\n zipEntry = is.getNextEntry();\n }\n is.closeEntry();\n is.close();\n fis.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "static void bulkConvert(File folder, File destination)\n {\n if (folder == null)\n throw new IllegalArgumentException(\"folder cannot be null\");\n if (!folder.isDirectory())\n throw new IllegalArgumentException(\"folder is not a directory\");\n\n for (File f : folder.listFiles()) {\n if (f.isDirectory()) {\n bulkConvert(f, destination);\n continue;\n }\n\n String extension = f.getName().split(\"\\\\.\")[1];\n\n if (extension.toUpperCase().equals(\"DLIS\"))\n readFromDLIS(f, destination.getPath());\n else if (extension.toUpperCase().equals(\"LIS\"))\n readFromLIS(f, destination.getPath());\n else if (extension.toUpperCase().equals(\"LAS\"))\n readFromLAS(f, destination.getPath());\n }\n }", "R extractRawInputs(I input);", "private static void extractFile(ZipInputStream inStreamZip, FSDataOutputStream destDirectory) throws IOException {\n BufferedOutputStream bos = new BufferedOutputStream(destDirectory);\n byte[] bytesIn = new byte[BUFFER_SIZE];\n int read = 0;\n while ((read = inStreamZip.read(bytesIn)) != -1) {\n bos.write(bytesIn, 0, read);\n }\n bos.close();\n }", "public static void scatterGetBindings(final Map<VmProxy, Set<String>> vmBindingNamesMap, final Handler<Map<VmProxy, ResultHolder<VmBindings>>> resultHandler) {\n final Map<VmProxy, ResultHolder<VmBindings>> resultHolders = new HashMap<VmProxy, ResultHolder<VmBindings>>();\n\n for (final VmProxy vmProxy : vmBindingNamesMap.keySet()) {\n Handler<VmBindings> bindingsResultHandler = new Handler<VmBindings>() {\n public void handle(VmBindings vmBindings) {\n resultHolders.put(vmProxy, new ResultHolder<VmBindings>(vmBindings));\n if (resultHolders.size() == vmBindingNamesMap.size()) {\n resultHandler.handle(resultHolders);\n }\n }\n };\n\n Handler<LopError> bindingsErrorHandler = new Handler<LopError>() {\n public void handle(LopError lopError) {\n resultHolders.put(vmProxy, new ResultHolder<VmBindings>(lopError));\n if (resultHolders.size() == vmBindingNamesMap.size()) {\n resultHandler.handle(resultHolders);\n }\n }\n };\n vmProxy.getBindings(vmBindingNamesMap.get(vmProxy), bindingsResultHandler, bindingsErrorHandler);\n }\n }", "private void populateOutputsInTree() {\n\t\tfor (ServiceNode s: serviceMap.values()) {\n\t\t\tfor (String outputVal : s.getOutputs())\n\t\t\t\ttaxonomyMap.get(outputVal).services.add(s);\n\t\t}\n\n\t\t// Now add the outputs of the input node\n\t\tfor (String outputVal : inputNode.getOutputs())\n\t\t\ttaxonomyMap.get(outputVal).services.add(inputNode);\n\t}", "public void importExternal(Block block, Map<Integer,Integer> binding) {\r\n\t\tint freeSlot = numSlots();\r\n\t\t\r\n\t\t// First, sanity check that all input variables are bound\r\n\t\tHashMap<Integer,Integer> nbinding = new HashMap<Integer,Integer>();\r\n\t\tfor(int i=0;i!=block.numInputs;++i) {\r\n\t\t\tInteger target = binding.get(i);\r\n\t\t\tif(target == null) {\r\n\t\t\t\tthrow new IllegalArgumentException(\"Input not mapped by input\");\r\n\t\t\t}\r\n\t\t\tnbinding.put(i,target);\r\n\t\t\tfreeSlot = Math.max(target+1,freeSlot);\r\n\t\t}\r\n\t\t\r\n\t\t// Second, determine binding for temporary variables\t\t\r\n\t\tfor(int i=block.numInputs;i!=block.numSlots();++i) {\r\n\t\t\tnbinding.put(i,i+freeSlot);\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Third, determine relabelling\r\n\t\tHashMap<String,String> labels = new HashMap<String,String>();\r\n\t\t\r\n\t\tfor (Entry s : block) {\r\n\t\t\tif (s.code instanceof Code.Label) {\r\n\t\t\t\tCode.Label l = (Code.Label) s.code;\r\n\t\t\t\tlabels.put(l.label, freshLabel());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Finally, apply the binding and relabel any labels as well.\r\n\t\tfor(Entry s : block) {\r\n\t\t\tCode ncode = s.code.remap(nbinding).relabel(labels);\r\n\t\t\tappend(ncode,s.attributes());\r\n\t\t}\r\n\t}", "public void bind() {\n\t\ttry {\n\t\t\tthis.out = new DataOutputStream(this.s.getOutputStream());\n\t\t\tthis.in = new DataInputStream(new DataInputStream(this.s.getInputStream()));\n\t\t} catch (IOException e) {\n\t\t\tthis.finishedOK = false;\n\t\t}\n\t}", "public static void addNameBindings (Map<String, Object> namesToExport)\n\t{\n\t\tfor (Entry<String, Object> entry : namesToExport.entrySet ())\n\t\t{\n\t\t\tm_interpreter.set (entry.getKey (), entry.getValue ());\n\t\t}\n\t}", "public ArrayList<Binding> unifies(AST ast, ArrayList<Binding> bindings){\n ArrayList<Binding> full_bindings = new ArrayList<Binding>();\n ArrayList<Binding> left_bindings = left.unifies(ast, bindings); \n //go through rhs and try to generate the new bindings\n for(Binding b : left_bindings){\n //pass in the binding\n //System.out.println(b.toString());\n //System.out.println(right.formatString());\n AST newQuery = right.apply(b);\n //System.out.println(newQuery.toString());\n\n ArrayList<Binding> resultBindings = null;\n if(newQuery instanceof Conjunct || newQuery instanceof Disjunct){\n resultBindings = Database.getInstance().query(newQuery, true);\n } else {\n resultBindings = Database.getInstance().query(newQuery);\n }\n \n for(Binding r : resultBindings)\n {\n //System.out.println(\"Mergings Bindings:\");\n //System.out.println(b.toString());\n //System.out.println(\"-and-\");\n //System.out.println(r.toString());\n //System.out.println(\">>\");\n //System.out.println(b.merge(r).toString() + \"\\n\");\n full_bindings.add(b.merge(r));\n }\n }\n return full_bindings;\n }", "private static void extract (Path zipPath, Path destination)\n\t\tthrows IOException\n\t{\n\t\tif (Files.isDirectory (zipPath))\n\t\t{\n\t\t\ttry (DirectoryStream<Path> directoryStream = Files\n\t\t\t\t.newDirectoryStream (zipPath);)\n\t\t\t{\n\t\t\t\tfor (Path file : directoryStream)\n\t\t\t\t{\n\t\t\t\t\textract (file, destination);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tPath fileOutZip = destination\n\t\t\t\t.resolve (\"./\" + zipPath.normalize ().toString ()).normalize ();\n\t\t\tFiles.createDirectories (fileOutZip.getParent ());\n\t\t\tFiles.copy (zipPath, fileOutZip, Utils.COPY_OPTION);\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n\n Path rootDir = Paths.get(\".\").normalize().toAbsolutePath();\n if (!rootDir.endsWith(TEST_MODULE_NAME)) {\n rootDir = Paths.get(\".\" + File.separator + TEST_MODULE_NAME).normalize().toAbsolutePath();\n }\n final Path resourcesDir = rootDir.resolve(\"src\").resolve(\"main\").resolve(\"resources\");\n final Path schemaFile = resourcesDir.resolve(\"jaxb2-plugin-test.xsd\");\n final Path bindingFile = resourcesDir.resolve(\"binding-config.xjb\");\n // Use the same dir that the maven plugin uses\n final Path outputDir = rootDir\n .resolve(\"target\")\n .resolve(\"generated-sources\")\n .resolve(\"xjc\");\n\n System.out.println(\"rootDir: \" + rootDir.toAbsolutePath().toString());\n System.out.println(\"schemaFile: \" + schemaFile.toAbsolutePath().toString());\n System.out.println(\"bindingFile: \" + bindingFile.toAbsolutePath().toString());\n System.out.println(\"outputDir: \" + outputDir.toAbsolutePath().toString());\n\n clearDirectory(outputDir);\n\n // Ensure the full path exists\n Files.createDirectories(outputDir);\n\n final String[] xjcOptions = new String[]{\n \"-xmlschema\",\n \"-nv\",\n \"-extension\",\n \"-verbose\",\n// \"-p\", PACKAGE_NAME,\n \"-d\", outputDir.toAbsolutePath().toString(),\n \"-b\", bindingFile.toAbsolutePath().toString(),\n// \"-quiet\",\n schemaFile.toAbsolutePath().toString(), //the source schema to gen classes from\n \"-Ximmutable\",\n \"-Xfluent-builder\",\n \"-generateJavadocFromAnnotations=true\",\n \"-Xclone\",\n // TODO Not sure how to handle the episodes file that group-contract needs\n// \"-Xgroup-contract\",\n };\n\n System.out.println(\"Running XJC with arguments:\");\n Arrays.stream(xjcOptions)\n .map(str -> \" \" + str)\n .forEach(System.out::println);\n\n // Run the xjc code generation process\n final int exitStatus = Driver.run(xjcOptions, System.out, System.out);\n\n if (exitStatus != 0) {\n System.out.print(\"Executing xjc failed\");\n System.exit(1);\n }\n }", "public void handleOutput(String outputFolder) {\n\t\t\n\t\tFile source = new File(getFolder()+File.separator+outputFolder);\n\t\tif(source.isDirectory()){\n\t\t\t// get results\n\t\t\tFile file = new File(source+File.separator+Feedback.OUTPUT_FILE);\n\t\t\tif(file.isFile()){\n\t\t\t\tlogger.debug(Module.COMMAND, \"Collecting Feedback: \"+file.getAbsolutePath());\n\t\t\t\ttry{\n\t\t\t\t\tFeedback feedback = new Feedback();\n\t\t\t\t\tfeedback.deserialize(file.getAbsolutePath());\n\t\t\t\t\tfor(Result result : feedback.results){\n\t\t\t\t\t\tresultManager.addResult(result);\n\t\t\t\t\t}\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tlogger.error(Module.COMMAND, e);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// copy output\n\t\t\tFile destination = new File(historyFolder+File.separator+outputFolder);\n\t\t\tif(destination.mkdirs()){\n\t\t\t\tlogger.debug(Module.COMMAND, \"Collecting Output: \"+source.getAbsolutePath());\n\t\t\t\ttry{\n\t\t\t\t\tFileTools.copyFolder(source.getAbsolutePath(), destination.getAbsolutePath());\n\t\t\t\t\tartifacts.add(new Artifact(\"Output [\"+outputFolder+\"]\", destination));\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tlogger.error(Module.COMMAND, e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void translateOutputBind() throws Exception {\n\t\tString expectedTranslation = \"uchar4 __attribute__ ((kernel)) toBitmapBitmapImage(float3 PM_in, uint32_t x,uint32_t y) {\\n\"\n\t\t\t\t+ \"uchar4 PM_out;\\n\"\n\t\t\t\t+ \"PM_out.r = (uchar)(PM_in.s0);\\n\"\n\t\t\t\t+ \"PM_out.g = (uchar)(PM_in.s1);\\n\"\n\t\t\t\t+ \"PM_out.b = (uchar)(PM_in.s2);\\n\"\n\t\t\t\t+ \"PM_out.a = 255;\"\n\t\t\t\t+ \"return PM_out;\\n\" + \"}\";\n\t\tBaseUserLibraryTranslator translator = this.getTranslator();\n\t\tString translatedFunction = translator.translateOutputBind(className,\n\t\t\t\tnull);\n\t\tthis.validateTranslation(expectedTranslation, translatedFunction);\n\t}", "public synchronized static List<String> extractLibraryWithDependenciesAbsolute(String packageName, NativeLibraryWithDependencies library)\n {\n\n try\n {\n \n String hash = getHash(packageName, library);\n \n if (extractedLibraries.containsKey(hash))\n {\n return extractedLibraries.get(hash);\n }\n \n String prefix = createPackagePrefix(packageName);\n File packageDirectory = new File(LIBRARY_LOCATION, prefix);\n File directory = new File(packageDirectory, hash);\n if (!directory.exists())\n {\n directory.mkdirs();\n }\n \n List<String> libraryFiles = new ArrayList<>();\n \n List<InputStream> inputStreams = getInputstreams(packageName, library);\n\n libraryFiles.add(extractFile(directory, library.getLibraryFilename(), inputStreams.get(0)));\n \n for (int i = 1; i < inputStreams.size(); i++)\n {\n libraryFiles.add(extractFile(directory, library.getDependencyFilenames()[i - 1], inputStreams.get(i)));\n }\n \n closeInputStreams(inputStreams);\n \n extractedLibraries.put(hash, libraryFiles);\n return libraryFiles;\n }\n catch(IOException | NoSuchAlgorithmException e)\n {\n throw new UnsatisfiedLinkError(e.getMessage());\n }\n \n }", "public void buildWordFileMap(){\n hashWords.clear();\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()){ //for all the files selected make the hashWords hashmap\n addWordsFromFile(f);\n }\n \n }", "public void bindOutput(MRInput mrInput, String outputName) {\n\t\tbind(mrInput.getId(), outputName);\n\t}", "public TableRep extractBindings(int predId) throws RemoteException, Error;", "@Nullable\n @Override\n public IFile getOutputRoot() {\n return myTempModuleLocation.findChild(\"src_gen\");\n }", "public void setupFiles() {\n File inputDataFile = new File(inputFileName);\n try {\n inputFile = new Scanner(inputDataFile);\n FileWriter outputDataFileOA = new FileWriter(outputFileNameOA);\n FileWriter outputDataFileLL = new FileWriter(outputFileNameLL);\n outputFileOA = new PrintWriter(outputDataFileOA);\n outputFileLL = new PrintWriter(outputDataFileLL);\n outputFileOA.println(\"Output from open addressing hash table:\");\n outputFileOA.println();\n outputFileLL.println(\"Output from linked list hash table:\");\n outputFileLL.println();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "IIndexFragmentBinding[] findBindings(char[][] names, IndexFilter filter, IProgressMonitor monitor) throws CoreException;", "IIndexFragmentBinding[] findBindings(Pattern[] patterns, boolean isFullyQualified, IndexFilter filter, IProgressMonitor monitor) throws CoreException;", "private void buildServiceMapping(EndpointMetaData endpoint)\n {\n QName origQName = endpoint.getServiceMetaData().getServiceName();\n String serviceInterfaceName = endpoint.getServiceEndpointInterface().getPackage().getName() + \".\" + origQName.getLocalPart();\n QName serviceQName = new QName(origQName.getNamespaceURI(), origQName.getLocalPart(), \"serviceNS\");\n\n ServiceInterfaceMapping serviceMapping = new ServiceInterfaceMapping(javaWsdlMapping);\n serviceMapping.setServiceInterface(serviceInterfaceName);\n serviceMapping.setWsdlServiceName(serviceQName);\n\n String endpointName = endpoint.getPortName().getLocalPart();\n PortMapping portMapping = new PortMapping(serviceMapping);\n portMapping.setJavaPortName(endpointName);\n portMapping.setPortName(endpointName);\n serviceMapping.addPortMapping(portMapping);\n\n javaWsdlMapping.addServiceInterfaceMappings(serviceMapping);\n\n String interfaceName = endpoint.getPortTypeName().getLocalPart();\n ServiceEndpointInterfaceMapping seiMapping = new ServiceEndpointInterfaceMapping(javaWsdlMapping);\n seiMapping.setServiceEndpointInterface(endpoint.getServiceEndpointInterfaceName());\n seiMapping.setWsdlPortType(new QName(wsdl.getTargetNamespace(), interfaceName, \"portTypeNS\"));\n seiMapping.setWsdlBinding(new QName(wsdl.getTargetNamespace(), interfaceName + \"Binding\", \"bindingNS\"));\n for (OperationMetaData operation : endpoint.getOperations())\n {\n ServiceEndpointMethodMapping methodMapping = new ServiceEndpointMethodMapping(seiMapping);\n methodMapping.setJavaMethodName(operation.getJavaName());\n methodMapping.setWsdlOperation(operation.getQName().getLocalPart());\n boolean isWrapped = operation.isDocumentWrapped();\n methodMapping.setWrappedElement(isWrapped);\n int i = 0;\n for (ParameterMetaData param : operation.getParameters())\n {\n if (isWrapped && param.isInHeader() == false)\n {\n List<WrappedParameter> wrappedParameters = param.getWrappedParameters();\n for (WrappedParameter wrapped : wrappedParameters)\n {\n String type = JavaUtils.convertJVMNameToSourceName(wrapped.getType(), endpoint.getClassLoader());\n String name = wrapped.getName().getLocalPart();\n\n buildParamMapping(methodMapping, interfaceName, operation, name, type, \"IN\", false, i++);\n }\n }\n else\n {\n String name = param.getXmlName().getLocalPart();\n String type = JavaUtils.convertJVMNameToSourceName(param.getJavaTypeName(), endpoint.getClassLoader());\n buildParamMapping(methodMapping, interfaceName, operation, name, type, param.getMode().toString(), param.isInHeader(), i++);\n }\n }\n\n ParameterMetaData returnParam = operation.getReturnParameter();\n if (returnParam != null && ((! isWrapped) || (! returnParam.getWrappedParameters().isEmpty())))\n {\n String name, type;\n if (isWrapped)\n {\n WrappedParameter wrappedParameter = returnParam.getWrappedParameters().get(0);\n name = wrappedParameter.getName().getLocalPart();\n type = wrappedParameter.getType();\n }\n else\n {\n name = returnParam.getXmlName().getLocalPart();\n type = returnParam.getJavaTypeName();\n }\n\n type = JavaUtils.convertJVMNameToSourceName(type, endpoint.getClassLoader());\n\n buildReturnParamMapping(methodMapping, interfaceName, operation, name, type);\n }\n seiMapping.addServiceEndpointMethodMapping(methodMapping);\n\n for(FaultMetaData fmd : operation.getFaults())\n {\n JavaXmlTypeMapping typeMapping = mappedTypes.get(fmd.getXmlType());\n if (typeMapping == null)\n continue;\n\n String javaTypeName = fmd.getJavaTypeName();\n if (mappedExceptions.contains(javaTypeName))\n continue;\n\n mappedExceptions.add(javaTypeName);\n\n ExceptionMapping mapping = new ExceptionMapping(javaWsdlMapping);\n\n mapping.setExceptionType(javaTypeName);\n QName name = new QName(wsdl.getTargetNamespace(), fmd.getXmlName().getLocalPart());\n mapping.setWsdlMessage(name);\n\n // Variable mappings generated from SchemaTypesCreater have their order preserved\n for (VariableMapping variableMapping : typeMapping.getVariableMappings())\n mapping.addConstructorParameter(variableMapping.getXmlElementName());\n\n javaWsdlMapping.addExceptionMappings(mapping);\n }\n }\n\n javaWsdlMapping.addServiceEndpointInterfaceMappings(seiMapping);\n\n // Add package mapping for SEI\n String name = endpoint.getServiceEndpointInterface().getPackage().getName();\n String namespace = packageNamespaceMap.get(name);\n if (namespace == null)\n namespace = WSDLUtils.getInstance().getTypeNamespace(name);\n addPackageMapping(name, namespace);\n }", "private void addGetChildBindings() {\n\t\tthis.pathBindingClass.addImports(Binding.class, List.class);\n\t\tGMethod children = this.pathBindingClass.getMethod(\"getChildBindings\").returnType(\"List<Binding<?>>\")\n\t\t\t\t.addAnnotation(\"@Override\");\n\t\tchildren.body.line(\"List<Binding<?>> bindings = new java.util.ArrayList<Binding<?>>();\");\n\t\tfor (String foundSubBinding : this.foundSubBindings) {\n\t\t\tchildren.body.line(\"bindings.add(this.{}());\", foundSubBinding);\n\t\t}\n\t\tchildren.body.line(\"return bindings;\");\n\t}", "@Test\n public void testPlugin(@TempDir File outputDirectory) throws Exception {\n final String mappingsDirectoryPath = mappingsDir.getAbsolutePath();\n final String outputDirectoryPath = outputDirectory.getAbsolutePath();\n final var mojo =\n new GenerateCsvWritersFromDslMojo(mappingsDirectoryPath, outputDirectoryPath, project);\n mojo.execute();\n verify(project).addCompileSourceRoot(outputDirectoryPath);\n for (String outputFilePath : OUTPUT_FILE_PATHS) {\n compareFiles(expectedDir, outputDirectory, outputFilePath);\n }\n }", "private void applyBindings(Bindings bindings) {\n\t\tfor (Map.Entry<String, Object> binding : bindings.entrySet()) {\n\t\t\tluaState.pushJavaObject(binding.getValue());\n\t\t\tString variableName = binding.getKey();\n\t\t\tint lastDotIndex = variableName.lastIndexOf('.');\n\t\t\tif (lastDotIndex >= 0) {\n\t\t\t\tvariableName = variableName.substring(lastDotIndex + 1);\n\t\t\t}\n\t\t\tluaState.setGlobal(variableName);\n\t\t}\n\t}", "IIndexFragmentBinding[] findBindings(char[] name, boolean filescope, IndexFilter filter, IProgressMonitor monitor) throws CoreException;", "HashMap<String, ?> getOutputFiles();", "public void extractPackage(String zipPath, String destPath) throws IOException {\n File destDir = new File(destPath);\n if(!destDir.exists()) {\n destDir.mkdir();\n }\n ZipInputStream zipIn = new ZipInputStream(new FileInputStream((zipPath)));\n ZipEntry entry = zipIn.getNextEntry();\n while(entry != null) {\n String filePath = destPath+File.separator+entry.getName();\n //filePath = filePath.replaceAll(\" \",\"_\");\n if(!entry.isDirectory()) {\n Log.i(\"extract\",\"Package Name: \"+entry.getName());\n Log.i(\"extract\",filePath);\n String[] temp = entry.getName().split(\"\\\\.\");\n if(validExtension(temp[temp.length-1].toLowerCase())) {\n extractFile(zipIn,filePath);\n }\n //extractFile(zipIn,filePath);\n } else {\n File dir = new File(filePath);\n dir.mkdirs();\n }\n zipIn.closeEntry();;\n entry = zipIn.getNextEntry();\n }\n zipIn.close();\n }", "public static void main(String[] args) throws IOException {\n\t \n\t copyInputFilesToOutputDirectory();\n\t \n\t System.out.println(\"done\"); \n\t \n\t \n\t \n\t}", "@Override public void outputAllNames(Set<String> files,IvyXmlWriter xw)\n{\n resolve();\n\n Set<String> done = new HashSet<String>();\n\n\n for (RebaseJavaFile jf : file_nodes) {\n // output package element\n if (files != null && !files.contains(jf.getFile().getFileName())) continue;\n\n RebaseFile rf = jf.getFile();\n String pkg = rf.getPackageName();\n if (pkg != null && pkg.length() > 0 && !done.contains(pkg)) {\n\t done.add(pkg);\n\t xw.begin(\"ITEM\");\n\t xw.field(\"HANDLE\",rf.getPackageName() + \"/\" + pkg);\n\t xw.field(\"NAME\",pkg);\n\t File f1 = new File(rf.getFileName());\n\t xw.field(\"PATH\",f1.getParent());\n\t xw.field(\"PROJECT\",rf.getProjectName());\n\t xw.field(\"SOURCE\",\"USERSOURCE\");\n\t xw.field(\"TYPE\",\"Package\");\n\t xw.end(\"ITEM\");\n }\n\n xw.begin(\"FILE\");\n xw.textElement(\"PATH\",jf.getFile().getFileName());\n\n OutputVisitor ov = new OutputVisitor(jf,xw);\n jf.getAstNode().accept(ov);\n\n xw.end(\"FILE\");\n }\n}", "public void testTestInputOutput() {\n String fileName = \"file_with_invalid_uri_in_setting_xml.docx\";\n String file1 = inputDirectory + fileName;\n String expectedResult = expectedDirectory + fileName;\n ZipFile zipFileSource1;\n try {\n zipFileSource1 = new ZipFile(file1);\n File destFile = new File(outputDirectory + fileName);\n if (logger.isDebugEnabled()) {\n logger.debug(\"reading and saving\" + file1);\n }\n Package packSource1 = Package.open(zipFileSource1, PackageAccess.ReadWrite);\n WordDocument docxSource1 = new WordDocument(packSource1);\n assertTrue(docxSource1.save(destFile));\n OpenXmlAssert.assertEquals(new File(outputDirectory + fileName), new File(expectedResult));\n } catch (IOException e) {\n logger.error(e);\n fail(\"cannot open:\" + file1);\n } catch (OpenXML4JException e) {\n logger.error(e);\n fail(\"cannot open:\" + file1);\n }\n }", "private static void indexFromJarFile(InputStream in) throws IOException {\n\n\t\tZipInputStream zis = new ZipInputStream(in);\n\t\tZipEntry e;\n\n\t\twhile((e = zis.getNextEntry()) != null) {\n\n\t\t\tString name = e.getName();\n\t\t\tzis.closeEntry();\n\n\t\t\tif(name.contains(relationRepositoryPath) && name.endsWith(classExtension)) {\n\n\t\t\t\taddToIndex(name.replace(jarFileRelationRepositoryPath, \"\"));\n\t\t\t}\n\t\t}\n\t\tin.close();\n\t}", "public static void main(String[] args) throws Exception {\n String ade_view_root = args[1].trim();\n String filelistpath=args[0].trim();\n String[] files=FamilyModuleHelper.getFileList(filelistpath, ade_view_root);\n HashSet<String> projectDirs = new HashSet<String>(); \n \n vcScanner.debugWriter = new BufferedWriter(new FileWriter(\"listBindings.txt\"));\n vcScanner.writer = new BufferedWriter(new FileWriter(\"VC_scan_UI_Performance.csv\")); \n vcScanner.writer1 = new BufferedWriter(new FileWriter(\"VC_scan_UI_Performance_noVC.csv\"));\n vcScanner.generateExemptionList();\n vcScanner.writer1.write(\"Family,Module,Product,Filename,Label,ViewName,Issue,Jsff,Model,Component\\n\");\n vcScanner.writer.write(\"Family,Module,Product,Filename,Label,ViewName, ViewAttribute,\" +\n \"Column Name, Table Name, IsView, ResolvedTableCol, Indexed Table, NumRows, NumBlocks, Column Type, Index, Column Position, \" +\n \"VC Required, Is VC Case-insensitive?, IsQueriable?, RenderMode, VCR:VCI, \" +\n \"UI File, modelValue, componentName\\n\");\n \n boolean familySet = false;\n for(int i = 0; i < files.length; i++) {\n String filePath = ade_view_root + \"/\" + files[i].trim();\n File f = new File(filePath);\n if(!f.exists())\n continue;\n if(fileOfInterest(filePath)) {\n viewFilesInTransaction.add(files[i].trim());\n if(!familySet){\n vcScanner.sCrawlDir = files[i].trim();\n vcScanner.m_family = ViewCriteriaHelper.getFamily(files[i].trim());\n familySet = true;\n }\n String jprDir = VCPremergeChecker.findProjectDirectory(filePath);\n projectDirs.add(jprDir);\n } \n } \n if(projectDirs.size()==0)\n return;\n \n if(args.length > 2){\n String label = args[2].trim();\n String release = FamilyModuleHelper.getRelease(label);\n if(!ViewCriteriaHelper.isEmpty(release)) {\n try{\n int releaseNo= Integer.parseInt(release);\n \n if(releaseNo >= 11){\n vcScanner.function_indexColumns = SqlIndexFinder.readIndexesFromFile_rel11(\"function\");\n vcScanner.default_indexColumns = SqlIndexFinder.readIndexesFromFile_rel11(\"default\");\n SqlIndexFinder.readColPositionsFromFile_rel11();\n SqlIndexFinder.readTableDataFromFile_rel11();\n SqlIndexFinder.readViewDataFromFile_rel11();\n }else {\n vcScanner.function_indexColumns = SqlIndexFinder.readIndexesFromFile(\"function\");\n vcScanner.default_indexColumns = SqlIndexFinder.readIndexesFromFile(\"default\");\n SqlIndexFinder.readColPositionsFromFile();\n SqlIndexFinder.readTableDataFromFile();\n SqlIndexFinder.readViewDataFromFile();\n }\n if(releaseNo >=8)\n SqlIndexFinder.readTableDataFromFile_customer();\n \n }catch (NumberFormatException e) {\n //do nothing\n }\n }\n }else{\n vcScanner.function_indexColumns = SqlIndexFinder.readIndexesFromFile(\"function\");\n vcScanner.default_indexColumns = SqlIndexFinder.readIndexesFromFile(\"default\");\n SqlIndexFinder.readColPositionsFromFile();\n SqlIndexFinder.readTableDataFromFile();\n SqlIndexFinder.readViewDataFromFile();\n }\n \n \n \n \n vcScanner.parser =new ModifiedComboboxParser(vcScanner.m_family.toLowerCase(), ModifiedComboboxParser.ScanType.ALL);\n \n crawlDirectories(projectDirs); \n vcScanner.processFiles();\n vcScanner.writer.close();\n vcScanner.writer1.close();\n \n BufferedReader reader = new BufferedReader(new FileReader(\"VC_scan_UI_Performance_noVC.csv\"));\n vcScanner.writer1 = new BufferedWriter(new FileWriter(\"VC_scan_UI_Performance_noVC_rows.csv\"));\n vcScanner.writer1.write(\"Family,Module,Product,Filename,Label,ViewName,Issue,\" +\n \"UI File,Model,Component, ListOfTables, MaxRows, Blocks, TableWithMaxRows,WHEREContainsBinds\\n\");\n \n String line = reader.readLine();\n while((line = reader.readLine()) != null){\n \n String[] parts = line.split(\",\");\n String fileName = ade_view_root + \"/\" + parts[3].trim(); \n XMLDocument voXml = null;\n if(parts[3].trim().startsWith(\"oracle\"))\n voXml = vcScanner.voXmlsFromOtherJars.get(parts[3].trim());\n //ViewCriteriaHelper.getMaxRows(fileName,writer1,line,voXml, exemptions,currentVCViolations);\n ViewCriteriaHelper.getMaxRows(fileName,vcScanner.writer1,line,voXml,vcScanner.noVCexemptedTables1, vcScanner.noVCexemptedTables2_maxrows,vcScanner.lovVOToBaseVOMapping,vcScanner.voMaxRowsCalculated);\n }\n \n vcScanner.writer1.close();\n \n BufferedWriter outputFileWriter = new BufferedWriter(new FileWriter(\"vc_perf_scan.txt\"));\n \n reader = new BufferedReader(new FileReader(\"VC_scan_UI_Performance.csv\"));\n line = reader.readLine();\n boolean hasViolation = false;\n while((line = reader.readLine()) != null){\n String[] parts = line.split(\",\");\n if(parts.length < 25) continue; \n \n String fileName = parts[22].trim();\n if(viewFilesInTransaction.contains(fileName)){\n hasViolation = true;\n if(line.contains(\"savedSearch\"))\n outputFileWriter.write(\"Issue: SavedSearchBadViewCriteriaItems\\n\");\n else\n outputFileWriter.write(\"Issue: BadViewCriteriaItems\\n\");\n outputFileWriter.write(\"VO FileName: \" + parts[3] + \"\\n\");\n outputFileWriter.write(\"ViewAttribute: \" + parts[6].trim() + \"\\n\");\n outputFileWriter.write(\"ViewCriteria Name: \" + parts[21] + \"\\n\");\n outputFileWriter.write(\"Table Name: \" + parts[8] + \"\\n\");\n outputFileWriter.write(\"Column Name: \" + parts[7] + \"\\n\");\n outputFileWriter.write(\"Column position in index: \" + parts[16] + \"\\n\");\n outputFileWriter.write(\"UI File: \" + parts[22] + \"\\n\"); \n outputFileWriter.write(\"Model value: \" + parts[23] + \"\\n\"); \n outputFileWriter.write(\"Component: \" + parts[24] + \"\\n\");\n outputFileWriter.write(\"Description:\" + \"Required and Selectively Required ViewCriteria items \" +\n \"used in query panels and LOVs should be backed by proper indexes\\n\\n\");\n }\n }\n \n reader.close();\n \n if(hasViolation)\n outputFileWriter.write(\"\\n\\nPlease see http://myforums.oracle.com/jive3/thread.jspa?threadID=871762&tstart=0 \" +\n \"for description of the issue and resolution.\\n\\n\\n\");\n \n reader = new BufferedReader(new FileReader(\"VC_scan_UI_Performance_noVC_rows.csv\"));\n line = reader.readLine();\n hasViolation = false;\n while((line = reader.readLine()) != null){\n String[] parts = line.split(\",\");\n if(parts.length < 15) continue; \n \n String fileName = parts[7].trim();\n if(viewFilesInTransaction.contains(fileName)){\n hasViolation = true;\n if(line.contains(\"savedSearch\"))\n outputFileWriter.write(\"Issue: SavedSearchNoViewCriteria\\n\");\n else\n outputFileWriter.write(\"Issue: NoViewCriteria\\n\");\n outputFileWriter.write(\"VO FileName: \" + parts[3] + \"\\n\");\n outputFileWriter.write(\"UI File: \" + parts[7] + \"\\n\"); \n outputFileWriter.write(\"Model: \" + parts[8] + \"\\n\");\n outputFileWriter.write(\"Component: \" + parts[9] + \"\\n\");\n outputFileWriter.write(\"Description:\" + parts[6] + \"\\n\\n\");\n }\n }\n \n reader.close(); \n \n if(hasViolation)\n outputFileWriter.write(\"\\n\\nPlease see http://myforums.oracle.com/jive3/thread.jspa?threadID=871763&tstart=0\" +\n \" for description of the issue and resolution.\\n\\n\");\n \n outputFileWriter.close();\n \n }", "private void mapSortedFiles(String file1, String file2) {\n\t\tString file1Copy = tempPath + tempFileName.getTempFileName(sourcePath1, \"Mapper\");\r\n\t\tString file2Copy = tempPath + tempFileName.getTempFileName(sourcePath2, \"Mapper\");\r\n\r\n\t\tcreateFileCopy(new File(file1).toPath(), file1Copy);\r\n\t\tcreateFileCopy(new File(file2).toPath(), file2Copy);\r\n\r\n\t\ttry {\r\n\t\t\tLineIterator file1Iterator = FileUtils.lineIterator(new File(file1));\r\n\r\n\t\t\tLineIterator file2Iterator = FileUtils.lineIterator(new File(file2));\r\n\r\n\t\t\tint leftIndex = 0;\r\n\t\t\tint rightIndex = 0;\r\n\r\n\t\t\twhile (file1Iterator.hasNext()) {\r\n\r\n\t\t\t\tString left = file1Iterator.nextLine();\r\n\t\t\t\tString right = file2Iterator.nextLine();\r\n\r\n\t\t\t\tString leftSortKey = getSortKey(left);\r\n\t\t\t\tString rightSortKey = getSortKey(right);\r\n\t\t\t\t\r\n\t\t\t\tleftIndex++;\r\n\t\t\t\trightIndex++;\r\n\t\t\t\t\r\n\r\n\t\t\t\twhile (leftSortKey.compareTo(rightSortKey) > 0) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//System.out.println(leftSortKey +\", \" + rightSortKey);\r\n\r\n\t\t\t\t\tList<String> lines = Files.readAllLines(Paths.get(file1Copy));\r\n\t\t\t\t\tlines.add(leftIndex-1, getEmptyLine());\r\n\t\t\t\t\tFiles.write(Paths.get(file1Copy), lines);\r\n\r\n\t\t\t\t\trightIndex++;\r\n\t\t\t\t\tright = file2Iterator.nextLine();\r\n\t\t\t\t\trightSortKey = getSortKey(right);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\twhile (leftSortKey.compareTo(rightSortKey) < 0) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//System.out.println(leftSortKey +\", \" + rightSortKey);\r\n\r\n\t\t\t\t\tList<String> lines = Files.readAllLines(Paths.get(file2Copy));\r\n\t\t\t\t\tlines.add(rightIndex-1, getEmptyLine());\r\n\t\t\t\t\tFiles.write(Paths.get(file2Copy), lines);\r\n\r\n\t\t\t\t\tleftIndex++;\r\n\t\t\t\t\tleft = file1Iterator.nextLine();\r\n\t\t\t\t\tleftSortKey = getSortKey(left);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Temp file was not found: \" + e.getMessage());\r\n\t\t}\r\n\r\n\t}", "public void extract(final File file, final File targetDir)\n throws IOException {\n final InputStream in = new java.io.FileInputStream(file);\n try {\n final MODCAParser parser = new MODCAParser(in);\n final ByteArrayOutputStream baout = new ByteArrayOutputStream();\n UnparsedStructuredField strucField;\n while ((strucField = parser.readNextStructuredField()) != null) {\n if (strucField.getSfTypeID() == 0xD3EE89) {\n final byte[] sfData = strucField.getData();\n println(strucField.toString());\n HexDump.dump(sfData, 0, this.printStream, 0);\n baout.write(sfData);\n }\n }\n\n final ByteArrayInputStream bin = new ByteArrayInputStream(\n baout.toByteArray());\n final DataInputStream din = new DataInputStream(bin);\n final long len = din.readInt() & 0xFFFFFFFFL;\n println(\"Length: \" + len);\n din.skip(4); // checksum\n final int tidLen = din.readUnsignedShort() - 2;\n final byte[] tid = new byte[tidLen];\n din.readFully(tid);\n String filename = new String(tid, \"ISO-8859-1\");\n final int asciiCount1 = countUSAsciiCharacters(filename);\n final String filenameEBCDIC = new String(tid, \"Cp1146\");\n final int asciiCount2 = countUSAsciiCharacters(filenameEBCDIC);\n println(\"TID: \" + filename + \" \" + filenameEBCDIC);\n\n if (asciiCount2 > asciiCount1) {\n // Haven't found an indicator if the name is encoded in EBCDIC\n // or not\n // so we use a trick.\n filename = filenameEBCDIC;\n }\n if (!filename.toLowerCase().endsWith(\".pfb\")) {\n filename = filename + \".pfb\";\n }\n println(\"Output filename: \" + filename);\n final File out = new File(targetDir, filename);\n\n final OutputStream fout = new java.io.FileOutputStream(out);\n try {\n IOUtils.copyLarge(din, fout);\n } finally {\n IOUtils.closeQuietly(fout);\n }\n\n } finally {\n IOUtils.closeQuietly(in);\n }\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 }", "private void findAssignmentFiles(ArrayList<File> files, String directory) {\n\n //---------- Step 1: find and uncompress zip files ----------\n if (bAutoUncompress) {\n ArrayList<File> compressedFiles = findFilesByExtension(directory, COMPRESSION_EXTENSIONS);\n for (File cFile : compressedFiles) {\n //uncompress each zip file\n String[] cmd = {\"unzip\", \"-u\", cFile.getAbsolutePath(), \"-d\", stripFileExtension(cFile.getAbsolutePath())};\n String cmdStr = \"unzip -u \\\"\" + cFile.getAbsolutePath() + \"\\\" -d \\\"\" + stripFileExtension(cFile.getAbsolutePath()) + \"\\\"\";\n console(cmdStr);\n\n try {\n Runtime r = Runtime.getRuntime();\n Process p = r.exec(cmd); //execute the unzip command\n //Process p = r.exec(\"unzip -u \\34/Users/jvolcy/work/test/JordanStill_1124140_assignsubmission_file_/P0502b.zip\\34 -d \\34/Users/jvolcy/work/test/JordanStill_1124140_assignsubmission_file_/P0502b\\34\");\n p.waitFor();\n } catch (Exception e) {\n console(\"[findAssignmentFiles()]\", e);\n }\n }\n }\n\n //---------- Step 2: find programming files in the directory ----------\n ArrayList<File> programmingFiles = findFilesByExtension(directory, PYTHON_AND_CPP_EXTENSIONS);\n if (programmingFiles.size() > 0) {\n files.addAll(programmingFiles);\n //if we found any files, we are done\n return;\n }\n\n //---------- Step 3: search for sub-directories ----------\n ArrayList<File> subDirs = getSubDirectories(directory, true);\n for (File sDir : subDirs) {\n //Step 4: recursively call findAssignmentFiles() if we find subdirectories\n findAssignmentFiles(files, sDir.toString());\n }\n\n //---------- Step 5 ----------\n //No assignment files found. This may be the end of the recursion.\n }", "public void run(Map<String, Object> bindingContext) {\n // assign values to parameters and create binding\n Map<String, Object> binding = new HashMap<String, Object>();\n\n for (Map.Entry<String, Activity.Parameter> param : activity.getParameters().entrySet()) {\n String paramName = param.getKey();\n Activity.Parameter paramDef = param.getValue();\n \n // retrieve value and assign to 'Input' parameters\n if ( paramDef.isInputType() ) {\n // parameter values come from a process parameter or a constant\n // if from a process parameter, then look up value from binding context,\n // otherwise use the constant stored in the map\n Object paramValue = null;\n ParameterValue valueDef = parameterValues.get(paramName);\n if ( valueDef==null ) {\n // TODO: check this case\n paramValue = paramDef.getDefaultValue();\n }\n else if ( valueDef.mapping!=null ) {\n // beware this could be null...\n paramValue = bindingContext.get(valueDef.mapping);\n }\n else if ( valueDef.constantValue!=null ) {\n paramValue = valueDef.constantValue;\n }\n else {\n // this is a problem if the parameter value contains neither mapping nor constant!\n }\n binding.put(paramName, paramValue);\n }\n // assign default values to 'Output' or 'None' parameters\n else if ( paramDef.isOutputType() || paramDef.isNoneType() ) {\n binding.put(paramName, paramDef.getDefaultValue());\n }\n }\n \n // run activity\n activity.run(binding);\n\n // assign back any output parameters\n for (Map.Entry<String, Activity.Parameter> param : activity.getParameters().entrySet()) {\n String paramName = param.getKey();\n Activity.Parameter paramDef = param.getValue();\n\n if ( paramDef.isOutputType() ) {\n // write updated values from the binding to original locations in bindingContext\n ParameterValue valueDef = parameterValues.get(paramName);\n if ( valueDef.mapping!=null ) {\n bindingContext.put(valueDef.mapping, binding.get(paramName));\n } \n }\n }\n }", "public static void unpackFiles() throws IOException {\n if(!new File(\"src/main/resources/tmp\").exists() || (Objects.requireNonNull(new File(\"src/main/resources/tmp\").list()).length != IO.sourceFiles.size())) {\n IO.unzipFiles();\n } else if(Objects.requireNonNull(new File(\"src/main/resources/tmp/ham_Calibration\").list()).length != new ZipFile(IO.sourceFiles.get(EmailTypes.HAM_CAL)).size()) {\n IO.unzipFiles(EmailTypes.HAM_CAL);\n } else if(Objects.requireNonNull(new File(\"src/main/resources/tmp/ham_Test\").list()).length != new ZipFile(IO.sourceFiles.get(EmailTypes.HAM_TEST)).size()) {\n IO.unzipFiles(EmailTypes.HAM_TEST);\n } else if(Objects.requireNonNull(new File(\"src/main/resources/tmp/ham_Train\").list()).length != new ZipFile(IO.sourceFiles.get(EmailTypes.HAM_TRAIN)).size()) {\n IO.unzipFiles(EmailTypes.HAM_TRAIN);\n } else if(Objects.requireNonNull(new File(\"src/main/resources/tmp/spam_Calibration\").list()).length != new ZipFile(IO.sourceFiles.get(EmailTypes.SPAM_CAL)).size()) {\n IO.unzipFiles(EmailTypes.SPAM_CAL);\n } else if(Objects.requireNonNull(new File(\"src/main/resources/tmp/spam_Test\").list()).length != new ZipFile(IO.sourceFiles.get(EmailTypes.SPAM_TEST)).size()) {\n IO.unzipFiles(EmailTypes.SPAM_TEST);\n } else if(Objects.requireNonNull(new File(\"src/main/resources/tmp/spam_Train\").list()).length != new ZipFile(IO.sourceFiles.get(EmailTypes.SPAM_TRAIN)).size()) {\n IO.unzipFiles(EmailTypes.SPAM_TRAIN);\n } else {\n System.out.println(\"Files already unpacked - skipping\\n\");\n }\n calculateSizes();\n }", "public void build() {\n boolean debugGates = this.debugDepth > 0 ? this.inDebuggerMode : false;\n if (this.outputs.size() != 1 << this.input.getSize()) {\n throw new BitStreamInputSizeMismatch(this);\n }\n\n List<BitStream> splitterInput = new ArrayList<>();\n splitterInput.add(this.input);\n\n List<BitStream> splitterOutput = new ArrayList<>();\n for (int i = 0; i < this.input.getSize(); i++) {\n splitterOutput.add(new BitStream(1));\n }\n\n Splitter inputSplitter = new Splitter(splitterInput, splitterOutput, \"inputSplitter\", debugGates);\n\n for (int i = 0; i < this.outputs.size(); i++) {\n List<BitStream> andInputs = new ArrayList<>();\n for (BitStream splitterOut : splitterOutput) {\n andInputs.add(splitterOut);\n }\n\n String indexInBinary = DataConverter.convertUnsignedDecToBin(i);\n indexInBinary = this.padZeros(indexInBinary, this.input.getSize());\n\n for (int j = indexInBinary.length() - 1; j >= 0; j--) {\n if (indexInBinary.charAt(j) == '0') {\n BitStream notOut = new BitStream(1);\n NOT not = new NOT(andInputs.get(j), notOut,\n \"not\" + i + (indexInBinary.length() - 1 - j), debugGates);\n andInputs.set(j, notOut);\n }\n }\n\n MultiAND and = new MultiAND(andInputs, this.outputs.get(i), \"and\" + i, debugGates);\n }\n }", "public void convertToZip(String input, String output) throws ZipException {\n\t\tZipFile zip = new ZipFile(output); \n\t ZipParameters parameters = new ZipParameters();\n parameters.setCompressionMethod(Zip4jConstants.COMP_DEFLATE);\n parameters.setCompressionLevel(Zip4jConstants.DEFLATE_LEVEL_NORMAL); \n\t zip.addFolder(input, parameters);\n\t}", "protected abstract SortedMap<String, SampleDescriptor> computeSamples(File sampleDir) throws IOException;", "IIndexFragmentBinding[] findBindingsForPrefix(char[] prefix, boolean filescope, IndexFilter filter, IProgressMonitor monitor) throws CoreException;", "private void registerBindings(){\t\t\n\t}", "private void registerBindings(){\t\t\n\t}", "static void distribute(String workingDir) throws FileNotFoundException, IOException {\n String inputPath = workingDir + \"/analyzed\";\n String outputPath = workingDir + \"/distribute\";\n\n System.out.format(\"Process %s to %s\\n\", inputPath, outputPath);\n\n DistributerStrategy[] strategies = new DistributerStrategy[] {\n // For the chunk files, split by a hash.\n new ChunkHashDistributerStrategy(inputPath, outputPath, \"day-filtered-domain.csv-chunks\", 3),\n new ChunkHashDistributerStrategy(inputPath, outputPath, \"month-filtered-fulldomain.csv-chunks\", 4),\n\n // And copy the same files anyway, someone might want them.\n new CopyDistributerStrategy(inputPath, outputPath, \"day-filtered-domain.csv-chunks\"),\n new CopyDistributerStrategy(inputPath, outputPath, \"month-filtered-fulldomain.csv-chunks\"),\n\n new ChunkHashDistributerStrategy(inputPath, outputPath, \"filtered-grouped-fulldomain.csv-chunks\", 3),\n new ChunkHashDistributerStrategy(inputPath, outputPath, \"fulldomain-domain.csv-chunks\", 3),\n new ChunkHashDistributerStrategy(inputPath, outputPath, \"month-doi.csv-chunks\", 5),\n \n // CSV files are ready to use, just copy over.\n // We don't distribute 'all' domain files like `day-top-100-all-domains.csv`, only the filtered ones.\n new CopyDistributerStrategy(inputPath, outputPath, \"month-code.csv\"),\n new CopyDistributerStrategy(inputPath, outputPath, \"day-code.csv\"),\n new CopyDistributerStrategy(inputPath, outputPath, \"day-top-10-filtered-domains.csv\"),\n new CopyDistributerStrategy(inputPath, outputPath, \"month-top-10-filtered-domains.csv\"),\n new CopyDistributerStrategy(inputPath, outputPath, \"month-top-100-filtered-domains.csv\")\n };\n\n try {\n for (DistributerStrategy strategy: strategies) {\n System.out.format(\"Distribute with strategy: %s \\n\", strategy.toString());\n strategy.run();\n System.out.format(\"Finished analyze with strategy: %s \\n\", strategy.toString());\n }\n } catch (Exception e) {\n System.err.println(\"Error:\");\n e.printStackTrace();\n }\n }", "private static void digestPythonSummaries(String inputDir,\n Collection<String> summarizers,\n String docParsedFile,\n String outputDir) {\n for (String summarizer : summarizers) {\n final Map<Integer, Map<String, List<String>>> kToDocSummaries = importSummaries(inputDir,\n summarizer);\n final Map<Integer, Map<String, List<SetResult>>> kToDocSentences = inferSummaries(\n docParsedFile, kToDocSummaries);\n exportSummaries(kToDocSentences, outputDir, summarizer);\n }\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static void createMigrationInputFiles()\n\t{\n\t\t@SuppressWarnings({ \"rawtypes\" })\n\t\tMultiValueMap structureMap = new MultiValueMap(); // MultiValueMap for adding child item rows for every parentId\n\n\t\ttry\n\t\t{\n\t\t\tWorkbook workbook = new XSSFWorkbook(EXCEL_FILE);\n\t\t\tSheet datatypeSheet = workbook.getSheetAt(0);\n\n\t\t\tint linkDocCount = 0, linkDwgCount = 0, linkPurchSpecCount = 0, linkMadeFromCount = 0, engParts = 0, altPartsCount = 0;\n\n\t\t\tList<String> serviceItemsList = new ArrayList<String>();\n\t\t\tList<String> engItemsList = new ArrayList<String>();\n\n\t\t\t// Skipping top two rows\n\t\t\tIterator<Row> rowIterator = datatypeSheet.iterator();\n\t\t\tif (rowIterator.hasNext())\n\t\t\t\trowIterator.next();\n\t\t\tif (rowIterator.hasNext())\n\t\t\t\trowIterator.next();\n\n\t\t\t// Reading the rows one by one\n\t\t\twhile (rowIterator.hasNext())\n\t\t\t{\n\t\t\t\tcurrentRow = rowIterator.next();\n\t\t\t\tString tierType = BLANK;\n\t\t\t\tif (v(TIER_TYPE) != null && v(TIER_TYPE).trim().length() != 0\n\t\t\t\t\t\t&& !v(TIER_TYPE).trim().isEmpty())\n\t\t\t\t{\n\t\t\t\t\ttierType = v(TIER_TYPE).replace(SEMICOLON_SPACE, COMMA);\n\t\t\t\t\ttierType = tierType.replace(SPACE_SEMICOLON, COMMA);\n\t\t\t\t\ttierType = tierType.replace(SEMICOLON, COMMA);\n\t\t\t\t}\n\n\t\t\t\tString engineFamily = BLANK;\n\t\t\t\tif (v(ENGINE_FAMILY) != null && v(ENGINE_FAMILY).trim().length() != 0\n\t\t\t\t\t\t&& !v(ENGINE_FAMILY).trim().isEmpty())\n\t\t\t\t{\n\t\t\t\t\tengineFamily = v(ENGINE_FAMILY).replace(SEMICOLON_SPACE, COMMA);\n\t\t\t\t\tengineFamily = engineFamily.replace(SPACE_SEMICOLON, COMMA);\n\t\t\t\t\tengineFamily = engineFamily.replace(SEMICOLON, COMMA);\n\t\t\t\t\t/*\n\t\t\t\t\tengineFamily = v(ENGINE_FAMILY).replace(SPACE, BLANK);\n\t\t\t\t\tengineFamily = engineFamily.replace(SEMICOLON, COMMA);*/\n\t\t\t\t}\n\n\t\t\t\tString componentId = BLANK;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (v(SERVICE_CMP_ID) != null && v(SERVICE_CMP_ID).trim().length() != 0\n\t\t\t\t\t\t\t&& !v(SERVICE_CMP_ID).trim().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\t/*System.out.println(currentRow.getCell(SERVICE_CMP_ID)\n\t\t\t\t\t\t\t\t.getRichStringCellValue()); */\n\t\t\t\t\t\tcomponentId = (currentRow.getCell(SERVICE_CMP_ID).getRichStringCellValue())\n\t\t\t\t\t\t\t\t.toString();\n\t\t\t\t\t\tcomponentId = componentId.replace(SEMICOLON_SPACE, COMMA);\n\t\t\t\t\t\tcomponentId = componentId.replace(SPACE_SEMICOLON, COMMA);\n\t\t\t\t\t\tcomponentId = componentId.replace(SEMICOLON, COMMA);\n\t\t\t\t\t\t//System.out.println(componentId);\n\t\t\t\t\t}\n\t\t\t\t} catch (IllegalStateException e)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\\nError : Item \" + v(ITEM_ID)\n\t\t\t\t\t\t\t+ \" has invalid Component ID formula.\");\n\t\t\t\t\tLOG_WRITER.write(\"\\nError : Item \" + v(ITEM_ID)\n\t\t\t\t\t\t\t+ \" has invalid Component ID formula.\");\n\t\t\t\t}\n\n\t\t\t\tString catalogNum = BLANK;\n\t\t\t\tif (v(CATALOG_ITEM) != null && v(CATALOG_ITEM).trim().length() != 0\n\t\t\t\t\t\t&& !v(CATALOG_ITEM).trim().isEmpty())\n\t\t\t\t{\n\t\t\t\t\tcatalogNum = v(CATALOG_ITEM).replace(SPACE, BLANK);\n\t\t\t\t\tcatalogNum = catalogNum.replace(SEMICOLON, COMMA);\n\t\t\t\t}\n\t\t\t\t//convertRowToPipeDelimited(currentRow);\n\t\t\t\t//if it is for Service Part\n\t\t\t\tif (v(LINE_TYPE).equals(NEW_SERVICE_PART))\n\t\t\t\t{\n\t\t\t\t\t/* Check for the revision field */\n\t\t\t\t\tString revision_id = DEFAULT_REVISION_ID;\n\t\t\t\t\tif (v(REVISION) != null && v(REVISION).trim().length() != 0\n\t\t\t\t\t\t\t&& !v(REVISION).trim().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\trevision_id = v(REVISION).replace(SPACE, BLANK);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Service Part Writer */\n\n\t\t\t\t\tif (!serviceItemsList.contains(v(ITEM_ID)))\n\t\t\t\t\t{\n\t\t\t\t\t\tSERVICE_PART_WRITER\n\t\t\t\t\t\t\t\t.write(v(ITEM_ID)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(ITEM_NAME)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ revision_id\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ TYPE_REAL_NAME\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ ((v(UOM) == null || v(UOM).trim().length() == 0\n\t\t\t\t\t\t\t\t\t\t\t\t|| v(UOM).trim().isEmpty() || v(UOM)\n\t\t\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(EACH)) ? BLANK : v(UOM).trim())\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(IP_CLASS)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(OBJ_WEIGHT)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(OBJ_WEIGHT_UOM)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(ENG_PRODUCT_LINE)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ ((v(DATA_MODEL).contains(MODEL_BASED)) ? MB\n\t\t\t\t\t\t\t\t\t\t\t\t: ((v(DATA_MODEL).contains(MODEL_CENTRIC)) ? MC\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: BLANK)\n\n\t\t\t\t\t\t\t\t\t\t)\n\n\t\t\t\t\t\t\t\t\t\t+ DEL + v(ECCN) + DEL + v(ECCN_SOURCE) + DEL + v(OBJ_EVI)\n\t\t\t\t\t\t\t\t\t\t+ DEL + v(CTQ) + DEL + v(CCC) + DEL + v(ECC) + DEL + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(HOMOLOGATION) + DEL + v(CRITICAL_PART) + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(ENG_MAKE_BUY) + NEW_LINE);\n\n\t\t\t\t\t\t/* Service Form Update Writer */\n\t\t\t\t\t\tSERVICE_FORM_WRITER\n\t\t\t\t\t\t\t\t.write(v(ITEM_NAME) + DEL + v(ITEM_ID) + DEL + componentId + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(SERVICEABLE) + DEL + v(REPAIRABLE) + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(SERIALIZED) + DEL + v(POS_TRACKED) + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(SERVICE_ITEM_TYPE) + DEL + tierType + DEL\n\t\t\t\t\t\t\t\t\t\t+ engineFamily + DEL + catalogNum + NEW_LINE);\n\n\t\t\t\t\t\t/* Service Parts' Owning Group update */\n\t\t\t\t\t\tSP_GROUP_ID_WRITER.write(v(ITEM_ID) + NEW_LINE);\n\n\t\t\t\t\t\t/* Relate Service Parts to Document */\n\t\t\t\t\t\tif (v(LINK_DOC) != null && v(LINK_DOC).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_DOC).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSP_ATTACHMENT_WRITER.write(v(ITEM_ID) + DEL + revision_id + DEL\n\t\t\t\t\t\t\t\t\t+ v(LINK_DOC) + DEL + SP_DOC_RELATION_NAME + NEW_LINE);\n\t\t\t\t\t\t\tlinkDocCount++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Relate Service Parts to Drawing */\n\t\t\t\t\t\tif (v(LINK_DWG) != null && v(LINK_DWG).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_DWG).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSP_ATTACHMENT_WRITER.write(v(ITEM_ID) + DEL + revision_id + DEL\n\t\t\t\t\t\t\t\t\t+ v(LINK_DWG) + DEL + SP_DWG_RELATION_NAME + NEW_LINE);\n\t\t\t\t\t\t\tlinkDwgCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/* Relate Service Parts to Purchase Specifications */\n\t\t\t\t\t\tif (v(LINK_PURCHSPEC) != null && v(LINK_PURCHSPEC).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_PURCHSPEC).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSP_ATTACHMENT_WRITER.write(v(ITEM_ID) + DEL + revision_id + DEL\n\t\t\t\t\t\t\t\t\t+ v(LINK_PURCHSPEC) + DEL + SP_PURCHSPEC_RELATION_NAME\n\t\t\t\t\t\t\t\t\t+ NEW_LINE);\n\t\t\t\t\t\t\tlinkPurchSpecCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/* Relate Service Parts to MadeFrom */\n\t\t\t\t\t\tif (v(LINK_MADEFROM) != null && v(LINK_MADEFROM).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_MADEFROM).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tMADE_FROM_RELATION_WRITER.write(v(ITEM_ID) + DEL + v(LINK_MADEFROM)\n\t\t\t\t\t\t\t\t\t+ DEL + SP_MADEFROM_RELATION_NAME + NEW_LINE);\n\t\t\t\t\t\t\tlinkMadeFromCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tserviceItemsList.add(v(ITEM_ID));\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG_WRITER.write(DUPLICATE_ENTRY + v(ITEM_ID));\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\telse if (v(LINE_TYPE).equals(EXISTING_ENG_PART))\n\t\t\t\t{\n\t\t\t\t\t/* EngParts' Service Form Creation - ITEM_ID will be used as the Service Form's NAME */\n\t\t\t\t\tif (!engItemsList.contains(v(ITEM_ID)))\n\t\t\t\t\t{\n\t\t\t\t\t\tEP_SERVICE_FORM_WRITER.write(v(ITEM_NAME) + DEL + componentId + DEL\n\t\t\t\t\t\t\t\t+ v(SERVICEABLE) + DEL + v(REPAIRABLE) + DEL + v(SERIALIZED) + DEL\n\t\t\t\t\t\t\t\t+ v(POS_TRACKED) + DEL + v(SERVICE_ITEM_TYPE) + DEL + tierType\n\t\t\t\t\t\t\t\t+ DEL + engineFamily + DEL + catalogNum + DEL + v(ITEM_ID)\n\t\t\t\t\t\t\t\t+ NEW_LINE);\n\t\t\t\t\t\tengParts++;\n\t\t\t\t\t\tengItemsList.add(v(ITEM_ID));\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG_WRITER.write(DUPLICATE_ENTRY + v(ITEM_ID));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/*\tAdd child item rows for each assembly */\n\t\t\t\tif (v(PARENT_ID) != null && v(PARENT_ID).trim().length() != 0\n\t\t\t\t\t\t&& !v(PARENT_ID).isEmpty())\n\t\t\t\t{\n\t\t\t\t\tstructureMap.put(v(PARENT_ID), currentRow.getRowNum());\n\t\t\t\t\t/*\tSTRUCTURE_WRITER.write(v(PARENT_ID) + DEL + v(ITEM_ID) + DEL + v(QTY) + DEL\n\t\t\t\t\t\t\t\t+ v(SEQ) + NEW_LINE); - can not write it here, as the same parent might come again later. IPS_DATA_UPLOAD fails if the parent has existing BVR with -bom mode. */\n\t\t\t\t}\n\n\t\t\t\t/* Global Alternate */\n\t\t\t\tString globalAltStr = v(GLOBAL_ALT);\n\t\t\t\tif (globalAltStr != null && !globalAltStr.trim().isEmpty()\n\t\t\t\t\t\t&& globalAltStr.trim().length() != 0)\n\t\t\t\t{\n\t\t\t\t\tglobalAltStr = globalAltStr.replace(SPACE, BLANK);\n\t\t\t\t\tString globalAltArray[] = globalAltStr.split(SEMICOLON);\n\t\t\t\t\tfor (int i = 0; i < globalAltArray.length; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSP_GLOBAL_ALT_WRITER.write(v(ITEM_ID) + DEL + globalAltArray[i].trim()\n\t\t\t\t\t\t\t\t+ NEW_LINE);\n\t\t\t\t\t\taltPartsCount++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tLOG_WRITER.write(TOTAL_SERVICE_PARTS + serviceItemsList.size() + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_DOCUMENTS_TO_ATTACH + linkDocCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_DRAWINGS_TO_ATTACH + linkDwgCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_PURCHSPEC_TO_ATTACH + linkPurchSpecCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_MADEFROM_TO_ATTACH + linkMadeFromCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_ALTERNATE_PARTS_TO_ADD + altPartsCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_ENG_PARTS_FOR_SERVICE_FORM_CREATON + engParts + NEW_LINE);\n\t\t\tLOG_WRITER.write(LINE_SEPERATOR);\n\n\t\t\t/* Write Structures */\n\t\t\tLOG_WRITER.write(STRUCTURE_START_TIME + new java.util.Date() + NEW_LINE);\n\t\t\tSet<String> parentIDs = structureMap.keySet();\n\t\t\tIterator parentIDsIterator = parentIDs.iterator();\n\t\t\tLOG_WRITER.write(TOTAL_STRUCTURES + parentIDs.size() + NEW_LINE);\n\t\t\t/*PS_STRUCTURE_WRITER.write(NEW_LINE + HASH_SIGN + TOTAL_STRUCTURES + parentIDs.size()\n\t\t\t\t\t+ NEW_LINE);*/\n\t\t\twhile (parentIDsIterator.hasNext())\n\t\t\t{\n\t\t\t\tObject parentID = parentIDsIterator.next();\n\n\t\t\t\t/*PS_STRUCTURE_WRITER.write(NEW_LINE + parentID + DEL + DEFAULT_REVISION_ID + DEL\n\t\t\t\t\t\t+ TYPE_REAL_NAME + DEL + ZERO + NEW_LINE);*/\n\n\t\t\t\tCollection childRows = (Collection) structureMap.get(parentID);\n\t\t\t\tIterator childRowsIterator = childRows.iterator();\n\t\t\t\twhile (childRowsIterator.hasNext())\n\t\t\t\t{\n\t\t\t\t\tRow cRow = datatypeSheet.getRow((int) childRowsIterator.next());\n\t\t\t\t\t/*PS_STRUCTURE_WRITER.write(rv(cRow, ITEM_ID) + DEL + DEFAULT_REVISION_ID + DEL\n\t\t\t\t\t\t\t+ TYPE_REAL_NAME + DEL + ONE + DEL + rv(cRow, SEQ) + DEL\n\t\t\t\t\t\t\t+ rv(cRow, QTY) + NEW_LINE);*/\n\t\t\t\t\tSTRUCTURE_WRITER.write(parentID + DEL + rv(cRow, ITEM_ID) + DEL + rv(cRow, QTY)\n\t\t\t\t\t\t\t+ DEL + rv(cRow, SEQ) + NEW_LINE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tLOG_WRITER.write(STRUCTURE_END_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\tworkbook.close();\n\t\t} catch (FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(EXCEPTION + e.getMessage());\n\t\t} catch (IOException e)\n\t\t{\n\t\t\tSystem.out.println(EXCEPTION + e.getMessage());\n\t\t} finally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (SERVICE_PART_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSERVICE_PART_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SERVICE_FORM_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSERVICE_FORM_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (EP_SERVICE_FORM_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tEP_SERVICE_FORM_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SP_GLOBAL_ALT_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSP_GLOBAL_ALT_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SP_GROUP_ID_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSP_GROUP_ID_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SP_ATTACHMENT_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSP_ATTACHMENT_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (MADE_FROM_RELATION_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tMADE_FROM_RELATION_WRITER.close();\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\tif (PS_STRUCTURE_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tPS_STRUCTURE_WRITER.close();\n\t\t\t\t}*/\n\t\t\t\tif (STRUCTURE_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSTRUCTURE_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (LOG_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tLOG_WRITER.write(END_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\t\t\tSystem.out.println(END_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\t\t\tLOG_WRITER.close();\n\t\t\t\t}\n\n\t\t\t} catch (IOException ex)\n\t\t\t{\n\t\t\t\tSystem.out.println(EXCEPTION + ex.getMessage());\n\t\t\t}\n\t\t}\n\t}", "@InputFiles\n @Incremental\n @PathSensitive(PathSensitivity.RELATIVE)\n public abstract ConfigurableFileCollection getFeatureDexFolder();", "@Test\n public void downloadOutputsWithRegex_treeOutput_regexMatchesTreeFile() throws Exception {\n if (OS.getCurrent() == OS.WINDOWS) {\n return;\n }\n writeOutputDirRule();\n write(\n \"BUILD\",\n \"load(':output_dir.bzl', 'output_dir')\",\n \"output_dir(\",\n \" name = 'foo',\",\n \" content_map = {'file-1': '1', 'file-2': '2', 'file-3': '3'},\",\n \")\");\n addOptions(\"--experimental_remote_download_regex=.*foo/file-2$\");\n\n buildTarget(\"//:foo\");\n waitDownloads();\n\n assertValidOutputFile(\"foo/file-2\", \"2\");\n assertOutputDoesNotExist(\"foo/file-1\");\n assertOutputDoesNotExist(\"foo/file-3\");\n }", "private ValueMap<Input, OWLValue> buildInputValueMap(Process process, String datasetURL, HashMap<String, String> bindings, OWLKnowledgeBase kb) {\n\t\tValueMap<Input, OWLValue> inputs = new ValueMap<Input, OWLValue>();\n\n\t\tString value;\n\t\tString uri;\n\t\tboolean error = false;\n\t\tfor (Input input : process.getInputs()) {\n\t\t\turi = input.getURI().toASCIIString();\n\n\t\t\tSystem.out.println(\"getting value for parameter: \" + uri);\n\n\t\t\tif (uri.contains(\"url\") || uri.contains(\"URL\")\n\t\t\t\t\t|| uri.contains(\"fileLoc\"))\n\t\t\t\tinputs.setValue(input, kb.createDataValue(datasetURL));\n\n\t\t\telse {\n\t\t\t\tvalue = bindings.get(input.getURI().toASCIIString());\n\n\t\t\t\tif (value != null)\n\t\t\t\t\tinputs.setValue(input, kb.createDataValue(value));\n\t\t\t\telse\n\t\t\t\t\terror = true;\n\t\t\t}\n\t\t}\n\n\t\tif (error)\n\t\t\treturn null;\n\t\telse\n\t\t\treturn inputs;\n\t}", "public interface ExtractorStrategy {\n\n /**\n * Extracts all the entries of an compressed archive and returns a map with the name of the entry as key and\n * the proper data content of the entry as value.\n */\n Map<String, InputStream> extract(TypedValue<InputStream> archive) throws DecompressionException;\n}", "public IConfiguration configToConvert() {\n\t\tString inputFiles = jTextFieldInputFiles.getText();\n\t\tString outputFile = jTextFieldOutputFile.getText();\n\t\tif (inputFiles.length() > 0)\n\t\t\tmodifications.insertPoolSource(inputFiles);\n\t\tif (outputFile.length() > 0)\n\t\t\tmodifications.insertPoolOutputModule(outputFile);\n\t\tif (asFragment()) {\n\t\t\tmodifications.filterAllEDSources(true);\n\t\t\tmodifications.filterAllOutputModules(true);\n\t\t}\n\t\tmodifier.modify(modifications);\n\t\treturn modifier;\n\t}", "@Override\n public void bindView() {\n this.addSearchBtnClickHandler();\n this.addAdvanceSearchBtnClickHandler();\n this.addSearchContentBoxClickHandler();\n }", "public static void processFile(String inputpath, String outputpath)\r\n\t{\r\n\t\ttry {\r\n\t\t\t//create both files\r\n\t\t\tFile input = new File(inputpath);\r\n\t\t\tFile output = new File(outputpath);\r\n\t\t\t//read over the input file and put the results in the output file\r\n\t\t\tFileWriter fw = new FileWriter(output); \r\n\t\t\tScanner scan = new Scanner(input);\r\n\t\t\twhile(scan.hasNextLine()) {\r\n\t\t\t\tString word = scan.nextLine();\r\n\t\t\t\t//this looks for the word in the data structure.\r\n\t\t\t\t//If it exists, it writes it in the output file\r\n\t\t\t\tif(data.search(word)) {\r\n\t\t\t\t\tfw.write(word);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//If not, it gets the suggestions\r\n\t\t\t\t\tList<String> suggestions = data.suggest(word);\r\n\t\t\t\t\tif(suggestions.size() == 0) {\r\n\t\t\t\t\t\tfw.write(\"There are no suggestions for \"+ word + \".\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString sugg = \"\";\r\n\t\t\t\t\t\tfor(String s : suggestions) {\r\n\t\t\t\t\t\t\tsugg += s +\" \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfw.write(sugg);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfw.write(\"\\r\\n\"); //this adds a new line\r\n\t\t\t}\r\n\t\t\tfw.close(); \r\n\t\t\tscan.close(); \r\n\t\t} catch (Exception e) {\r\n\t\t\t//If any exception, an error is printed \r\n\t\t\tSystem.out.println(\"Error reading or writing the files\");\r\n\t\t}\r\n\t\t\r\n\t}", "protected CloseableIteration<BindingSet, QueryEvaluationException> handleStatementSourcePatternCheck(\n\t\t\tBindingSet bindings) throws RepositoryException, MalformedQueryException, QueryEvaluationException {\n\t\tfor (StatementSource source : statementSources) {\n\t\t\tEndpoint ownedEndpoint = queryInfo.getFederationContext()\n\t\t\t\t\t.getEndpointManager()\n\t\t\t\t\t.getEndpoint(source.getEndpointID());\n\t\t\tTripleSource t = ownedEndpoint.getTripleSource();\n\t\t\tif (t.hasStatements(this, bindings, queryInfo, queryInfo.getDataset())) {\n\t\t\t\treturn new SingleBindingSetIteration(bindings);\n\t\t\t}\n\t\t}\n\n\t\treturn new EmptyIteration<>();\n\t}", "private void startup() {\n LOGGER.info(\"Warming up extraction pipeline....\");\n\n for (Extractor extractor : this.context.extractors()) {\n try {\n extractor.init(this.context.persistencyWriter(), this.context.batchSize());\n this.extractors.add(extractor);\n } catch (Throwable t) {\n LOGGER.warn(\"Failed to initialize extractor {} due to an exception: {}\", extractor.getClass().getSimpleName(), t.getMessage());\n }\n }\n\n for (Extractor exporter : this.context.exporters()) {\n try {\n exporter.init(this.context.persistencyWriter(), this.context.batchSize());\n this.extractors.add(exporter);\n } catch (Throwable t) {\n LOGGER.warn(\"Failed to exporter extractor {} due to an exception: {}\", exporter.getClass().getSimpleName(), t.getMessage());\n }\n }\n \n LOGGER.info(\"Extraction pipeline is ready with {} extractors.\", this.extractors.size());\n }", "private void processExtractData_N() {\n\n this.normalCollection = new VertexCollection();\n\n Map<Integer, float[]> definedNormals = new HashMap<>();\n\n int n = 0;int count = 1;\n while(n < extract.getNormals().size()){\n\n float thisNormValues[] = {extract.getNormals().get(n),\n extract.getNormals().get(n+1),\n extract.getNormals().get(n+2)};\n\n definedNormals.put(count, thisNormValues);\n\n n = n+3;\n count++;\n }\n\n for(Integer nId : extract.getDrawNormalOrder()){\n float[] pushThese = definedNormals.get(nId);\n this.normalCollection.push(pushThese[0], pushThese[1], pushThese[2]);\n }\n }", "@Test\n @DependsOnMethod(\"testConversionUnmarshalling\")\n public void testTransformationUnmarshalling() throws JAXBException {\n final DefaultTransformation c = unmarshalFile(DefaultTransformation.class, openTestFile(true));\n assertEquals(\"name\", \"NTF (Paris) to NTF (1)\", c.getName().getCode());\n assertEquals(\"identifier\", \"1763\", getSingleton(c.getIdentifiers()).getCode());\n assertEquals(\"scope\", \"Change of prime meridian.\", String.valueOf(c.getScope()));\n assertEquals(\"operationVersion\", \"IGN-Fra\", c.getOperationVersion());\n\n final OperationMethod method = c.getMethod();\n assertNotNull(\"method\", method);\n assertEquals (\"method.name\", \"Longitude rotation\", method.getName().getCode());\n assertEquals (\"method.identifier\", \"9601\", getSingleton(method.getIdentifiers()).getCode());\n assertEquals (\"method.formula\", \"Target_longitude = Source_longitude + longitude_offset.\", method.getFormula().getFormula().toString());\n\n final ParameterDescriptor<?> descriptor = (ParameterDescriptor<?>) getSingleton(method.getParameters().descriptors());\n assertEquals(\"descriptor.name\", \"Longitude offset\", descriptor.getName().getCode());\n assertEquals(\"descriptor.identifier\", \"8602\", getSingleton(descriptor.getIdentifiers()).getCode());\n assertEquals(\"descriptor.valueClass\", Double.class, descriptor.getValueClass());\n\n final ParameterValueGroup parameters = c.getParameterValues();\n assertNotNull(\"parameters\", parameters);\n assertSame(\"parameters.descriptors\", method.getParameters(), parameters.getDescriptor());\n\n final ParameterValue<?> parameter = (ParameterValue<?>) getSingleton(parameters.values());\n assertSame (\"parameters.descriptor\", descriptor, parameter.getDescriptor());\n assertEquals(\"parameters.unit\", Units.GRAD, parameter.getUnit());\n assertEquals(\"parameters.value\", 2.5969213, parameter.getValue());\n\n final CoordinateReferenceSystem sourceCRS = c.getSourceCRS();\n assertInstanceOf(\"sourceCRS\", GeodeticCRS.class, sourceCRS);\n assertEquals (\"sourceCRS.name\", \"NTF (Paris)\", sourceCRS.getName().getCode());\n assertEquals (\"sourceCRS.scope\", \"Geodetic survey.\", sourceCRS.getScope().toString());\n assertEquals (\"sourceCRS.identifier\", \"4807\", getSingleton(sourceCRS.getIdentifiers()).getCode());\n\n final CoordinateReferenceSystem targetCRS = c.getTargetCRS();\n assertInstanceOf(\"targetCRS\", GeodeticCRS.class, targetCRS);\n assertEquals (\"targetCRS.name\", \"NTF\", targetCRS.getName().getCode());\n assertEquals (\"targetCRS.scope\", \"Geodetic survey.\", targetCRS.getScope().toString());\n assertEquals (\"targetCRS.identifier\", \"4275\", getSingleton(targetCRS.getIdentifiers()).getCode());\n\n final MathTransform tr = c.getMathTransform();\n assertInstanceOf(\"mathTransform\", LinearTransform.class, tr);\n assertMatrixEquals(\"mathTransform.matrix\",\n new Matrix3(1, 0, 0,\n 0, 1, 2.33722917,\n 0, 0, 1), ((LinearTransform) tr).getMatrix(), STRICT);\n\n Validators.validate(c);\n }", "public void filter(Map<String,String> output, String key, String value,\n\t\t\tfinal ResultURIConverter uriConverter, CaptureSearchResult result);", "protected abstract GenericOutputBean convertSpecificOutputStructureToGenericOutputBean(T fileParsed);", "public void convertAll() {\n Document dom = null;\n long beginTime = System.currentTimeMillis();\n try {\n log.info(\" ############################### begin import ######################\");\n dom = XMLParser.parseXMLToDOM(context.getResourceAsStream(IMPORT_FILE));\n // XMLParser.DTDValidator(dom);\n Element element = (Element) dom.getElementsByTagName(\"import\").item(0);\n String encoding = element.getAttribute(\"encoding\");\n DataAccessor.encoding = encoding;\n\n NodeList list = element.getChildNodes();\n\n List<Data> clondSources = new ArrayList<Data>();\n for (int i = 0; i < list.getLength(); i++) {\n // datatype node\n Node itemDatatype = list.item(i);\n List<Data> sources = processDatatype(itemDatatype);\n clondSources.addAll(sources);\n }\n NodeService.insertMigrationMappings(clondSources);\n createRelationDataType(clondSources);\n linkRoot(list);\n log.info(String.format(\n \" ---->#######################finished importing [time:%s mins] #############################\",\n (System.currentTimeMillis() - beginTime) / (1000 * 60)));\n NodeService.insertProperties(properties);\n }\n catch (Exception e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n }", "public void execute() throws MojoExecutionException, MojoFailureException {\n checkConfiguration();\n\n String mode;\n String[] bindings;\n String[] classpaths;\n\n if (\"pom\".equalsIgnoreCase(project.getPackaging()))\n {\n getLog().info(\"Not running JiBX binding compiler for pom packaging\");\n \treturn;\t\t// Don't bind jibx if pom packaging\n }\n \n if (isMultiModuleMode()) {\n if (isRestrictedMultiModuleMode()) {\n mode = \"restricted multi-module\";\n } else {\n mode = \"multi-module\";\n }\n bindings = getMultiModuleBindings();\n classpaths = getMultiModuleClasspaths();\n } else {\n mode = \"single-module\";\n bindings = getSingleModuleBindings();\n classpaths = getSingleModuleClasspaths();\n }\n\n if (interfaceClassNames.size() == 0) {\n getLog().info(\"Not running JiBX2WSDL (\" + mode + \" mode) - no class interface files\");\n } else {\n getLog().info(\"Running JiBX binding compiler (\" + mode + \" mode) on \" + interfaceClassNames.size()\n + \" interface file(s)\");\n \n try {\n java.util.List<String> args = new Vector<String>();\n\n for (int i = 0; i< classpaths.length; i++)\n {\n args.add(\"-p\");\n \targs.add(classpaths[i]);\n }\n \n args.add(\"-t\");\n args.add(outputDirectory);\n \n if (customizations.size() > 0) {\n args.add(\"-c\");\n for (String customization : customizations) {\n args.add(customization);\n }\n }\n\n for (Map.Entry<String,String> entry : options.entrySet()) {\n String option = \"--\" + entry.getKey() + \"=\" + entry.getValue();\n if ((entry.getKey().toString().length() == 1) && (Character.isLowerCase(entry.getKey().toString().charAt(0))))\n {\n \tgetLog().debug(\"Adding option : -\" + entry.getKey() + \" \" + entry.getValue());\n \targs.add(\"-\" + entry.getKey());\n \targs.add(entry.getValue());\n }\n else\n {\n \t getLog().debug(\"Adding option: \" + option);\n \t args.add(option);\n }\n }\n if (bindings.length > 0)\n {\n args.add(\"-u\");\n StringBuilder arg = new StringBuilder();\n \tfor (int i = 0 ; i < bindings.length; i++)\n \t{\n \t\tif (arg.length() > 0)\n \t\t\targ.append(';');\n \t\targ.append(bindings[i]);\n \t}\n \targs.add(arg.toString());\n }\n \n if (this.sourceDirectories.size() > 0)\n if (this.sourceDirectories.get(0) != null)\n if (this.sourceDirectories.get(0).toString().length() > 0)\n {\n args.add(\"-s\");\n StringBuilder arg = new StringBuilder();\n \tfor (int i = 0 ; i < sourceDirectories.size(); i++)\n \t{\n \t\tif (arg.length() > 0)\n \t\t\targ.append(';');\n \t\targ.append(sourceDirectories.get(i).toString());\n \t}\n \targs.add(arg.toString()); \t\n }\n if (verbose)\n args.add(\"-v\");\n\n for (String interfaceName : interfaceClassNames)\n {\n \targs.add(interfaceName);\n }\n\n Jibx2Wsdl.main((String[]) args.toArray(new String[args.size()]));\n\t \n } catch (JiBXException e) {\n\t e.printStackTrace();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t\n\t }\n }", "public void generateReferences(FileWriter output)\n {\n defs.generateReferences(output);\n }", "@SuppressWarnings(\"unchecked\")\n private void resolveClasses() {\n for (String s : filesToResolve) {\n SchemaTupleFactory.LOG.info(\"Attempting to resolve class: \" + s);\n // Step one is to simply attempt to get the class object from the classloader\n // that includes the generated code.\n Class<?> clazz;\n try {\n clazz = classLoader.loadClass(s);\n } catch (ClassNotFoundException e) {\n throw new RuntimeException(\"Unable to find class: \" + s, e);\n }\n\n // Step three is to check if the class is a SchemaTuple. If it isn't,\n // we do not attempt to resolve it, because it is support code, such\n // as anonymous classes.\n if (!SchemaTuple.class.isAssignableFrom(clazz)) {\n return;\n }\n\n Class<SchemaTuple<?>> stClass = (Class<SchemaTuple<?>>)clazz;\n\n // Step four is to actually try to create the SchemaTuple instance.\n SchemaTuple<?> st;\n try {\n st = stClass.newInstance();\n } catch (InstantiationException e) {\n throw new RuntimeException(\"Error instantiating file: \" + s, e);\n } catch (IllegalAccessException e) {\n throw new RuntimeException(\"Error accessing file: \" + s, e);\n }\n\n // Step five is to get information about the class.\n boolean isAppendable = st instanceof AppendableSchemaTuple<?>;\n int id = st.getSchemaTupleIdentifier();\n Schema schema = st.getSchema();\n\n SchemaTupleFactory stf = new SchemaTupleFactory(stClass, st.getQuickGenerator());\n\n for (GenContext context : GenContext.values()) {\n if (context != GenContext.FORCE_LOAD && !context.shouldGenerate(stClass)) {\n SchemaTupleFactory.LOG.debug(\"Context [\"+context+\"] not present for class, skipping.\");\n continue;\n }\n\n // the SchemaKey (Schema sans alias) and appendability are how we will\n // uniquely identify a SchemaTupleFactory\n Triple<SchemaKey, Boolean, GenContext> trip =\n Triple.make(new SchemaKey(schema), isAppendable, context);\n\n schemaTupleFactoriesByTriple.put(trip, stf);\n\n SchemaTupleFactory.LOG.info(\"Successfully resolved class for schema [\"+schema+\"] and appendability [\"+isAppendable+\"]\"\n + \" in context: \" + context);\n }\n schemaTupleFactoriesById.put(id, stf);\n }\n }", "private void onCompositionDataReceived(CompositionData compositionData) {\n List<BindingModel> modelsInCps = getAllModels(compositionData);\n if (modelsInCps == null || modelsInCps.size() == 0) {\n onBindFail(\"no models in composition data\");\n return;\n }\n this.bindingModels.clear();\n this.modelIndex = 0;\n if (bindingDevice.getModels() == null) {\n this.bindingModels.addAll(modelsInCps);\n } else {\n // models filter\n outer:\n for (BindingModel bindingModel : modelsInCps) {\n for (int modelId : bindingDevice.getModels()) {\n if (bindingModel.modelId == modelId) {\n this.bindingModels.add(bindingModel);\n continue outer;\n }\n }\n }\n }\n\n if (this.bindingModels.size() == 0) {\n onBindFail(\"no target models found\");\n } else {\n\n log(\"models prepared: \" + this.bindingModels.size());\n /*for (BindingModel bindingModel :\n bindingModels) {\n logMessage( \"model - \" + bindingModel.modelId);\n }*/\n bindingDevice.setCompositionData(compositionData);\n addAppKey();\n }\n }", "public void run() {\r\n for (int i = 0; i < inputs.size(); i++) {\r\n String converted;\r\n //Converts the input string using the converter\r\n converted = converter.convert(inputs.get(i));\r\n //It adds to the output the converted string \r\n outputs.add(converted);\r\n //Prints the converted value\r\n System.out.println(converted);\r\n }\r\n\r\n }", "public Map<String, String> importFilesInSite(String zipReference,\r\n\t String siteId) {\r\n\tMap<File, String> fileMap = (Map<File, String>) getImportedFiles();\r\n\tMap<String, String> fileNameChangesMap = new HashMap<String, String>();\r\n\t// Vars used to retrieve metadata\r\n\tContentHandler handler = null;\r\n\tMetadata metadata = null;\r\n\tParser parser = null;\r\n\tString resourceOutputDir = null;\r\n\ttry {\r\n\t resourceOutputDir = contentHostingService.getSiteCollection(siteId);\r\n\t} catch (Exception e1) {\r\n\t log.error(e1.getMessage());\r\n\t e1.printStackTrace();\r\n\t}\r\n\r\n\tfor (Entry<File, String> entry : fileMap.entrySet()) {\r\n\t File file = entry.getKey();\r\n\t try {\r\n\t\tString fileNameToUse = fileMap.get(file);\r\n\t\tInputStream inputStream = new FileInputStream(file);\r\n\r\n\t\t// Retrieve file extension\r\n\t\tint lastIndexOfPoint = fileNameToUse.lastIndexOf(\".\");\r\n\t\tString fileExtension =\r\n\t\t\tfileNameToUse.substring(lastIndexOfPoint + 1,\r\n\t\t\t\tfileNameToUse.length());\r\n\r\n\t\t// Necessary inits to retreive content type\r\n\t\thandler = new BodyContentHandler();\r\n\t\tmetadata = new Metadata();\r\n\t\tmetadata.set(Metadata.RESOURCE_NAME_KEY, file.getName());\r\n\t\tparser = new AutoDetectParser();\r\n\t\tparser.parse(inputStream, handler, metadata, new ParseContext());\r\n\r\n\t\t// We need to close the inputstream and rebuild it after the\r\n\t\t// parsing here,\r\n\t\t// otherwise the inputstream in unusable\r\n\t\tinputStream.close();\r\n\t\tinputStream = new FileInputStream(file);\r\n\r\n\t\tif (CITATION_EXTENSION.equals(fileExtension)) {\r\n\t\t // read input stream of file to get properties of citation\r\n\t\t fileNameChangesMap.putAll(addCitations(file, siteId,\r\n\t\t\t resourceOutputDir));\r\n\t\t} else {\r\n\t\t String s =\r\n\t\t\t addRessource(fileNameToUse, inputStream,\r\n\t\t\t\t metadata.get(Metadata.CONTENT_TYPE),\r\n\t\t\t\t siteId, resourceOutputDir);\r\n\t\t if (!fileNameToUse.equals(s))\r\n\t\t\tfileNameChangesMap.put(fileNameToUse, s);\r\n\t\t}\r\n\t\tinputStream.close();\r\n\t } catch (Exception e) {\r\n\t\tlog.error(e);\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}\r\n\treturn fileNameChangesMap;\r\n }", "public void ProcessFiles() {\n LOG.info(\"Processing SrcML files ...\");\n final Collection<File> allFiles = ctx.files.AllFiles();\n int processed = 0;\n final int numAllFiles = allFiles.size();\n final int logDiv = Math.max(1, Math.round(numAllFiles / 100f));\n\n for (File file : allFiles) {\n final String filePath = file.filePath;\n final FilePath fp = ctx.internFilePath(filePath);\n\n Document document = readSrcmlFile(filePath);\n DocWithFileAndCppDirectives extDoc = new DocWithFileAndCppDirectives(file, fp, document, ctx);\n\n internAllFunctionsInFile(file, document);\n processFeatureLocationsInFile(extDoc);\n\n if ((++processed) % logDiv == 0) {\n int percent = Math.round((100f * processed) / numAllFiles);\n LOG.info(\"Parsed SrcML file \" + processed + \"/\" + numAllFiles\n + \" (\" + percent + \"%) (\" + (numAllFiles - processed) + \" to go)\");\n }\n }\n\n LOG.info(\"Parsed all \" + processed + \" SrcML file(s).\");\n }", "public static void usingModuleExtractors() throws ExtractorException {\n OWLOntology ont = OntologyLoader.loadOntologyAllAxioms(\"/path/to/ontology.owl\");\n\n //Create the module extractors - implement the Extractor interface\n AMEX amex = new AMEX(ont);\n STARAMEXHybridExtractor hybrid = new STARAMEXHybridExtractor(ont);\n //MEX mex = new MEX(ont);\n\n //Generate a set of 1000 random axioms from the ontology\n Set<OWLLogicalAxiom> randomAxs = ModuleUtils.generateRandomAxioms(ont.getLogicalAxioms(),1000);\n\n //Extract a module for the signature of each axiom\n for(OWLLogicalAxiom ax : randomAxs){\n\n //Signature of the axiom\n Set<OWLEntity> sig = ax.getSignature();\n\n //Extract the modules - N.B don't need a new extractor object for each signature\n Set<OWLLogicalAxiom> amexMod = amex.extractModule(sig);\n Set<OWLLogicalAxiom> hybridMod = hybrid.extractModule(sig);\n\n System.out.println(\"AMEX: \" + amexMod.size());\n System.out.println(\"HYBRID: \" + hybridMod.size());\n System.out.println(\"STAR: \" + hybrid.getStarModule().size()); //STAR module is computed through the hybrid module\n System.out.println();\n }\n\n }", "public void outsource()\n\t{\n\t\tconstructPrefix();\t \n\t}", "public HadoopEXIFMapper(){}", "static void splitVcf(String inputFile, String outDir) throws Exception\n\t{\n\t\tint n = countInputs(inputFile);\t\n\t\tif(n == 0)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Make output directory for the split VCF files\n\t\tPath currentRelativePath = Paths.get(\"\");\n\t\toutDir = currentRelativePath.toAbsolutePath().toString() + \"/\" + outDir;\n\t\tFile f = new File(outDir);\n\t\tf.mkdir();\n\t\t\n\t\tString[] fns = new String[n];\n\t\tfor(int i = 0; i<n; i++) fns[i] = outDir + \"/\" + \"sample\" + (i+1) + \".vcf\";\n\t\t\n\t\tPrintWriter[] outs = new PrintWriter[n];\n\t\tfor(int i = 0; i<n; i++)\n\t\t{\n\t\t\touts[i] = new PrintWriter(new File(fns[i]));\n\t\t}\n\t\t\n\t\t// Write split VCF filenames to filelist.txt\n\t\tPrintWriter out = new PrintWriter(new File(outDir + \"/filelist.txt\"));\n\t\tfor(int i = 0; i<n; i++)\n\t\t{\n\t\t\tout.println(fns[i]);\n\t\t}\n\t\tout.close();\n\t\t\n\t\tScanner input = new Scanner(new FileInputStream(new File(inputFile)));\n\t\twhile(input.hasNext())\n\t\t{\n\t\t\tString line = input.nextLine();\n\t\t\tif(line.length() == 0)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(line.startsWith(\"#\"))\n\t\t\t{\n\t\t\t\tfor(int i = 0; i<n; i++)\n\t\t\t\t{\n\t\t\t\t\touts[i].println(line);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tVcfEntry entry = new VcfEntry(line);\n\t\t\t\tString suppVec = entry.getInfo(\"SUPP_VEC\");\n\t\t\t\tString method = entry.getInfo(\"SVMETHOD\");\n\t\t\t\tint supp = Integer.parseInt(entry.getInfo(\"SUPP\"));\n\t\t\t\t\n\t\t\t\t// Get the list of IDs - the way of doing that depends on the method used to merge them\n\t\t\t\tString[] idList = new String[supp];\n\t\t\t\tif(method.equals(\"JASMINE\"))\n\t\t\t\t{\n\t\t\t\t\tidList = entry.getInfo(\"IDLIST\").split(\",\");\n\t\t\t\t}\n\t\t\t\telse if(method.startsWith(\"SURVIVOR\"))\n\t\t\t\t{\n\t\t\t\t\tArrayList<String> ids = new ArrayList<String>();\n\t\t\t\t\tfor(int i = 9; i<entry.tabTokens.length; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tString val = entry.tabTokens[i].split(\":\")[7];\n\t\t\t\t\t\tif(!val.equalsIgnoreCase(\"nan\")) ids.add(val);\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i = 0; i<ids.size(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tidList[i] = ids.get(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint idIdx = 0;\n\t\t\t\tfor(int i = 0; i<n; i++)\n\t\t\t\t{\n\t\t\t\t\tboolean inSample = suppVec.charAt(i) == '1';\n\t\t\t\t\tif(inSample)\n\t\t\t\t\t{\n\t\t\t\t\t\tVcfEntry newEntry = new VcfEntry(entry.originalLine);\n\t\t\t\t\t\t\n\t\t\t\t\t\tnewEntry.setId(idList[idIdx]);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlong oldStart = newEntry.getPos();\n\t\t\t\t\t\t\n\t\t\t\t\t\tint curNoise = Math.min(AVERAGE_POS_ERROR, (int)(Math.abs(newEntry.getLength()) * 0.25));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Add some noise to different parts of it\n\t\t\t\t\t\tint dPos = randomDelta(curNoise);\n\t\t\t\t\t\tint dLen = randomDelta(curNoise);\n\t\t\t\t\t\t\n\t\t\t\t\t\tlong newStart = oldStart + dPos;\n\t\t\t\t\t\tint newLen = newEntry.getLength() + dLen;\n\t\t\t\t\t\tlong newEnd = newStart + newLen;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Set start\n\t\t\t\t\t\tnewEntry.setPos(newEntry.getPos() + dPos);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Set SVLEN INFO field\n\t\t\t\t\t\tif(newEntry.hasInfoField(\"SVLEN\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnewEntry.setInfo(\"SVLEN\", newLen + \"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tString type = newEntry.getType();\n\t\t\t\t\t\tint refLength = newEntry.getRef().length();\n\t\t\t\t\t\tint altLength = newEntry.getAlt().length();\n\t\t\t\t\t\tif(!newEntry.getAlt().contains(\"<\") && !newEntry.getRef().contains(\"N\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(refLength > altLength)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype = \"DEL\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(refLength < altLength)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttype = \"INS\";\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\t// Set END INFO field\n\t\t\t\t\t\tif(newEntry.hasInfoField(\"END\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(type.equals(\"INS\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnewEntry.setInfo(\"END\", newStart + \"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnewEntry.setInfo(\"END\", newEnd + \"\");\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\t// Set REF and ALT fields depending on SV type\n\t\t\t\t\t\tif(!newEntry.getAlt().contains(\"<\") && !newEntry.getRef().contains(\"N\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(type.equals(\"INS\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(entry.getLength() < 0)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tSystem.out.println(entry);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tentry.setAlt(adjustStringLength(entry.getAlt(), newLen + 1));\n\t\t\t\t\t\t\t\tif(entry.hasInfoField(\"SEQ\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tentry.setInfo(\"SEQ\", entry.getAlt().substring(1));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(type.equals(\"DEL\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tentry.setRef(adjustStringLength(entry.getRef(), Math.abs(newLen) + 1));\n\t\t\t\t\t\t\t\tif(entry.hasInfoField(\"SEQ\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tentry.setInfo(\"SEQ\", entry.getRef().substring(1));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(type.equals(\"DEL/INV\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tentry.setRef(adjustStringLength(entry.getRef(), Math.abs(newLen) + 1));\n\t\t\t\t\t\t\t\tif(entry.hasInfoField(\"SEQ\"))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tentry.setInfo(\"SEQ\", entry.getRef().substring(1));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(type);\n\t\t\t\t\t\t\t\tSystem.out.println(entry.getRef()+\" \"+entry.getAlt());\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\touts[i].println(newEntry);\n\t\t\t\t\t\tidIdx++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i<n; i++)\n\t\t{\n\t\t\touts[i].close();\n\t\t}\n\t\tinput.close();\n\t}", "public void configure() {\n\n // here is a sample which processes the input files\n // (leaving them in place - see the 'noop' flag)\n // then performs content based routing on the message using XPath\n\n }", "public static void prepare(@Nonnull String inputFile, @Nonnull String outputFolder) {\n ExtractFrames.extractFrames(inputFile, outputFolder, FORWARD, NUMBER_OF_FRAMES / 2, .5);\n\n LOG.info(\"Analyzing frames to find direction\");\n Direction direction = getDirection(outputFolder);\n LOG.info(\"The train's direction is {}\", direction);\n\n // extract all frames in the direction we just found\n ExtractFrames.extractFrames(inputFile, outputFolder, direction, NUMBER_OF_FRAMES);\n }", "void index() {\n for (Binding<?> binding : bindings.values()) {\n index(binding);\n }\n }" ]
[ "0.45284122", "0.4490226", "0.4423583", "0.44156718", "0.43629885", "0.43528625", "0.43449038", "0.43076715", "0.43049368", "0.4300927", "0.42610747", "0.42411315", "0.42149097", "0.42035457", "0.41880447", "0.4184154", "0.41785488", "0.4171992", "0.4128642", "0.41260245", "0.41137162", "0.4104557", "0.40728727", "0.40304866", "0.40295762", "0.40238705", "0.40126958", "0.40092123", "0.39980227", "0.39974514", "0.39963487", "0.3989239", "0.39828205", "0.39739934", "0.39592922", "0.39330962", "0.39237168", "0.39220104", "0.3912553", "0.39054573", "0.39020878", "0.38993698", "0.38892153", "0.38869894", "0.38847744", "0.3868601", "0.38658792", "0.38490623", "0.3847718", "0.38459", "0.38422483", "0.38253364", "0.3819399", "0.38109922", "0.3796804", "0.37809342", "0.37790248", "0.37770835", "0.37741527", "0.3763636", "0.37634012", "0.3760139", "0.37477493", "0.37435558", "0.37385827", "0.37348396", "0.37343287", "0.37334126", "0.37334126", "0.3732669", "0.37251493", "0.37115297", "0.37073836", "0.37009746", "0.36978585", "0.36909038", "0.36889598", "0.36797643", "0.36792624", "0.36784697", "0.3676605", "0.3673045", "0.36722988", "0.36718395", "0.3671695", "0.3670635", "0.36701453", "0.3668003", "0.36638734", "0.3660805", "0.36580685", "0.36560234", "0.36512586", "0.365116", "0.36488876", "0.3647412", "0.36445644", "0.36407515", "0.36390665", "0.3637446" ]
0.73660773
0
TODO Autogenerated method stub
@Override public Long getId() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
Get all the disabilityTypes.
@Transactional(readOnly = true) public Page<DisabilityTypeDTO> findAll(Pageable pageable) { log.debug("Request to get all DisabilityTypes"); return disabilityTypeRepository.findAll(pageable) .map(disabilityTypeMapper::toDto); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<SecTyp> getAllTypes();", "@Override\r\n\tpublic List<Type> getTypes() {\n\t\treturn (List<Type>)BaseDao.select(\"select * from type\", Type.class);\r\n\t}", "public List<Type> getAll();", "public List<__Type> getTypes() {\n return (List<__Type>) get(\"types\");\n }", "public List<CWLType> getTypes() {\n return types;\n }", "UsedTypes getTypes();", "List<Type> getAllTypeList();", "public Collection<DasType> getTypes() throws DataSourceException {\n Collection<DasType> types = new ArrayList<DasType>(5);\n types.add(new DasType(\"gene\", \"gene\", \"Gene description\"));\n types.add(new DasType(\"efv\", \"efv\", \"Experiment factor value\"));\n types.add(new DasType(\"exp\", \"exp\", \"Experiment\"));\n return types;\n }", "public DiscountTypes getDiscountTypes() {\n return discountTypes;\n }", "@GetMapping(\"/types\")\n\t@Timed\n\tpublic List<TypesDTO> getAllTypes() {\n\t\tthis.log.debug(\"REST request to get all Types\");\n\t\treturn this.typesService.findAll();\n\t}", "@Override\n\tpublic List<Facilities_type> getAllFacilitiesType() {\n\t\treturn this.facilitiesDao.getAllFacilitiesType();\n\t}", "@GET\n\t@Path(\"types\")\n public Response getDeviceTypes() {\n List<DeviceType> deviceTypes;\n try {\n deviceTypes = DeviceMgtAPIUtils.getDeviceManagementService().getAvailableDeviceTypes();\n return Response.status(Response.Status.OK).entity(deviceTypes).build();\n } catch (DeviceManagementException e) {\n String msg = \"Error occurred while fetching the list of device types.\";\n log.error(msg, e);\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();\n }\n }", "public synchronized static Set<String> getAvailableTypes() {\n populateCache();\n return Collections.unmodifiableSet(cache.keySet());\n }", "@Override\r\n public List<DishTypeBean> getAllDishType() {\r\n Cursor cursor =\r\n database.query(DishTypeBean.TABLE_NAME, null, null, null, null, null, DishTypeBean.ID + \" DESC\");\r\n List<DishTypeBean> dishTypeBeans = new ArrayList<DishTypeBean>();\r\n for (DishTypeBean dishTypeBean : dishTypeBeans) {\r\n dishTypeBean.setId(cursor.getString(0));\r\n dishTypeBean.setName(cursor.getString(1));\r\n dishTypeBean.setSmallPictureAddress(cursor.getString(2));\r\n dishTypeBean.setBigPictureAddress(cursor.getString(3));\r\n dishTypeBean.setVideoAddress(cursor.getString(4));\r\n dishTypeBean.setAudioAddress(cursor.getString(5));\r\n dishTypeBeans.add(dishTypeBean);\r\n }\r\n return dishTypeBeans;\r\n }", "public List<String> getAvailableDataTypes() {\n Set<String> typeSet = new TreeSet<String>();\n\n ITimer timer = TimeUtil.getTimer();\n timer.start();\n\n try {\n for (Provider provider : DataDeliveryHandlers.getProviderHandler()\n .getAll()) {\n\n for (ProviderType type : provider.getProviderType()) {\n typeSet.add(type.getDataType().toString());\n }\n }\n } catch (RegistryHandlerException e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Unable to retrieve the provider list.\", e);\n }\n\n List<String> typeList = new ArrayList<String>(typeSet);\n timer.stop();\n\n return typeList;\n }", "@Override\n\tpublic List<FoodType> FindAllType() {\n\t\treturn ftb.FindAllType();\n\t}", "@Override\n\tpublic List<Type> listType() {\n\t\treturn goodsDao.listType();\n\t}", "@Override\r\n\tpublic Vector<Integer> getTypes() {\n\t\treturn this.types;\r\n\t}", "public List<TypeInfo> getTypes() {\r\n return types;\r\n }", "public ArrayList<String> getTypes(){\n return this.types;\n }", "public String[] getTypes() {\n return impl.getTypes();\n }", "public List<Type> getTypeList() {\n\t\treturn sm.selectList(\"com.lanzhou.entity.Longpay.getTypeList\");\n\t}", "public String[] getTypes() {\n/* 388 */ return getStringArray(\"type\");\n/* */ }", "public List<Type> getDownloadableType() {\n\t\tList<Type> types = typeManager.getAllAvailable();\n\t\tList<Type> result = new ArrayList<Type>();\n\t\tfor(Type type : types){\n\t\t\tif(type.getBasePackages() != null && type.getBasePackages().size() != 0){\n\t\t\t\tresult.add(type);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private Collection<TypeDeclaration> getAllTypes() {\n if (allTypes != null) {\n return allTypes;\n }\n allTypes = new ArrayList<TypeDeclaration>();\n for (Symbol s : getMembers(false)) {\n allTypes.add(env.declMaker.getTypeDeclaration((ClassSymbol) s));\n }\n return allTypes;\n }", "public java.lang.String getDisabilities () {\n\t\treturn disabilities;\n\t}", "public List<ResourceBase> listTypes() throws ResourceException;", "public Iterator getTypes() {\r\n\t\treturn types == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(types.values());\r\n\t}", "public Set<String> getAvailableTypes() {\n return ApiSpecificationFactory.getTypes();\n }", "public Set<Class<?>> getTypes() {\n\t\treturn dataTypes;\n\t}", "public Set<Class<?>> getTypes() {\n\t\treturn dataTypes;\n\t}", "public Set<Class<?>> getTypes() {\r\n\t\treturn dataTypes;\r\n\t}", "public Set<Class<?>> getTypes() {\r\n\t\treturn dataTypes;\r\n\t}", "public Set<Class<?>> getTypes() {\r\n\t\treturn dataTypes;\r\n\t}", "public Type[] types();", "@GET\n @Path(\"allTypes\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getAllTypes() {\n return typesJSONResponse(_types.getAllTypes());\n }", "public List<WeatherType> getListWeatherType() {\n\t\treturn weatherTypeService.getAllWeatherType();\n\t}", "@RequestMapping(value=\"/datatypes\",method=RequestMethod.GET)\n public DataFieldType[] getAllDataTypes(){\n return DataFieldType.values();\n }", "public List<CarrierType> all() throws EasyPostException {\n String endpoint = \"carrier_types\";\n\n CarrierType[] response = Requestor.request(RequestMethod.GET, endpoint, null, CarrierType[].class, client);\n return Arrays.asList(response);\n }", "public List getCourseTypes() throws ULMSSysException\r\n {\r\n return codeMaintainDAO.getCourseTypes();\r\n }", "public ArrayList<BikeType> getAllTypes(){\n typelist = new ArrayList<>();\n\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_TYPES);\n ResultSet rs = ps.executeQuery()){\n\n while(rs.next()){\n BikeType type = new BikeType(rs.getString(cTypeName),rs.getDouble(cRentalPrice));\n type.setTypeId(rs.getInt(cTypeId));\n typelist.add(type);\n }\n\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return typelist;\n }", "default List<TypeInfo> allTypes() {\n List<TypeInfo> allTypes = new LinkedList<>();\n allTypes.add(this);\n allTypes.addAll(Arrays.asList(interfaces()));\n allTypes.addAll(superClass().stream().flatMap(s -> s.allTypes().stream()).collect(Collectors.toList()));\n return allTypes;\n }", "public List getTypeSpecifiers() {\n return member.getTypeSpecifiers();\n }", "@Override\r\n\tpublic List<Type> selectType() {\n\t\treturn gd.selectType();\r\n\t}", "public Medium[] getDiscs() {\n Session session = getSessionFactory().openSession();\n session.beginTransaction();\n List<Disc> discList = session.createQuery(\"from Disc\", Disc.class).list();\n session.getTransaction().commit();\n session.close();\n return discList.toArray(new Medium[discList.size()]);\n }", "public List<TypeMetadata> getTypeMetadata() {\n return types;\n }", "public static Collection<AttributeType> findAll( )\n {\n return _dao.selectDocumentAttributeTypeList( );\n }", "synchronized public Map<String, Set<String>> getTypes() {\n return Collections.unmodifiableMap(\n new HashSet<>(types.entrySet()).stream()\n .collect(Collectors.toMap(\n Map.Entry::getKey,\n e -> Collections.unmodifiableSet(new HashSet<>(e.getValue()))\n ))\n );\n }", "@Override\n\tpublic List<Kind> findAll() {\n\t\treturn kindDao.findAll();\n\n\t}", "public Collection<Dealsusagetb> getDusages() {\n Collection<Dealsusagetb> usages = res.readEntity(gDUsages);\n dusages = new ArrayList<>();\n for (Dealsusagetb usage : usages) {\n if(usage.getStatus() == 1) {\n dusages.add(usage);\n }\n }\n return dusages;\n }", "public static Set<Type> getBiomeTypes() {\n\t\ttry {\n\t\t\tfinal Field accessor = ReflectionHelper.findField(BiomeDictionary.Type.class, \"byName\");\n\t\t\tif (accessor != null) {\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tfinal Map<String, BiomeDictionary.Type> stuff = (Map<String, BiomeDictionary.Type>) accessor.get(null);\n\t\t\t\treturn new ReferenceOpenHashSet<>(stuff.values());\n\t\t\t}\n\n\t\t\treturn ImmutableSet.of();\n\n\t\t} catch (final Throwable t) {\n\t\t\tthrow new RuntimeException(\"Cannot locate BiomeDictionary.Type table!\");\n\t\t}\n\n\t}", "public Map<String, SkylarkModuleDoc> getTypes() {\n return types;\n }", "@GetMapping(\"/insurance-types\")\n @Timed\n public List<InsuranceType> getAllInsuranceTypes() {\n log.debug(\"REST request to get all InsuranceTypes\");\n return insuranceTypeService.findAll();\n }", "@Override\n\tpublic List<Coursetype> getAllCourseType() {\n\t\treturn courseTypeDaoImpl.getAllCourseType();\n\t}", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"getAllDeviceCategories\")\n List<JsonType> types();", "List<Type> getTypeList(String type);", "public List<Class<? extends Resource>> getAvailableTypes(OgemaLocale locale);", "@Override\n public List<CoffeeType> getAllForDisabledFlag(DisabledFlag disabledFlag) {\n return coffeeTypeDao.getAllForDisabledFlag(disabledFlag);\n }", "Set<ShipmentType> getShipmentTypes();", "private Collection<String> getTypes(final Collection<Passenger> passengers)\r\n {\r\n final List<String> types = new ArrayList<String>();\r\n for (final Passenger passenger : passengers)\r\n {\r\n types.add(passenger.getType().toString());\r\n }\r\n return types;\r\n }", "public abstract java.util.Set getPaymentTypes();", "public java.util.List<String> getInstanceTypes() {\n if (instanceTypes == null) {\n instanceTypes = new com.amazonaws.internal.SdkInternalList<String>();\n }\n return instanceTypes;\n }", "List<ReportType> findTypes();", "public List getScoreTypes() throws ULMSSysException\r\n {\r\n return codeMaintainDAO.getScoreTypes();\r\n }", "public UserType[] getAllUserTypes() throws DataAccessException {\n return userTypeDao.getAllUserTypes();\n }", "public static List<TypeCharge> getListeTypeCharge() \t{\r\n\t\treturn s.createQuery(\"from TypeCharge\").list();\r\n\t\t\t\t\t}", "public IAttributeType<?>[] getAllAttributeTypes();", "@Override\n public List<LoanTypes> getLoanTypes(){\n AbstractFactory aFactory = ProducerFactory.getProducer();\n LoanTypes aLoanType = aFactory.getLoaType();\n\n loanTypesRepository.findAll().forEach((x) -> {\n aLoanType.type = x.type;\n });\n\n List<LoanTypes> result = new ArrayList<>();\n result.add(aLoanType);\n return result;\n }", "@Override\n\tpublic List<PermitType> GetAllPermitTypes() {\n\t\tConnection connection = null;\n\t\tPreparedStatement preparedStatement = null;\n\t\tResultSet resultSet = null;\n\t\tint count=1;\n\t\ttry {\n\t\t\tconnection = dataSource.getConnection();\n\t\t\tpreparedStatement = connection\n\t\t\t\t\t.prepareStatement(Queryconstants.getPermitTypes);\n\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\tList<PermitType> permittypes = new ArrayList<PermitType>();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tPermitType permitType=new PermitType();\n\n\t\t\t\tpermitType.permitTypeId=resultSet.getInt(\"ID\");\n\t\t\t\tpermitType.permitTypeCode=resultSet.getString(\"permit_type_Code\");\n\t\t\t\tpermitType.permitTypeName=resultSet.getString(\"permit_type_Name\");\n\t\t\t\tpermitType.permitType=resultSet.getString(\"permit_type_code\");\n\t\t\t\tpermitType.permitFee=resultSet.getDouble(\"permit_fee\");\n\t\t\t\tpermitType.active=resultSet.getBoolean(\"active\");\n\t\t\t\tpermitType.respCode=200;\n\t\t\t\tpermitType.count=count;\n\t\t\t\tpermittypes.add(permitType);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\treturn permittypes;\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn null;\n\t\t} finally {\n\t\t\tDBOperations.DisposeSql(connection, preparedStatement, resultSet);\n\t\t}\n\t}", "public static ReferenceList getAttributeTypesList( Locale locale )\n {\n return _dao.selectAttributeTypeList( locale );\n }", "public static Collection<DataType> values() {\n return values(DataType.class);\n }", "public List<String> getDataPointTypes() {\n Object[] dpTypes = (Object[])configMap.get(DATA_POINT_TYPES);\n List<String> types = Utility.downcast( dpTypes );\n return types;\n }", "public Collection<Integer> getExcludedTransportTypes();", "public List<Access> getTypeBounds() {\n return getTypeBoundList();\n }", "List<DenialReasonDto> showAll();", "public List<TypeObjet> getTypesObjets() {\n\t\treturn null;\n\t}", "public int[] getTypes(){\n int[] types={TYPE_STRING,TYPE_STRING,TYPE_STRING,TYPE_INT};\n return types;\n }", "public List<? extends TypeMirror> getTypeMirrors() {\n/* 83 */ return this.types;\n/* */ }", "public ArrayList<GameType> getGameTypes()\r\n {\r\n\treturn new ArrayList<GameType>(gameTypes);\r\n }", "@GetMapping(\"/delivery-delivery-types\")\n public List<DeliveryDeliveryType> getAllDeliveryDeliveryTypes() {\n log.debug(\"REST request to get all DeliveryDeliveryTypes\");\n return deliveryDeliveryTypeRepository.findAll();\n }", "public SortedSet<String> getAvailableLevels() {\n if (allAvailableLevels == null) {\n allAvailableLevels = new TreeSet<String>();\n\n try {\n List<String> dataTypeList = new ArrayList<String>();\n dataTypeList.add(dataType);\n\n List<String> levels = DataDeliveryHandlers\n .getParameterHandler().getDataLevelTypeDescriptions(\n dataTypeList);\n if (levels != null && !levels.isEmpty()\n && levels.get(0) != null) {\n allAvailableLevels.addAll(levels);\n }\n } catch (RegistryHandlerException e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Unable to retrieve the levels.\", e);\n }\n }\n\n return allAvailableLevels;\n }", "List<CmdType> getSupportedTypes();", "public PowerTypes[] getValidPowerTypes();", "public Set<Type> usedTypes() {\n Set<Type> types = new HashSet<Type>();\n for (DexlibAbstractInstruction i : instructions) {\n types.addAll(i.introducedTypes());\n }\n\n if (tries != null) {\n for (TryBlock<? extends ExceptionHandler> tryItem : tries) {\n List<? extends ExceptionHandler> hList = tryItem.getExceptionHandlers();\n for (ExceptionHandler handler : hList) {\n String exType = handler.getExceptionType();\n if (exType == null) {\n // Exceptions\n continue;\n }\n types.add(DexType.toSoot(exType));\n }\n }\n }\n\n return types;\n }", "public List<MeasureType> getDescriptionClassConverter() {\n\n List<MeasureType> list = Arrays.asList(MeasureType.valueOf(nameOfEnumUsedOfTheClass));\n\n return list;\n\n }", "public List<Dihedral> getDiheTypeList() {\n return diheTypeList;\n }", "public Set getTypeSet()\n {\n Set set = new HashSet();\n\n Iterator it = attTypeList.keySet().iterator();\n while (it.hasNext())\n {\n // Get key\n Object attrName = it.next();\n Object type = attTypeList.get(attrName);\n set.add(type);\n }\n return set;\n }", "public List<String> getResourceTypes(){\n\t\treturn jtemp.queryForList(\"SELECT resource_type_id||' '||resource_type_name FROM resource_type\", String.class);\n\t}", "@GetMapping(\"/age-group-types\")\n @Timed\n public List<AgeGroupType> getAllAgeGroupTypes() {\n log.debug(\"REST request to get all AgeGroupTypes\");\n List<AgeGroupType> ageGroupTypes = ageGroupTypeRepository.findAll();\n return ageGroupTypes;\n }", "public List<ContestType> getAllContestTypes() throws ContestManagementException {\n return null;\r\n }", "public List<ContestType> getAllContestTypes() throws ContestManagementException {\n return null;\r\n }", "public List<SensoryType> findAllSensoryTypes() {\r\n\t\t// sparql\r\n\t\tString sparql = \"SELECT ?dataSourceType WHERE {?dataSourceType rdfs:subClassOf onto:DataSourceType.}\";\r\n\t\t// test\r\n\t\tString jsonString = findJsonResult(sparql);\r\n\t\tSystem.out.println(\"findAllDataSourceTypes:\" + jsonString);\r\n\t\t// result\r\n\t\tJSONObject json;\r\n\t\ttry {\r\n\t\t\tjson = new JSONObject(jsonString);\r\n\t\t\tJSONArray jsonArray = json.getJSONObject(\"results\").getJSONArray(\"bindings\");\r\n\t\t\tList<SensoryType> list = new ArrayList<SensoryType>();\r\n\t\t\tfor (int i = 0; i < jsonArray.length(); i++) {\r\n\t\t\t\tJSONObject jsonObject = (JSONObject) jsonArray.get(i);\r\n\t\t\t\tSensoryType sensoryType = new SensoryType();\r\n\t\t\t\tif (jsonObject.has(\"dataSourceType\")) {\r\n\t\t\t\t\tsensoryType.setSensoryTypeName(jsonObject.getJSONObject(\"dataSourceType\").getString(\"value\").split(\"#\")[1]);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(sensoryType);\r\n\t\t\t}\r\n\t\t\treturn list;\r\n\t\t} catch (JSONException 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 Collection<? extends Dilution> getDilutions();", "public java.util.List<Type> getType() { \n\t\tif (myType == null) {\n\t\t\tmyType = new java.util.ArrayList<Type>();\n\t\t}\n\t\treturn myType;\n\t}", "public List getAllShipTypes() throws Exception {\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n String sql = \"select `COLUMN_NAME` FROM `INFORMATION_SCHEMA`.`COLUMNS`\"\r\n + \" WHERE `TABLE_SCHEMA`='echo' AND `TABLE_NAME`='carrier' AND \" +\r\n \"(COLUMN_NAME like 'ship%' OR COLUMN_NAME = 'walk_in')\";\r\n List shipTypes = new ArrayList<>();\r\n stmt = conn.createStatement();\r\n rs = stmt.executeQuery(sql);\r\n //rs.beforeFirst();\r\n while (rs.next()) {\r\n shipTypes.add(rs.getString(\"COLUMN_NAME\"));\r\n }\r\n conn.close(stmt, rs);\r\n return shipTypes;\r\n }", "@Transactional\r\n\tpublic List getAllTypeMaterial() {\n\t\treturn typematerialdao.getAllTypeMaterial();\r\n\t}", "public List<String> getAllDocumentTypes() {\n\t\tList<String> toReturn = new ArrayList<String>();\n\n\t\tint size = combBoxDocumentTypes.getItemCount();\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\ttoReturn.add((String) combBoxDocumentTypes.getItemAt(i));\n\t\t}\n\n\t\treturn toReturn;\n\t}", "@GetMapping(\"/alteration-display-types\")\n @Timed\n public List<AlterationDisplayTypeDTO> getAllAlterationDisplayTypes() {\n log.debug(\"REST request to get all AlterationDisplayTypes\");\n return alterationDisplayTypeService.findAll();\n }", "public List<Access> getTypeBoundsNoTransform() {\n return getTypeBoundListNoTransform();\n }", "public List<Class<?>> getAllModelEnums() {\n\t\treturn ModelClasses.findModelEnums();\n\t}" ]
[ "0.69292766", "0.6740817", "0.66817576", "0.66433334", "0.6596604", "0.64966875", "0.64444155", "0.64312786", "0.64199865", "0.6399265", "0.629635", "0.6257824", "0.6249106", "0.6232607", "0.6225652", "0.62187886", "0.6212352", "0.61905354", "0.6180511", "0.6168134", "0.61478674", "0.6128057", "0.6085071", "0.608095", "0.60363185", "0.6022492", "0.60217965", "0.6008249", "0.5975879", "0.59748864", "0.59748864", "0.59714395", "0.59714395", "0.59714395", "0.59570867", "0.5950416", "0.5949209", "0.5925553", "0.5925435", "0.5920802", "0.5909705", "0.58987546", "0.5861013", "0.5821435", "0.5819618", "0.58013046", "0.5789751", "0.5780174", "0.576257", "0.57466197", "0.57426137", "0.57394856", "0.5734689", "0.57226145", "0.5718222", "0.57171714", "0.5711622", "0.56947637", "0.56904423", "0.5681486", "0.56791955", "0.5660834", "0.5660512", "0.5647598", "0.5636363", "0.5631424", "0.56284934", "0.5619486", "0.56184983", "0.5615082", "0.56010437", "0.5599537", "0.55992407", "0.5583961", "0.55786073", "0.5572676", "0.55657387", "0.5562643", "0.5551879", "0.555058", "0.5547937", "0.55363023", "0.55341", "0.55293185", "0.55283296", "0.5521704", "0.5520209", "0.5502972", "0.54934716", "0.54904586", "0.54904586", "0.5486235", "0.5480416", "0.5464099", "0.5458818", "0.545631", "0.5455649", "0.54495966", "0.5449189", "0.54488856" ]
0.6029994
25
Get one disabilityType by id.
@Transactional(readOnly = true) public Optional<DisabilityTypeDTO> findOne(Long id) { log.debug("Request to get DisabilityType : {}", id); return disabilityTypeRepository.findById(id) .map(disabilityTypeMapper::toDto); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @Transactional(readOnly = true)\n public Optional<TypeVehicule> findOne(Long id) {\n log.debug(\"Request to get TypeVehicule : {}\", id);\n return typeVehiculeRepository.findById(id);\n }", "public LearningType findOne(Long id);", "@Override\r\n\tpublic TypeModePaiement getById(int id) {\n\t\treturn repository.findById(id).get();\r\n\t}", "Optional<TypeBonDTO> findOne(Long id);", "@Transactional(readOnly = true)\n public Optional<ContributionType> findOne(Long id) {\n log.debug(\"Request to get ContributionType : {}\", id);\n return contributionTypeRepository.findById(id);\n }", "public void delete(Long id) {\n log.debug(\"Request to delete DisabilityType : {}\", id);\n disabilityTypeRepository.deleteById(id);\n }", "@Override\r\n\tpublic ConsigMetalDt findOne(int id) {\n\t\treturn consigMetalDtRepository.findOne(id);\r\n\t}", "public static PacketType lookup(int id){\n\t\tfor(PacketType type : packetLookup)\n\t\t\tif(type.getId() == id) return type;\n\t\tthrow new IllegalArgumentException(\"Couldn't find packet with ID='\"+id+\"'.\");\n\t}", "public BikeType getType(int typeId){\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(TYPE_BY_ID + typeId);\n ResultSet rs = ps.executeQuery()){\n \n if(rs.next()){\n BikeType type = new BikeType(rs.getString(cTypeName),rs.getDouble(cRentalPrice));\n type.setTypeId(rs.getInt(cTypeId));\n return type;\n }\n\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return null;\n }", "<T> T get(String id, TypeReference<T> type);", "public Optional<VehicleType> getVehicleTypeById(int id) {\n\t\treturn vehicleTypeRepository.findById(id);\n\t}", "@Override\r\n\tpublic CodeRangeDis findById(String id) {\n\t\treturn codeRangeDisMapper.findById(id);\r\n\t}", "public static Material getType(int id) {\n Material material = null;\n if (ConfigHandler.materialsReversed.get(id) != null && id > 0) {\n String name = ConfigHandler.materialsReversed.get(id).toUpperCase(Locale.ROOT);\n if (name.contains(NAMESPACE.toUpperCase(Locale.ROOT))) {\n name = name.split(\":\")[1];\n }\n\n name = BukkitAdapter.ADAPTER.parseLegacyName(name);\n material = Material.getMaterial(name);\n }\n\n return material;\n }", "public ResourceType getResourceType(final String id);", "@Override\n @Transactional(readOnly = true)\n public Optional<WorkType> findOne(Long id) {\n log.debug(\"Request to get WorkType : {}\", id);\n return workTypeRepository.findById(id);\n }", "public static DocumentType get(Integer id) throws SQLException, Exception {\n\n String sql = \"SELECT * FROM document_type WHERE (id=? AND enabled=?)\";\n\n Connection con = null;\n\n PreparedStatement stmt = null;\n\n ResultSet result = null;\n try {\n //Opens a connection to the DB\n con = ConnectionUtils.getConnection();\n //Creates a statement for SQL commands\n stmt = con.prepareStatement(sql);\n\n stmt.setInt(1, id);\n stmt.setBoolean(2, true);\n\n result = stmt.executeQuery();\n\n if (result.next()) {\n\n // Create a DocumentType instance and population with BD values\n DocumentType documentType = new DocumentType();\n\n documentType.setId(result.getInt(\"id\"));\n documentType.setName(result.getString(\"name\"));\n\n // Add the instance in the list\n return documentType;\n }\n } finally {\n ConnectionUtils.finalize(result, stmt, con);\n }\n\n return null;\n }", "public T get(int id) {\n return this.session.get(this.type, id);\n }", "public static LikeType getLikeType(int id) {\n\t\t\tif (values == null) values = LikeType.values();\n\t\t\t\n\t\t\tfor (LikeType like : values) {\n\t\t\t\tif (id == like.getId()) return like;\n\t\t\t}\n\t\t\t\n\t\t\treturn LikeType.NONE;\n\t\t}", "protected final E getType(UUID id) throws NoSuchIdException {\n\t\tE entry = dict.get(id);\n\t\tif (entry != null) {\n\t\t\treturn entry;\n\t\t} else {\n\t\t\tthrow new NoSuchIdException(\"Unknown specification id '\"\n\t\t\t\t\t+ id.toString() + \"'\");\n\t\t}\n\t}", "public static TileType getTypeById(byte id) {\r\n\t\tfor (TileType type : values()) {\r\n\t\t\tif (type.id == id) return type;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "ActivityType loadActivityType(int id) throws DataAccessException;", "@Override\n\tpublic Classe getClasse(String id) {\n\t\treturn classeRepository.findById(id).get();\n\t}", "Optional<EnumEmpTypeDTO> findOne(Long id);", "public IInputType getInputTypeById(String id);", "public T getByID(int id) {\n\t\treturn this.data.get(id);\n\t}", "@GetMapping(\"/types/{id}\")\n\t@Timed\n\tpublic ResponseEntity<TypesDTO> getTypes(@PathVariable Long id) {\n\t\tthis.log.debug(\"REST request to get Types : {}\", id);\n\t\tTypesDTO typesDTO = this.typesService.findOne(id);\n\t\treturn ResponseUtil.wrapOrNotFound(Optional.ofNullable(typesDTO));\n\t}", "@Override\n @Transactional(readOnly = true)\n public AdChoiseDTO findOne(Long id) {\n log.debug(\"Request to get AdChoise : {}\", id);\n AdChoise adChoise = adChoiseRepository.findOne(id);\n return adChoiseMapper.toDto(adChoise);\n }", "@Override\n @Transactional(readOnly = true)\n public Optional<ProjectTypeId> findOne(Long id) {\n log.debug(\"Request to get ProjectTypeId : {}\", id);\n return projectTypeIdRepository.findById(id);\n }", "@Override\n\tpublic DvdCd getById(Integer id) {\n\t\tlogger.info(\"Buscando DVD/CD por ID \"+id);\n\t\tOptional<DvdCd> obj = itemRepository.findById(id);\n\t\tif (!obj.isPresent()) {\n\t\t\tlogger.error(\"DvdCd nao encontrado, \"+DvdCdServiceImpl.class);\n\t\t\tthrow new ObjectNotFoundException(\"DvdCd nao encontrado, id: \"+id);\n\t\t}\n\t\t\n\t\treturn obj.get();\n\t}", "@Override\n\tpublic EmploieType findById(Long id) {\n\t\treturn emploieTypeRepository.findById(id).get();\n\t}", "Optional<SygTypeServiceDTO> findOne(Long id);", "@Read()\n\t\tpublic Patient getResourceById(@IdParam IdType theId) {\n\t\t\tString key = theId.getIdPart();\n\t\t\treturn getIdToPatient().get(key);\n\t\t}", "FieldType getFieldTypeById(String id) throws FieldTypeNotFoundException, TypeException, InterruptedException;", "@Override\n @Transactional(readOnly = true)\n public ModeDTO findOne(Long id) {\n log.debug(\"Request to get Mode : {}\", id);\n Mode mode = modeRepository.findOne(id);\n return modeMapper.toDto(mode);\n }", "@RequestMapping(value = \"/dlFileTypes/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<DlFileType> getDlFileType(@PathVariable Long id) {\n log.debug(\"REST request to get DlFileType : {}\", id);\n return Optional.ofNullable(dlFileTypeRepository.findOne(id))\n .map(dlFileType -> new ResponseEntity<>(\n dlFileType,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "@Override\n\tpublic Type getType(int typeID) {\n\t\treturn problemDAO.getType(typeID);\n\t}", "@Read()\n public Patient read(@IdParam IdType theId) {\n Patient patient = DBService.getPatient(theId.getIdPart());\n if (patient == null) {\n throw new ResourceNotFoundException(theId);\n }\n return patient;\n }", "@Override\n\tpublic TypeDocument findById(Long id) {\n\t\treturn typeDocumentRepository.getOne(id);\n\t}", "public Optional<EmployeeType> findById(int id) {\n\t\treturn employeeTypeRepository.findById(id);\n\t\t\n\t}", "D getById(K id);", "public Feedback readOne(int id) {\n\t\treturn feedbackRepository.findOne(id);\n\t}", "@Transactional(readOnly = true)\n public Optional<InsuranceObjectTypeDTO> findOne(Long id) {\n log.debug(\"Request to get InsuranceObjectType : {}\", id);\n return insuranceObjectTypeRepository.findById(id)\n .map(insuranceObjectTypeMapper::toDto);\n }", "@Transactional(readOnly = true) \n public OsiLookupTypesDTO findOne(Long id, Integer businessGroupId) throws BusinessException {\n log.debug(\"Request to get OsiLookupTypes : {}\", id);\n OsiLookupTypes osiLookupTypes = osiLookupTypesRepository.findSingleActiveLookup(id);\n OsiLookupTypesDTO osiLookupTypesDTO = null;\n \t\n try{\n \tif(osiLookupTypes!=null){\n\t\t \tosiLookupTypesDTO = mapper.osiLookupToOsiLookupDTO(osiLookupTypes);\n \t}else{\n \t\tthrow new Exception();\n \t}\n }catch(Exception e){\n \tthrow new BusinessException(\"ERR_1002\", e.getMessage());\n }\n return osiLookupTypesDTO;\n }", "public T get( final int id )\n\t{\n\t\treturn this.dao.findById( id ).get();\n\t}", "@Override\n\tpublic Cat getById(Integer id) {\n\t\tOptional<Cat> cat = catRepository.findById(id);\n\t\tif(cat.isPresent()) {\n\t\t\treturn cat.get();\n\t\t} else {\n\t\t\tthrow new CatNotFoundException();\n\t\t}\n\t}", "Food getByType(String type);", "public Cd getById(int id) {\n\t\tString sql = \" from Cd where id=:id\";\n\t\tQuery query = HibernateUtil.getSession().createQuery(sql).setParameter(\"id\", id);\n\t\treturn (Cd)findOne(query);\n\t\t\n\t}", "@Nullable\n <T> T findById( @Nonnull Class<T> type, @Nonnull Object id );", "@Transactional(readOnly = true)\n public Optional<DRkDTO> findOne(Long id) {\n log.debug(\"Request to get DRk : {}\", id);\n return dRkRepository.findById(id).map(dRkMapper::toDto);\n }", "@Override\n @Transactional(readOnly = true)\n public MechanicDTO findOne(Long id) {\n log.debug(\"Request to get Mechanic : {}\", id);\n Mechanic mechanic = mechanicRepository.findOne(id);\n return mechanicMapper.toDto(mechanic);\n }", "public Device getById(String id) {\n\n try {\n return deviceRepository.findOne(id);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return null;\n }", "@Override\n public SideDishEntity findOne(Long id) throws IllegalArgumentException {\n return null;\n }", "public final static ScopeType getScopeTypeById(int id) {\n for (ScopeType scopeType : ScopeType.values()) {\n if (scopeType.getId() == id) {\n return scopeType;\n }\n }\n return null;\n }", "@GetMapping(\"/delivery-delivery-types/{id}\")\n public ResponseEntity<DeliveryDeliveryType> getDeliveryDeliveryType(@PathVariable Long id) {\n log.debug(\"REST request to get DeliveryDeliveryType : {}\", id);\n Optional<DeliveryDeliveryType> deliveryDeliveryType = deliveryDeliveryTypeRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(deliveryDeliveryType);\n }", "@Override\r\n\tpublic UserType get(int id) {\r\n\t\treturn sessionFactory.getCurrentSession().get(UserType.class, Integer.valueOf(id));\r\n\t}", "@Transactional(readOnly = true)\n public CategoriaDTO findOne(Long id) {\n log.debug(\"Request to get Categoria : {}\", id);\n Categoria categoria = categoriaRepository.findOne(id);\n return categoriaMapper.toDto(categoria);\n }", "@Override\n\tpublic CustomerType get(int id) {\n\t\treturn null;\n\t}", "@Transactional(readOnly = true)\n public Optional<ItemInstance> findOne(Long id) {\n log.debug(\"Request to get ItemInstance : {}\", id);\n return itemInstanceRepository.findById(id);\n }", "public static ObjectType forId(int id) {\r\n for(ObjectType type : values()) {\r\n if(type.id == id) {\r\n return type;\r\n }\r\n }\r\n throw new RuntimeException(\"unknown object type for id: \" + id);\r\n }", "Optional<Category> getCategory(Integer id);", "@Override\n public Lekar findOne(Long id) {\n return lekarRepozitorijum.getOne(id);\n }", "@Override\r\n\tpublic LookMast findOne(int id) {\n\t\treturn lookMastRepository.findOne(id);\r\n\t}", "@GetMapping(\"/buy-types/{id}\")\n @Timed\n public ResponseEntity<BuyTypeDTO> getBuyType(@PathVariable Long id) {\n log.debug(\"REST request to get BuyType : {}\", id);\n BuyTypeDTO buyTypeDTO = buyTypeService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(buyTypeDTO));\n }", "@Override\n\tpublic DocumentType findById(Long id) {\n\t\treturn documentTypeRepository.findOne(id);\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<MuseumDTO> findOne(Long id) {\n log.debug(\"Request to get Museum : {}\", id);\n return museumRepository.findById(id)\n .map(museumMapper::toDto);\n }", "@GetMapping(\"/alteration-display-types/{id}\")\n @Timed\n public ResponseEntity<AlterationDisplayTypeDTO> getAlterationDisplayType(@PathVariable Long id) {\n log.debug(\"REST request to get AlterationDisplayType : {}\", id);\n AlterationDisplayTypeDTO alterationDisplayTypeDTO = alterationDisplayTypeService.findOne(id);\n return Optional.ofNullable(alterationDisplayTypeDTO)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "@Override\r\n\tpublic CodeRangeDis findByd(String id) {\n\t\treturn null;\r\n\t}", "T get(Integer id);", "@Override\n\tpublic T get(ID id) {\n\t\tOptional<T> obj = getDao().findById(id);\n\t\tif (obj.isPresent()) {\n\t\t\treturn obj.get();\n\t\t}\t\t\n\t\treturn null;\n\t}", "@Override\n public Dish get(int id, int restaurantId) {\n List<Dish> dishes = crudRepository.get(id, restaurantId);\n return DataAccessUtils.singleResult(dishes);\n }", "@Transactional(readOnly = true)\n public SubCategory findOne(Long id) {\n log.debug(\"Request to get SubCategory : {}\", id);\n SubCategory subCategory = subCategoryRepository.findOne(id);\n return subCategory;\n }", "public Etudiant getById(int id) {\n\t\treturn dao.getById(id);\r\n\t}", "public static UserType getUserTypeById(Integer id) {\n UserType ut = UserType.finder.where().eq(\"id\", id).findUnique();\n return ut;\n }", "public AgentType findAgentTypeById(long id);", "@Transactional(readOnly = true)\n\tpublic Rule findOne(Long id) {\n\t\tlog.debug(\"Request to get Rule : {}\", id);\n\t\tRule rule = ruleRepository.findOne(id);\n\t\treturn rule;\n\t}", "Categorie findOne(Long id);", "@Override\n @Transactional(readOnly = true)\n public Optional<HabilitationDTO> findOne(Long id) {\n log.debug(\"Request to get Habilitation : {}\", id);\n return habilitationRepository.findById(id)\n .map(habilitationMapper::toDto);\n }", "SysType selectByPrimaryKey(Integer id);", "Optional<FixedAssetAccessories> findOne(UUID id);", "public Discipline getDisciplineById(int id) {\r\n for (Discipline discipline : disciplines) {\r\n if (discipline.getId() == id) {\r\n return discipline;\r\n }\r\n }\r\n return null;\r\n }", "T getbyId(I id);", "public T get(ID id) {\n\t\treturn (T) sessionFactory.getCurrentSession().get(clazz, id);\n\t}", "@Override\n\tpublic Category getById(long id) {\n\t\treturn getById(id);\n\t}", "public Doctor get(String id) {\n\t\treturn dao.get(id);\n\t}", "@Override\r\n\tpublic Food getFoodById(int id) {\n\t\tString sql=\"select * from food where id=?\";\r\n\t\tList<Food> list=(List<Food>) BaseDao.select(sql, Food.class,id);\r\n\t\tif(list.size()>0) {\r\n\t\t\treturn list.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Material findById(Long id) {\n\t\treturn materialRepository.findById(id).get();\n\t}", "Optional<Expert> findOne(Long id);", "@Override\r\n\tpublic Candidat findOne(String id) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic TBasUnitClass findOne(String id) {\n\t\treturn tBasUnitClassRepository.findOne(id);\n\t}", "T getById(int id);", "public Karton findOne(Integer id) {\n\t\treturn kartonRepository.findById(id).orElseGet(null);\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic Dispute getDisputeById(int id) {\r\n\t\treturn orderDao.getDispute(id);\r\n\t}", "public static DataType get(String type)\n {\n return lookup.get(type);\n }", "FieldType getFieldTypeById(byte[] id) throws FieldTypeNotFoundException, TypeException, InterruptedException;", "@Override\n\tpublic Category getCategory(int id) {\n\t\treturn categoryRepository.getOne(id);\n\t}", "@GetMapping(\"/age-group-types/{id}\")\n @Timed\n public ResponseEntity<AgeGroupType> getAgeGroupType(@PathVariable Long id) {\n log.debug(\"REST request to get AgeGroupType : {}\", id);\n AgeGroupType ageGroupType = ageGroupTypeRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(ageGroupType));\n }", "public ClassItem get(Long id) {\n return (ClassItem)get(ClassItem.class, id);\n }", "@Transactional(readOnly = true)\n public TipoSituacao findOne(Long id) {\n log.debug(\"Request to get TipoSituacao : {}\", id);\n return tipoSituacaoRepository.findOne(id);\n }", "@Transactional(readOnly = true)\n public Optional<AgencySupportRoleContextTypeDTO> findOne(Long id) {\n log.debug(\"Request to get AgencySupportRoleContextType : {}\", id);\n return agencySupportRoleContextTypeRepository.findById(id)\n .map(agencySupportRoleContextTypeMapper::toDto);\n }", "T get(ID id);" ]
[ "0.65657866", "0.64273125", "0.63910425", "0.63486934", "0.6339335", "0.63095635", "0.62607896", "0.6260352", "0.6214911", "0.6210722", "0.6192048", "0.6183419", "0.61716753", "0.60580415", "0.6025491", "0.6019376", "0.5967743", "0.59505427", "0.5943932", "0.5934501", "0.59343964", "0.59122694", "0.5904786", "0.5904158", "0.58978766", "0.5894424", "0.5887771", "0.58876276", "0.5876881", "0.58742726", "0.58645284", "0.58631504", "0.58602756", "0.58358395", "0.5816914", "0.58106333", "0.58100754", "0.5807739", "0.5803513", "0.58009934", "0.57941306", "0.57896334", "0.57878006", "0.5785895", "0.5778737", "0.576864", "0.5768586", "0.5767803", "0.5765291", "0.5757136", "0.5756284", "0.57544947", "0.5742312", "0.57401663", "0.57339215", "0.5733242", "0.57322633", "0.57320017", "0.5727026", "0.5726582", "0.5717763", "0.571441", "0.5702963", "0.56984246", "0.56971455", "0.5693367", "0.56836236", "0.5677979", "0.5672779", "0.5668914", "0.5668332", "0.56668836", "0.5658014", "0.5636683", "0.563505", "0.5634705", "0.56229657", "0.5619592", "0.5619303", "0.5618237", "0.5615521", "0.56105655", "0.5609618", "0.56057364", "0.5600948", "0.5596642", "0.5594058", "0.5586218", "0.5586169", "0.5571166", "0.5566315", "0.55648774", "0.5564489", "0.5556194", "0.5553891", "0.5553747", "0.55520695", "0.55514246", "0.5548486", "0.5547969" ]
0.7837975
0
Delete the disabilityType by id.
public void delete(Long id) { log.debug("Request to delete DisabilityType : {}", id); disabilityTypeRepository.deleteById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete TypeVehicule : {}\", id);\n typeVehiculeRepository.deleteById(id);\n }", "void delete(String typeName, String id);", "public void delete(Long id) {\n log.debug(\"Request to delete ContributionType : {}\", id);\n contributionTypeRepository.deleteById(id);\n }", "void deleteActivityType(int id) throws DataAccessException;", "void deleteTrackerLocationGetType(final Integer id);", "public void removeByType(long typeId);", "@DeleteMapping(\"/buy-types/{id}\")\n @Timed\n @Secured({AuthoritiesConstants.ROLE_ADMIN, AuthoritiesConstants.DELETE_BUY_TYPE})\n public ResponseEntity<Void> deleteBuyType(@PathVariable Long id) {\n log.debug(\"REST request to delete BuyType : {}\", id);\n buyTypeService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@DeleteMapping(\"/age-group-types/{id}\")\n @Timed\n public ResponseEntity<Void> deleteAgeGroupType(@PathVariable Long id) {\n log.debug(\"REST request to delete AgeGroupType : {}\", id);\n ageGroupTypeRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete WorkType : {}\", id);\n workTypeRepository.deleteById(id);\n workTypeSearchRepository.deleteById(id);\n }", "boolean delete(Long id, Class<T> type);", "public void delete(Long id) {\n log.debug(\"Request to delete InsuranceObjectType : {}\", id);\n insuranceObjectTypeRepository.deleteById(id);\n }", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void deleteById(String id);", "@DeleteMapping(\"/alteration-display-types/{id}\")\n @Timed\n public ResponseEntity<Void> deleteAlterationDisplayType(@PathVariable Long id) {\n log.debug(\"REST request to delete AlterationDisplayType : {}\", id);\n alterationDisplayTypeService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"alterationDisplayType\", id.toString())).build();\n }", "@DeleteMapping(\"/insurance-types/{id}\")\n @Timed\n public ResponseEntity<Void> deleteInsuranceType(@PathVariable Long id) {\n log.debug(\"REST request to delete InsuranceType : {}\", id);\n insuranceTypeService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"insuranceType\", id.toString())).build();\n }", "@DeleteMapping(\"/types/{id}\")\n\t@Timed\n\tpublic ResponseEntity<Void> deleteTypes(@PathVariable Long id) {\n\t\tthis.log.debug(\"REST request to delete Types : {}\", id);\n\t\tthis.typesService.delete(id);\n\t\treturn ResponseEntity.ok()\n\t\t\t\t.headers(HeaderUtil.createEntityDeletionAlert(TypesResource.ENTITY_NAME, id.toString())).build();\n\t}", "public void eliminarTipoAnimal(Long id){\n persistence.delete(id);\n }", "public int deleteType(int typeId){ //Deletes the type according to the typeID\n final int DELETED = 0;\n final int NOT_DELETED = 1;\n final int NOT_FOUND = 2;\n \n if(!findType(typeId)){//TypeId not in database\n return NOT_FOUND;\n }else{\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(DELETE_BIKES);\n PreparedStatement ps2 = con.prepareStatement(DELETE_BY_ID);\n PreparedStatement ps3 = con.prepareStatement(DELETE_POSSIBLE);\n PreparedStatement ps4 = con.prepareStatement(BIKE_CHECK + typeId);\n ResultSet rs = ps4.executeQuery()){\n con.setAutoCommit(false);\n if(rs.next()){\n ps.setInt(1, typeId);\n ps2.setInt(1, typeId);\n ps.executeUpdate();\n ps2.executeUpdate();\n }else{\n ps3.setInt(1, typeId);\n ps3.executeUpdate();\n }\n con.commit();\n con.setAutoCommit(true);\n return DELETED;\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n }\n return NOT_DELETED;\n }", "@Override\r\n\tpublic void delete(int id) {\n\t\tconsigMetalDtRepository.delete(id);\r\n\t\t\r\n\t}", "@Override\n\tpublic void deleteById(int id) {\n\t\tdesignMapper.deleteById(id);\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete ProjectTypeId : {}\", id);\n projectTypeIdRepository.deleteById(id);\n }", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "public void deleteLocationType(int id){\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(table_locationType, key_id + \" = ? \", new String [] { String.valueOf(id) });\n\t\tdb.close();\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic void delete(String id) {\n\t\tcodeRangeDisMapper.deleteById(id);\r\n\t}", "public void delete(int id) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tCategoriesTypePojo categoriesTypePojo = findById(id);\n\t\tsession.delete(categoriesTypePojo);\n\t}", "@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}", "@DeleteMapping(\"/type-tests/{id}\")\n @Timed\n public ResponseEntity<Void> deleteTypeTest(@PathVariable Long id) {\n log.debug(\"REST request to delete TypeTest : {}\", id);\n typeTestService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "public void deleteByComplement(int id, TripletType type) throws DAOException;", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Mode : {}\", id);\n modeRepository.delete(id);\n }", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "void deleteById(final String id);", "public void delete(Long id) {\n log.debug(\"Request to delete TipoSituacao : {}\", id);\n tipoSituacaoRepository.delete(id);\n }", "@DeleteMapping(\"/delivery-delivery-types/{id}\")\n public ResponseEntity<Void> deleteDeliveryDeliveryType(@PathVariable Long id) {\n log.debug(\"REST request to delete DeliveryDeliveryType : {}\", id);\n deliveryDeliveryTypeRepository.deleteById(id);\n deliveryDeliveryTypeSearchRepository.deleteById(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@Override\n public void delete(int id) {\n repr.delete(id);\n }", "@Override\n public void delete(String id) {\n log.debug(\"Request to delete Allergy : {}\", id);\n allergyRepository.delete(id);\n }", "@Override\n\tpublic void delete(String id) {\n\n\t}", "void deleteCategory(Integer id);", "@Override\n\tpublic void deleteById(String id) {\n\t\t\n\t}", "public void deleteById(KeyType id) {\r\n Session session = getSession();\r\n Transaction tx = null;\r\n try {\r\n tx = session.beginTransaction();\r\n session.delete(session.get(getPersistentClass(), id));\r\n tx.commit();\r\n } catch (RuntimeException e) {\r\n LOG.error(MODULE + \"Exception in deletion through id.\" + e, e);\r\n if (tx != null) {\r\n tx.rollback();\r\n }\r\n throw e;\r\n } finally {\r\n if (session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n }", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Radio : {}\", id);\n radioRepository.delete(id);\n }", "public void delete(int id);", "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "public void delete(int id) {\n\n\t}", "@Override\n\tpublic String delFoodType(int typeid) {\n\t\treturn ftb.delFoodType(typeid);\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Mechanic : {}\", id);\n mechanicRepository.delete(id);\n }", "public boolean delete(String id);", "public boolean delete(String id);", "@Override\r\n\tpublic void delete(String id) {\n\r\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\t\r\n\t}", "public void deleteById(Integer id) {\n\n\t}", "public void delete(Integer id) {\n\r\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Habilitation : {}\", id);\n habilitationRepository.deleteById(id);\n }", "@Override\n public void deleteType(String repositoryId, String typeId, ExtensionsData extension) {\n CmisSpi spi = CmisBindingsHelper.getSPI(session);\n spi.getRepositoryService().deleteType(repositoryId, typeId, extension);\n\n // remove the type from cache\n TypeDefinitionCache cache = CmisBindingsHelper.getTypeDefinitionCache(session);\n cache.remove(repositoryId, typeId);\n }", "@Override\r\n\tpublic void del(Integer id) {\n\t\t\r\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete AdChoise : {}\", id);\n adChoiseRepository.delete(id);\n adChoiseSearchRepository.delete(id);\n }", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "void deleteById(Integer id);", "void deleteById(Integer id);", "void delete( Integer id );", "public void delete(Long id) {\n log.debug(\"Request to delete GarmentSize : {}\", id);\n garmentSizeRepository.delete(id);\n }", "void delete(final Long id);", "@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete GeoTypeCommune : {}\", id);\n geoTypeCommuneRepository.deleteById(id);\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Permiso : {}\", id);\n permisoRepository.delete(id);\n }", "@Override\n\tpublic void delete(Integer id) {\n\n\t}", "default void delete(ID id)\n throws TechnicalException, ConflictException{\n delete(find(id));\n }", "@RequestMapping(value = \"/dlFileTypes/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteDlFileType(@PathVariable Long id) {\n log.debug(\"REST request to delete DlFileType : {}\", id);\n dlFileTypeRepository.delete(id);\n dlFileTypeSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"dlFileType\", id.toString())).build();\n }", "@Override\n\tpublic boolean delTypeFood(int typeid) {\n\t\treturn fb.delTypeFood(typeid);\n\t}", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "@Override\n\tpublic void delete(Long id) {\n\t}", "@Override\n\tpublic void deleteByType(int type) {\n\t\tsettingDao.deleteByType(type);\n\t}", "public void deleteById(Long id);", "@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}" ]
[ "0.72681856", "0.6920914", "0.6902856", "0.68809456", "0.66787344", "0.66666853", "0.6663136", "0.66502005", "0.6624507", "0.66121227", "0.6578651", "0.65763056", "0.65763056", "0.65763056", "0.65763056", "0.65763056", "0.6535704", "0.6525279", "0.6519228", "0.64981806", "0.64884233", "0.64882255", "0.6487411", "0.6480128", "0.6461569", "0.64555067", "0.64555067", "0.64555067", "0.64555067", "0.64555067", "0.64555067", "0.64555067", "0.64555067", "0.64555067", "0.64555067", "0.6448104", "0.6444847", "0.64394516", "0.64371645", "0.642831", "0.6419283", "0.64159113", "0.64039654", "0.64039654", "0.64039654", "0.63918906", "0.6385116", "0.6381198", "0.6339022", "0.63382965", "0.6336789", "0.6331356", "0.63295263", "0.63219786", "0.63175154", "0.63175154", "0.63175154", "0.63175154", "0.63175154", "0.63175154", "0.631007", "0.6287821", "0.6280146", "0.6280146", "0.6269431", "0.6265682", "0.62529784", "0.6249767", "0.6249767", "0.6243006", "0.6237974", "0.62377775", "0.6234952", "0.6227587", "0.62249744", "0.6220844", "0.622028", "0.6214226", "0.6214226", "0.6214226", "0.6214226", "0.6214226", "0.6210527", "0.6210527", "0.62002736", "0.6199297", "0.6196909", "0.61944956", "0.6190434", "0.61862564", "0.6185908", "0.61768943", "0.617059", "0.616285", "0.6162515", "0.6162515", "0.6157288", "0.61570245", "0.61551815", "0.615226" ]
0.85524756
0